/* ============================================================
   AYAMA Cooling & Mechanical Systems — Design System
   Palette: AYAMA Navy #001F59 · White #FFFFFF · Light Grey #EEEEEE
   Flat design — no gradients, no shadows. Borders + type do the work.
   ============================================================ */

:root {
  --navy: #001F59;
  --navy-deep: #001540;
  --navy-ink: #0A1633;
  --white: #FFFFFF;
  --grey: #EEEEEE;
  --grey-dark: #D9DDE6;
  --ink: #141B2E;
  --muted: #5A6478;
  --line: #D9DDE6;
  --line-navy: rgba(255, 255, 255, 0.22);
  --whatsapp: #25D366;
  --font-display: "Space Grotesk", "Archivo", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--navy); color: var(--white); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--navy);
}
.on-navy .eyebrow { color: rgba(255, 255, 255, 0.7); }
.on-navy .eyebrow::before { background: var(--white); }
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: var(--white); }
.on-navy { color: rgba(255, 255, 255, 0.82); }

.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.on-navy .lead { color: rgba(255, 255, 255, 0.75); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 28px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--navy-deep); }
.btn svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.btn-white {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--grey); border-color: var(--grey); }

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* ---------- top bar ---------- */

.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--white); }
.topbar svg { width: 13px; height: 13px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar .motto { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.68rem; color: rgba(255,255,255,0.6); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; background: var(--white); padding: 7px 14px; display: block; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 13px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 20px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 .thin { font-weight: 300; }
.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: rgba(255,255,255,0.5); }
.hero p.lead { max-width: 48ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { display: grid; place-items: center; }
.hero-visual svg { width: min(100%, 380px); height: auto; }

.hero-strip {
  border-top: 1px solid var(--line-navy);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-strip .stat {
  padding: 26px var(--pad) 26px 0;
  border-right: 1px solid var(--line-navy);
  padding-left: 24px;
}
.hero-strip .stat:first-child { padding-left: 0; }
.hero-strip .stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- sections ---------- */

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-grey { background: var(--grey); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.8); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2 { margin-bottom: 0; max-width: 14ch; }
.section-head .head-side { max-width: 40ch; color: var(--muted); font-size: 0.98rem; }
.section-navy .section-head .head-side { color: rgba(255,255,255,0.7); }

/* ---------- spec-sheet grid (stages / sectors) ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}
.spec-grid.three { grid-template-columns: repeat(3, 1fr); }
.spec-cell {
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}
.spec-cell:last-child { border-right: 0; }
.spec-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 22px;
}
.spec-cell h3 { margin-bottom: 10px; }
.spec-cell p { font-size: 0.92rem; color: var(--muted); flex-grow: 1; }
.spec-cell .cell-link {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.spec-cell .cell-link svg { width: 14px; height: 14px; transition: transform 0.18s ease; }
.spec-cell:hover .cell-link svg { transform: translateX(4px); }
.spec-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.spec-cell:hover::before { transform: scaleX(1); }

/* navy variant */
.spec-grid.on-navy { background: transparent; border-color: var(--line-navy); }
.spec-grid.on-navy .spec-cell { border-color: var(--line-navy); }
.spec-grid.on-navy .spec-cell p { color: rgba(255,255,255,0.65); }
.spec-grid.on-navy .spec-num { color: rgba(255,255,255,0.55); }
.spec-grid.on-navy h3 { color: var(--white); }
.spec-grid.on-navy .cell-link { color: var(--white); }
.spec-grid.on-navy .spec-cell::before { background: var(--white); }

/* ---------- service detail rows ---------- */

.stage-block { border-top: 1px solid var(--line); }
.stage-block:last-child { border-bottom: 1px solid var(--line); }
.stage-inner {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: clamp(44px, 6vw, 72px) 0;
}
.stage-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1;
}
.stage-title h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.stage-tagline { font-size: 0.95rem; color: var(--muted); }
.stage-detail p { color: var(--muted); margin-bottom: 22px; }
.stage-items { display: flex; flex-wrap: wrap; gap: 10px; }
.stage-items li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.stage-items li::before { content: ""; width: 6px; height: 6px; background: var(--navy); }

/* ---------- product categories ---------- */

.cat-block { border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 72px) 0; }
.cat-block:last-of-type { border-bottom: 1px solid var(--line); }
.cat-head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  margin-bottom: 36px;
  align-items: start;
}
.cat-letter {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--grey-dark);
  line-height: 1;
}
.cat-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.cat-head p { color: var(--muted); margin-bottom: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.product-card {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-card:nth-child(3n) { border-right: 0; }
.product-card:nth-last-child(-n+3) { border-bottom: 0; }
.product-card:nth-child(3n+1):nth-last-child(-n+2),
.product-card:nth-child(3n+2):nth-last-child(-n+1) { border-bottom: 0; }
.product-card h4 { margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
.product-card h4 .idx { font-size: 0.7rem; font-family: var(--font-display); color: var(--muted); letter-spacing: 0.15em; }
.product-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- split feature (about etc) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.statement strong { font-weight: 700; }
.motto-block {
  border: 1px solid var(--navy);
  padding: 34px 32px;
  margin-top: 40px;
}
.motto-block .motto-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.motto-block .motto-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

.vmm { border-top: 1px solid var(--line); }
.vmm-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.vmm-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 6px;
}
.vmm-content h3 { margin-bottom: 10px; }
.vmm-content p { color: var(--muted); max-width: 62ch; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.pillar {
  border: 1px solid var(--line);
  padding: 26px 24px;
}
.pillar h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pillar h4 svg { width: 18px; height: 18px; color: var(--navy); flex-shrink: 0; }
.pillar p { font-size: 0.9rem; color: var(--muted); }

/* ---------- sectors ---------- */

.sector-list { border-top: 1px solid var(--line); }
.sector-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.4fr) 50px;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s ease;
}
.sector-row:hover { padding-left: 14px; }
.sector-idx {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.sector-row h3 { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.sector-row p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.sector-arrow { justify-self: end; color: var(--navy); }
.sector-arrow svg { width: 22px; height: 22px; }

/* sectors strip (home) */
.sector-strip { border: 1px solid var(--line); display: flex; flex-wrap: wrap; }
.sector-chip {
  flex: 1 1 220px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sector-chip .dot { width: 8px; height: 8px; background: var(--navy); flex-shrink: 0; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--navy); color: var(--white); }
.cta-band .wrap {
  padding-top: clamp(60px, 8vw, 96px);
  padding-bottom: clamp(60px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ---------- forms ---------- */

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.form-aside .contact-line {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.form-aside .contact-line svg { width: 20px; height: 20px; color: var(--navy); flex-shrink: 0; margin-top: 3px; }
.form-aside .contact-line .cl-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.form-aside .contact-line .cl-value { font-weight: 500; color: var(--ink); }
.form-aside .contact-line .cl-value a:hover { color: var(--navy); text-decoration: underline; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.field label .req { color: #B00020; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0;
  appearance: none;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #B00020; }
.field .err { font-size: 0.8rem; color: #B00020; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.flash {
  border: 1px solid var(--navy);
  border-left-width: 6px;
  background: var(--white);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.flash .flash-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.flash .flash-message { color: var(--muted); font-size: 0.95rem; }

/* ---------- projects placeholders ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card { border: 1px solid var(--line); }
.project-thumb {
  aspect-ratio: 4 / 3;
  background: var(--grey);
  position: relative;
  overflow: hidden;
}
.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-thumb svg { width: 56px; height: 56px; color: var(--grey-dark); }
.project-thumb .thumb-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 5px 12px;
}
.project-meta { padding: 20px 22px; border-top: 1px solid var(--line); }
.project-meta h4 { margin-bottom: 4px; }
.project-meta p { font-size: 0.85rem; color: var(--muted); }

/* ---------- contact info blocks ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-bottom: clamp(48px, 6vw, 72px);
}
.contact-card {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}
.contact-card:last-child { border-right: 0; }
.contact-card svg { width: 26px; height: 26px; color: var(--navy); margin-bottom: 18px; }
.contact-card h4 { margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 0.92rem; color: var(--muted); display: block; }
.contact-card a:hover { color: var(--navy); text-decoration: underline; }

.map-block {
  border: 1px solid var(--line);
  min-height: 340px;
  background: var(--grey);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}
.map-block .map-pin { width: 44px; height: 44px; color: var(--navy); margin: 0 auto 16px; }
.map-block h3 { margin-bottom: 6px; }
.map-block p { color: var(--muted); }
.map-block a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ---------- floating actions ---------- */

.float-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  border: none;
  transition: transform 0.18s ease;
}
.float-btn:hover { transform: translateY(-3px); }
.float-btn svg { width: 26px; height: 26px; }
.float-btn.whatsapp { background: var(--whatsapp); }
.float-btn.call { background: var(--navy); width: 46px; height: 46px; align-self: flex-end; margin-right: 4px; }
.float-btn.call svg { width: 20px; height: 20px; }
.float-btn .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding: clamp(52px, 7vw, 80px) 0 48px;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.9rem; margin-top: 18px; max-width: 34ch; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-col .f-line { font-size: 0.9rem; display: block; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid var(--line-navy);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- page hero (interior) ---------- */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.page-hero .lead { color: rgba(255,255,255,0.75); }
.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 26px;
  display: flex;
  gap: 10px;
}
.breadcrumb a:hover { color: var(--white); }

/* ---------- 404 ---------- */

.not-found { text-align: center; padding: clamp(80px, 12vw, 140px) 0; }
.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 700;
  color: var(--grey);
  line-height: 1;
}
.not-found h1 { margin: 10px 0 14px; }

/* ---------- photography ---------- */

.photo-frame {
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--white);
  margin: 0;
}
.photo-frame.on-dark {
  background: transparent;
  border-color: var(--line-navy);
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.photo-cap {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.photo-frame.on-dark .photo-cap,
.on-navy .photo-cap { color: rgba(255, 255, 255, 0.62); }
.on-dark .photo-cap { color: rgba(255, 255, 255, 0.62); }
figure { margin: 0; }
figure > .photo-cap { padding: 0 2px; }

.hero-visual .photo-frame { width: min(100%, 470px); }
.hero-visual figcaption { text-align: left; }

.inline-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
  margin-top: 26px;
}

.img-trio, .duo-band { display: grid; gap: 24px; }
.img-trio { grid-template-columns: repeat(3, 1fr); }
.duo-band { grid-template-columns: repeat(2, 1fr); }
.img-trio img, .duo-band img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
.duo-band img { aspect-ratio: 16 / 10; }

.stage-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
  margin-top: 24px;
}

.cat-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
.cat-media .photo-cap { margin-top: 8px; }

.footer-logo { height: 44px; margin-bottom: 4px; }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — built mobile-conscious for Kenyan users on
   phones, tablets and desktops alike.
   ============================================================ */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual .photo-frame { width: min(100%, 560px); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid.three { grid-template-columns: repeat(2, 1fr); }
  .spec-cell { border-bottom: 1px solid var(--line); }
  .spec-grid.on-navy .spec-cell { border-color: var(--line-navy); }
  .spec-cell:nth-child(2n) { border-right: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .product-card:nth-child(2n) { border-right: 0; }
  .product-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .product-card:nth-last-child(-n+2) { border-bottom: 0; }
  .product-card:nth-child(odd):nth-last-child(-n+1) { border-bottom: 0; }
  .cat-head { grid-template-columns: 50px 1fr; }
  .cat-media { grid-column: 2; }
  .cat-letter { font-size: 2rem; }
  .img-trio { grid-template-columns: 1fr 1fr; }
  .img-trio figure:last-child { grid-column: 1 / -1; }
  .img-trio figure:last-child img { aspect-ratio: 16 / 8; }
  .stage-inner { grid-template-columns: 60px 1fr; }
  .stage-detail { grid-column: 2; }
  .sector-row { grid-template-columns: 50px 1fr 40px; }
  .sector-row p { display: none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-card:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .topbar .motto { display: none; }
}

@media (max-width: 760px) {
  .site-header .wrap { min-height: 58px; }
  .brand-logo { height: 36px; padding: 5px 10px; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: block; width: 40px; height: 40px; }
  .nav-toggle span { top: 19px; }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--pad);
    gap: 6px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 150;
  }
  body.nav-open .main-nav { transform: translateY(0); }
  .main-nav a {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 5vw, 1.7rem);
    font-weight: 600;
    padding: 6px 0;
  }
  .main-nav a::after { left: 0; right: 0; bottom: 4px; background: var(--white); }
  .main-nav a.active { color: var(--white); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle { position: relative; z-index: 160; border-color: rgba(255,255,255,0.4); }
  body.nav-open .nav-toggle span::before,
  body.nav-open .nav-toggle span::after { background: var(--white); }
  body.nav-open .site-header { background: transparent; border-color: transparent; }
  body.nav-open .brand-name { color: var(--white); }
  body.nav-open .brand-sub { color: rgba(255,255,255,0.6); }

  .topbar .wrap { min-height: 30px; }
  .topbar { font-size: 0.72rem; }
  .topbar-left .tb-email { display: none; }
  .topbar-left .tb-addr { display: none; }

  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn {
    justify-content: center;
    text-align: center;
    padding: 13px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .hero-actions .btn svg { display: none; }

  .spec-grid, .spec-grid.three { grid-template-columns: 1fr; }
  .spec-cell { border-right: 0 !important; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .product-card:last-child { border-bottom: 0 !important; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip .stat { border-right: 0; border-bottom: 1px solid var(--line-navy); padding: 20px 0; }
  .split { grid-template-columns: 1fr; }
  .cat-head { grid-template-columns: 1fr; }
  .cat-media { grid-column: auto; }
  .img-trio, .duo-band { grid-template-columns: 1fr; }
  .img-trio figure:last-child { grid-column: auto; }
  .img-trio figure:last-child img { aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .vmm-row { grid-template-columns: 1fr; gap: 12px; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sector-row { grid-template-columns: 40px 1fr; }
  .sector-arrow { display: none; }
  .stage-inner { grid-template-columns: 1fr; gap: 14px; }
  .stage-detail { grid-column: auto; }
}
