/* WIWO — comprehensive responsive overrides
   Strategy: mobile-first refinements layered ON TOP of the desktop CSS
   in styles.css + sections.css. Loaded LAST so it wins specificity.
   Breakpoints:
     - 1024px : large tablet / small laptop
     - 768px  : tablet
     - 560px  : large phone
     - 400px  : small phone
*/

/* ===== GLOBAL — prevent horizontal scroll & ensure tap targets ===== */
html, body { max-width: 100vw; overflow-x: hidden; }
* { -webkit-tap-highlight-color: transparent; }
img, svg, iframe { max-width: 100%; }

/* All interactive elements get min 44px hit area on touch devices */
@media (hover: none) and (pointer: coarse) {
  button, a.btn, .lang-toggle, .testi-dot, .ls-dot {
    min-height: 36px;
  }
}

/* ===== BURGER MENU + MOBILE DRAWER ===== */
.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(31, 58, 38, 0.2);
  transition: all 0.3s var(--t);
  z-index: 5;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.3s var(--t);
  transform-origin: center;
}
.burger span:nth-child(2) { width: 12px; align-self: flex-end; margin-right: 13px; }
.nav.open .burger { background: var(--ink); border-color: var(--ink); }
.nav.open .burger span { background: var(--cream); }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--paper);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--t), visibility 0.5s var(--t);
  padding: 100px 24px 40px;
  display: flex;
  flex-direction: column;
}
.nav.open .nav-drawer {
  opacity: 1;
  visibility: visible;
  z-index: 90;
}
.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 58, 38, 0.1);
  transition: padding 0.3s var(--t), color 0.3s var(--t);
  opacity: 0;
  transform: translateX(-20px);
}
.nav.open .nav-drawer-link {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s var(--t), transform 0.6s var(--t), padding 0.3s var(--t), color 0.3s var(--t);
}
.nav.open .nav-drawer-link:nth-child(1) { transition-delay: 0.15s; }
.nav.open .nav-drawer-link:nth-child(2) { transition-delay: 0.22s; }
.nav.open .nav-drawer-link:nth-child(3) { transition-delay: 0.29s; }
.nav.open .nav-drawer-link:nth-child(4) { transition-delay: 0.36s; }
.nav-drawer-link:active { color: var(--clay); padding-left: 12px; }
.ndl-arr {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--sage);
}
.nav-drawer-cta {
  margin-top: 32px;
  justify-content: center;
  width: 100%;
  padding: 18px 28px;
  font-size: 16px;
  opacity: 0;
  transform: translateY(10px);
}
.nav.open .nav-drawer-cta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--t) 0.5s, transform 0.6s var(--t) 0.5s;
}

/* ===== 1024px : laptop & large tablet ===== */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }

  /* Nav: hide centered links, keep CTA */
  .nav-links { gap: 24px; font-size: 13px; }

  /* Hero title scales down */
  .hero-title { font-size: clamp(48px, 10vw, 130px); }

  /* Why grid : keep 2 cols */
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }

  /* Stats: 4 cols still ok but smaller */
  .stat-n { font-size: clamp(40px, 6vw, 72px); }

  /* Process: scrollable already, just smaller */
  .process-step { flex: 0 0 260px; }
}

