/* responsive.css — mobile + tablet adaptations
 *
 * Design system is 1440px desktop. We progressively unbuild absolute
 * positioning, switch grids to single column, and resize type at:
 *   ≤1440  tablet (down-scale to fit, minor adjustments)
 *   ≤1024  tablet portrait (sections relax to fluid layout)
 *   ≤760   mobile
 *   ≤420   small mobile
 */

/* ===== Universal: never overflow the viewport ===== */
html, body { overflow-x: hidden; }

img, svg, video { max-width: 100%; height: auto; }

/* ===== Stage: switch to fluid width below 1440px ===== */
@media (max-width: 1440px) {
  .stage {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .nav { padding: 16px 24px; }
}

/* ============================================================
   TABLET PORTRAIT / SMALL TABLET — ≤ 1024px
   Sections relax: switch to fluid widths, allow wrapping.
   ============================================================ */
@media (max-width: 1024px) {
  .stage { padding: 0 16px; }

  /* HERO */
  .hero {
    width: 100%;
    height: auto;
    min-height: 720px;
  }
  .hero__media,
  .hero__photo {
    width: 100%;
    height: 100%;
    border-radius: 28px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 32px;
    padding: 80px 28px 32px;
    height: auto;
  }
  .hero__text { max-width: 100%; }
  .h-hero { font-size: 34px; line-height: 42px; }
  .hero__lede { font-size: 15px; }
  .hero__card {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
  }
  .hero__pager { bottom: 18px; }

  /* ABOUT */
  .about {
    width: 100%;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 32px;
    padding: 56px 28px;
    height: auto;
  }
  .about__media {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 460px;
  }
  .about__copy { max-width: 100%; }
  .h-section { font-size: 32px; line-height: 40px; }

  /* HOW */
  .how { padding: 48px 24px; width: 100%; }
  .how__head { margin-bottom: 40px; gap: 22px; }
  .how__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .how-tile { flex: unset; width: 100%; height: 420px; padding: 32px 24px 24px; }

  /* OFFERS: turn carousel into a horizontal-scroll snap list */
  .offers {
    width: 100%;
    height: auto;
    padding: 48px 0;
  }
  .offers__head {
    position: static;
    width: 100%;
    padding: 0 24px;
    margin-bottom: 28px;
  }
  .offers__viewport {
    position: static;
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px;
  }
  .offers__viewport::-webkit-scrollbar { display: none; }
  .offers__viewport { scrollbar-width: none; }
  .offers__track {
    transform: none !important;
    gap: 14px;
    padding: 0;
  }
  .offer-card {
    flex: 0 0 88vw;
    max-width: 360px;
    height: 460px;
    scroll-snap-align: start;
  }
  .offers__controls {
    position: static;
    margin-top: 20px;
    padding: 0 24px;
    gap: 14px;
  }
  .offers__blob { display: none; }

  /* WHY */
  .why {
    width: 100%;
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 28px;
  }
  .why__media { width: 100%; height: 360px; }
  .why__cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .why-card { padding: 28px 24px; min-height: 240px; }
  .why__media .why__logo { left: auto; right: 30px; bottom: 24px; width: 140px; }

  /* PROJECT TEASER */
  .project { width: 100%; padding: 48px 28px; }
  .project__head { max-width: 100%; }
  .acc-head { padding: 28px 28px 24px; }
  .acc-table { padding: 0 28px 24px; }

  /* FIN */
  .fin { width: 100%; padding: 48px 28px; }
  .fin__kpis {
    width: 100%;
    flex-wrap: wrap;
    padding: 18px 16px;
  }
  .kpi { flex: 1 1 calc(50% - 12px); padding: 12px 8px; }
  .kpi + .kpi::before { display: none; }
  .kpi__value { font-size: 30px; line-height: 36px; }
  .fin__details { grid-template-columns: 1fr; gap: 14px; }
  .fin-card { padding: 32px 28px; min-height: 0; }
  .fin__sources {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 12px;
  }
  .fin-source + .fin-source::before { display: none; }

  /* FOOTER */
  .footer { width: 100%; padding: 64px 24px 40px; }
  .contact { width: 100%; max-width: 560px; padding: 24px 20px 28px; }
  .contact__row { grid-template-columns: 1fr; gap: 10px; }
  .footer__cta h2 { font-size: 30px; line-height: 38px; }
  .footer__legal { padding: 0 16px; }
  .footer__address { font-size: 12px; letter-spacing: 1.2px; }
}

/* ============================================================
   MOBILE — ≤ 760px
   Single-column everywhere, hamburger menu, larger touch targets.
   ============================================================ */
@media (max-width: 760px) {
  .stage { padding: 0 12px; }

  /* NAV — collapse links into a slide-in panel */
  .nav {
    padding: 14px 16px;
    height: 64px;
  }
  .nav__logo img { width: 70px; height: auto; }
  .nav__links {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 16px 12px 24px;
    align-items: stretch;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.18);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 49;
  }
  .nav.is-open .nav__links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__item, .nav__item--trigger {
    width: 100%;
    padding: 14px 12px !important;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    font-size: 13px;
  }
  .nav__item:last-child { border-bottom: 0; }
  .nav__dropdown { width: 100%; }
  .nav__menu {
    position: static;
    box-shadow: none;
    background: #f7f7f7;
    width: 100%;
    margin-top: 6px;
    padding: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav__dropdown.is-open .nav__menu { max-height: 600px; }
  .nav__menu::before { display: none; }
  .nav__menu-item { padding: 10px 12px; font-size: 13px; }

  /* hide desktop CTA in nav (use hamburger + sticky CTA instead) */
  .nav__cta { display: none; }

  /* HAMBURGER */
  .nav__burger {
    display: inline-flex !important;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }
  .nav__burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav__burger span::before,
  .nav__burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.25s ease;
  }
  .nav__burger span::before { top: -6px; }
  .nav__burger span::after { top: 6px; }
  .nav.is-open .nav__burger span { background: transparent; }
  .nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

  /* HERO */
  .hero { min-height: 660px; }
  .hero__photo { border-radius: 20px; }
  .hero__inner { padding: 56px 18px 24px; row-gap: 24px; }
  .h-hero { font-size: 28px; line-height: 36px; }
  .h-hero__light { display: inline; }
  .hero__lede { font-size: 14px; line-height: 22px; }
  .hero__ctas { flex-direction: column; gap: 10px; width: 100%; }
  .btn { width: 100%; }
  .hero__card { padding: 16px; }
  .hero__card-eyebrow { font-size: 11px; }
  .hero__steps { gap: 6px; }
  .step-row {
    grid-template-columns: 50px 1fr;
    padding: 12px 12px 12px 14px;
    min-height: 78px;
  }
  .step-row__num { font-size: 30px; }
  .step-row__title { font-size: 14px; }
  .step-row__sub { font-size: 12px; line-height: 16px; }
  .hero__pager { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: 2px; }

  /* ABOUT */
  .about {
    padding: 40px 18px;
    border-radius: 22px;
  }
  .about__media { height: 360px; }
  .about__irr { padding: 16px; height: 120px; }
  .about__irr h3 { font-size: 28px; }
  .about__irr p { font-size: 10px; letter-spacing: 1.5px; }
  .h-section { font-size: 26px; line-height: 32px; }

  /* HOW */
  .how { padding: 40px 16px; }
  .how__grid { grid-template-columns: 1fr; gap: 12px; }
  .how-tile { height: auto; min-height: 280px; padding: 26px 22px; }
  .how-tile__num { font-size: 34px; }
  .how-tile__arrow { font-size: 22px; }
  .how-tile h3 { font-size: 22px; line-height: 28px; }
  .how-tile p { font-size: 14px; line-height: 20px; }

  /* OFFERS */
  .offers { padding: 40px 0; }
  .offers__head { padding: 0 18px; margin-bottom: 22px; }
  .offers__head h2 { font-size: 26px; line-height: 32px; }
  .offers__viewport { padding: 0 18px; }
  .offer-card {
    flex: 0 0 86vw;
    max-width: 320px;
    height: 440px;
    padding: 28px;
  }
  .offer-card h3 { font-size: 20px; line-height: 26px; }
  .offer-card p { font-size: 13px; line-height: 18px; }
  .offers__controls { padding: 0 18px; gap: 12px; }
  .round-btn { width: 50px; height: 50px; }

  /* WHY */
  .why {
    padding: 18px;
    border-radius: 22px;
  }
  .why__media { height: 280px; padding: 22px; }
  .why__media .why__eyebrow { left: 22px; top: 24px; font-size: 11px; }
  .why__media .why__logo { width: 110px; height: auto; right: 22px; bottom: 22px; }
  .why__cards { grid-template-columns: 1fr; gap: 10px; }
  .why-card { padding: 22px; min-height: 180px; }
  .why-card h3 { font-size: 20px; line-height: 26px; }
  .why-card p { font-size: 13px; line-height: 20px; }

  /* PROJECT TEASER */
  .project { padding: 36px 18px; border-radius: 22px; }
  .project__head h2 { font-size: 24px; line-height: 30px; }
  .project__head p { font-size: 14px; line-height: 20px; }
  .acc-head { padding: 22px 22px 18px; }
  .acc-head h3 { font-size: 18px; line-height: 24px; }
  .acc-icon { top: 24px; right: 22px; width: 20px; height: 20px; }
  .acc-table { padding: 0 22px 22px; }
  .acc-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
    min-height: 0;
  }
  .acc-row .label { font-size: 13px; }
  .acc-row .value { font-size: 14px; }
  .project__nda { font-size: 13px; padding: 0 8px; }

  /* FIN */
  .fin { padding: 36px 18px; border-radius: 22px; }
  .fin__kpis { padding: 14px 10px; gap: 10px; }
  .kpi { flex: 1 1 calc(50% - 8px); padding: 10px 6px; gap: 6px; }
  .kpi__value { font-size: 22px; line-height: 28px; }
  .kpi__label { font-size: 12px; }
  .fin-card { padding: 26px 22px; }
  .fin-card__head h3 { font-size: 20px; line-height: 26px; }
  .fin-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .fin-row .label { font-size: 13px; }
  .fin-row .value { font-size: 14px; }
  .fin__sources { grid-template-columns: 1fr; gap: 18px; padding: 8px; }
  .fin-source h4 { font-size: 18px; }
  .fin-source p { font-size: 13px; }
  .fin__sources-eyebrow { font-size: 11px; letter-spacing: 2px; }

  /* FOOTER */
  .footer { padding: 48px 18px 32px; }
  .footer__cta h2 { font-size: 24px; line-height: 30px; }
  .footer__cta p { font-size: 13px; }
  .contact { padding: 20px 16px 22px; border-radius: 18px; }
  .contact__title { font-size: 15px; margin-bottom: 18px; }
  .contact .input, .contact .textarea, .contact .phone { font-size: 13px; }
  .contact__submit .btn { width: auto; }
  .footer__address {
    font-size: 11px;
    letter-spacing: 0.8px;
    line-height: 18px;
  }
  .footer__privacy { font-size: 10px; letter-spacing: 1.2px; }

  /* STICKY CTA — compact on mobile */
  .sticky-cta { bottom: 12px; left: 12px; right: 12px; transform: translateY(120%); }
  .sticky-cta.is-visible { transform: translateY(0); }
  .sticky-cta__inner {
    padding: 6px 6px 6px 14px;
    gap: 10px;
    border-radius: 999px;
  }
  .sticky-cta__pill { display: none; }
  .sticky-cta__metric { font-size: 12px; }
  .sticky-cta__metric strong { font-size: 13px; }
  .sticky-cta__btn { height: 38px; padding: 0 14px; font-size: 12px; }

  /* hide cursor on touch (already done via media query) */
  .cursor-ring, .cursor-dot { display: none; }
}

/* show hamburger only on mobile (it's hidden on desktop by default) */
.nav__burger { display: none; }

/* ============================================================
   SMALL MOBILE — ≤ 420px — final tightening
   ============================================================ */
@media (max-width: 420px) {
  .h-hero { font-size: 24px; line-height: 30px; }
  .h-section { font-size: 22px; line-height: 28px; }
  .step-row { grid-template-columns: 44px 1fr; }
  .step-row__num { font-size: 26px; }
  .about__media { height: 300px; }
  .why__media { height: 240px; }
  .fin__kpis { padding: 12px 8px; }
  .kpi__value { font-size: 20px; line-height: 26px; }
  .offer-card { height: 420px; padding: 24px; }
  .sticky-cta__metric strong { font-size: 12px; }
  .sticky-cta__metric { font-size: 11px; }
}
