/* ==========================================================================
   RESPONSIVE — 1440 · 1280 · 1024 · 768 · 375 · 320
   ========================================================================== */

/* Large laptop */
@media (max-width: 1280px) {
  .nav__list { gap: 1.6rem; }
  .site-header__inner { gap: 1.5rem; }
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .site-footer__grid > :last-child { grid-column: 1 / -1; }
  .site-footer__contact { display: flex !important; flex-wrap: wrap; gap: 0.5rem 2rem !important; }
}

/* Short desktop viewports — keep both hero CTAs above the fold */
@media (min-width: 1025px) and (max-height: 820px) {
  .display { font-size: clamp(2.6rem, 1.2rem + 3.6vw, 4.4rem); }
  .hero__lead { margin-bottom: 1.75rem; }
  .hero__ctas { margin-bottom: 1.75rem; }
  .hero__content { padding-bottom: 3.5rem; }
}

/* Tablet landscape / small laptop */
@media (max-width: 1100px) {
  .nav, .site-header__cta { display: none; }
  .burger { display: block; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services .section-head { grid-template-columns: 1fr; }
  .site-header.menu-is-open { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
}

@media (max-width: 1024px) {
  .founder__grid, .families__grid, .jobs__intro, .contact__grid { grid-template-columns: 1fr; }
  .founder__portrait { max-width: 520px; }
  .families__gallery { height: clamp(420px, 70vw, 620px); }
  .jobs__media { order: 2; }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .job-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }

  /* Concept B hero stacks: image band on top, text below */
  [data-concept="b"] .hero { flex-direction: column; min-height: 0; }
  [data-concept="b"] .hero__media { position: relative; inset: auto; margin: calc(var(--header-h) + 0.5rem) var(--gutter) 0; height: 34vh; min-height: 240px; }
  [data-concept="b"] .hero__content > * { max-width: 640px; }
  [data-concept="b"] .hero__content { padding-top: 2.5rem; }
}

/* Tablet portrait */
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .site-header.is-scrolled { --header-h: 64px; }
  .journeys__grid { grid-template-columns: 1fr; }
  .journey + .journey { border-left: 0; border-top: 1px solid rgba(184, 154, 97, 0.35); }
  .journey__link { min-height: clamp(420px, 70vw, 560px); }
  .journey-steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-light); padding-left: 0; }
  .journey-step, .journey-step + .journey-step { padding: 0 0 2.25rem 2rem; border-left: 0; }
  .journey-step::before, .journey-step + .journey-step::before { top: 0.4rem; left: -5px; }
  [data-concept="b"] .journey-steps { border-left-color: var(--line); }
  .site-footer__cta { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
  .logo__name { font-size: 1.2rem; }
  .logo__mark { width: 2.2rem; height: 2.2rem; font-size: 1.25rem; }
  .logo__tag { font-size: 0.55rem; letter-spacing: 0.24em; }

  /* Hero: compact so both CTAs sit within the first screen */
  .hero__content { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 2rem; }
  .hero__eyebrow { margin-bottom: 0.9rem; font-size: 0.65rem; }
  .hero__title, [data-concept="b"] .hero__title { font-size: clamp(2rem, 1.2rem + 4.2vw, 2.6rem); margin-bottom: 1rem; }
  .hero__lead { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }
  .hero__ctas { flex-direction: column; gap: 0.65rem; margin-bottom: 1.5rem; }
  .hero-cta { min-width: 0; width: 100%; padding: 0.85rem 0.9rem 0.85rem 1.15rem; }
  .hero-cta__title { font-size: 1.35rem; }
  .hero-cta__label { font-size: 0.6rem; }
  .hero-cta__icon { width: 2.4rem; height: 2.4rem; }
  .hero__roles { display: none; }
  .hero__img { object-position: 68% 30%; }
  .hero__overlay { background: linear-gradient(0deg, rgba(11,31,26,.95) 0%, rgba(16,43,36,.82) 50%, rgba(16,43,36,.55) 100%); }
  [data-concept="b"] .hero__media { height: 24vh; min-height: 130px; margin-top: calc(var(--header-h) + 0.25rem); }
  [data-concept="b"] .hero__content { padding-top: 1.75rem; }
  [data-concept="b"] .hero__ctas { max-width: none; }

  .services__grid { grid-template-columns: 1fr; }
  .service-card__media { aspect-ratio: 4 / 3; }
  .founder__frame { inset: 1rem -0.75rem -1rem 1rem; }
  .founder__highlight { gap: 1rem; }
  .families__gallery { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item--tall { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery-item:not(.gallery-item--tall) { aspect-ratio: 1; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .job-grid { grid-template-columns: 1fr; }
  .job-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .job-listings { padding: 1.25rem; margin-inline: calc(var(--gutter) * -0.25); }
  .job-listings__foot .btn { width: 100%; white-space: normal; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .consultation .btn--lg { width: 100%; white-space: normal; padding-inline: 1.25rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :last-child { grid-column: 1 / -1; }
  .footer-path { padding: 1.5rem 3.5rem 1.5rem 1.5rem; }
  .footer-path .icon { right: 1.5rem; }
  .site-footer__bottom { flex-direction: column; padding-bottom: 5.5rem; }
  .concept-switch { right: 0.75rem; bottom: 0.75rem; }
  .job-dialog__apply .btn { width: 100%; }
}

/* Very small phones (320px) */
@media (max-width: 380px) {
  .hero__title, [data-concept="b"] .hero__title { font-size: 1.85rem; }
  .hero__lead { font-size: 0.9rem; }
  .hero-cta__title { font-size: 1.2rem; }
  .btn { padding-inline: 1.15rem; white-space: normal; text-align: center; }
  .contact-form__toggle span { font-size: 0.78rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .concept-switch__label { display: none; }
}

/* Short mobile screens (e.g. 375×667) */
@media (max-width: 640px) and (max-height: 700px) {
  .hero__lead { font-size: 0.9rem; margin-bottom: 1.1rem; }
  .hero__title, [data-concept="b"] .hero__title { font-size: 1.85rem; }
  .hero__eyebrow { display: none; }
  [data-concept="b"] .hero__content { padding-top: 1.1rem; }
}
@media (max-width: 640px) and (max-height: 600px) {
  [data-concept="b"] .hero__lead { display: none; }
}

/* ---------- Round 2 additions ---------- */
@media (max-width: 1100px) {
  .journey-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .journey-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .journey-step:nth-child(3)::before { left: 0; }
}
@media (max-width: 1024px) {
  .consultation__inner { grid-template-columns: 1fr; }
  .board__layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (max-width: 860px) {
  .journey-steps { grid-template-columns: 1fr; row-gap: 0; }
  .journey-step:nth-child(3) { padding-left: 2rem; }
  .journey-step:nth-child(3)::before { left: -5px; }
}
@media (max-width: 640px) {
  .booking__days { grid-template-columns: repeat(3, 1fr); }
  .booking__times { grid-template-columns: repeat(2, 1fr); }
  [data-concept="b"] .consultation__inner { padding-inline: 1.25rem; }
  .job-row { grid-template-columns: 1fr; padding: 1.5rem; }
  .job-row__actions { align-items: stretch; }
  .job-row__actions .btn { width: 100%; }
  .board__bar { flex-direction: column; gap: 0.25rem; }
}
