/* ==========================================================================
   SunPem Agency Limited — Stylesheet
   Brand palette (no gradients used):
     Primary Blue   #0A60C1   Deep Blue #083A89   Electric Blue #418FDF
     Solar Yellow   #FCAC04   Bright Yellow #FBD93A   Orange #DF6B07
     Charcoal       #19181F   Dark Gray #464344   Metallic Gray #A9A9AA
     Light Gray     #EAEAE7   White #FFFFFF
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue: #0A60C1;
  --blue-deep: #083A89;
  --blue-electric: #418FDF;
  --yellow: #FCAC04;
  --yellow-bright: #FBD93A;
  --orange: #DF6B07;
  --charcoal: #19181F;
  --gray-dark: #464344;
  --gray-metal: #A9A9AA;
  --gray-light: #EAEAE7;
  --white: #FFFFFF;

  --bg: #FFFFFF;
  --bg-alt: var(--gray-light);
  --text: var(--charcoal);
  --text-muted: var(--gray-dark);
  --border: #DCDCD8;
  --border-soft: #E7E7E3;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(25, 24, 31, 0.06), 0 1px 3px rgba(25, 24, 31, 0.04);
  --shadow: 0 6px 18px rgba(25, 24, 31, 0.08), 0 2px 6px rgba(25, 24, 31, 0.05);
  --shadow-lg: 0 24px 48px rgba(25, 24, 31, 0.12), 0 8px 18px rgba(25, 24, 31, 0.06);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.alt-section { background: var(--bg-alt); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--charcoal); font-weight: 700; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--yellow-bright); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); display: inline-block; }
.eyebrow-light .eyebrow-dot { background: var(--yellow); }

.section-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
.section-sub { margin-top: 14px; color: var(--text-muted); max-width: 60ch; font-size: 17px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.block-title { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  border: 2px solid transparent; text-decoration: none;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }

.btn-yellow { background: var(--yellow); color: var(--charcoal); }
.btn-yellow:hover { background: var(--orange); color: #fff; }

.btn-ghost { background: transparent; color: var(--blue); border-color: var(--gray-metal); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

.btn-outline { background: #fff; color: var(--blue); border-color: var(--gray-metal); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-deep); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: #fff; color: var(--blue-deep); border-color: #fff; }

.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1da851; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--charcoal); align-self: stretch; height: 100%; padding-block: 8px; }
.brand:hover { text-decoration: none; }
/* Logo: fills the full navbar height, width scales freely to preserve aspect ratio */
.brand-logo {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
}
/* On dark backgrounds (footer) the logo stays crisp; keep full height feel */
.brand-footer { padding-block: 0; }
.brand-footer .brand-logo { height: 60px; }
/* Keep the wide logo from overflowing on small screens */
@media (max-width: 600px) {
  .brand { padding-block: 10px; }
  .brand-logo { height: auto; max-height: 100%; max-width: 60vw; }
  .brand-footer .brand-logo { max-width: 70vw; height: 48px; }
}
@media (max-width: 380px) {
  .brand-logo { max-width: 52vw; }
}

.primary-nav ul { display: flex; gap: 4px; align-items: center; }
.primary-nav a {
  display: inline-block; padding: 10px 14px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--charcoal); text-decoration: none; transition: color .2s, background-color .2s;
}
.primary-nav a:hover { color: var(--blue); background: var(--gray-light); text-decoration: none; }
.primary-nav a.is-active { color: var(--blue); }
.primary-nav a.is-active::after {
  content: ""; display: block; height: 3px; width: 60%; margin: 4px auto 0;
  background: var(--yellow); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: 0; background: var(--bg); }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-bottom: clamp(48px, 6vw, 80px);
}
.hero-title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.hero-accent { color: var(--blue); }
.hero-lead { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-muted); max-width: 56ch; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--charcoal); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--gray-light);
  aspect-ratio: 5 / 6;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-card-float {
  position: absolute; left: -22px; bottom: -28px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--charcoal); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hero-card-float strong { display: block; font-family: var(--font-head); font-size: 14px; }
.hero-card-float span { font-size: 12px; color: var(--gray-metal); }
.hc-float-icon { display: inline-flex; flex-shrink: 0; }

/* Hero band */
.hero-band { background: var(--charcoal); color: #fff; }
.hero-band-inner {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 64px);
  padding-block: 18px; font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, 2vw, 22px); letter-spacing: 0.04em;
}
.hb-sep { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

/* ---------- Stats ---------- */
.stats-section { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-soft);
}
.stat { background: var(--bg-alt); padding: clamp(24px, 3vw, 40px) 16px; text-align: center; }
.stat-value { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); color: var(--blue); }
.stat-label { display: block; margin-top: 6px; font-size: 14px; color: var(--text-muted); }

