/* ==========================================================================
   HITEPOZZO / Hi-Tech Fly Ash (India) Pvt Ltd — Shared Stylesheet
   Design system: "Trust & Authority" — Authority Navy + Trust Gold
   Fonts: IBM Plex Sans (headings) / Source Sans 3 (body)
   ========================================================================== */

/* Font loading moved to <link rel="preconnect"> + <link rel="stylesheet"> in each page's <head> to avoid a render-blocking @import. */

/* ----------------------------- Design Tokens ----------------------------- */
:root {
  /* Color */
  --color-primary: #1E3A8A;
  --color-primary-dark: #16296A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #1E40AF;
  --color-accent: #B45309;
  --color-accent-dark: #92400E;
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-foreground: #0F172A;
  --color-muted: #E9EEF5;
  --color-muted-text: #475569;
  --color-border: #CBD5E1;
  --color-destructive: #DC2626;
  --color-ring: #1E3A8A;

  /* Typography */
  --font-heading: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 10px 20px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.16);

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --header-height: 84px;
  --transition-fast: 180ms ease;
  --transition-med: 260ms ease;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); max-width: 100%; overflow-x: clip; overflow-y: visible; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

/* Flexbox children default to min-width:auto, which blocks shrinking and
   causes silent horizontal overflow ("half the page cut off") on narrow
   screens. Reset it site-wide so flex rows can actually shrink/wrap. */
.flex, .flex-center, .site-header .container, .hero-cta, .main-nav ul {
  min-width: 0;
}
.site-header .container > * { min-width: 0; }

img { max-width: 100%; display: block; }
/* Safety net: images carrying HTML width/height attributes (added for CLS prevention)
   must not have that height attribute treated as a literal CSS pixel height once a
   CSS/inline rule constrains width — that mismatch is what stretches photos vertically.
   Resetting height to auto by default lets aspect-ratio/intrinsic ratio scale correctly;
   more specific rules (icons, logo) still override this where a fixed height is intended. */
img[width][height] { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  color: var(--color-foreground);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 var(--space-md); max-width: 75ch; }
p.lede { font-size: 1.15rem; color: var(--color-muted-text); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------ Layout ----------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section { padding: var(--space-3xl) 0; }
.section-tight { padding: var(--space-2xl) 0; }
.section-muted { background: var(--color-muted); }
.section-dark {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p { color: var(--color-on-primary); }
.section-dark .eyebrow { color: #FDBA74; }

.section-head { max-width: 760px; margin: 0 0 var(--space-2xl); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.equal-split { align-items: stretch; grid-template-columns: 1.15fr 0.85fr; }
.equal-split .split-col { display: flex; flex-direction: column; height: 100%; }
.equal-split .strip-cards { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-lg); flex: 1; }
.equal-split .strip-card { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.equal-split .split-image { height: 100%; display: flex; align-items: center; }
.equal-split .split-image img { width: 100%; height: calc(100% - 3rem); object-fit: cover; display: block; }
.facility-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-lg); align-items: stretch; }
.facility-cards { display: flex; flex-direction: column; gap: var(--space-sm); height: 100%; }
.facility-cards .card { padding: var(--space-sm) var(--space-md); display: flex; flex-direction: column; justify-content: center; flex: 1; }
.facility-cards.compact { gap: var(--space-xs); }
.facility-cards.compact .card { padding: var(--space-xs) var(--space-md); }
.facility-images { display: grid; gap: var(--space-md); }
.timeline-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); align-items: center; }
.timeline-row.reverse .timeline-text { order: -1; }
.timeline-connector { text-align: center; color: var(--color-border); font-size: 1.6rem; line-height: 1; margin: var(--space-md) 0; }
@media (max-width: 860px) {
  .timeline-row { grid-template-columns: 1fr; }
  .timeline-row.reverse .timeline-text { order: 0; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-lg { gap: var(--space-lg); }

/* ------------------------------- Header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }

/* Grade switcher sub-nav — appears once the page hero scrolls out of view (product pages only) */
.grade-subnav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.grade-subnav.is-visible { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.grade-subnav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.grade-subnav-links { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: nowrap; overflow-x: auto; }
.grade-subnav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-foreground);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.grade-subnav-links a:hover { color: var(--color-primary); }
.grade-subnav-links a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
@media (max-width: 640px) {
  .grade-subnav .btn { display: none; }
}

.brand { display: flex; align-items: center; gap: var(--space-sm); cursor: pointer; flex-shrink: 0; }
.brand img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.brand-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-wordmark sup { font-size: 0.6rem; top: -0.8em; }

.main-nav { display: flex; align-items: center; gap: var(--space-lg); }
.main-nav ul { list-style: none; display: flex; gap: var(--space-lg); align-items: center; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-foreground);
  padding: var(--space-sm) 0;
  position: relative;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-primary); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  padding-top: var(--space-md);
  min-width: 220px;
  display: none;
  flex-direction: column;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: flex; }
.dropdown a { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--color-muted); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--color-primary); }

