/* ==========================================================================
   Aspire International — responsive layout (mobile-first)
   Breakpoints: 36rem (576px) · 48rem (768px) · 60rem (960px) · 75rem (1200px) · 100rem (1600px)
   ========================================================================== */

/* --- Base (all sizes): grid children must be allowed to shrink --- */
.split > *,
.service-detail__grid > *,
.contact-grid > *,
.service-row__body > *,
.footer-grid > * {
  min-width: 0;
}

/* --- < 960px: keep decorative lattices clear of headline text --- */
@media (max-width: 59.98rem) {
  .hero__lattice {
    right: -34vw;
    top: -18vw;
    width: 70vw;
    opacity: 0.55;
  }
  .page-hero__lattice {
    right: -40vw;
    width: 72vw;
    opacity: 0.5;
  }
}

/* --- < 576px: buttons may wrap; nothing is allowed to force width --- */
@media (max-width: 35.98rem) {
  .btn {
    white-space: normal;
    text-align: center;
  }
  .btn-row .btn {
    flex: 1 1 auto;
  }
}

/* --- ≥ 576px: small tablets / large phones in landscape --- */
@media (min-width: 36rem) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
  .strengths {
    grid-template-columns: repeat(2, 1fr);
  }
  .strengths .strength:last-child {
    grid-column: 1 / -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .hero__services {
    gap: 0.5rem 1.8rem;
  }
}

/* --- ≥ 768px: tablets --- */
@media (min-width: 48rem) {
  :root {
    --header-h: 5rem;
  }
  .direction {
    grid-template-columns: 1fr 1fr;
  }
  .credentials {
    grid-template-columns: repeat(3, 1fr);
  }
  .credential {
    grid-template-columns: 1fr;
    align-content: start;
  }
  .service-row__body {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
  .service-row__summary {
    grid-template-columns: 1fr auto;
  }
  .service-detail__grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    gap: var(--space-7);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .hero__creds {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero__creds li + li {
    padding-top: 0;
    padding-left: var(--space-4);
    border-top: 0;
    border-left: 1px solid var(--border);
  }
  .cta-band {
    grid-template-columns: 1fr auto;
  }
}

/* --- ≥ 960px: laptops; desktop navigation appears --- */
@media (min-width: 60rem) {
  .nav,
  .header-actions .nav-cta {
    display: inline-flex;
  }
  .menu-toggle,
  .mobile-nav {
    display: none;
  }
  .hero h1 {
    max-width: 12ch;
  }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-7);
    align-items: end;
  }
  .hero__aside {
    padding-bottom: 0.5rem;
  }
  .strengths {
    grid-template-columns: repeat(5, 1fr);
  }
  .strengths .strength:last-child {
    grid-column: auto;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-left {
    grid-template-columns: 1.2fr 1fr;
  }
  .split--wide-right {
    grid-template-columns: 1fr 1.2fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1.25fr;
    align-items: start;
  }
  .hero__creds {
    grid-template-columns: 1fr;
  }
  .hero__creds li + li {
    padding-left: 0;
    padding-top: var(--space-4);
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* --- ≥ 1200px: desktop --- */
@media (min-width: 75rem) {
  .service-row__body {
    grid-template-columns: 1.3fr 1fr;
    column-gap: var(--space-8);
  }
  .service-detail__grid {
    gap: var(--space-8);
    grid-template-columns: 1fr 1fr;
  }
}

/* --- ≥ 1600px: large monitors — keep line lengths and hero scale sane --- */
@media (min-width: 100rem) {
  :root {
    --container: 84rem;
    --section-y: 8.5rem;
  }
  .hero {
    min-height: auto;
  }
}

/* --- Short viewports (landscape phones): don't force the hero to 100vh --- */
@media (max-height: 36rem) {
  .hero {
    min-height: auto;
  }
}

/* --- Touch devices: no hover-only affordances, larger targets --- */
@media (hover: none) {
  .channel:hover,
  .whatsapp-float:hover {
    transform: none;
  }
  .nav__link,
  .subnav__list a {
    padding-block: 0.75rem;
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .mobile-nav,
  .whatsapp-float,
  .back-to-top,
  .subnav,
  .hero__lattice,
  .page-hero__lattice,
  .cta-band__lattice {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .service-row__panel {
    grid-template-rows: 1fr !important;
  }
}

/* --- < 576px: pill-shaped licence line wraps awkwardly; set it as a plain line --- */
@media (max-width: 35.98rem) {
  .hero__licence {
    border: 0;
    background: none;
    padding: 0;
    border-radius: 0;
    align-items: flex-start;
    line-height: 1.45;
  }
  .hero__licence svg {
    margin-top: 0.15rem;
  }
  .channel__value {
    font-size: var(--text-sm); /* keeps the email address on one line at 360px */
  }
}

/* --- Sub-nav strip: show that it scrolls on narrow screens --- */
@media (max-width: 59.98rem) {
  .subnav .container {
    position: relative;
  }
  .subnav .container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3rem;
    background: linear-gradient(to right, transparent, var(--bg-elev));
    pointer-events: none;
  }
}

/* --- 960–1200px: five strength cells are too cramped; use three + two --- */
@media (min-width: 60rem) and (max-width: 74.98rem) {
  .strengths {
    grid-template-columns: repeat(6, 1fr);
  }
  .strengths .strength {
    grid-column: span 2;
  }
  .strengths .strength:nth-last-child(2),
  .strengths .strength:last-child {
    grid-column: span 3;
  }
}

/* --- ≥ 1600px: let the display scale breathe --- */
@media (min-width: 100rem) {
  :root {
    --text-3xl: 5rem;
  }
}
