/* The supplied desktop reference is the design source.
   This composition is isolated from the existing mobile hero and page sections. */
.hero-desktop { display: none; }

@media (min-width: 901px) {
  .hero-legacy { display: none; }

  .hero-desktop {
    --hero-white: #fff;
    --hero-yellow: #f9cf16;
    --hero-ink: #155942;
    display: block;
    padding: 0;
    background: #104534;
  }

  .rasa-hero-card {
    position: relative;
    isolation: isolate;
    container-type: size;
    height: 100svh;
    min-height: 680px;
    overflow: hidden;
    border-radius: 0;
    background: var(--hero-white);
    box-shadow: none;
  }

  .rasa-hero-backdrop {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .rasa-hero-backdrop stop:last-child { stop-color: var(--rasa-teal); }

  /* Equal side columns keep navigation centered independently of the logo and CTA. */
  .site-header { transition: background-color 220ms ease, box-shadow 220ms ease; }
  .site-header:not(.is-scrolled) { padding-top: 1.7vw; }
  .site-header .header-inner {
    width: 88.8%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 0;
    gap: 2vw;
    border-radius: 0;
  }
  .site-header .brand { justify-self: start; }
  .site-header .header-actions { justify-self: end; }
  .site-header:not(.is-scrolled) .brand-logo {
    width: clamp(84px, 7.5vw, 148px);
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: brightness(0) invert(1);
  }
  .site-header .main-nav { justify-self: center; margin: 0; }
  .site-header .nav-list { gap: clamp(16px, 2.2vw, 40px); }
  .site-header .nav-list > li:nth-child(1),
  .site-header .nav-list > li:nth-child(6),
  .site-header .nav-list > li:nth-child(7) { display: none; }
  .site-header .nav-list > li:nth-child(3) { order: -1; }
  .site-header .nav-link {
    position: relative;
    min-height: 44px;
    padding: 10px 4px;
    font-size: clamp(12px, 1.05vw, 18px);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    transition: color 200ms ease;
  }
  .site-header .nav-link::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 3px;
    left: 4px;
    height: 2px;
    border-radius: 2px;
    background: #f9cf16;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease, opacity 180ms ease;
  }
  .site-header:not(.is-scrolled) .nav-link { color: #edf7f1; }
  .site-header:not(.is-scrolled) .nav-link:is(:hover, :focus-visible),
  .site-header:not(.is-scrolled) .has-dropdown:is(:hover, :focus-within) > .nav-link { color: #fff; }
  .site-header .nav-link:is(:hover, :focus-visible, .active)::after,
  .site-header .has-dropdown:is(:hover, :focus-within) > .nav-link::after { opacity: 1; transform: scaleX(1); }
  .site-header.is-scrolled .nav-link:is(:hover, .active) { background: transparent; }
  .site-header .has-dropdown:focus-within .caret { transform: rotate(180deg); }
  .site-header .dropdown {
    padding: 8px;
    border: 1px solid #1559421a;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px #052c2230;
  }
  /* Keep the submenu reachable while the pointer crosses its visual gap. */
  .site-header .dropdown::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 14px;
  }
  .site-header .dropdown a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 9px;
    color: #155942;
    font-size: 14px;
    line-height: 1.4;
    transition: background 180ms ease, color 180ms ease;
  }
  .site-header .dropdown a:is(:hover, :focus-visible) { color: #104534; background: #faf3ce; }
  .site-header .btn-nav-cta {
    min-height: max(44px, 3.1vw);
    padding: .7vw 2vw;
    gap: 1.15vw;
    border-width: 1px;
    border-color: #d6eee579;
    font-family: var(--font-body);
    font-size: clamp(10px, .92vw, 18px);
    font-weight: 500;
    letter-spacing: .035em;
    white-space: nowrap;
    transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease;
  }
  .site-header .btn-nav-cta .btn-icon { transition: transform 200ms ease; }
  .site-header .btn-nav-cta:hover,
  .site-header.is-scrolled .btn-nav-cta:hover { color: #104534; background: #f9cf16; border-color: #f9cf16; transform: translateY(-2px); }
  .site-header .btn-nav-cta:hover .btn-icon { transform: translateX(3px); }
  .site-header .btn-nav-cta:active { transform: translateY(0); }
  /* A broad capsule keeps rounded edges without narrowing the page-aligned content. */
  .site-header.is-scrolled {
    top: 12px;
    left: clamp(12px, 1.4vw, 24px);
    right: clamp(12px, 1.4vw, 24px);
    padding-top: 0;
    background: #fff;
    border: 1px solid #d2e1d8;
    border-radius: 999px;
    box-shadow: 0 6px 20px #10453412;
  }
  .site-header.is-scrolled .header-inner {
    width: 88.8vw;
    max-width: 1680px;
    min-height: 76px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.is-scrolled .brand-logo { width: 88px; height: auto; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .site-header.is-scrolled .nav-link { color: #315648; font-size: clamp(12px, 1.05vw, 16px); }
  .site-header.is-scrolled .btn-nav-cta { min-height: 48px; padding-block: 11px; font-size: clamp(11px, .92vw, 15px); }
  body:has(.site-header:not(.is-scrolled)) > .wa-float { visibility: hidden; }

  .rasa-hero-eyebrow {
    position: absolute;
    top: 13.7%;
    left: 25%;
    width: 50%;
    color: #e0d24b;
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(12px, 1.2cqw, 20px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .15em;
  }

  .rasa-hero-title { display: contents; }
  .rasa-hero-title > span,
  .rasa-hero-ghost {
    position: absolute;
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.055em;
  }
  .rasa-hero-title > span { z-index: 2; font-size: 6cqw; }
  .rasa-hero-title--left { top: 27%; left: 8%; color: var(--hero-white); }
  .rasa-hero-title > .rasa-hero-title--right {
    top: 37.5%;
    right: 6%;
    font-size: 5.5cqw;
    color: var(--hero-yellow);
  }
  .rasa-hero-ghost {
    z-index: 0;
    color: #ffffff;
    opacity: .032;
    font-size: 10.5cqw;
    pointer-events: none;
    user-select: none;
  }
  .rasa-hero-ghost--left { top: 20.5%; left: 5.5%; }
  .rasa-hero-ghost--right { top: 31.5%; left: 65.5%; }

  .rasa-hero-product {
    position: absolute;
    z-index: 3;
    left: 22%;
    top: 13%;
    width: 56%;
    height: 71%;
    pointer-events: none;
    animation: rasa-product-arrive 400ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .rasa-hero-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1.2cqw 1.15cqw #052c222f);
  }

  /* Shared rows keep both corner panels aligned as the viewport changes. */
  .rasa-hero-panel {
    --panel-control-size: clamp(44px, 3.65cqw, 64px);
    --panel-spacing: clamp(18px, 1.4cqw, 26px);
    position: absolute;
    top: 71.5%;
    color: #213b30;
  }
  .rasa-hero-panel--samples { left: 5.6%; width: 17.2%; }
  .rasa-hero-panel--trust { right: 5.6%; width: 16.4%; }
  .rasa-hero-panel-tools { display: flex; align-items: center; min-height: var(--panel-control-size); }
  .rasa-hero-panel-body {
    display: grid;
    justify-items: start;
    gap: clamp(16px, 1.2cqw, 22px);
    margin-top: var(--panel-spacing);
    padding-top: var(--panel-spacing);
    border-top: 1px solid #d5d8d6;
  }
  .rasa-hero-story,
  .rasa-hero-trust {
    font-size: clamp(14px, 1.4cqw, 24px);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.55;
  }
  .rasa-hero-story strong,
  .rasa-hero-trust strong { font-weight: 600; }
  .rasa-hero-story strong { white-space: nowrap; }
  .rasa-hero-socials { gap: clamp(14px, 1.2cqw, 22px); }
  .rasa-hero-socials a {
    display: grid;
    place-items: center;
    width: var(--panel-control-size);
    height: var(--panel-control-size);
    color: var(--hero-ink);
    border: 1px solid #c4cec8;
    border-radius: 50%;
    transition: background 180ms ease, transform 180ms ease;
  }
  .rasa-hero-socials .rasa-hero-phone { background: var(--hero-yellow); border-color: var(--hero-yellow); }
  .rasa-hero-socials svg { width: 46%; height: 46%; }
  .rasa-hero-socials a:hover { transform: translateY(-2px); background: #e7f0e9; }
  .rasa-hero-socials .rasa-hero-phone:hover { background: #efc30b; border-color: #efc30b; }
  .rasa-hero-action { position: absolute; top: 83.7%; left: 28%; width: 44%; display: flex; flex-direction: column; align-items: center; gap: 1.65cqw; text-align: center; }
  .rasa-hero-action p { font-size: clamp(14px, 1.18cqw, 24px); line-height: 1.5; color: #d1e6dc; }
  .rasa-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25cqw;
    min-height: max(48px, 4.2cqw);
    padding: .95cqw 3cqw;
    border-radius: 999px;
    background: var(--hero-white);
    color: var(--hero-ink);
    font-size: clamp(12px, 1.05cqw, 20px);
    font-weight: 600;
    letter-spacing: .015em;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease;
  }
  .rasa-hero-primary svg { width: max(18px, 1.5cqw); height: max(18px, 1.5cqw); transition: transform 180ms ease; }
  .rasa-hero-primary:hover { transform: translateY(-2px); background: #f9cf16; }
  .rasa-hero-primary:hover svg { transform: translateX(3px); }
  .rasa-hero-range {
    display: inline-flex;
    align-items: center;
    min-height: var(--panel-control-size);
    gap: clamp(8px, .65cqw, 12px);
    padding: 5px clamp(14px, 1.4cqw, 24px) 5px 5px;
    border-radius: 999px;
    color: var(--hero-ink);
    background: var(--hero-yellow);
    font-size: clamp(12px, .95cqw, 16px);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease;
  }
  .rasa-hero-range > span { display: grid; flex: none; place-items: center; width: calc(var(--panel-control-size) - 10px); height: calc(var(--panel-control-size) - 10px); border-radius: 50%; background: var(--hero-white); }
  .rasa-hero-range svg { width: 54%; height: 54%; }
  .rasa-hero-range:hover { transform: translateY(-2px); background: #efc30b; }
  .rasa-hero-primary:active, .rasa-hero-range:active, .rasa-hero-socials a:active { transform: translateY(0); }
  .rasa-hero-story-link { color: var(--hero-ink); font-size: clamp(12px, .9cqw, 16px); font-weight: 600; line-height: 1.5; letter-spacing: .025em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; transition: color 180ms ease; }
  .rasa-hero-story-link:hover { color: #104534; text-decoration-thickness: 2px; }
  .hero-desktop a:focus-visible, .site-header a:focus-visible { outline: 3px solid #f9cf16; outline-offset: 6px; }
  .site-header.is-scrolled a:focus-visible, .site-header .dropdown a:focus-visible { outline-color: #155942; }
  .site-header .dropdown a:focus-visible { outline-width: 2px; outline-offset: -3px; }
  .rasa-hero-socials a:focus-visible, .rasa-hero-range:focus-visible, .rasa-hero-story-link:focus-visible { outline-color: #155942; }

  @keyframes rasa-product-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}

@media (min-width: 901px) and (max-width: 1150px) {
  .site-header .header-inner { width: 88.8%; gap: 16px; }
  .site-header .nav-list { gap: 18px; }
  .site-header .btn-nav-cta { padding-inline: 14px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .rasa-hero-product { animation: none; }
  .hero-desktop a { transition: none; }
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .site-header, .site-header .header-inner, .site-header .nav-link, .site-header .nav-link::after, .site-header .btn-nav-cta,
  .site-header .btn-nav-cta .btn-icon, .site-header .caret,
  .site-header .dropdown, .site-header .dropdown a,
  .hero-desktop a svg { transition: none; }
  .site-header .btn-nav-cta:hover, .site-header.is-scrolled .btn-nav-cta:hover,
  .site-header .btn-nav-cta:hover .btn-icon, .rasa-hero-primary:hover,
  .rasa-hero-primary:hover svg, .rasa-hero-range:hover, .rasa-hero-socials a:hover { transform: none; }
}
