/* Mobile v4 renders. Desktop and tablet composition stays in the v4 stylesheets. */
.menu-toggle, .mobile-home-order, .mobile-apply-email, .mobile-whats-new { display: none; }

@media (max-width: 599px) {
  :root { --header-height: 64px; --mobile-gutter: 6%; }
  body { background-color: #e6efc9; }
  .header, body:not(.home) .header, .home .header {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    min-height: var(--header-height);
    margin: 0 var(--mobile-gutter);
    padding: 9px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .brand, .home .brand { position: static; width: 136px; padding-block: 7px; }
  .menu-ready .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 10px 7px;
    background: transparent;
    flex-direction: column;
    justify-content: space-around;
    border-radius: 4px;
  }
  .menu-toggle span { width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
  .menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header nav, .home .header nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: auto;
    gap: 0 20px;
    margin: 10px 0 0;
    padding-bottom: 6px;
  }
  .header.menu-ready nav[hidden] { display: none; }
  .header nav a:nth-child(n) { justify-self: stretch; justify-content: flex-start; min-height: 48px; font-size: 16px; padding: 12px 0; }
  .header nav a::after { bottom: 5px; width: 30px; }
  .home .header nav a[aria-current]::after { transform: scaleX(1); }
  .menu-ready nav:not([hidden]) { animation: mobile-menu-in 180ms ease-out; }
  @keyframes mobile-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* The hero remains live HTML over the user's original portrait illustration. */
  .home main { display: flex; flex-direction: column; height: auto; min-height: calc(100svh - var(--header-height)); overflow: visible; }
  .home h1, .contact h1, .team-copy h1 { font-family: Arial, Inter, sans-serif; font-weight: 800; }
  .home h1 {
    position: relative;
    width: auto;
    height: auto;
    clip-path: none;
    overflow: visible;
    white-space: normal;
    margin: 30px var(--mobile-gutter) 0;
    padding: 0;
    font-size: clamp(40px, 11.8vw, 69px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.055em;
  }
  .mobile-home-order { display: inline-flex; align-self: flex-start; position: relative; z-index: 1; margin: 22px var(--mobile-gutter) 0; padding-inline: 27px; font-size: 20px; font-weight: 600; }
  .mobile-whats-new { display: inline-flex; align-self: flex-start; position: relative; z-index: 1; margin: 12px var(--mobile-gutter) 0; padding-inline: 27px; min-width: 199px; background: var(--cream); color: var(--green); border: 1px solid #9da986; }
  .mobile-whats-new:hover { background: #f5f2dc; }
  .home-garden {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    flex: 1;
    height: auto;
    min-height: 135vw;
    aspect-ratio: auto;
    margin-top: -14px;
    transform: none;
    background: url('assets/background-mobile.png') center bottom / cover no-repeat;
    mask-image: linear-gradient(to bottom, transparent, #000 12%);
  }
  .home .hut-hours, .home-actions, .home .look { display: none; }

  .team-layout, .split-layout, .about-story, .leaves { padding-inline: var(--mobile-gutter); }
  .team-layout, .split-layout, .about-story { padding-top: 30px; }
  body:not(.home) h1 { font-size: clamp(36px, 8.8vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
  .lead { margin-top: 16px; font-size: 17px; line-height: 1.45; }
  .team-copy h1 { font-size: clamp(35px, 10.6vw, 57px); }
  .team-copy > .lead { margin-top: 10px; }
  .roles { margin-top: 16px; }
  .role { align-items: flex-start; gap: 18px; padding: 20px 0; }
  .role-number { width: 64px; height: 64px; }
  .role h2 { font-size: 23px; }
  .role p { margin-top: 5px; font-size: 16px; line-height: 1.4; }
  .care { margin-top: 24px; }
  .care h2 { font-size: 29px; }
  .care p { margin-top: 8px; line-height: 1.45; }
  .care > h2 { font-size: 20px; }
  .apply { flex-direction: column; gap: 14px; margin-top: 23px; }
  .mobile-apply-email { display: block; font-size: 16px; }

  .team-layout > .scene, .about-story > .scene,
  .contact .split-layout::after {
    display: block;
    flex: none;
    height: 112vw;
    min-height: 0;
    margin: 12px -6.818182% 0;
    background: url('assets/background-mobile.png') center bottom / 100% auto no-repeat;
    mask-image: linear-gradient(to bottom, transparent, #000 10%);
  }
  .story-copy h1 { max-width: 330px; }
  .story-copy p { margin-top: 23px; font-size: 16px; line-height: 1.5; }
  .about-story > .scene { margin-top: 6px; }
  .leaves { padding-top: 26px; padding-bottom: 0; }
  .leaves h2 { font-size: clamp(30px, 8.2vw, 42px); }
  .leaves .lead { margin-top: 12px; font-size: 19px; line-height: 1.4; }
  .leaves p { margin-top: 23px; font-size: 16px; line-height: 1.5; }
  .leaves::after {
    flex: none;
    height: 64vw;
    min-height: 0;
    margin: 16px -6.818182% 0;
    background: url('assets/about-plate.png') left bottom / 225% auto no-repeat;
    mask-image: linear-gradient(to bottom, transparent, #000 12%);
  }
  .contact .intro h1 { font-size: clamp(44px, 11.5vw, 65px); line-height: 1; }
  .email-label { margin-top: 15px; font-size: 19px; }
  .email-label a { font-size: clamp(20px, 5.9vw, 28px); }
  .contact-form { margin-top: 24px; padding: 20px; border-radius: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 19px; }
  .contact-form label { margin-bottom: 7px; }
  .contact-form input { min-height: 48px; }
  .contact-form > label { margin-top: 20px; }
  .contact-form textarea { min-height: 160px; }
  .contact-form .button { width: 100%; margin-top: 22px; }
  .contact .split-layout::after { margin-top: 0; }
  .faq-layout h1 { font-size: clamp(35px, 8.8vw, 51px); }
  .faq-list { margin-top: 23px; }
  .faq-list details { margin-bottom: 5px; padding-inline: 16px; border-radius: 10px; }
  .faq-list summary { min-height: 48px; padding: 15px 0; gap: 16px; font-size: 16px; line-height: 1.4; letter-spacing: -.025em; }
  .answer { padding-bottom: 18px; }
  .answer p { font-size: 15px; line-height: 1.5; }
  .faqs .split-layout::after {
    flex: none;
    height: 76vw;
    min-height: 0;
    margin: 0 -6.818182% 0;
    background: url('assets/faqs-plate.png') left bottom / 140% auto no-repeat;
    mask-image: linear-gradient(to bottom, transparent, #000 12%);
  }
  .location { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
  .location .button { width: 180px; max-width: 100%; }
  .locations .split-layout::after { margin-inline: -6.818182%; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span, .menu-ready nav:not([hidden]) { transition: none; animation: none; }
}
