/* ==========================================================================
   GEPL Solar — design system
   Author: GEPL (2026)
   ========================================================================== */

@font-face {
  font-family: "Noto Malayalam";
  src: url("../fonts/noto-malayalam.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0307, U+0323, U+0951-0952, U+0964-0965, U+0B83, U+0D00-0D7F, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2-variations"),
       url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #06131f;
  --navy-900: #0a1f33;
  --navy-800: #0e2a45;
  --navy-700: #16395c;
  --ink: #0c1b2a;
  --slate-700: #3b4a5c;
  --slate-600: #55657a;
  --slate-500: #6b7c91;
  --line: #e3e9f0;
  --line-strong: #cfd9e4;
  --paper: #f7f9fc;
  --paper-warm: #fbf8f2;
  --white: #ffffff;

  --amber: #f5a524;
  --amber-600: #d8890c;
  --amber-100: #fff3dc;
  --green: #0f7a63;
  --green-100: #e7f5f1;

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

  --shadow-sm: 0 1px 2px rgba(12, 27, 42, .06), 0 4px 12px rgba(12, 27, 42, .04);
  --shadow: 0 2px 6px rgba(12, 27, 42, .06), 0 18px 40px -18px rgba(12, 27, 42, .18);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  --font: "Manrope", "Noto Malayalam", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.14;
  letter-spacing: -.022em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.65rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.34rem); letter-spacing: -.012em; }
h4 { font-size: 1.02rem; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(60px, 8vw, 108px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--paper { background: var(--paper); }
.section--warm { background: var(--paper-warm); }
.section--navy { background: var(--navy-900); color: #dbe6f1; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--flush { padding-block: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--slate-700);
  max-width: 62ch;
}
.section--navy .lede { color: #b9cade; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 2px;
}
.section--navy .eyebrow { color: var(--amber); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700; font-size: .96rem; letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--amber { --btn-bg: var(--amber); --btn-fg: var(--navy-950); }
.btn--amber:hover { --btn-bg: #ffb53a; box-shadow: 0 10px 24px -12px rgba(245, 165, 36, .9); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy-900);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--navy-900); }

.section--navy .btn--ghost, .hero .btn--ghost {
  --btn-fg: #fff; border-color: rgba(255, 255, 255, .28);
}
.section--navy .btn--ghost:hover, .hero .btn--ghost:hover {
  border-color: #fff; background: rgba(255, 255, 255, .06);
}

.btn--sm { padding: 10px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .94rem; color: var(--navy-800);
  text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.topbar {
  background: var(--navy-950);
  color: #b6c8db;
  font-size: .82rem;
  letter-spacing: .01em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 38px; padding-block: 6px;
}
.topbar a { color: #dbe7f3; text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.topbar__group { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(12, 27, 42, .5); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 156px; height: auto; }
.brand__sub {
  display: none;
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-500);
  border-left: 1px solid var(--line-strong); padding-left: 12px; line-height: 1.4;
}

.nav { display: flex; align-items: center; gap: 2px; flex: none; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  white-space: nowrap;
  font-size: .9rem; font-weight: 600; color: var(--slate-700);
  text-decoration: none; border-radius: 8px;
  transition: color .16s ease, background .16s ease;
}
.nav a:hover { color: var(--navy-900); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--navy-900); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--amber);
}

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none;
  font-weight: 700; font-size: .9rem; color: var(--navy-900); text-decoration: none;
}
.header-phone svg { width: 16px; height: 16px; color: var(--amber-600); }

.mobile-nav { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--navy-900);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: #e6eef7;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(245, 165, 36, .17), transparent 60%),
    radial-gradient(700px 500px at 6% 92%, rgba(22, 90, 140, .35), transparent 65%),
    linear-gradient(160deg, #071826 0%, #0a1f33 55%, #06131f 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 20px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: .76rem; font-weight: 600; letter-spacing: .04em; color: #cfe0f1;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 165, 36, .18);
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--amber); white-space: nowrap; }
.hero__copy { font-size: clamp(1.02rem, 1.5vw, 1.13rem); color: #b9cbdf; max-width: 56ch; margin-bottom: 28px; }
.hero__foot { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: .84rem; color: #93a9c0; }
.hero__foot span { display: inline-flex; align-items: center; gap: 7px; }
.hero__foot svg { width: 15px; height: 15px; color: var(--amber); }

.quote-card {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .65);
}
.quote-card__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
  color: var(--green); background: var(--green-100);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 16px;
}
.quote-card__tag svg { width: 13px; height: 13px; }
.quote-card h3 { margin-bottom: 4px; }
.quote-card__meta { font-size: .84rem; color: var(--slate-500); margin-bottom: 18px; }
.quote-rows { list-style: none; margin: 0 0 18px; padding: 0; }
.quote-rows li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: .9rem;
}
.quote-rows li:last-child { border-bottom: 0; }
.quote-rows .k { color: var(--slate-600); flex: 0 0 auto; white-space: nowrap; }
.quote-rows .v { font-weight: 800; color: var(--navy-900); text-align: right; flex: 1 1 auto; }
.quote-rows .v.is-green { color: var(--green); }
.quote-card .btn--ghost { margin-bottom: 14px; }
.quote-card__note { font-size: .72rem; color: var(--slate-500); line-height: 1.5; margin: 0; }
.quote-card__cta { margin-top: 16px; display: flex; }
.quote-card__cta .btn { width: 100%; }
.quote-card .btn--ghost { --btn-fg: var(--navy-900); border-color: var(--line-strong); }
.quote-card .btn--ghost:hover { border-color: var(--navy-900); background: var(--paper); }

