/* ============================================================
   ANIBA SOLAR DOCTOR — GLOBAL DESIGN SYSTEM
   Brand: The Healthcare Partner for Your Solar Plant
   Part of the ANIBA family (green → blue gradient language)
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand core */
  --navy-900: #071b30;
  --navy-800: #0a2540;
  --navy-700: #0d2e50;
  --navy-600: #123a63;

  --green-700: #0a7a4b;
  --green-600: #0e9a5c;
  --green-500: #17b169;
  --emerald-400: #35d08a;

  --teal-500: #0f9aa8;
  --blue-500: #1d6fc0;
  --sky-400: #38b6e6;

  --solar-500: #f5b301;   /* accent — use sparingly */
  --solar-400: #ffc734;

  /* Neutrals */
  --white: #ffffff;
  --ink-900: #0b1620;
  --ink-700: #2b3a47;
  --ink-500: #566573;
  --ink-400: #7c8b99;
  --line: #e7edf2;
  --line-strong: #d5dee6;
  --gray-50: #f6f9fb;
  --gray-100: #eef3f7;
  --gray-200: #e3eaf0;

  /* Semantic surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --bg-dark: #071b30;
  --text: #17242f;
  --text-soft: #566573;

  /* Brand gradients (ANIBA family DNA) */
  --grad-brand: linear-gradient(120deg, #0e9a5c 0%, #0f9aa8 45%, #1d6fc0 100%);
  --grad-brand-soft: linear-gradient(120deg, #17b169 0%, #38b6e6 100%);
  /* Darker, accessible gradient for TEXT on light backgrounds (AA contrast) */
  --grad-brand-text: linear-gradient(115deg, #0a7247 0%, #0c7784 48%, #1a5aa6 100%);
  --grad-navy: linear-gradient(160deg, #0a2540 0%, #071b30 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(23,177,105,.18), transparent 60%),
               radial-gradient(1000px 700px at -10% 20%, rgba(29,111,192,.14), transparent 55%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(23,177,105,.35), transparent 70%);

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(10,37,64,.06);
  --shadow-sm: 0 4px 14px rgba(10,37,64,.07);
  --shadow-md: 0 12px 34px rgba(10,37,64,.10);
  --shadow-lg: 0 26px 60px rgba(10,37,64,.16);
  --shadow-glow: 0 20px 60px rgba(15,154,168,.22);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Typography — one premium family site-wide (Plus Jakarta Sans) */
  --font-head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale (Apple / Siemens / Linear grade) */
  --fs-hero:    clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);   /* 44 → 84px */
  --fs-page:    clamp(2.35rem, 1.5rem + 3.4vw, 3.75rem);   /* 38 → 60px */
  --fs-section: clamp(1.95rem, 1.35rem + 2.5vw, 3rem);     /* 31 → 48px */
  --fs-card:    clamp(1.28rem, 1.1rem + 0.55vw, 1.6rem);   /* 20 → 25.6px */
  --fs-sub:     clamp(1.1rem, 1rem + 0.5vw, 1.35rem);      /* 17.6 → 21.6px */
  --fs-body:    clamp(1rem, 0.96rem + 0.2vw, 1.125rem);    /* 16 → 18px */
  --fs-small:   clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem); /* 14 → 15px */
  --lh-tight: 1.06;
  --lh-heading: 1.14;
  --lh-body: 1.75;

  /* Rhythm */
  --container: 1240px;
  --container-wide: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(88px, 10vw, 150px);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .6s;

  --header-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible {
  outline: 3px solid rgba(29,111,192,.55);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   TYPOGRAPHY SYSTEM — Plus Jakarta Sans
   Scale: hero 84 · page 60 · section 48 · card 26 · sub 22 · body 18 · small 15
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-wrap: balance;
}
/* Hero / display */
.h-display {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.032em;
}
/* Page titles (inner page heroes) */
.h1, h1 {
  font-size: var(--fs-page);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
/* Section headings */
.h2, h2 {
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.024em;
}
/* Sub-section / card headings */
.h3, h3 {
  font-size: var(--fs-card);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
}
h4 { font-size: var(--fs-sub); font-weight: 700; letter-spacing: -0.012em; }
p  { color: var(--text-soft); }
.lead {
  font-size: var(--fs-sub);
  line-height: 1.7;
  color: var(--ink-500);
  letter-spacing: -0.006em;
  font-weight: 400;
}
small, .text-small { font-size: var(--fs-small); }
strong { color: var(--navy-800); font-weight: 600; }

.text-grad {
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* On dark surfaces, use the brighter gradient so it stays vivid */
.section-dark .text-grad, .cta-band .text-grad, .plan-featured .text-grad, .hero-float-card .text-grad {
  background: var(--grad-brand-soft);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Layout Primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.section-sm { padding-block: clamp(48px, 6vw, 88px); }

.stack > * + * { margin-top: 1.1rem; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }

/* ---------- Section intro block ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(23,177,105,.09);
  border: 1px solid rgba(23,177,105,.18);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(23,177,105,.18);
}
.eyebrow--light {
  color: var(--emerald-400);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 18px; }
.section-head p { margin-top: 16px; }

/* ---------- Utilities ---------- */
.muted { color: var(--ink-400); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.hide { display: none !important; }
.on-dark { color: rgba(255,255,255,.72); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 12px 20px;
  border-radius: 0 0 12px 12px; transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* Dark section wrapper */
.section-dark {
  background: var(--grad-navy);
  color: rgba(255,255,255,.72);
  position: relative;
  overflow: hidden;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
