/* ============================================================
   ANIBA SOLAR DOCTOR — RESPONSIVE
   Custom breakpoints: ultrawide → foldable → phone (portrait/landscape)
   ============================================================ */

/* ============================================================
   TYPOGRAPHY CONSISTENCY LAYER (harmonises all components)
   Placed before the media queries so smaller breakpoints still win.
   ============================================================ */
/* Unified card / feature titles */
.card h3, .svc-body h3, .value-card h3, .blog-body h3,
.industry-card h3, .proj-info h3, .job-card h3,
.why-item b, .feat-card b, .leader-card b {
  font-family: var(--font-head);
  font-size: var(--fs-card);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.014em;
}
/* Compact info titles */
.contact-info-card h3 { font-family: var(--font-head); font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.cert-card b, .hfc-row b { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; }

/* Unified card / body paragraph text */
.card p, .value-card p, .why-item p, .feat-card span,
.industry-card p, .proj-info p {
  font-size: var(--fs-body);
  line-height: 1.65;
}
.svc-body p, .blog-body p { font-size: .97rem; line-height: 1.65; }

/* Section intro paragraph + subtitles */
.section-head p { font-size: var(--fs-sub); line-height: 1.7; }

/* Buttons — premium weight + tracking, tighter optical alignment */
.btn { font-weight: 600; letter-spacing: 0.005em; }

/* Eyebrow / kicker labels */
.eyebrow { letter-spacing: .14em; font-weight: 600; }

/* Accordion questions */
.acc-q { font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.18rem); font-weight: 600; letter-spacing: -0.01em; }

/* Testimonials quote */
.tcard blockquote { font-size: clamp(1.05rem, 1rem + 0.32vw, 1.18rem); line-height: 1.72; letter-spacing: -0.006em; font-weight: 500; }
.tcard .who b { font-family: var(--font-head); letter-spacing: -0.01em; }

/* Footer typography */
.footer-col h4 { font-size: .8rem; letter-spacing: .16em; }
.footer-col a { font-size: .95rem; letter-spacing: -0.003em; }
.footer-contact-item { font-size: .95rem; }
.footer-about { font-size: .97rem; line-height: 1.75; }
.footer-bottom { font-size: .88rem; letter-spacing: -0.002em; }

/* ============================================================
   KPI / STATISTICS DESIGN SYSTEM — unified across the whole site
   (Hero · Before-After · Projects · About · Numbers · Coverage)
   Number = primary focus (gradient). Unit stays inline, sized down.
   ============================================================ */
.stat-num,
.hero-stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;                 /* value + unit never split */
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* the data-count wrapper: no wrap, inherit the big number size & gradient */
.stat-num > span,
.hero-stat b > span { white-space: nowrap; font-size: 1em; color: inherit; }
/* the UNIT (+, %, MW) — same line, smaller, accent green */
.stat-num .suffix,
.hero-stat b .suffix {
  display: inline;
  font-size: .62em;
  font-weight: 700;
  letter-spacing: 0.005em;
  margin-left: .07em;
  -webkit-text-fill-color: initial;
  color: var(--green-600);
}
/* the prefix (e.g. <) inherits the gradient, kept snug */
.stat-num .prefix, .hero-stat b .prefix { margin-right: .02em; }

/* the LABEL — secondary, muted, consistent rhythm (light surfaces) */
.stat-label,
.hero-stat > span,
.ba-stats > div > span,
.cv-stat p {
  display: block;
  margin-top: 11px;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.004em;
  color: var(--ink-500);
}
/* labels on dark surfaces */
.section-dark .stat-label,
.section-dark .hero-stat > span { color: rgba(255,255,255,.62); }
.coverage-panel .cv-stat p { color: rgba(255,255,255,.66); }

/* Nav + drawer weight */
.nav a { font-weight: 500; }
.mobile-drawer > a { font-weight: 700; letter-spacing: -0.015em; }
/* ============================================================ */

/* ---------- Ultra-wide ---------- */
@media (min-width: 1700px) {
  :root { --container: 1360px; }
  body { font-size: 18px; }
}

/* ---------- Laptop / small desktop ---------- */
@media (max-width: 1300px) {
  :root { --header-h: 82px; }
}
/* Tight desktop band: keep full nav but show logo mark only (fits 8 links + CTA) */
@media (min-width: 1121px) and (max-width: 1400px) {
  .site-header .brand-divider, .site-header .brand-text { display: none; }
  .nav a { padding: 0 clamp(8px, 0.7vw, 12px); font-size: .92rem; }
}

/* ---------- Below 1120px: switch to mobile drawer ---------- */
@media (max-width: 1120px) {
  :root { --header-h: 74px; }
  .nav, .header-cta .btn-quote-desktop { display: none; }
  .nav-toggle { display: grid; place-items: center; }
}
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Tablet portrait ---------- */
@media (max-width: 860px) {
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr !important; }
  .split { grid-template-columns: 1fr !important; }
  .split .split-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}

/* ---------- Large phone ---------- */
@media (max-width: 640px) {
  :root { --section-y: clamp(56px, 12vw, 84px); }
  body { font-size: 16px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band { padding: 34px 24px; }
  .fab span.fab-text { display: none; }
  .fab { padding: 15px; }
  .section-head .h2 br { display: none; }
}

/* ---------- Small phone ---------- */
@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .brand-sub { display: none; }
}

/* ---------- Foldable (narrow) ---------- */
@media (max-width: 320px) {
  .h-display { font-size: 2.1rem; }
}

/* ---------- Landscape phones (short viewport) ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 30px); padding-bottom: 40px; }
  .mobile-drawer { overflow-y: auto; }
}

/* ---------- Mobile drawer ---------- */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  font-family: var(--font-head); font-weight: 600; font-size: 1.4rem;
  color: var(--navy-800); padding: 15px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-drawer a:hover { color: var(--green-700); }
.mobile-drawer .drawer-cta { margin-top: auto; padding-top: 26px; margin-top: 30px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 13px; }
/* CTA buttons must NOT inherit the nav-link styling above */
.mobile-drawer .drawer-cta .btn {
  border-bottom: none;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  justify-content: center;
  padding: 17px 24px;
  gap: 10px;
  border-radius: var(--r-pill);
}
.mobile-drawer .drawer-cta .btn svg { width: 18px; height: 18px; }
.mobile-drawer .drawer-cta .btn-primary,
.mobile-drawer .drawer-cta .btn-primary:hover { color: #fff; }
.mobile-drawer .drawer-cta .btn-dark,
.mobile-drawer .drawer-cta .btn-dark:hover { color: #fff; background: var(--navy-800); }
.mobile-drawer .drawer-sub { font-size: .95rem; color: var(--ink-400); padding: 8px 0 8px 18px; font-weight: 500; border: none; }
body.nav-open { overflow: hidden; }
