/* =============================================================
   Ardijo Ventures — responsive.css
   Mobile-first breakpoints: tablet (>=768px), desktop (>=1024px)
   ============================================================= */

/* ===================== MOBILE OPTIMIZATION (<= 767px) ===================== */
@media (max-width: 767px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 3rem;
    --header-h: 60px;
  }

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  /* Only the hero is forced to exactly one screen on mobile. Its height is
     the viewport MINUS the sticky header's real height, since the header
     always occupies --header-h of visible space — without that subtraction,
     header + 100dvh > one screen and the next section (marquee) bleeds into
     view. calc(100vh...) is a fallback for browsers without dvh support; the
     dvh rule after it wins where supported.
     Every other section (ventures, who-we-are, manifesto, contact) keeps its
     natural auto height — their content (stacked cards, principle lists,
     forms) can be taller than one screen, and forcing a fixed height on them
     makes that content overflow and overlap the next section. */
  .hero {
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
    box-sizing: border-box;
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-inline: 0.85rem;
  }

  /* Title is large enough to wrap back to 4 lines (Building / Brands / That /
     Last.) on purpose — that's what gives the content real vertical mass so
     it fills the screen on its own, instead of relying on a forced gap or
     margin-top:auto push that just relocates the dead space elsewhere. */
  .hero__title {
    font-size: clamp(4rem, 25vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-top: 33px;
    margin-bottom: var(--space-md);
  }

  .hero__lead {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 100%;
    padding-top: 43px;
  }

  .stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
  }

  .stats__item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .stats__value {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1;
  }

  .stats__label {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  /* Marquee: natural height, sits between hero and ventures as its own bar */
  .marquee {
    padding-block: 0.7rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .marquee__track {
    gap: 1rem;
  }

  .marquee__item {
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .marquee__sep {
    flex-shrink: 0;
  }

  /* These sections use min-height (not height) so short content — like the
     Ardijo Way manifesto — fills exactly one screen and centers nicely, while
     sections with naturally tall content — 3 stacked venture cards, 4
     principles, a contact form — are simply allowed to grow taller than one
     screen instead of being clipped or forced to overlap the next section. */
  .ventures,
  .whoweare,
  .manifesto,
  .contact-cta {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: var(--space-xl);
    box-sizing: border-box;
  }

  .ventures .container,
  .whoweare .container,
  .contact-cta .container {
    width: 100%;
  }

  /* Ventures section mobile */
  .section__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: var(--space-lg);
  }

  .section__title--ventures {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
  }

  .ventures__grid {
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-block: var(--space-lg);
  }

  .venture-card {
    min-height: 350px;
  }

  .venture-card__panel {
    height: 200px;
    padding: var(--space-sm);
  }

  .venture-card__logo {
    height: 36px;
    margin-bottom: 0.5rem;
  }

  .venture-card__desc {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .venture-card__link {
    font-size: 0.65rem;
  }

  /* Who We Are mobile */
  .whoweare__inner {
    gap: var(--space-lg);
  }

  .whoweare__lead {
    font-size: 0.9rem;
    margin-top: var(--space-sm);
  }

  .principle {
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
  }

  .principle__num {
    font-size: 0.75rem;
    min-width: 20px;
  }

  .principle__title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .principle__desc {
    font-size: 0.8rem;
  }

  /* Manifesto mobile */
  .manifesto__title {
    font-size: clamp(1.25rem, 4vw, 2rem);
    margin-bottom: var(--space-sm);
  }

  .manifesto__body {
    font-size: 0.9rem;
  }

  /* Contact form mobile */
  .contact-cta__inner {
    gap: var(--space-lg);
  }

  .contact-cta__lead {
    font-size: 0.9rem;
  }

  .contact-list__label {
    font-size: 0.65rem;
    margin-bottom: 0.35rem;
  }

  .contact-list dd {
    font-size: 0.9rem;
  }

  .form-field__label {
    font-size: 0.65rem;
  }

  .form-field__input {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
  }

  /* Footer mobile */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__col ul {
    gap: 0.4rem;
  }

  .footer__col a {
    font-size: 0.85rem;
  }

  .footer__heading {
    font-size: 0.65rem;
    margin-bottom: var(--space-sm);
  }

  .footer__tagline {
    font-size: 0.8rem;
    margin-top: var(--space-sm);
  }

  .footer__copy {
    font-size: 0.7rem;
  }
}

/* ===================== TABLET (>= 768px) ===================== */
@media (min-width: 768px) {
  :root { --container-pad: 2rem; }

  /* Ventures: 2-up on tablet */
  .ventures__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Who We Are: two columns */
  .whoweare__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-2xl);
  }

  /* Contact: info + form side by side */
  .contact-cta__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-2xl);
  }

  /* Footer: brand + 3 link columns */
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
  }
}

/* ===================== TABLET / SMALL LAPTOP (>= 900px, < 1024px) ===================== */
@media (min-width: 900px) and (max-width: 1023px) {
  .hero {
    min-height: auto;
    padding-block: 4rem 2rem;
  }

  .hero__title {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    margin-bottom: var(--space-lg);
  }

  .hero__lead {
    font-size: 0.95rem;
    max-width: 40ch;
    margin-bottom: var(--space-lg);
  }

  .section {
    min-height: auto;
    padding-block: var(--space-2xl);
  }

  .ventures {
    min-height: auto;
  }

  .whoweare {
    min-height: auto;
  }

  .manifesto {
    min-height: auto;
  }

  .contact-cta {
    min-height: auto;
  }

  .ventures__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================== DESKTOP (>= 1024px) ===================== */
@media (min-width: 1024px) {
  /* Reset full-screen sections for desktop */
  .section {
    min-height: auto;
    display: block;
  }

  .hero {
    min-height: auto;
    display: block;
    padding-block: clamp(3rem, 8vw, 6rem) var(--space-2xl);
  }

  .ventures {
    min-height: auto;
    display: block;
  }

  .whoweare {
    min-height: auto;
    display: block;
  }

  .manifesto {
    min-height: auto;
    display: block;
  }

  .contact-cta {
    min-height: auto;
    display: block;
  }

  .glow-group {
    display: block;
  }

  /* Ventures: 3-up on desktop */
  .ventures__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__lead { font-size: 1rem; }

  .hero__title {
    font-size: clamp(3.5rem, 13vw, 10rem);
  }
}

/* ===================== MOBILE NAV (<= 860px) ===================== */
@media (max-width: 860px) {
  .site-header {
    height: 60px;
  }

  .brand__logo {
    width: 90px;
    height: auto;
  }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    inset: 60px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) var(--container-pad) var(--space-lg);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 99;
  }
  .nav__menu.is-open { transform: translateY(0); }

  .nav__menu li { width: 100%; }
  .nav__link {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav__cta {
    display: inline-block;
    width: auto;
    padding: 0.5rem 0.9rem;
    margin-top: var(--space-md);
    font-size: 0.8rem;
    border-radius: 4px;
  }

  /* Hamburger -> X when open */
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
