@layer base, layout, components;
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

@layer base {
  :root {
    --primary: #580000;
    --primary-dark: #3a0000;
    --primary-light: #7a1111;
    --accent: #dc2f02;
    --accent-gold: #ffba08;
    --accent-orange: #f48c06;
    --bg-cream: #fff8eb;
    --text-dark: #251010;
    --text-muted: #554040;
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.6);
    --border-frame-width: 0.6rem;
    --header-height: 72px;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    overflow-x: hidden;

    &::before {
      content: "";
      border: var(--border-frame-width) solid var(--primary);
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      right: 0;
      z-index: 99;
      pointer-events: none;
      transition: border-width 0.3s ease;
    }
  }

  body.menu-open {
    overflow: hidden;
  }

  a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  h1,
  h2,
  h3,
  h4 {
    font-weight: 500;
    line-height: 1.25;
    margin-top: 0;
  }

  h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--primary);
  }

  h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.05rem;
    color: var(--primary);
    margin-bottom: 1rem;
  }

  h3 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.03rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
  }

  p {
    line-height: 1.65;
    font-size: clamp(1.05rem, 3.2vw, 1.2rem);
    margin-top: 0;
    margin-bottom: 1.2rem;
  }
}

@layer layout {

  /* ==========================================
     HEADER & NAVIGATION (Desktop & Mobile)
     ========================================== */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    padding: 0.4rem 0.8rem;
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1.2rem;
    margin-top: 1rem;
    background: rgba(88, 0, 0, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 2.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 186, 8, 0.3);
  }

  .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;

    img {
      height: 4rem;
      width: auto;
      object-fit: contain;
    }

    &:hover {
      transform: scale(1.05);
    }
  }

  /* Desktop Navigation */
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    a:not(.btn-header-cta) {
      color: #ffffff;
      font-size: 1.15rem;
      padding: 0.5rem 1rem;
      border-radius: 1.5rem;
      font-weight: 500;
      letter-spacing: 0.02rem;
      transition: all 0.2s ease;

      &:hover {
        background: rgba(255, 186, 8, 0.25);
        color: var(--accent-gold);
        transform: translateY(-1px);
      }
    }
  }

  .btn-header-cta {
    background-color: var(--accent-orange) !important;
    color: var(--primary) !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: 1.5rem !important;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.2s;
    white-space: nowrap;

    &:hover {
      background-color: var(--accent-gold) !important;
      color: var(--primary-dark) !important;
      transform: scale(1.04);
      box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
    }
  }

  /* Mobile Nav Bar Controls */
  .mobile-nav-actions {
    display: none;
    align-items: center;
    gap: 0.6rem;
  }

  .btn-mobile-quick-cta {
    background-color: var(--accent-orange);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: bold;
    padding: 0.35rem 0.9rem;
    border-radius: 1.2rem;
    border: 1.5px solid var(--accent-gold);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

    &:active {
      transform: scale(0.96);
    }
  }

  .hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s ease, transform 0.2s ease;

    &:hover {
      background: rgba(255, 186, 8, 0.25);
    }

    &:active {
      transform: scale(0.92);
    }

    .bar {
      display: block;
      width: 22px;
      height: 2.5px;
      background-color: #ffffff;
      border-radius: 2px;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background-color 0.3s;
    }

    &.open {
      .bar-1 {
        transform: translateY(7.5px) rotate(45deg);
        background-color: var(--accent-gold);
      }

      .bar-2 {
        opacity: 0;
        transform: scaleX(0);
      }

      .bar-3 {
        transform: translateY(-7.5px) rotate(-45deg);
        background-color: var(--accent-gold);
      }
    }
  }

  /* ==========================================
     MOBILE DRAWER OVERLAY
     ========================================== */
  .mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;

    &.active {
      pointer-events: auto;
      visibility: visible;

      .mobile-drawer-backdrop {
        opacity: 1;
      }

      .mobile-drawer-content {
        transform: translateX(0);
      }
    }
  }

  .mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(37, 16, 16, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 88%;
    max-width: 360px;
    background: linear-gradient(165deg, #580000 0%, #3a0000 100%);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
    border-left: 2px solid rgba(255, 186, 8, 0.35);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;

    .drawer-logo img {
      height: 42px;
      width: auto;
    }

    .close-drawer-btn {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #ffffff;
      font-size: 1.3rem;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background-color 0.2s, transform 0.2s;

      &:hover {
        background: var(--accent-orange);
        color: var(--primary);
        transform: rotate(90deg);
      }
    }
  }

  .mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;

    .drawer-link {
      display: flex;
      align-items: center;
      gap: 0.9rem;
      color: #ffffff;
      font-size: 1.35rem;
      font-weight: 500;
      padding: 0.9rem 1.2rem;
      border-radius: 1rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      transition: all 0.2s ease;

      .drawer-link-icon {
        font-size: 1.3rem;
      }

      &:hover,
      &:active {
        background: rgba(255, 186, 8, 0.2);
        color: var(--accent-gold);
        transform: translateX(6px);
        border-color: rgba(255, 186, 8, 0.3);
      }
    }
  }

  .mobile-drawer-cta {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .btn-drawer-book {
      background: var(--accent-orange);
      color: var(--primary);
      font-weight: bold;
      font-size: 1.25rem;
      padding: 0.9rem 1.4rem;
      border-radius: 1.8rem;
      text-align: center;
      border: 2px solid var(--accent-gold);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);

      &:active {
        background: var(--accent-gold);
        transform: scale(0.98);
      }
    }

    .drawer-contact-info {
      text-align: center;

      a {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.05rem;
        display: inline-block;
        margin-bottom: 0.3rem;

        &:hover {
          color: var(--accent-gold);
        }
      }

      .drawer-subtext {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
      }
    }
  }

  /* ==========================================
     MAIN CONTENT & PAGE CONTAINERS
     ========================================== */
  main {
    flex: 1;
    width: 100%;
  }

  .page-wrapper {
    max-width: 1100px;
    margin: 5.5rem auto 5rem;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 1.8rem;
    box-shadow: 0 10px 35px rgba(88, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: padding 0.3s ease, margin 0.3s ease;
  }

  .section-title {
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.6rem;
    font-weight: 800;
  }

  .section-subtitle {
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    text-align: center;
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
  }

  /* Responsive Split Layouts for Hero/Story */
  .split-layout,
  .split-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-block: 2.5rem;
    align-items: center;
  }

  .split-story {
    grid-template-columns: 1fr 1.8fr;
    align-items: start;
  }

  /* ==========================================
     GRID SYSTEMS
     ========================================== */
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
    margin-block: 2rem;
  }

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-block: 2rem;
  }

  .grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-block: 2rem;
  }

  /* ==========================================
     CARDS
     ========================================== */
  .card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2.2rem 2rem;
    box-shadow: 0 8px 24px rgba(88, 0, 0, 0.07);
    border: 2px solid rgba(88, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;

    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 32px rgba(88, 0, 0, 0.14);
      border-color: var(--primary);
    }

    h3 {
      font-size: 1.8rem;
      color: var(--primary);
      margin-top: 0;
      border-bottom: 2px solid rgba(88, 0, 0, 0.12);
      padding-bottom: 0.6rem;
      margin-bottom: 1rem;
    }

    .price-tag {
      font-size: 1.45rem;
      font-weight: bold;
      color: var(--accent);
      margin-block: 0.5rem 1rem;
    }

    ul {
      padding-left: 1.3rem;
      line-height: 1.7;
      font-size: 1.15rem;
      color: var(--text-dark);
      margin-bottom: 1.5rem;

      li {
        margin-bottom: 0.6rem;
      }
    }
  }

  /* Testimonials */
  .testimonial-card {
    background: var(--bg-cream);
    border-left: 6px solid var(--primary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.8rem;

    blockquote {
      margin: 0;
      font-size: 1.25rem;
      font-style: italic;
      line-height: 1.65;
      color: #2b1111;
    }

    .author {
      margin-top: 1.2rem;
      font-weight: bold;
      color: var(--primary);
      text-align: right;
      font-size: 1.15rem;
    }
  }

  /* CTA Banner */
  .cta-banner {
    background: linear-gradient(135deg, var(--primary), #8b0000);
    color: #ffffff;
    border-radius: 1.8rem;
    padding: 3.5rem 2.2rem;
    text-align: center;
    margin-top: 3.5rem;
    box-shadow: 0 12px 30px rgba(88, 0, 0, 0.28);
    border: 1px solid rgba(255, 186, 8, 0.3);

    h2 {
      color: var(--accent-gold);
      font-size: clamp(1.8rem, 5vw, 2.5rem);
      margin-top: 0;
      margin-bottom: 1rem;
    }

    p {
      font-size: clamp(1.15rem, 3.5vw, 1.35rem);
      max-width: 720px;
      margin: 0 auto 1.8rem;
      line-height: 1.6;
    }

    .btn-cta {
      display: inline-block;
      background: var(--accent-gold);
      color: var(--primary);
      font-size: 1.35rem;
      font-weight: bold;
      padding: 0.9rem 2.5rem;
      border-radius: 2rem;
      text-decoration: none;
      transition: all 0.25s ease;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);

      &:hover {
        background: #ffffff;
        color: var(--primary);
        transform: scale(1.05);
      }
    }
  }

  /* Contact Section */
  .contact {
    position: relative;
    margin: 4rem auto;
    max-width: 820px;
    padding: 3rem 2.2rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 35px rgba(88, 0, 0, 0.12);
    text-align: center;
    border: 2px solid var(--primary);

    h2 {
      font-size: clamp(1.8rem, 5vw, 2.3rem);
      margin-top: 0;
      margin-bottom: 0.8rem;
    }

    h3 {
      font-size: clamp(1.2rem, 3.5vw, 1.4rem);
      line-height: 1.7;
    }
  }

  /* ==========================================
     HOME PAGE
     ========================================== */
  .home {
    background: linear-gradient(-45deg, #ffba08, #faa307, #f48c06, #e85d04, #dc2f02, #d00000);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
    height: auto;
    padding-bottom: 4rem;
  }

  .top {
    display: grid;
    gap: 3rem;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "left right"
      "bottom bottom";
    padding-top: 1.5rem;
  }

  .left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;

    img {
      width: 22rem;
      max-width: 90%;
      height: auto;
      filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    }

    .menu {
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
      font-size: 1.35rem;
      width: 100%;
      max-width: 360px;
      text-align: center;

      a {
        background: rgba(88, 0, 0, 0.88);
        border-radius: 1.2rem;
        padding: 0.7rem 1.6rem;
        color: #fff;
        font-weight: 500;
        border: 1px solid rgba(255, 186, 8, 0.25);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        transition: all 0.25s ease;

        &:hover {
          background: var(--accent-gold);
          color: var(--primary);
          transform: translateY(-2px);
          box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }
      }
    }
  }

  .right {
    grid-area: right;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;

    img {
      width: 100%;
      max-width: 440px;
      max-height: 580px;
      object-fit: cover;
      border-radius: 1.8rem;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
      border: 3px solid rgba(255, 255, 255, 0.6);
      aspect-ratio: 3 / 4;
    }
  }

  .bottom {
    grid-area: bottom;
    font-size: clamp(1.2rem, 1.2vw + 1rem, 1.65rem);
    margin-inline: auto;
    text-align: justify;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 2.2rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 25px rgba(88, 0, 0, 0.08);
  }

  /* ==========================================
     ARCH SCROLL SHOWCASE (Interactive Layout)
     ========================================== */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;

    .spacer {
      width: 100%;
      height: 20vh;
    }

    .arch {
      width: 100%;
      display: flex;
      gap: 3rem;
      justify-content: space-between;
      max-width: 1100px;
      margin-inline: auto;
    }

    .arch__left {
      display: flex;
      flex-direction: column;
      width: 45%;

      .arch__info {
        height: 100vh;
        display: grid;
        place-items: center;

        .content {
          width: 100%;
        }

        h2.header {
          font-size: clamp(1.8rem, 4.5vw, 2.4rem);
          margin-bottom: 0.8rem;
        }

        p.desc {
          color: rgba(18, 18, 18, 0.9);
          font-size: clamp(1.15rem, 3vw, 1.35rem);
          margin-block: 6px 24px;
          line-height: 1.65;
        }

        a.link {
          text-decoration: none;
          padding: 0.8rem 2rem;
          margin-top: 1rem;
          color: inherit;
          border-radius: 2rem;
          display: inline-flex;
          gap: 0.6rem;
          width: fit-content;
          align-items: center;
          font-weight: bold;
          transition: transform 0.2s ease, box-shadow 0.2s ease;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

          &:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
          }
        }
      }
    }

    .arch__right {
      flex-shrink: 1;
      height: 100vh;
      width: 100%;
      max-width: 540px;
      position: relative;
      display: flex;
      flex-direction: column;

      .img-wrapper {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        height: 34rem;
        width: 100%;
        border-radius: 2rem;
        overflow: hidden;
        background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent, rgba(255, 255, 255, 0.3));
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
        border: 2px solid rgba(255, 255, 255, 0.5);

        @media (min-width: 770px) {
          padding: 3rem;

          &::before,
          &::after {
            content: "";
            position: absolute;
            z-index: 1;
            width: 3rem;
            height: 3rem;
          }

          &::before {
            bottom: 1rem;
            left: 1rem;
            border-radius: 0 0 0 1rem;
            background-image: linear-gradient(225deg, transparent 50%, rgba(255, 255, 255, 0.5));
          }

          &::after {
            top: 1rem;
            right: 1rem;
            border-radius: 0 1rem 0 0;
            background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.5));
          }

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
          }
        }
      }
    }
  }

  /* ==========================================
     FOOTER
     ========================================== */
  .site-footer {
    position: relative;
    width: 100%;
    margin-top: auto;
    background: var(--primary);
    color: #ffffff;
    padding: 2.2rem 1.5rem;
    border-top: 3px solid var(--accent-gold);
    z-index: 50;

    .footer-content {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.2rem;

      p {
        margin: 0;
        font-size: 1.15rem;
        color: rgba(255, 255, 255, 0.9);
      }

      .footer-links {
        display: flex;
        gap: 1.2rem;
        align-items: center;
        flex-wrap: wrap;

        a {
          color: var(--accent-gold);
          font-size: 1.1rem;
          text-decoration: underline;
          text-underline-offset: 3px;

          &:hover {
            color: #ffffff;
          }
        }
      }
    }
  }
}