/* ---------- stats ---------- */
.stats { background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .08); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255, 255, 255, .1);
}
.stat {
  background: var(--navy-900);
  padding: 26px clamp(14px, 2.4vw, 30px);
}
.stat__num {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: #fff;
  letter-spacing: -.03em; line-height: 1; margin-bottom: 8px;
}
.stat__num span { color: var(--amber); }
.stat__label { font-size: .8rem; color: #93a9c0; line-height: 1.45; }

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-strip .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 28px; padding-block: 18px;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; color: var(--slate-600);
}
.trust-item svg { width: 17px; height: 17px; color: var(--green); flex: none; }

/* ---------- cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card--hover:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .94rem; color: var(--slate-700); }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-600);
}
.icon-badge svg { width: 23px; height: 23px; }
.icon-badge--navy { background: #eaf0f7; color: var(--navy-800); }
.icon-badge--green { background: var(--green-100); color: var(--green); }

.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card--link .link-arrow { margin-top: auto; padding-top: 16px; align-self: flex-start; }

/* feature list */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: var(--slate-700); }
.checklist svg { width: 19px; height: 19px; flex: none; color: var(--green); margin-top: 2px; }
.section--navy .checklist li, .panel--navy .checklist li { color: #c3d3e4; }
.section--navy .checklist svg, .panel--navy .checklist svg { color: var(--amber); }

/* ---------- split ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr); align-items: start; }
.split--wide-left > aside { position: sticky; top: 96px; }
.split__media { position: relative; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
}
.panel--navy { background: var(--navy-800); border-color: rgba(255,255,255,.12); color: #d6e3f1; }
.panel--navy h3, .panel--navy h4 { color: #fff; }
.panel--amber { background: var(--amber-100); border-color: #f6dfb4; }

/* ---------- project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.project:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.project__top {
  position: relative;
  padding: 26px 24px 22px;
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  color: #fff;
  overflow: hidden;
}
.project__top::after {
  content: ""; position: absolute; right: -30px; bottom: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgba(245, 165, 36, .45);
  box-shadow: 0 0 0 22px rgba(245, 165, 36, .07), 0 0 0 48px rgba(245, 165, 36, .04);
}
.project__kw { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.project__kw span { font-size: .95rem; font-weight: 600; letter-spacing: 0; color: #a9bed3; margin-left: 5px; }
.project__type {
  margin-top: 10px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); font-weight: 700;
}
.project__body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project__body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.project__body p { font-size: .88rem; color: var(--slate-600); margin: 0; }
.project__spec {
  margin-top: auto; padding-top: 16px;
  font-size: .8rem; color: var(--slate-500); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 14px;
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
  text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate-500); font-weight: 700;
  background: var(--paper);
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfe; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-note { font-size: .78rem; color: var(--slate-500); margin-top: 10px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px; padding-bottom: 30px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-weight: 800; font-size: .95rem;
  position: relative; z-index: 1;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px;
  width: 2px; background: var(--line);
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { font-size: .92rem; color: var(--slate-700); margin: 0; }
.step__tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--amber-100); color: var(--amber-600);
  font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  vertical-align: 2px;
}

/* ---------- accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--navy-900);
  font-weight: 700; font-size: 1.1rem; line-height: 1;
  transition: background .18s ease, transform .18s ease;
}
.faq details[open] summary::after { content: "−"; background: var(--amber); transform: rotate(180deg); }
.faq .faq__body { padding: 0 0 22px; font-size: .95rem; color: var(--slate-700); max-width: 78ch; }
.faq .faq__body p { margin-bottom: .8em; }

/* ---------- callout ---------- */
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--amber-100);
  border: 1px solid #f3ddb4;
  font-size: .9rem;
  color: #6a4a10;
}
.callout svg { width: 20px; height: 20px; flex: none; color: var(--amber-600); margin-top: 2px; }
.callout strong { color: #4a3208; }
.callout--neutral { background: var(--paper); border-color: var(--line); color: var(--slate-700); }
.callout--neutral svg { color: var(--navy-800); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #b9cbdf; margin: 0; max-width: 54ch; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,165,36,.28), transparent 62%);
  pointer-events: none;
}

/* ghost buttons on dark surfaces */
.cta-band .btn--ghost, .panel--navy .btn--ghost {
  --btn-fg: #fff; border-color: rgba(255,255,255,.3);
}
.cta-band .btn--ghost:hover, .panel--navy .btn--ghost:hover {
  border-color: #fff; background: rgba(255,255,255,.07);
}

/* ---------- page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #071826, var(--navy-900) 60%, #0b2338);
  color: #fff;
  padding-block: clamp(46px, 6vw, 76px);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; margin-bottom: 14px; }
.page-hero p { color: #b9cbdf; max-width: 62ch; font-size: 1.05rem; margin: 0; }
.page-hero--wide h1 { max-width: 24ch; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .78rem; color: #8fa6bd; margin-bottom: 18px;
}
.breadcrumb a { color: #b7c9db; text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { opacity: .6; }

/* ---------- prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; color: var(--slate-700); }
.prose a { color: var(--navy-800); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--slate-700); }
.field .req { color: var(--amber-600); }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit; font-size: .95rem; color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(22, 57, 92, .12);
}
.textarea { min-height: 130px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: .78rem; color: var(--slate-500); }
.form__status { font-size: .88rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb3c8; font-size: .9rem; }
.site-footer__main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px; padding-block: 64px 48px;
}
.site-footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 700;
}
.site-footer a { color: #b9cbdf; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .88rem; }
.footer-brand img { width: 150px; margin-bottom: 18px; background: #fff; padding: 8px 10px; border-radius: 8px; }
.footer-brand p { font-size: .86rem; color: #8fa6bd; max-width: 34ch; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .86rem; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--amber); }
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .76rem; color: #7f95ab;
}
.site-footer__legal a { color: #9fb3c8; }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 9px;
}
.social a:hover { border-color: var(--amber); color: var(--amber); }
.social svg { width: 17px; height: 17px; }

/* ---------- misc ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .74rem; font-weight: 700; color: var(--slate-600);
}
.pill svg { width: 13px; height: 13px; }
.pill--green { background: var(--green-100); border-color: #cdeae2; color: var(--green); }
.pill--amber { background: var(--amber-100); border-color: #f3ddb4; color: #8a5a00; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--slate-500); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }

.hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.office {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff;
}
.office h3 { font-size: 1.05rem; margin-bottom: 4px; }
.office__tag {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800;
  color: var(--amber-600); margin-bottom: 12px; display: block;
}
.office address { font-style: normal; color: var(--slate-700); font-size: .94rem; line-height: 1.6; }
.office__links { margin-top: 16px; display: grid; gap: 8px; font-size: .9rem; }
.office__links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.office__links svg { width: 15px; height: 15px; color: var(--amber-600); }

/* ---------- filters ---------- */
[hidden] { display: none !important; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.filter {
  border: 1px solid var(--line-strong); background: #fff;
  border-radius: 999px; padding: 9px 18px;
  font-size: .86rem; font-weight: 700; color: var(--slate-600);
  cursor: pointer; transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.filter:hover { border-color: var(--navy-700); color: var(--navy-900); }
.filter.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filters__count { margin-left: auto; font-size: .8rem; color: var(--slate-500); }

/* icons inside headings and pills */
h3 svg, h4 svg { width: 20px; height: 20px; vertical-align: -3px; margin-right: 6px; color: var(--green); }
h4 svg { width: 18px; height: 18px; color: var(--amber-600); }
.pill svg { width: 13px; height: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .header-phone { display: none; }
}

@media (max-width: 1080px) {
  .nav a { padding: 9px 8px; font-size: .84rem; }
  .brand img { width: 124px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
}

@media (max-width: 960px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { min-height: 66px; }
  .header-cta .btn { padding: 11px 18px; font-size: .88rem; }

  .mobile-nav {
    display: block;
    position: fixed; inset: 0; z-index: 150;
    background: rgba(6, 19, 31, .5);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .mobile-nav.is-open { opacity: 1; pointer-events: auto; }
  .mobile-nav__panel {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: min(88vw, 380px);
    background: #fff;
    padding: 22px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .24s ease;
    display: flex; flex-direction: column;
  }
  .mobile-nav.is-open .mobile-nav__panel { transform: none; }
  .mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
  .mobile-nav__head img { width: 120px; }
  .mobile-nav__close {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; display: grid; place-items: center; cursor: pointer;
  }
  .mobile-nav nav { display: grid; gap: 2px; }
  .mobile-nav nav a {
    padding: 12px 12px; border-radius: 9px; text-decoration: none;
    font-weight: 700; font-size: 1rem; color: var(--ink);
  }
  .mobile-nav nav a:hover, .mobile-nav nav a[aria-current="page"] { background: var(--paper); }
  .mobile-nav__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
  .mobile-nav__foot .btn { width: 100%; }
  .mobile-nav__contact { font-size: .86rem; color: var(--slate-600); }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .quote-card { max-width: 460px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--wide-left { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .cta-band { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 52px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step::before { width: 36px; height: 36px; font-size: .86rem; }
  .step:not(:last-child)::after { left: 17px; }
  .topbar__group:last-child { display: none; }
  .site-footer__main { grid-template-columns: 1fr; padding-block: 44px 32px; }
  .site-footer__legal { flex-direction: column; }
  .hero__foot { gap: 8px 18px; }
  .brand img { width: 118px; }
  .header-cta .btn { display: none; }
}

@media print {
  .site-header, .topbar, .site-footer, .cta-band, .btn { display: none !important; }
  body { color: #000; }
  .page-hero { background: #fff; color: #000; padding: 0 0 20px; }
  .page-hero h1 { color: #000; }
}


/* ==========================================================================
   Home v2 — hybrid layout (masthead, hero, calculator, project list)
   ========================================================================== */
/* ---------- nav ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.masthead__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.masthead__brand img { width: 126px; }
.masthead__links { display: flex; gap: 4px; }
.masthead__links a {
  text-decoration: none; font-size: .88rem; font-weight: 700; color: var(--slate-700);
  padding: 9px 11px; border-radius: 8px;
}
.masthead__links a:hover { background: var(--paper); color: var(--navy-900); }
.masthead__cta { display: flex; align-items: center; gap: 14px; flex: none; }
.masthead__phone { font-size: .88rem; font-weight: 800; text-decoration: none; color: var(--navy-900); }
.masthead__phone:hover { color: var(--amber-600); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 21px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: .93rem; font-weight: 800; text-decoration: none; cursor: pointer;
  background: var(--navy-900); color: #fff;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--amber { background: var(--amber); color: var(--navy-950); }
.btn--amber:hover { background: #ffb53a; }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: #cfd9e4; }
.btn--ghost:hover { border-color: var(--navy-900); }
.btn--sm { padding: 10px 16px; font-size: .84rem; }
.btn svg { width: 17px; height: 17px; }

/* ---------- hero ---------- */
.home-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% 12%, rgba(245,165,36,.16), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  padding: clamp(48px, 7vw, 86px) 0 clamp(40px, 6vw, 70px);
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,31,51,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,51,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 72%);
}
.home-hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.home-hero__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .74rem; font-weight: 800; letter-spacing: .04em; color: var(--slate-700);
  margin-bottom: 20px;
}
.home-hero__chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.home-hero h1 em { font-style: normal; color: var(--amber-600); }
.home-hero__copy { font-size: 1.08rem; color: var(--slate-700); max-width: 52ch; margin-bottom: 26px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: .82rem; font-weight: 600; color: var(--slate-500); }
.home-hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.home-hero__trust svg { width: 15px; height: 15px; color: var(--green); }

.art {
  position: relative; border-radius: 24px; overflow: hidden;
  background: linear-gradient(170deg, #eaf4ff 0%, #f6fbff 55%, #fff 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -35px rgba(10,31,51,.45);
}
.art svg { width: 100%; height: auto; }

/* ---------- stats ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; }
.sbox { background: var(--navy-900); padding: 22px 20px; }
.sbox__n { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.sbox__n span { color: var(--amber); }
.sbox__l { font-size: .76rem; color: #93a9c0; margin-top: 7px; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(22px, 3vw, 34px); align-items: start; }
.calc__panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 20px 50px -40px rgba(10,31,51,.5); }
.calc__label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--slate-500); text-transform: uppercase; margin-bottom: 8px; }
.calc__field { display: flex; align-items: center; gap: 10px; border: 1px solid #cfd9e4; border-radius: 12px; padding: 4px 14px; background: #fff; }
.calc__field span { font-weight: 800; color: var(--slate-500); }
.calc__field input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.4rem; font-weight: 800; color: var(--navy-900); padding: 10px 0; width: 100%; background: transparent; }
.calc__hint { font-size: .78rem; color: var(--slate-500); margin-top: 8px; }
.calc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--slate-700); cursor: pointer; }
.chip:hover { border-color: var(--navy-700); color: var(--navy-900); }
.calc__out { background: var(--navy-900); color: #fff; border-radius: 20px; padding: clamp(22px, 3vw, 30px); }
.calc__out h3 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #93a9c0; margin-bottom: 16px; }
.calc__size { font-size: 2.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.calc__size span { font-size: 1.1rem; color: var(--amber); font-weight: 700; letter-spacing: 0; }
.calc__list { list-style: none; margin: 20px 0 0; padding: 0; }
.calc__list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.calc__list .k { color: #9fb3c8; }
.calc__list .v { font-weight: 800; color: #fff; text-align: right; }
.calc__list .v.g { color: #7ee0c4; }
.calc__note { font-size: .72rem; color: #8fa6bd; margin-top: 16px; line-height: 1.5; }

/* ---------- section header with number ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(26px, 4vw, 42px); }
.sec-head__num { font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--amber-600); }
.sec-head h2 { margin: 6px 0 0; }
.sec-head p { margin: 10px 0 0; max-width: 56ch; color: var(--slate-700); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h3 { margin-bottom: 7px; }
.card p { font-size: .92rem; color: var(--slate-700); margin: 0; }
.ico { width: 44px; height: 44px; border-radius: 11px; background: var(--amber-100); color: var(--amber-600); display: grid; place-items: center; margin-bottom: 14px; }
.ico svg { width: 22px; height: 22px; }
.ico--green { background: var(--green-100); color: var(--green); }

/* ---------- project list ---------- */
.plist { border-top: 1px solid var(--line); }
.pitem { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pitem__kw { font-size: 1.35rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; }
.pitem__kw span { font-size: .8rem; color: var(--slate-500); font-weight: 700; }
.pitem__name { font-weight: 800; }
.pitem__meta { font-size: .85rem; color: var(--slate-500); }
.pitem__tag { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: var(--green-100); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pitem__tag--amber { color: #8a5a00; background: var(--amber-100); }

/* ---------- process ---------- */
.psteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.pstep { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.pstep::before {
  counter-increment: s; content: "0" counter(s);
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; color: var(--amber-600);
}
.pstep h3 { margin: 8px 0 6px; font-size: 1rem; }
.pstep p { font-size: .88rem; color: var(--slate-700); margin: 0; }

/* ---------- money band ---------- */
.money { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.money__card { border-radius: 18px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.money__card--amber { background: var(--amber-100); border-color: #f3ddb4; }
.money__card h3 { font-size: 1.35rem; }
.money__big { font-size: 2rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.03em; }
.money__card p { font-size: .92rem; color: var(--slate-700); }

/* ---------- checklist ---------- */
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--slate-700); }
.check svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green); }
.section--navy .check li { color: #c3d3e4; }
.section--navy .check svg { color: var(--amber); }

/* ---------- quote form ---------- */
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .78rem; font-weight: 800; color: var(--slate-700); letter-spacing: .03em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd9e4; border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(22,57,92,.12); }
.field textarea { min-height: 110px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__note { font-size: .76rem; color: var(--slate-500); }
.form__status { font-size: .86rem; font-weight: 700; color: var(--green); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.foot { background: var(--navy-950); color: #9fb3c8; padding: 46px 0 30px; font-size: .86rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot img { width: 130px; background: #fff; padding: 7px 9px; border-radius: 8px; margin-bottom: 12px; }
.foot a { color: #c3d3e4; text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot__col { display: grid; gap: 7px; }
.foot__col strong { color: #fff; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.foot__legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 16px; font-size: .74rem; color: #7f95ab; }


@media (max-width: 980px) {
  .masthead__links { display: none; }
  .home-hero__in { grid-template-columns: 1fr; }
  .art { max-width: 520px; }
  .statband { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .psteps { grid-template-columns: repeat(2, 1fr); }
  .money { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .masthead__phone { display: none; }
  .psteps { grid-template-columns: 1fr; }
  .pitem { grid-template-columns: 90px 1fr; }
  .pitem__tag { grid-column: 2; justify-self: start; }
  .sec-head { display: block; }
}

/* ---------- mobile menu ---------- */
.masthead__menu { display: none; position: relative; }
.masthead__menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .84rem; font-weight: 800; color: var(--navy-900); background: #fff;
}
.masthead__menu summary::-webkit-details-marker { display: none; }
.masthead__menu summary::after { content: "▾"; font-size: .7rem; }
.masthead__menu[open] summary { border-color: var(--navy-900); }
.mmenu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80;
  min-width: 240px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgba(10,31,51,.45);
}
.mmenu a {
  display: block; padding: 10px 12px; border-radius: 9px;
  font-size: .9rem; font-weight: 700; color: var(--navy-900); text-decoration: none;
}
.mmenu a:hover, .mmenu a[aria-current="page"] { background: var(--paper); }
@media (max-width: 980px) {
  .masthead__menu { display: block; }
}

/* final responsive guards for the appended home components */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .masthead__cta .btn { display: none; }
  .mmenu { max-width: calc(100vw - 32px); }
}

/* ---------- light page hero (matches the home layout) ---------- */
.page-hero {
  background:
    radial-gradient(900px 420px at 86% 8%, rgba(245,165,36,.15), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  background-image:
    linear-gradient(rgba(10,31,51,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,51,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 88%);
  opacity: 1;
}
.page-hero h1 { color: var(--ink); }
.page-hero p { color: var(--slate-700); }
.page-hero .breadcrumb { color: var(--slate-500); }
.page-hero .breadcrumb a { color: var(--slate-600); }
.page-hero .breadcrumb a:hover { color: var(--amber-600); }

/* ---------- language switch ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .8rem; font-weight: 800; color: var(--slate-700); text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--navy-900); color: var(--navy-900); }

/* ---------- masthead: keep labels on one line ---------- */
.masthead__links a { white-space: nowrap; }

/* Malayalam typography runs wider — tighten the masthead */
html[lang="ml"] .masthead__in { gap: 14px; }
html[lang="ml"] .masthead__links a { font-size: .84rem; padding: 8px 9px; }
html[lang="ml"] .home-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
html[lang="ml"] .page-hero h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
html[lang="ml"] body { line-height: 1.75; }
@media (max-width: 1500px) { html[lang="ml"] .masthead__phone { display: none; } }
@media (max-width: 1320px) { html[lang="ml"] .masthead__cta .btn { display: none; } }

@media (max-width: 980px) {
  .home-hero__in { grid-template-columns: minmax(0, 1fr); }
}
html[lang="ml"] .home-hero h1,
html[lang="ml"] .page-hero h1,
html[lang="ml"] .home-hero__copy,
html[lang="ml"] .lede { overflow-wrap: break-word; }
@media (max-width: 620px) {
  html[lang="ml"] .home-hero h1 { font-size: clamp(1.65rem, 6.4vw, 2.4rem); }
  html[lang="ml"] .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
}

@media (max-width: 980px) {
  .quote { grid-template-columns: 1fr; }
  .money, .calc { grid-template-columns: 1fr; }
}
