/* ===================================================================
   MOBILE & TABLET — base layout + home page
   =================================================================== */

.home-opportunity-note {
  margin-top: 28px;
  max-width: 700px;
  color: var(--heartwood-2);
  font-size: 14.5px;
  line-height: 1.7;
}

[data-motion="reveal"]:not(.wrap),
[data-motion-child],
.motion-bridge:not(.wrap) {
  max-width: 100%;
}

@media (max-width: 768px) {
  :root {
    --header-h: 72px;
  }

  html,
  body,
  main,
  .site-header,
  .site-footer,
  section {
    overflow-x: clip;
    max-width: 100%;
  }

  .wrap {
    padding: 0 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  iframe,
  canvas,
  video {
    max-width: 100%;
  }

  /* --- project page video banners --- */
  .page-hero-banner,
  .video-frame.page-hero-banner {
    aspect-ratio: 16 / 9 !important;
    width: 100%;
    max-width: 100%;
    border-radius: var(--r-md);
  }

  .video-frame--clean iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    max-width: 100%;
  }

  .section.section-tight:has(.page-hero-banner) {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .page-header {
    padding: 32px 0 20px;
  }

  .page-header h1 {
    font-size: clamp(28px, 7vw, 36px);
    line-height: 1.12;
    padding: 0 4px;
  }

  .page-header p {
    font-size: 14.5px;
    padding: 0 4px;
  }

  .breadcrumb {
    flex-wrap: wrap;
    font-size: 12px;
  }

  /* --- header --- */
  .site-header .wrap {
    height: var(--header-h);
    gap: 12px;
  }

  .logo {
    font-size: 18px;
    gap: 8px;
    min-width: 0;
  }

  .logo .mark {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions .btn-enquire {
    padding: 9px 14px;
    font-size: 12.5px;
  }

  .enquire-long {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-right: -4px;
  }

  /* --- mobile nav drawer --- */
  .mobile-nav {
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .mobile-nav a {
    font-size: 22px;
    padding: 14px 0;
  }

  .mobile-nav__cta {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-nav__cta .btn {
    width: 100%;
    font-size: 14px;
    padding: 13px 20px;
  }

  .mobile-nav__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--heartwood);
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--cream-card);
  }

  /* --- sections (global) --- */
  .section {
    padding: 52px 0;
  }

  .section-tight {
    padding: 36px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
  }

  .section-head h2 {
    max-width: none;
    font-size: clamp(26px, 6.5vw, 34px);
    line-height: 1.12;
  }

  .section-head p {
    max-width: none;
    font-size: 14.5px;
    line-height: 1.65;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .btn {
    font-size: 14px;
    padding: 13px 22px;
  }

  .btn-sm {
    padding: 9px 16px;
    font-size: 12.5px;
  }

  /* --- footer --- */
  .site-footer {
    margin-top: 56px;
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }

  .footer-grid p.about-text {
    max-width: none;
  }

  .footer-logo {
    font-size: 18px;
  }

  .footer-grid a {
    word-break: break-word;
  }

  .footer-bottom {
    font-size: 11.5px;
    line-height: 1.55;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .footer-bottom span {
    max-width: 100%;
  }

  /* --- CTA banner --- */
  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 28px 22px;
    gap: 20px;
  }

  .cta-banner h2 {
    max-width: none;
    font-size: clamp(22px, 5.5vw, 28px);
  }

  .cta-banner p {
    max-width: none;
    font-size: 14px;
    margin-top: 8px;
  }

  .cta-banner .btn {
    width: 100%;
    align-self: stretch;
  }

  /* --- cards --- */
  .prop-body {
    padding: 18px;
  }

  .prop-body h3 {
    font-size: 17px;
  }

  .prop-meta {
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12.5px;
  }

  .prop-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .prop-foot .btn {
    width: 100%;
  }

  .prop-price {
    font-size: 16px;
  }

  /* --- whatsapp float --- */
  .whatsapp-float {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ===================================================================
   HOME PAGE — hero, finder, stats
   =================================================================== */

@media (max-width: 768px) {
  .page-home .hero-scroll {
    margin-top: 0;
    margin-bottom: 0;
  }

  .page-home .hero-scroll__track {
    height: auto;
  }

  .page-home .hero-scroll__sticky {
    position: relative;
    top: auto;
    height: auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: hidden;
    display: block;
    padding: 8px 18px 0;
    box-sizing: border-box;
  }

  .page-home .hero-scroll__banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
  }

  .page-home .hero-scroll__banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62%;
    background: linear-gradient(to top, rgba(31, 43, 28, 0.82) 0%, rgba(31, 43, 28, 0.15) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
  }

  .page-home .hero-scroll__sticky::after {
    display: none;
  }

  .page-home .hero-scroll__canvas {
    position: absolute;
    inset: 0;
    top: 0 !important;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100% !important;
    aspect-ratio: auto;
    display: block;
  }

  body.nav-hidden .page-home .hero-scroll__canvas {
    top: 0 !important;
    height: 100% !important;
  }

  .page-home .hero-scroll__badge {
    right: 10px;
    bottom: 10px;
    top: auto;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    font-size: 7.5px;
    padding: 4px;
    z-index: 4;
  }

  .page-home .hero-scroll__content.wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 14px 14px;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
  }

  .page-home .hero-scroll__content.wrap .hero-cta-row,
  .page-home .hero-scroll__content.wrap .hero-cta-row .btn {
    pointer-events: auto;
  }

  .page-home .hero-scroll__slides {
    max-width: 100%;
    width: 100%;
    min-height: 48%;
    max-height: 70%;
    flex: 0 0 auto;
    position: relative;
    pointer-events: none;
    overflow: hidden;
  }

  .page-home .hero-scroll__slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    overflow: hidden;
  }

  .page-home .hero-scroll__slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .page-home .hero-scroll__slide h1,
  .page-home .hero-scroll__slide h2 {
    font-size: clamp(20px, 5.8vw, 26px);
    margin-bottom: 6px;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
  }

  .page-home .hero-scroll__slide .lead {
    font-size: 12.5px;
    line-height: 1.5;
    max-width: 100%;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.36);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-home .hero-scroll__slide .eyebrow--light {
    color: var(--turmeric-lt);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.32);
    font-size: 9px;
    margin-bottom: 6px;
  }

  .page-home .hero-scroll__slide .eyebrow--light::before {
    border-color: var(--turmeric-lt);
    background: radial-gradient(circle, transparent 30%, var(--turmeric-lt) 31%, transparent 32%);
  }

  .page-home .hero-cta-row {
    display: none;
  }

  .page-home .hero-scroll__hint {
    display: none;
  }

  /* finder bar below hero */
  .page-home .motion-bridge {
    margin-top: 0;
    padding-top: 0;
  }

  .page-home .finder-bar {
    margin-top: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 10px;
    border-radius: var(--r-sm);
    position: relative;
    z-index: 1;
  }

  .page-home .hero-scroll + .wrap.motion-bridge {
    padding-top: 14px;
    margin-top: 0;
  }

  .page-home .hero-scroll + .wrap > .finder-bar {
    margin-top: 0;
  }

  .page-home .finder-field {
    min-width: 100%;
    padding: 12px 14px;
  }

  .page-home .finder-field label {
    font-size: 10px;
  }

  .page-home .finder-field select {
    font-size: 14px;
  }

  .page-home .finder-bar .btn {
    width: 100%;
    margin-top: 4px;
  }

  /* stat strip */
  .page-home .stat-strip {
    margin: 28px 0 20px;
    padding: 22px 18px;
    gap: 20px 14px;
    border-radius: var(--r-md);
  }

  .page-home .stat-num {
    font-size: 28px;
  }

  .page-home .stat-label {
    font-size: 11.5px;
    line-height: 1.35;
  }

  /* video */
  .page-home .video-section {
    margin: 0 0 8px;
  }

  .page-home .video-frame {
    border-radius: var(--r-md);
  }

  /* ring stats */
  .page-home .ring-row {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .page-home .ring-stat {
    width: 100%;
    gap: 14px;
  }

  .page-home .ring-graphic {
    width: 68px;
    height: 68px;
  }

  .page-home .ring-num {
    font-size: 26px;
  }

  .page-home .ring-label {
    max-width: none;
    font-size: 12.5px;
  }

  .page-home .home-opportunity-note {
    margin-top: 20px !important;
    font-size: 13.5px !important;
    line-height: 1.65 !important;
  }

  /* feature + testimonial cards */
  .page-home .feature-card {
    padding: 22px;
  }

  .page-home .feature-card h3 {
    font-size: 17px;
  }

  .page-home .feature-card p {
    font-size: 14px;
  }

  .page-home .testi-card {
    padding: 20px;
  }

  .page-home .testi-card p.quote {
    font-size: 14px;
  }

  .page-home .section-dark {
    padding-left: 0;
    padding-right: 0;
  }

  .page-home .section-dark .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .split-media .video-frame--short {
    max-width: min(280px, 100%);
    width: 100%;
  }
}

/* ===================================================================
   INNER PAGES — shared mobile alignment
   =================================================================== */

@media (max-width: 768px) {
  .page-inner .split,
  .page-inner .split.reverse {
    gap: 28px;
  }

  .page-inner .split-copy h2 {
    font-size: clamp(24px, 6.2vw, 30px);
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .page-inner .split-copy p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .page-inner .split-media img {
    border-radius: var(--r-md);
    aspect-ratio: 5 / 4;
  }

  .page-inner .page-hero-banner {
    border-radius: var(--r-md);
  }

  .page-inner .page-hero-banner img {
    aspect-ratio: 16 / 9;
    border-radius: var(--r-md);
  }

  .page-inner .video-section .video-frame {
    border-radius: var(--r-md);
  }

  .page-inner .video-caption {
    font-size: 11px !important;
    margin-bottom: 12px !important;
    line-height: 1.5;
    padding: 0 4px;
  }

  .page-inner .stat-strip,
  .page-inner .stat-strip--compact {
    grid-template-columns: 1fr 1fr;
    padding: 20px 16px;
    gap: 18px 12px;
    margin: 0;
    border-radius: var(--r-md);
  }

  .page-inner .stat-strip--compact .stat-num {
    font-size: 26px;
  }

  .page-inner .stat-strip--compact .stat-label {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .page-inner .plan-grid {
    gap: 16px;
  }

  .page-inner .plan-card {
    padding: 20px;
  }

  .page-inner .plan-price {
    font-size: clamp(26px, 7vw, 32px);
  }

  .page-inner .chip-grid {
    gap: 8px;
  }

  .page-inner .chip {
    font-size: 12.5px;
    padding: 10px 14px;
  }

  .page-inner .timeline-step {
    padding-left: 44px;
  }

  .page-inner .timeline-step h4 {
    font-size: 15px;
  }

  .page-inner .timeline-step p {
    font-size: 13px;
  }

  .page-inner .form-card {
    padding: 20px;
  }

  .page-inner .form-row {
    flex-direction: column;
    gap: 0;
  }

  .page-inner .form-row .field {
    width: 100%;
  }

  .page-inner .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 110px;
    gap: 10px;
  }

  .page-inner .gallery-grid .wide {
    grid-column: span 2;
  }

  .page-inner .gallery-grid .tall {
    grid-row: span 2;
  }

  .page-inner .gallery-grid img {
    border-radius: var(--r-sm);
  }

  .page-inner .badge-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-inner .badge {
    justify-content: center;
    text-align: center;
    font-size: 13px;
    padding: 12px 16px;
  }

  .page-inner .map-frame {
    border-radius: var(--r-md);
    overflow: hidden;
    min-height: 220px;
  }

  .page-inner .map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 220px;
    border: 0;
  }

  .page-inner .note {
    font-size: 13px;
    line-height: 1.65;
    padding: 14px 16px;
  }

  .page-inner .faq-q {
    font-size: 15px;
    line-height: 1.4;
  }

  .page-inner .faq-a {
    font-size: 14px;
    line-height: 1.6;
  }

  .page-inner .prop-card .img-wrap img {
    aspect-ratio: 16 / 10;
  }

  .page-inner .card-grid.cols-2 {
    grid-template-columns: 1fr !important;
  }

  .page-inner .cta-banner {
    margin-bottom: 4px;
  }

  .page-inner .section-dark {
    padding-left: 0;
    padding-right: 0;
  }

  .page-inner .section-dark .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-inner .progress-track {
    max-width: 100%;
  }

  .page-inner .updates-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .page-inner .update-card--short .update-card__video {
    max-width: min(280px, 100%);
  }

  .page-inner .update-card__body {
    padding: 16px 18px 20px;
  }

  .page-inner .update-card__title {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }

  .wrap {
    padding: 0 16px;
  }

  .page-home .hero-scroll__sticky {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-home .hero-scroll__badge {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    font-size: 7px;
  }

  .page-home .stat-strip {
    grid-template-columns: 1fr 1fr;
    padding: 18px 14px;
  }

  .page-home .stat-num {
    font-size: 24px;
  }

  .page-home .stat-label {
    font-size: 11px;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 769px) {
  .enquire-short {
    display: none;
  }

  .mobile-nav__cta {
    display: none;
  }
}