.header-cta { display: flex; gap: var(--space-sm); }

/* ------------------------------- Buttons ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: #fff; color: var(--color-primary); }
.btn-whatsapp { background: #16A34A; color: #fff; }
.btn-whatsapp:hover { opacity: 0.92; transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ------------------------------- Cards ----------------------------------- */
.card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-muted);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon img { width: 28px; height: 28px; object-fit: contain; }
.grade-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.grade-header .card-icon { margin-bottom: 0; flex-shrink: 0; background: transparent; }
.grade-code { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--color-primary); }
.grade-retention { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: var(--space-md); }
.grade-title { min-height: 5.4rem; }
@media (max-width: 400px) { .grade-title { min-height: 0; } }
.card h3 { margin-bottom: var(--space-sm); }
.card p:last-child { margin-bottom: 0; }

.card-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-med), transform var(--transition-med);
}
.card-media:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-media--16x9 img { aspect-ratio: 16/9; }
.card-media--square img { aspect-ratio: 1/1; }
.card-media figcaption { padding: var(--space-md); }
.card-media figcaption h3 { font-size: 1.05rem; margin-bottom: var(--space-xs); }
.card-media figcaption p { font-size: 0.92rem; color: var(--color-muted-text); margin-bottom: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--color-muted);
  color: var(--color-primary);
}

/* ------------------------------- Hero / Slider ----------------------------------- */
.hero-slider {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease;
  background-size: cover;
  background-position: center;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.12) 0%, rgba(15,23,42,0.28) 55%, rgba(15,23,42,0.6) 100%);
}
/* Slide 3's source photo is already dark enough for white text on its own */
.hero-slide--no-tint::before {
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.08) 55%, rgba(15,23,42,0.3) 100%);
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; flex: 1 0 100%; }
.hero-slide-content { position: relative; z-index: 2; padding: var(--space-3xl) 0; width: 100%; }
.hero-slide-content .container { max-width: 760px; }
.hero-slide-content .eyebrow { color: #FB923C; font-size: 0.95rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.hero-slide-content h1,
.hero-slide-content h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    -1px -1px 0 #9A3412, 0 -1px 0 #9A3412, 1px -1px 0 #9A3412,
    -1px  0    0 #9A3412, 1px  0    0 #9A3412,
    -1px  1px 0 #9A3412, 0  1px 0 #9A3412, 1px  1px 0 #9A3412;
}
.hero-slide-content p { color: rgba(255,255,255,0.97); font-size: 1.125rem; line-height: 1.6; text-shadow: 0 1px 4px rgba(0,0,0,0.45); }
.hero-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-lg); }

.hero-controls {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.hero-dots {
  display: flex;
  gap: var(--space-sm);
}
.hero-dots button {
  position: relative;
  width: 46px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  overflow: hidden;
  transition: background var(--transition-fast);
}
.hero-dots button[aria-current="true"] { background: rgba(255,255,255,0.5); }
.hero-dot-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: inherit;
}
@keyframes hero-fill {
  from { width: 0%; }
  to { width: 100%; }
}
@media (max-width: 640px) {
  .hero-dots button { width: 28px; }
}

.hero-pause {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: rgba(15,23,42,0.35);
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.hero-pause:hover { background: rgba(15,23,42,0.55); border-color: #fff; }
.hero-pause::before,
.hero-pause::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
}
/* Default state: slideshow playing -> show a pause icon (two bars) */
.hero-pause::before { width: 3px; height: 10px; transform: translate(-4px, -50%); }
.hero-pause::after { width: 3px; height: 10px; transform: translate(1px, -50%); }
/* Paused state: show a play icon (triangle) */
.hero-pause[aria-pressed="true"]::before {
  width: 0; height: 0;
  background: transparent;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-2px, -50%);
}
.hero-pause[aria-pressed="true"]::after { content: none; }

@media (max-width: 640px) {
  .hero-controls { bottom: var(--space-md); right: var(--space-md); gap: var(--space-sm); }
  .hero-pause { width: 24px; height: 24px; }
}