/* ---------- Showcase (real equipment) ---------- */
.showcase-section { background: #fff; }
.showcase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px; gap: 18px;
}
.showcase-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--gray-light); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.showcase-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.showcase-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.showcase-card:hover img { transform: scale(1.04); }
.showcase-feature { grid-row: span 2; }
.showcase-wide { grid-column: span 2; }
.showcase-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px; background: rgba(8, 58, 137, 0.85); color: #fff;
}
.showcase-caption h3 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.showcase-caption p { font-size: 13px; color: rgba(255,255,255,0.85); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; text-decoration: none; color: var(--charcoal);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-electric); text-decoration: none; }
.service-card:hover::before { transform: scaleX(1); }
.service-card-media { position: relative; display: block; aspect-ratio: 5 / 3; border-radius: var(--radius); overflow: hidden; background: var(--gray-light); margin: -28px -28px 20px; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-icon-badge {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; padding: 10px; background: rgba(255,255,255,0.95);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.service-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-cat { font-family: var(--font-head); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); }
.service-title { font-size: 21px; font-weight: 700; }
.service-text { color: var(--text-muted); font-size: 15px; flex: 1; }
.service-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; color: var(--blue); font-size: 14px; margin-top: 4px; }

/* ---------- Values ---------- */
.values-section { background: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px;
  border-left: 4px solid var(--blue);
}
.value-icon { display: inline-flex; padding: 14px; background: #fff; border-radius: var(--radius); margin-bottom: 16px; }
.value-title { font-size: 22px; margin-bottom: 10px; }
.value-text { color: var(--text-muted); }

/* ---------- Process ---------- */
.process-section { background: var(--bg-alt); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process-step { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border-soft); position: relative; }
.process-num { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--yellow); margin-bottom: 10px; }
.process-title { font-size: 18px; margin-bottom: 8px; }
.process-text { color: var(--text-muted); font-size: 15px; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-thumb {
  height: 200px; overflow: hidden; position: relative; background: var(--gray-light);
  border-bottom: 4px solid var(--yellow);
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-cat { font-family: var(--font-head); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); }
.project-title { font-size: 19px; }
.project-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.project-text { color: var(--text-muted); font-size: 15px; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.project-tags li { font-size: 12px; padding: 4px 10px; background: var(--gray-light); border-radius: 999px; color: var(--gray-dark); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue-deep); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.cta-title { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta-text { margin-top: 10px; color: rgba(255,255,255,0.85); max-width: 56ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--blue-deep); color: #fff; padding-block: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(252,172,4,0.10);
}
.page-hero::after {
  content: ""; position: absolute; left: -60px; bottom: -120px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(65,143,223,0.18);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.page-title { color: #fff; font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
.page-lead { margin-top: 16px; color: rgba(255,255,255,0.88); font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; }
.page-hero-sm { padding-block: clamp(56px, 8vw, 96px); }
.page-hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Service detail hero with background image */
.page-hero-service::before, .page-hero-service::after { display: none; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-service .page-hero-inner { position: relative; z-index: 2; }
.page-hero-service::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(8, 58, 137, 0.78);
}

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.two-col p { margin-bottom: 16px; color: var(--text-muted); }
.about-card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border-soft); }
.about-card-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.about-card-row:first-child { padding-top: 0; }
.about-card-row:last-child { padding-bottom: 0; border-bottom: 0; }
.about-card-icon { display: inline-flex; padding: 10px; background: #fff; border-radius: var(--radius-sm); flex-shrink: 0; }
.about-card-row strong { font-family: var(--font-head); font-size: 17px; display: block; margin-bottom: 4px; }
.about-card-row p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* About page image collage */
.about-media { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.about-media-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 4; background: var(--gray-light); }
.about-media-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-media-sub { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: var(--gray-light); }
.about-media-sub img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Category head (services page) ---------- */
.category-head { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
.category-rule { flex: 1; height: 2px; background: var(--yellow); }

/* ---------- Service detail ---------- */
.service-detail { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.service-detail-main { }
.service-detail-summary { font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 2vw, 22px); color: var(--charcoal); margin-bottom: 18px; }
.service-detail-text { color: var(--text-muted); margin-bottom: 32px; }
.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.deliverables li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.deliverables li span { flex: 1; }

.service-detail-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border-soft); }
.side-card-title { font-size: 17px; margin-bottom: 16px; }
.highlights { display: flex; flex-direction: column; gap: 12px; }
.highlights li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.highlights li span { flex: 1; }
.side-card-cta { background: var(--charcoal); color: #fff; }
.side-card-cta .side-card-title { color: #fff; }
.side-card-cta p { color: rgba(255,255,255,0.8); margin-bottom: 16px; font-size: 14px; }
.side-card-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); margin-top: 10px; }
.side-card-cta .btn-outline:hover { background: #fff; color: var(--charcoal); }

/* ---------- Filter chips ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--charcoal); transition: all .2s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ic { display: inline-flex; padding: 12px; background: var(--gray-light); border-radius: var(--radius-sm); flex-shrink: 0; }
.contact-label { display: block; font-family: var(--font-head); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-dark); margin-bottom: 2px; }
.contact-list a, .contact-list span:not(.contact-label) { color: var(--charcoal); font-size: 16px; }
.contact-whatsapp { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 22px; border: 1px solid var(--border-soft); }
.contact-whatsapp p { margin-bottom: 14px; font-size: 14px; color: var(--text-muted); }

.contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--charcoal); }
.req { color: var(--orange); }
.opt { color: var(--gray-metal); font-weight: 400; font-size: 12px; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px; background: #fff; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,96,193,0.15);
}
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: 13px; font-weight: 500; }
.form-note { font-size: 12px; color: var(--gray-metal); text-align: center; margin-top: 4px; }

.alert { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.alert-success { background: #E8F5E9; color: #1b6b32; border: 1px solid #bfe3c6; }
.alert-error { background: #FDECEA; color: #a83227; border: 1px solid #f5c6c0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #fff; padding-top: clamp(48px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 3vw, 48px); padding-bottom: 48px; }
.footer-tagline { font-family: var(--font-head); font-weight: 700; color: var(--yellow); margin: 18px 0 10px; letter-spacing: 0.04em; }
.footer-blurb { color: rgba(255,255,255,0.7); font-size: 14px; max-width: 42ch; }
.footer-heading { font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--yellow); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.8); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; flex-direction: column; gap: 2px; }
.fc-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-metal); }
.footer-contact a, .footer-contact span:not(.fc-label) { color: #fff; font-size: 15px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 22px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-credit { color: var(--yellow); font-family: var(--font-head); font-weight: 600; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 4px 10px rgba(25,24,31,0.2);
  z-index: 90; text-decoration: none;
  transition: transform .2s ease;
}
.whatsapp-fab:hover { text-decoration: none; transform: scale(1.06); }
.whatsapp-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; z-index: -1; animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-icon { position: relative; }
.wa-tooltip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--charcoal); color: #fff; padding: 8px 14px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.wa-tooltip::after {
  content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--charcoal);
}
.whatsapp-fab:hover .wa-tooltip,
.whatsapp-fab.is-attention .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .whatsapp-fab::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   Strategy: keep 2-up card grids on phones down to ~400px to preserve
   the "handful of items" feel and minimise scroll debt. Only collapse
   to 1-up on very small phones (<400px). Section spacing, paddings and
   typography tighten progressively on smaller screens.
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid, .values-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .showcase-feature { grid-row: span 2; }
  .showcase-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .service-detail-side .side-card { flex: 1 1 280px; }
}

@media (max-width: 860px) {
  /* Header / nav */
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  :root { --header-h: 64px; }
  .mobile-nav {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff; padding: clamp(20px, 4vh, 36px) var(--gutter) clamp(24px, 5vh, 48px);
    z-index: 99; transform: translateX(100%); transition: transform .3s ease;
    box-shadow: var(--shadow-lg); overflow-y: auto; min-height: calc(100vh - var(--header-h));
  }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav > nav { display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: clamp(16px, 4vh, 40px); }
  .mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
  .mobile-nav ul a {
    display: block; padding: 14px 12px; border-radius: 10px;
    font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--charcoal);
  }
  .mobile-nav ul a:hover { background: var(--gray-light); text-decoration: none; }
  .mobile-nav ul .btn { margin-top: 8px; }
  .mobile-nav-contact { padding-top: 20px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 10px; }
  .mobile-nav-contact a { font-family: var(--font-head); font-weight: 600; color: var(--blue); font-size: 17px; }

  /* Hero */
  .hero { padding-top: clamp(28px, 5vw, 48px); }
  .hero-inner { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); padding-bottom: clamp(36px, 5vw, 56px); }
  .hero-visual { order: -1; margin-top: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-card-float { left: 12px; bottom: -18px; padding: 10px 14px; }
  .hero-trust { gap: 12px 18px; }

  /* Layouts */
  .two-col, .contact-layout { grid-template-columns: 1fr; }
  .about-media { position: static; flex-direction: row; }
  .about-media-main { flex: 1.3; aspect-ratio: 3 / 4; }
  .about-media-sub { flex: 1; aspect-ratio: 3 / 4; }
  .row-head { flex-direction: column; align-items: flex-start; }

  /* Tighten sections on mobile */
  .section { padding-block: clamp(40px, 7vw, 64px); }
  .section-head { margin-bottom: 32px; }
  .section-sub { font-size: 16px; }
}

@media (max-width: 600px) {
  /* Keep 2-up grids on phones — only collapse very small screens later */
  .services-grid, .values-grid, .projects-grid, .process-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .deliverables { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  /* Showcase: 2-up on phones, feature spans 2 rows, wide spans both columns */
  .showcase-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 12px; }
  .showcase-feature { grid-row: span 2; }
  .showcase-wide { grid-column: span 2; }
  .showcase-caption { padding: 12px 14px; }
  .showcase-caption h3 { font-size: 15px; }
  .showcase-caption p { font-size: 12px; }

  /* Contact: keep phone+email side by side on most phones */
  .field-row { grid-template-columns: 1fr 1fr; }

  /* Compact service cards on phones */
  .service-card { padding: 18px; }
  .service-card-media { margin: -18px -18px 16px; }
  .service-title { font-size: 17px; }
  .service-text { font-size: 14px; }
  .service-cat { font-size: 11px; }
  .service-link { font-size: 13px; }
  .service-icon-badge { padding: 8px; left: 10px; bottom: 10px; }

  /* Compact value cards */
  .value-card { padding: 22px; }
  .value-title { font-size: 18px; }
  .value-text { font-size: 14px; }
  .value-icon { padding: 10px; margin-bottom: 12px; }

  /* Compact process steps */
  .process-step { padding: 20px; }
  .process-num { font-size: 26px; }
  .process-title { font-size: 16px; }
  .process-text { font-size: 13px; }

  /* Compact project cards */
  .project-thumb { height: 150px; }
  .project-body { padding: 16px; gap: 6px; }
  .project-title { font-size: 16px; }
  .project-text { font-size: 13px; }
  .project-tags li { font-size: 11px; padding: 3px 8px; }

  /* Stats compact */
  .stat { padding: 20px 10px; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 12px; }

  /* Hero compact */
  .hero-band-inner { gap: 16px; font-size: 15px; }
  .hero-trust li { font-size: 13px; }
  .hero-actions { gap: 10px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .btn-lg { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .service-detail-side { flex-direction: column; }
  .about-media { flex-direction: column; }
  .about-media-main, .about-media-sub { aspect-ratio: 16 / 10; }
  .wa-tooltip { display: none; }
  .whatsapp-fab { width: 54px; height: 54px; bottom: 16px; right: 16px; }

  /* Page hero compact */
  .page-hero { padding-block: clamp(36px, 6vw, 56px); }
  .page-hero-sm { padding-block: clamp(40px, 7vw, 64px); }

  /* Footer compact */
  .site-footer { padding-top: clamp(36px, 5vw, 52px); }
  .footer-grid { padding-bottom: 32px; }
  .footer-heading { font-size: 13px; margin-bottom: 12px; }
  .footer-col a, .footer-contact a, .footer-contact span:not(.fc-label) { font-size: 14px; }
  .footer-blurb { font-size: 13px; }
  .footer-bottom-inner { font-size: 12px; }

  /* Filter chips compact */
  .chip { padding: 7px 13px; font-size: 13px; }
  .filter-chips { gap: 8px; margin-bottom: 24px; }

  /* Contact form compact */
  .contact-form-wrap { padding: 20px; }
  .contact-form { gap: 14px; }
  .contact-list { gap: 18px; }
  .contact-ic { padding: 10px; }
}

/* Very small phones (common in Kenya: 360-390px) — collapse to 1-up */
@media (max-width: 400px) {
  .services-grid, .values-grid, .projects-grid, .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .deliverables { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .showcase-feature { grid-row: span 1; }
  .showcase-wide { grid-column: span 1; }
  .hero-trust { gap: 10px 14px; }
  .hero-title { font-size: 28px; }
  .section-title { font-size: 22px; }
  .page-title { font-size: 26px; }
}

/* Ultra-small — last-resort safety */
@media (max-width: 340px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-band-inner { gap: 10px; font-size: 13px; }
}
