:root {
    --bg-warm: #FAF5EF;          
    --bg-card: #FFFFFF;          
    --bg-alt: #F3ECE1;           
    --green-dark: #2A4031;       
    --green-medium: #3E5C47;     
    --green-light: #E2ECE5;      
    --text-dark: #242220;        
    --text-muted: #605B54;      
    --border-color: #E6DDD3;    
    --danger-color: #D9534F;     
    
    --font-heading: 'Fredoka', cursive, sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--bg-warm);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--green-dark);
    letter-spacing: 0.01em;
  }

  h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.15; }
  h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.25; }
  h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

  p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
  }

  .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-medium);
    display: inline-block;
    margin-bottom: 0.5rem;
    background: rgba(62, 92, 71, 0.1);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    min-height: 52px;
  }

  .btn-primary {
    background-color: var(--green-dark);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(42, 64, 49, 0.2);
  }

  .btn-primary:hover, .btn-primary:active {
    background-color: var(--green-medium);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(42, 64, 49, 0.3);
  }

  .btn-secondary {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--green-dark);
    border: 2px solid #FFFFFF;
    backdrop-filter: blur(6px);
  }

  .btn-secondary:hover, .btn-secondary:active {
    background-color: #FFFFFF;
    transform: translateY(-2px) scale(1.02);
  }

  /* ==========================================
     HEADER & NAVIGATION
     ========================================== */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 6%;
    background: rgba(250, 245, 239, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--green-dark);
  }

  nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--green-dark);
    text-decoration: none;
    letter-spacing: 0.04em;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
  }

  .nav-links a:hover {
    color: var(--green-medium);
  }

  .mobile-toggle {
    display: none;
    background: var(--bg-alt);
    border: none;
    font-size: 1.6rem;
    color: var(--green-dark);
    cursor: pointer;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
  }

  /* ==========================================
     HERO SECTION (Full Bildbakgrund)
     ========================================== */
  .hero {
    position: relative;
    padding: 13rem 6% 9rem 6%;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(20, 30, 23, 0.68) 0%, rgba(36, 52, 41, 0.78) 100%), 
                url('images/hero.png') center/cover no-repeat;
    text-align: center;
  }

  .hero-text {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
  }

  .hero-text h1 {
    color: #FFFFFF;
    text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  }

  .hero-text p {
    font-size: 1.2rem;
    margin: 1.4rem 0 2.2rem 0;
    color: #F3ECE1;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  }

  .hero-text .subtitle {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
  }

  .hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .hero-buttons .btn-primary {
    background-color: var(--green-dark);
    border: 2px solid var(--green-dark);
  }

  .hero-buttons .btn-primary:hover {
    background-color: var(--green-medium);
    border-color: var(--green-medium);
  }

  /* ==========================================
     EXPERIENCE SECTION
     ========================================== */
  .experience-section {
    background-color: var(--bg-alt);
    padding: 6rem 6%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }

  .experience-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .experience-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
  }

  .feature-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--green-dark);
    font-size: 1.1rem;
  }

  .feature-tag-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .experience-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .experience-img-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  }

  /* ==========================================
     HOW IT WORKS
     ========================================== */
  .how-it-works {
    padding: 6rem 6%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
  }

  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
  }

  .step-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
  }

  .step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(42, 64, 49, 0.1);
    border-color: var(--green-medium);
  }

  .step-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
    line-height: 1;
  }

  /* ==========================================
     ABOUT LEON
     ========================================== */
  .about-gallery-section {
    background-color: var(--bg-alt);
    padding: 6rem 6%;
  }

  .about-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .about-gallery-container img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
  }

  /* ==========================================
     BILDGALLERI
     ========================================== */
  .gallery-section {
    padding: 6rem 6%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .gallery-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
  }

  .gallery-tag {
    background-color: var(--bg-alt);
    color: var(--green-dark);
    border: 2px solid var(--border-color);
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: default;
  }

  .gallery-tag:hover {
    background-color: var(--green-light);
    border-color: var(--green-medium);
    transform: translateY(-2px);
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    aspect-ratio: 4 / 3;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }

  .gallery-item:hover img {
    transform: scale(1.05);
  }

  /* ==========================================
     CONTACT SECTION
     ========================================== */
  .contact-section {
    padding: 6rem 6%;
    max-width: 950px;
    margin: 0 auto;
  }

  .contact-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin-top: 1.8rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .form-group.full-width {
    grid-column: span 2;
  }

  .form-group label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-dark);
  }

  .form-group input,
  .form-group textarea {
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border: 2px solid var(--border-color);
    background: var(--bg-warm);
    font-family: var(--font-body);
    font-size: 1.05rem;
    transition: var(--transition);
    width: 100%;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--green-dark);
    background: #FFFFFF;
  }

  .date-picker-trigger {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232A4031' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
  }

  /* ==========================================
     MODAL & CALENDAR
     ========================================== */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 34, 32, 0.65);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .calendar-modal {
    background: var(--bg-card);
    border-radius: 28px;
    width: 100%;
    max-width: 440px;
    padding: 2rem 1.8rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    border: 2px solid var(--border-color);
    transform: scale(0.9);
    transition: var(--transition);
    position: relative;
  }

  .modal-overlay.active .calendar-modal {
    transform: scale(1);
  }

  .close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--bg-warm);
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-dark);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-right: 2rem;
  }

  .nav-btn {
    background: var(--bg-alt);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--green-dark);
  }

  .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
  }

  .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
  }

  .day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: var(--bg-warm);
    color: var(--text-dark);
    transition: var(--transition);
  }

  .day:hover:not(.empty):not(.locked) {
    background: var(--green-light);
    color: var(--green-dark);
  }

  .day.empty { background: transparent; cursor: default; }

  .day.selected {
    background: var(--green-dark) !important;
    color: #FFFFFF !important;
  }

  .day.locked {
    background: #FCE8E8;
    color: var(--danger-color);
    text-decoration: line-through;
    cursor: not-allowed;
  }

  .calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
  }

  .legend-item { display: flex; align-items: center; gap: 6px; }
  .legend-dot { width: 12px; height: 12px; border-radius: 50%; }
  .legend-dot.available { background: var(--bg-warm); border: 1px solid var(--border-color); }
  .legend-dot.locked { background: #FCE8E8; border: 1px solid var(--danger-color); }
  .legend-dot.selected { background: var(--green-dark); }

  /* ==========================================
     FOOTER
     ========================================== */
  footer {
    background-color: var(--green-dark);
    color: #FFFFFF;
    padding: 5rem 6% 3rem 6%;
    border-radius: 32px 32px 0 0;
    margin-top: 4rem;
  }

  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
  }

  .footer-brand .logo {
    color: #FFFFFF;
    font-size: 2.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
  }

  .footer-brand p {
    color: #D2DFD6;
    margin-top: 1rem;
    max-width: 300px;
  }

  .footer-column h4 {
    color: #FFFFFF;
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    font-family: var(--font-heading);
  }

  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .footer-links a {
    color: #D2DFD6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
  }

  .footer-links a:hover {
    color: #FFFFFF;
  }

  .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #A4BEAD;
  }

  @media (max-width: 768px) {
    .mobile-toggle { 
        display: flex; 
      }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-warm);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 2px solid var(--border-color);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        gap: 1.5rem;
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero {
      padding: 9.5rem 6% 5.5rem 6%;
      min-height: 85vh;
    }

    .hero-buttons {
      flex-direction: column;
      width: 100%;
      max-width: 320px;
    }

    .hero-buttons .btn {
      width: 100%;
    }

    .experience-container, 
    .about-gallery-container {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }

    .experience-img-grid {
      gap: 0.8rem;
    }

    /* Gör att bildgalleriet visas två och två på mobil skärm */
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.8rem;
    }

    .steps-grid {
      grid-template-columns: 1fr;
      gap: 1.2rem;
    }

    .contact-card {
      padding: 2rem 1.5rem;
    }

    .form-grid {
      grid-template-columns: 1fr;
    }

    .form-group.full-width {
      grid-column: span 1;
    }

    .footer-container {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .footer-bottom {
      flex-direction: column;
      gap: 0.8rem;
      text-align: center;
    }
  }