.page-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.08), transparent 45%);
}
.page-hero--photo { background-size: cover; background-position: center; }
.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.85) 100%);
}
.page-hero .container { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.88); }
.page-hero .eyebrow { color: #FDBA74; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: var(--space-md); }
.breadcrumb a:hover { color: #fff; }

/* ------------------------------- Stats ----------------------------------- */
.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stats-bar .grid { grid-template-columns: repeat(4, 1fr); padding: var(--space-2xl) 0; text-align: center; gap: var(--space-md); }
.stat-figure { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--color-primary); }
.stat-label { font-size: 0.85rem; color: var(--color-muted-text); font-weight: 600; }

/* ------------------------------- Standards strip ----------------------------------- */
.standards-strip { background: var(--color-foreground); color: #fff; padding: var(--space-xl) 0; }
.standards-strip .grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); text-align: center; }
.standard-badge { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.standard-badge span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ------------------------------- Tables ----------------------------------- */
.spec-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
table.spec-table { width: 100%; border-collapse: collapse; background: var(--color-surface); min-width: 560px; }
table.spec-table th, table.spec-table td { padding: 0.9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
table.spec-table thead th { background: var(--color-primary); color: #fff; font-family: var(--font-heading); font-weight: 600; }
table.spec-table tbody tr:nth-child(even) { background: var(--color-muted); }
table.spec-table tbody td:last-child { font-weight: 700; color: var(--color-primary); }
table.spec-table tbody tr:hover { background: #EFF4FB; }

/* Compliance matrix */
.matrix-wrap { overflow-x: auto; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 620px; table-layout: fixed; }
table.matrix th, table.matrix td { text-align: center; padding: 0.9rem; border: 1px solid var(--color-border); }
table.matrix thead th { background: var(--color-primary); color: #fff; font-family: var(--font-heading); }
table.matrix td:first-child, table.matrix th:first-child { text-align: left; font-weight: 700; }
table.matrix tbody td:first-child { background: var(--color-muted); }
.matrix-yes { color: #15803D; font-weight: 800; font-size: 1.1rem; }
.matrix-no { color: var(--color-border); }

/* ------------------------------- Timeline / steps ----------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--space-xl); }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.6rem; height: 2.6rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}
.step h3 { margin-bottom: var(--space-xs); }

/* ------------------------------- FAQ (accordion) ----------------------------------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  padding: var(--space-lg) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition-fast); color: var(--color-primary); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { padding-bottom: var(--space-lg); color: var(--color-muted-text); }

/* ------------------------------- Awards (Home summary) ----------------------------------- */
.awards-layout { grid-template-columns: 1.1fr 1fr; align-items: center; }
.awards-photo { border-radius: var(--radius-md); box-shadow: var(--shadow-md); width: 100%; }
@media (max-width: 860px) {
  .awards-layout { grid-template-columns: 1fr; }
}

/* ------------------------------- CTA Strip ----------------------------------- */
.cta-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin: 0 auto;
}
.cta-strip h2, .cta-strip p { color: #fff; }
.cta-strip p { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-strip .hero-cta { justify-content: center; }

/* ------------------------------- Footer ----------------------------------- */
.site-footer { background: var(--color-foreground); color: rgba(255,255,255,0.8); padding: var(--space-3xl) 0 var(--space-lg); }
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: var(--space-2xl); }
.footer-brand .brand-wordmark { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col h3 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-md); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.92rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ------------------------------- Utilities ----------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--color-muted-text); }
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-primary); color: #fff;
  padding: var(--space-sm) var(--space-md);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------- Scroll reveal ----------------------------------- */
/* Progressive enhancement: content is fully visible by default. The hidden
   pre-reveal state only applies once main.js confirms IntersectionObserver
   support (html.js-anim), so no-JS / old-browser visitors always see everything. */
:root {
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}
.js-anim .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out-quart), transform 700ms var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js-anim .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-anim .reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 700ms var(--ease-out-quart), transform 700ms var(--ease-out-quart); }
.js-anim .reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* Header gains depth once the page has scrolled */
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(248, 250, 252, 0.98); }

/* Stat count-up target — value swapped by JS, layout is stable either way */
.stat-figure { font-variant-numeric: tabular-nums; }

/* ------------------------------- Responsive ----------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: var(--header-height) 0 0 0; background: var(--color-surface); flex-direction: column; align-items: stretch; padding: var(--space-lg); transform: translateX(100%); transition: transform var(--transition-med); overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
  .has-dropdown .dropdown { position: static; transform: none; box-shadow: none; border: none; display: none; padding-left: var(--space-md); }
  .has-dropdown.is-open .dropdown { display: flex; }
  .nav-toggle { display: block; }
  .header-cta .btn-secondary { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-slider { min-height: 560px; }
  .page-hero { min-height: 460px; }
  .facility-grid { grid-template-columns: 1fr; }
  .facility-grid .facility-images { order: -1; }
  .equal-split { grid-template-columns: 1fr; }
  .equal-split .split-col { height: auto; }
  .equal-split .strip-cards { flex: none; }
  .equal-split .split-image { height: auto; }
  .equal-split .split-image img { height: auto; object-fit: initial; }
  .facility-cards { height: auto; }
  .facility-cards .card { flex: none; }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .stats-bar .grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-strip { padding: var(--space-xl) var(--space-lg); }
}

@media (max-width: 400px) {
  .stats-bar .grid, .grid-4 { grid-template-columns: 1fr; }
  .facility-cards { grid-template-columns: 1fr; }
}

/* ---- Small phones: keep the header from ever forcing horizontal scroll ---- */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  :root { --header-height: 68px; }
  .brand img { height: 32px; max-width: 130px; }
  .brand-wordmark { font-size: 1.05rem; }
  .header-cta .btn-whatsapp .btn-label { display: none; }
  .header-cta .btn { padding: 0.6rem 0.75rem; }
  .hero-slider { min-height: 480px; }
  .hero-slide-content { padding: var(--space-xl) 0; }
  .page-hero { min-height: 420px; }
}