/* ===== 768px : tablet ===== */
@media (max-width: 768px) {
  .container { padding: 0 22px; }

  /* NAV — burger appears, center links hidden */
  .nav { padding: 14px 0; }
  .nav.scrolled { padding: 10px 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .lang-toggle { padding: 8px 12px; font-size: 11px; }
  .burger { display: flex; }
  .logo-name { font-size: 20px; }
  .logo-tag { display: none; }

  /* HERO */
  .hero { padding: 110px 0 60px; }
  .hero-eyebrow { padding: 8px 14px; font-size: 10px; margin-bottom: 32px; }
  .hero-title { font-size: clamp(44px, 13vw, 90px); margin-bottom: 40px; line-height: 0.98; }
  .hero-watermark { font-size: clamp(220px, 60vw, 380px); right: -40px; opacity: 0.04; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-ctas { justify-content: flex-start; }
  .hero-sub { font-size: 16px; }
  .hero-scroll { display: none; }

  /* LANDSCAPES */
  .lands { padding: 100px 0 80px; }
  .lands-grid { grid-template-columns: 1fr; gap: 40px; }
  .lands-title { font-size: clamp(42px, 11vw, 80px); }
  .lands-imgs { aspect-ratio: 4 / 3; max-height: 420px; }
  .lands-text { padding-right: 0; }
  .lands-watermark { display: none; }

  /* ABOUT */
  .about { padding: 100px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-imgs { max-width: none; width: 100%; aspect-ratio: 1 / 1; }
  .about-spin { width: 100px; height: 100px; bottom: 25%; left: -20px; }
  .about-tag { padding: 10px 16px; }
  .about-tag-year { font-size: 18px; }

  /* PRODUCTS */
  .products { padding: 100px 0; }
  .products-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .product-body { padding: 22px; }
  .product-name { font-size: 26px; }

  /* PRODUCT MODAL */
  .modal-wrap { padding: 16px; align-items: flex-start; padding-top: 30px; }
  .modal { grid-template-columns: 1fr; max-height: 90vh; max-height: 90dvh; }
  .modal-img img { min-height: 220px; max-height: 240px; }
  .modal-body { padding: 28px 22px; }
  .modal-title { font-size: 32px; }
  .modal-fact { grid-template-columns: 100px 1fr; gap: 12px; }

  /* STATS */
  .stats { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 14px; }
  .stat-n { font-size: clamp(40px, 12vw, 64px); }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(247, 243, 232, 0.15); padding-top: 24px; margin-top: 10px; }

  /* WHY */
  .why { padding: 100px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-card { padding: 28px 24px; }
  .why-card-title { font-size: 22px; }

  /* PROCESS */
  .process { padding: 100px 0; }
  .process-track-wrap { padding: 0 22px 24px; }
  .process-step { flex: 0 0 240px; }
  .process-step-title { font-size: 24px; }
  .process-step-n { font-size: 44px; }

  /* ZONES */
  .zones { padding: 100px 0 60px; }
  .marquee-item { font-size: 22px; padding: 0 18px; }
  .marquee-flag { font-size: 22px; }
  .zones-map-wrap { padding: 24px 16px; margin-top: 24px; }

  /* GALLERY */
  .gallery { padding: 100px 0 60px; }
  .gallery-head { margin-bottom: 40px; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
    padding: 0 22px;
  }

  /* TESTIMONIALS */
  .testi { padding: 100px 0 80px; }
  .testi-stage { min-height: 380px; }
  .testi-card { padding: 40px 28px; }
  .testi-quote { font-size: 70px; }
  .testi-text { font-size: 19px; }
  .testi-dots { bottom: -40px; }

  /* CONTACT */
  .contact { padding: 100px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-form-wrap { padding: 32px 22px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 8px; }
  .contact-title { font-size: clamp(36px, 8vw, 56px) !important; }
  .ci-ic { width: 40px; height: 40px; }

  /* FOOTER */
  .footer { padding: 60px 0 30px; }
  .footer-big { margin-bottom: 40px; }
  .footer-mega { font-size: clamp(120px, 32vw, 200px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-mission { max-width: none; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 11px; }

  /* WHATSAPP FAB */
  .wa { bottom: 20px; right: 16px; }
  .wa-fab { width: 56px; height: 56px; }
  .wa-panel {
    width: calc(100vw - 32px);
    right: 0;
    bottom: 70px;
    padding: 20px;
  }
  .wa-panel-h { font-size: 18px; }

  /* SECTION TITLES — universally tighter */
  .section-title { font-size: clamp(38px, 8vw, 64px) !important; }
}

/* ===== 560px : large phone ===== */
@media (max-width: 560px) {
  .container { padding: 0 18px; }

  .logo-name { font-size: 17px; }
  .lang-toggle { padding: 7px 10px; font-size: 10px; gap: 3px; }

  /* HERO */
  .hero { padding: 100px 0 50px; min-height: 92vh; min-height: 92dvh; }
  .hero-title { font-size: clamp(40px, 14vw, 72px); margin-bottom: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { padding: 14px 20px; font-size: 14px; flex: 1; justify-content: center; min-width: 0; }
  .hero-eyebrow { font-size: 9px; gap: 8px; margin-bottom: 24px; }
  .hero-eyebrow .dot { width: 6px; height: 6px; }

  /* LANDSCAPES */
  .lands { padding: 80px 0 60px; }
  .lands-eyebrow { padding: 8px 14px; font-size: 10px; margin-bottom: 24px; }
  .lands-title { font-size: clamp(40px, 14vw, 64px); margin-bottom: 24px; }
  .lands-sub { font-size: 15px; margin-bottom: 32px; }
  .lands-imgs { aspect-ratio: 1 / 1.1; max-height: 360px; }
  .lands-card-caption { padding: 18px; }
  .lcc-label { font-size: 16px; }
  .lcc-region { font-size: 9px; }
  .lands-counter { top: 14px; right: 14px; padding: 8px 12px; font-size: 11px; }
  .lc-now { font-size: 16px; }
  .lands-nav { gap: 6px; }
  .lands-nav-btn { padding: 10px 14px; gap: 8px; }
  .lnb-name { font-size: 13px; }
  .lnb-num { font-size: 9px; }

  /* ABOUT */
  .about { padding: 80px 0; }
  .about-imgs { aspect-ratio: 1 / 1; }
  .about-spin { width: 84px; height: 84px; }
  .about-body p { font-size: 15px; }
  .about-body { margin-top: 24px; }
  .about-badges { gap: 16px; flex-direction: column; }
  .about-badge-val { font-size: 18px; }

  /* PRODUCTS */
  .products { padding: 80px 0; }
  .products-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-name { font-size: 28px; }
  .product-short { font-size: 14px; }

  /* PRODUCT MODAL */
  .modal { border-radius: 16px; }
  .modal-img img { min-height: 180px; max-height: 200px; }
  .modal-body { padding: 24px 20px; }
  .modal-title { font-size: 28px; }
  .modal-desc { font-size: 14px; }
  .modal-fact { grid-template-columns: 1fr; gap: 4px; padding-bottom: 10px; }
  .fact-v { font-size: 13px; }
  .modal-close { top: 14px; right: 14px; width: 36px; height: 36px; }

  /* STATS */
  .stats { padding: 50px 0; }

  /* WHY */
  .why { padding: 80px 0; }
  .why-card { padding: 24px 20px; }
  .why-num { margin-bottom: 20px; }
  .why-icon { margin-bottom: 16px; }
  .why-card-title { font-size: 20px; }
  .why-card-body { font-size: 13px; }

  /* PROCESS */
  .process { padding: 80px 0; }
  .process-head { margin-bottom: 40px; }
  .process-track { gap: 28px; }
  .process-step { flex: 0 0 220px; }
  .process-step-title { font-size: 22px; }
  .process-step-body { font-size: 13px; }

  /* ZONES */
  .zones { padding: 80px 0 50px; }
  .marquee-item { font-size: 19px; padding: 0 14px; gap: 12px; }
  .marquee-flag { font-size: 19px; }
  .marquee-dot { font-size: 14px; }
  .marquee-wrap { margin: 40px 0; padding: 18px 0; }
  .zones-map-wrap { border-radius: 14px; padding: 18px 12px; }

  /* GALLERY */
  .gallery { padding: 80px 0 50px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
    gap: 10px;
    padding: 0 18px;
  }
  .gallery-item.tall { grid-row: span 2; }

  /* TESTIMONIALS */
  .testi { padding: 80px 0 70px; }
  .testi-stage { min-height: 420px; }
  .testi-card { padding: 32px 22px; border-radius: 16px; }
  .testi-quote { font-size: 56px; }
  .testi-text { font-size: 17px; line-height: 1.4; }
  .testi-foot { gap: 12px; }
  .testi-avatar { width: 44px; height: 44px; font-size: 14px; }
  .testi-author { font-size: 14px; }
  .testi-role { font-size: 12px; }

  /* CONTACT */
  .contact { padding: 80px 0; }
  .contact-sub p { font-size: 15px; margin-bottom: 28px; }
  .contact-list { gap: 18px; margin-bottom: 28px; }
  .ci { gap: 14px; }
  .ci-val { font-size: 14px; }
  .contact-map { height: 200px; }
  .contact-form-wrap { padding: 26px 18px; border-radius: 16px; }
  .field input, .field textarea, .field select { font-size: 16px; /* prevent iOS zoom */ }
  .field label { font-size: 13px; }
  .form-submit { width: 100%; justify-content: center; }

  /* FOOTER */
  .footer { padding: 50px 0 24px; }
  .footer-mega { font-size: clamp(100px, 36vw, 160px); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-col a, .footer-col span { font-size: 13px; }

  /* WHATSAPP FAB */
  .wa { bottom: 16px; right: 14px; }
  .wa-fab { width: 54px; height: 54px; }
  .wa-fab svg { width: 22px; height: 22px; }
  .wa-panel { padding: 18px; bottom: 66px; border-radius: 14px; }
  .wa-panel-h { font-size: 17px; padding-right: 26px; }
  .wa-option { padding: 12px 14px; }
  .wa-opt-num { font-size: 15px; }
  .wa-opt-lbl { font-size: 9px; }

  /* MOBILE NAV DRAWER */
  .nav-drawer { padding: 90px 18px 30px; }
  .nav-drawer-link { font-size: 28px; padding: 18px 0; }

  /* Generic section title cap */
  .section-title { font-size: clamp(34px, 9vw, 52px) !important; }
}

/* ===== 400px : small phone ===== */
@media (max-width: 400px) {
  .container { padding: 0 14px; }

  .nav-inner { gap: 8px; }
  .logo-name { font-size: 15px; }
  .lang-toggle { padding: 6px 8px; }

  .hero { padding: 90px 0 40px; }
  .hero-title { font-size: clamp(36px, 16vw, 60px); }
  .hero-ctas .btn { padding: 13px 16px; font-size: 13px; }

  .gallery-grid { grid-auto-rows: 120px; gap: 8px; }

  .testi-stage { min-height: 460px; }
  .testi-card { padding: 26px 18px; }
  .testi-text { font-size: 16px; }

  .marquee-item { font-size: 17px; padding: 0 10px; gap: 8px; }

  .modal-title { font-size: 24px; }
  .product-name { font-size: 24px; }

  .footer-mega { font-size: clamp(90px, 40vw, 130px); }
  .nav-drawer-link { font-size: 24px; }
}

/* ===== LANDSCAPE PHONE (short height) ===== */
@media (max-height: 580px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 100px 0 40px; }
  .hero-title { font-size: clamp(36px, 8vw, 64px); margin-bottom: 24px; }
  .lands { padding: 80px 0 50px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
}