@layer components {
  .btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 2rem;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.25s ease;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(88, 0, 0, 0.2);

    &:hover {
      background: var(--accent);
      color: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 8px 18px rgba(220, 47, 2, 0.3);
    }

    &:active {
      transform: scale(0.98);
    }
  }

  .loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: grid;
    place-items: center;
    backdrop-filter: blur(4px);
    z-index: 3000;
    transition: opacity 0.3s ease;
  }

  .loader.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(88, 0, 0, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet)
   ========================================== */

/* Tablet & Smaller Desktops */
@media (max-width: 960px) {
  :root {
    --border-frame-width: 0.35rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav-actions {
    display: flex;
  }

  .nav-container {
    padding: 0.35rem 0.9rem;
  }

  .top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "bottom";
    gap: 2.2rem;
  }

  .split-layout,
  .split-story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  :root {
    --border-frame-width: 0.25rem;
  }

  body {
    font-size: 1rem;
  }

  .site-header {
    padding: 0.25rem 0.5rem;
  }

  .nav-container {
    border-radius: 1.8rem;
    margin: 0.5rem 0;
  }

  .logo img {
    height: 4rem;
    position: absolute;
    border: 6px solid #600b01;
    border-radius: 2rem;
  }

  .page-wrapper {
    margin: 4.8rem 0.6rem 2.5rem;
    padding: 1.6rem 1.1rem;
    border-radius: 1.4rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-block: 1.5rem;
  }

  .card {
    padding: 1.6rem 1.25rem;
    border-radius: 1.2rem;

    h3 {
      font-size: 1.55rem;
    }

    ul {
      font-size: 1.1rem;
      padding-left: 1.1rem;
    }
  }

  .cta-banner {
    padding: 2.2rem 1.2rem;
    margin-top: 2.5rem;
    border-radius: 1.4rem;

    .btn-cta {
      width: 100%;
      max-width: 320px;
      padding: 0.8rem 1.5rem;
      font-size: 1.2rem;
      box-sizing: border-box;
    }
  }

  .contact {
    margin: 2.5rem 0.5rem;
    padding: 2rem 1.2rem;
    border-radius: 1.4rem;
  }

  .left {
    img {
      width: 18rem;
      max-width: 85%;
    }

    .menu {
      max-width: 100%;
      padding: 0 0.5rem;

      a {
        font-size: 1.25rem;
        padding: 0.75rem 1.2rem;
      }
    }
  }

  .right {
    padding: 0 0.5rem;

    img {
      max-width: 100%;
      max-height: 420px;
      aspect-ratio: 4 / 5;
    }
  }

  .bottom {
    padding: 1.6rem 1.2rem;
    border-radius: 1.4rem;
    text-align: left;
  }

  /* Arch Scroll Showcase for Mobile */
  .doula-services .container,
  .doula-services .arch {
    padding-top: 4rem;
  }

  .container {
    padding: 0 0.6rem;

    .spacer {
      height: 40px;
    }

    .arch {
      max-width: 100%;
      flex-direction: column;
      gap: 1.5rem;
    }

    .arch__left,
    .arch__right {
      display: contents;
    }

    .arch__right {
      height: auto;
      max-width: 100%;

      .img-wrapper {
        position: static;
        transform: none;
        height: auto;
        max-height: 380px;
        aspect-ratio: 4 / 3;
        width: 100%;
        margin-bottom: 1.2rem;
        border-radius: 1.2rem;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }

    .arch__left .arch__info {
      height: auto;
      padding: 1.5rem 1rem;
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(8px);
      border-radius: 1.2rem;
      border: 1px solid rgba(255, 255, 255, 0.8);
      margin-bottom: 1rem;
      box-shadow: 0 4px 15px rgba(88, 0, 0, 0.05);

      h2.header {
        text-align: center;
      }

      p.desc {
        text-align: center;
        font-size: 1.15rem;
      }

      a.link {
        margin: 0.5rem auto 0;
      }
    }
  }

  /* Footer on mobile */
  .site-footer {
    padding: 2rem 1.2rem;

    .footer-content {
      flex-direction: column;
      text-align: center;
      gap: 1rem;

      .footer-links {
        justify-content: center;
        gap: 1.5rem;
      }
    }
  }
}

/* Very small mobile screens (< 380px) */
@media (max-width: 380px) {
  .logo img {
    height: 30px;
  }

  .btn-mobile-quick-cta {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
  }

  .hamburger-btn {
    width: 38px;
    height: 38px;
  }

  .page-wrapper {
    padding: 1.3rem 0.8rem;
  }

  .card {
    padding: 1.3rem 0.9rem;
  }
}