/* =========================================================
   VOLTALINK LIMITED — main stylesheet
   Brand colours live in :root. Change them here and the whole
   site updates.
   ========================================================= */

:root {
  /* Colour: taken from the Voltalink logo */
  --navy: #0B1F4D;          /* logo blue: headings, dark sections, buttons */
  --navy-2: #13295E;        /* raised surfaces on navy */
  --charcoal: #33383D;      /* logo "LINK" grey: body text */
  --charcoal-dark: #2A2E33; /* footer */
  --amber: #F5A912;         /* logo lightning bolt: accents and key buttons */
  --amber-deep: #DC9408;    /* hover state for amber buttons */
  --steel: #59626C;         /* secondary text */
  --steel-light: #94A3C2;   /* muted text on navy */
  --concrete: #EEF1F5;      /* light section background */
  --white: #FFFFFF;
  --line: rgba(11, 31, 77, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);
  --success: #1F7A4A;
  --error: #B3261E;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 2.875rem);
  --step-4: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);

  /* Space and layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --radius: 3px;
  --header-h: 76px;
  --topbar-h: 40px;
  --amber-soft: #FFF5E0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.layers :focus-visible, .final-cta :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy); color: var(--white); padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.5rem;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 44px; padding: .5rem 1.1rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn .icon { width: 20px; height: 20px; fill: currentColor; }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: #06143A; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-deep); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); background: var(--white); color: var(--navy); }

.text-link {
  display: inline-block; margin-top: .75rem; margin-right: 1.25rem;
  color: var(--amber); font-weight: 600; text-underline-offset: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -12px rgba(11, 31, 77, .18); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.logo img { width: auto; height: 52px; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 2rem; }
.main-nav a {
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600;
  text-decoration: none; padding: .5rem 0; display: inline-block;
}
.main-nav > ul > li > a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.main-nav .nav-phone-mobile { display: none; }

.has-sub { position: relative; }
.sub-menu {
  position: absolute; top: 100%; left: -1rem; min-width: 240px;
  background: var(--white); padding: .5rem 0; box-shadow: 0 12px 32px rgba(11, 31, 77, .16);
  border-top: 3px solid var(--navy);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: .5rem 1.1rem; font-family: var(--font-body); font-size: 1rem; font-weight: 500; }
.sub-menu a:hover { background: var(--concrete); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone {
  display: flex; flex-direction: column; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.1;
}
.header-phone-label { font-family: var(--font-body); font-size: .8125rem; font-weight: 500; color: var(--steel); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--concrete);
  padding: clamp(2.5rem, 6vw, 5rem) 0 calc(clamp(3rem, 6vw, 5rem) + 60px);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-tagline { font-weight: 600; color: var(--steel); margin-bottom: 1.25rem; }
.hero h1 {
  font-size: var(--step-4); font-weight: 700; line-height: .95; letter-spacing: -0.02em;
  max-width: 13ch;
}
.hero-lead { font-size: var(--step-1); line-height: 1.5; max-width: 34em; margin-top: 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.25rem;
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(11, 31, 77, .25);
}
.hero-facts li { font-size: .9375rem; line-height: 1.35; max-width: 12em; }
.hero-facts strong {
  display: block; font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; line-height: 1.1;
}

/* Quote form */
.quote-form {
  background: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(11, 31, 77, .45);
}
.form-title { font-size: var(--step-2); }
.form-intro { color: var(--steel); margin: .4rem 0 1.4rem; font-size: 1rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: .6rem .8rem;
  border: 1.5px solid #C5CBD1; border-radius: var(--radius); background: var(--white);
  font-size: 1rem;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B1F4D' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem;
}
.field input:focus, .field select:focus { border-color: var(--navy); outline: 2px solid var(--amber); outline-offset: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -9999px; }
.quote-form .btn { margin-top: .5rem; }
.form-status { font-size: .9375rem; margin-top: .75rem; min-height: 1.2em; }
.form-status.is-success { color: var(--success); font-weight: 600; }
.form-status.is-error { color: var(--error); font-weight: 600; }
.form-alt { font-size: .9375rem; color: var(--steel); margin-top: .25rem; }
.form-alt a { color: var(--navy); font-weight: 600; }

/* Fence wires along the bottom of the hero */
.fence-lines { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 80px; }
.fence-lines .wires line { stroke: var(--steel); stroke-width: 1.5; opacity: .25; vector-effect: non-scaling-stroke; }
.fence-lines .pulses line {
  stroke: var(--amber); stroke-width: 3; vector-effect: non-scaling-stroke;
  stroke-dasharray: 160 1600; stroke-dashoffset: 160; opacity: 0;
}
.is-loaded .fence-lines .pulses line { animation: pulse 2.4s cubic-bezier(.5, 0, .3, 1) forwards; }
.is-loaded .fence-lines .pulses line:nth-child(2) { animation-delay: .15s; }
.is-loaded .fence-lines .pulses line:nth-child(3) { animation-delay: .3s; }
.is-loaded .fence-lines .pulses line:nth-child(4) { animation-delay: .45s; }
@keyframes pulse {
  0% { stroke-dashoffset: 160; opacity: 1; }
  90% { opacity: 1; }
  100% { stroke-dashoffset: -1500; opacity: 0; }
}

/* ---------- Clients ---------- */
.clients { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.clients-title {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--navy);
  text-align: center; margin-bottom: 1.75rem;
}
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.client-logos a {
  display: grid; place-items: center; width: 180px; height: 104px; padding: .9rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 6px 18px -12px rgba(11, 31, 77, .35); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.client-logos a:hover { transform: translateY(-3px); border-color: var(--amber); box-shadow: 0 12px 24px -14px rgba(11, 31, 77, .45); }
.client-logos img { max-height: 72px; max-width: 140px; width: auto; object-fit: contain; }

/* ---------- Photo strip ---------- */
.photo-strip { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--concrete); overflow: hidden; }
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.strip-viewport { overflow: hidden; }
.strip-track { display: flex; gap: 1rem; width: max-content; padding-left: var(--gutter); }
.strip-track li { flex: none; }
.strip-track img { height: 260px; width: auto; max-width: 420px; object-fit: cover; border-radius: 8px; background: #DDE2EA; }
.strip-track.is-running { animation: strip var(--strip-time, 60s) linear infinite; }
.strip-viewport:hover .strip-track { animation-play-state: paused; }
@keyframes strip { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--steel); margin-top: 1rem; font-size: var(--step-1); line-height: 1.5; }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Five layers (signature section) ---------- */
.layers { background: radial-gradient(circle at 100% 0%, rgba(245, 169, 18, .14), transparent 40%), var(--navy); color: var(--white); padding: var(--section) 0; }
.layers-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.layers h2, .layers h3, .final-cta h2 { color: var(--white); }
.layers-head h2 { font-size: var(--step-3); max-width: 14ch; }
.layers-head p { color: #C8D1E3; font-size: var(--step-1); line-height: 1.5; }

.layers-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.layer-list { border-top: 1px solid var(--line-dark); }
.layer-tab {
  display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline; gap: .5rem;
  width: 100%; padding: 1.15rem 0; background: none; border: 0; border-bottom: 1px solid var(--line-dark);
  color: var(--steel-light); text-align: left; cursor: pointer; transition: color .2s;
}
.layer-tab:hover { color: var(--white); }
.layer-tab[aria-selected="true"] { color: var(--white); border-bottom-color: transparent; }
.layer-num { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.layer-tab[aria-selected="true"] .layer-num { color: var(--amber); }
.layer-name { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1; white-space: nowrap; }
.layer-svc { font-size: .9375rem; text-align: right; }
.layer-panel {
  padding: 0 0 1.5rem 3rem; border-bottom: 1px solid var(--line-dark);
  color: #D6DDEB; animation: panel-in .3s ease;
}
.layer-panel p { max-width: 34em; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Plan drawing */
.plan { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 1.5rem); }
.plan-svg { width: 100%; height: auto; border-radius: var(--radius); }
.plan figcaption { color: var(--steel-light); font-size: .9375rem; margin-top: .9rem; }
.plan-ground { fill: #0F2558; }
.plan-wall { fill: none; stroke: #4F6593; stroke-width: 8; }
.plan-drive { fill: #16316B; }
.plan-house { fill: #1A376F; stroke: #4F6593; stroke-width: 3; }
.plan-room { stroke: #33508A; stroke-width: 2; }
.plan-lawn { fill: #173A4F; }
.plan-house-label { fill: #8496BC; font-family: var(--font-display); font-size: 18px; font-weight: 600; text-anchor: middle; }

.plan-layer { opacity: .28; transition: opacity .35s ease; }
.plan-layer * { transition: stroke .35s, fill .35s; }
.plan-layer .plan-label { opacity: 0; transition: opacity .35s; }

/* Neutral (inactive) styling */
.fence-line { fill: none; stroke: var(--steel-light); stroke-width: 3; stroke-dasharray: 10 6; }
.fence-posts circle { fill: var(--steel-light); }
.device { fill: var(--steel-light); }
.gate-leaf { stroke: var(--steel-light); stroke-width: 6; stroke-linecap: round; }
.sensor circle { fill: var(--steel-light); }
.sensor path { fill: none; stroke: var(--steel-light); stroke-width: 2; }
.car { fill: none; stroke: var(--steel-light); stroke-width: 2.5; }
.cone { fill: var(--steel-light); fill-opacity: .15; }
.cam { fill: var(--steel-light); }
.panels rect { fill: none; stroke: var(--steel-light); stroke-width: 2; }
.cable { fill: none; stroke: var(--steel-light); stroke-width: 2; stroke-dasharray: 4 4; }
.plan-label { fill: var(--white); font-family: var(--font-body); font-size: 15px; font-weight: 600; text-anchor: middle; paint-order: stroke; stroke: #0B1F4D; stroke-width: 4px; }
.plan-label-sm { font-size: 11px; stroke-width: 3px; }

/* Active layer */
.plan-svg[data-active="perimeter"] [data-layer="perimeter"],
.plan-svg[data-active="entry"] [data-layer="entry"],
.plan-svg[data-active="detection"] [data-layer="detection"],
.plan-svg[data-active="surveillance"] [data-layer="surveillance"],
.plan-svg[data-active="power"] [data-layer="power"] { opacity: 1; }

.plan-svg [data-layer].is-active .plan-label { opacity: 1; }
.plan-svg [data-layer].is-active .fence-line,
.plan-svg [data-layer].is-active .gate-leaf,
.plan-svg [data-layer].is-active .sensor path,
.plan-svg [data-layer].is-active .car,
.plan-svg [data-layer].is-active .panels rect,
.plan-svg [data-layer].is-active .cable { stroke: var(--amber); }
.plan-svg [data-layer].is-active .fence-posts circle,
.plan-svg [data-layer].is-active .device,
.plan-svg [data-layer].is-active .sensor circle,
.plan-svg [data-layer].is-active .cam { fill: var(--amber); }
.plan-svg [data-layer].is-active .cone { fill: var(--amber); fill-opacity: .2; }
.plan-svg [data-layer].is-active .fence-line { animation: current 1.2s linear infinite; }
@keyframes current { to { stroke-dashoffset: -32; } }

/* ---------- Services ---------- */
.services { padding: var(--section) 0; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.5rem; }
.service a { display: block; text-decoration: none; position: relative; }
.service a > img { transition: transform .35s ease; }
.service .svc-icon { position: relative; margin: -26px 0 0 1rem; z-index: 1; }
.service .svc-icon + h3 { margin-top: .6rem; }
.service a:hover > img { transform: scale(1.03); }
.service a > img { will-change: transform; }
.svc-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--amber); border: 4px solid var(--white); box-shadow: 0 6px 14px -6px rgba(11, 31, 77, .45);
}
.svc-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--concrete); border-radius: var(--radius); }
.service h3 { margin-top: 1rem; font-size: 1.5rem; }
.service p { color: var(--steel); margin-top: .35rem; font-size: 1rem; line-height: 1.5; }
.service a:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--amber); }

/* ---------- Projects ---------- */
.projects { background: var(--concrete); padding: var(--section) 0; }
.project-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; }
.project { background: var(--white); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 42% 1fr; }
.project-lg { grid-row: span 3; grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
.project img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; background: #DDE2EA; }
.project-lg img { min-height: 360px; }
.project-body { padding: 1.25rem 1.4rem 1.4rem; align-self: center; }
.project-place { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--steel); }
.project-place::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .5rem; background: var(--amber); border: 2px solid var(--navy); border-radius: 50%; }
.project h3 { font-size: 1.5rem; margin-top: .3rem; }
.project-body p:last-child { color: var(--steel); font-size: 1rem; line-height: 1.5; margin-top: .4rem; }
.project-lg h3 { font-size: var(--step-2); }

/* ---------- Process ---------- */
.process { padding: var(--section) 0; background: var(--amber-soft); }
.process .step::before { box-shadow: 0 0 0 6px var(--amber-soft); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 4.25rem; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0; z-index: 1;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  background: var(--amber); border: 2px solid var(--navy); border-radius: 50%;
}
.step::after { content: ""; position: absolute; top: 1.5rem; left: 3rem; right: -1.5rem; height: 2px; background: var(--navy); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.375rem; }
.step p { color: var(--steel); font-size: 1rem; line-height: 1.5; margin-top: .5rem; }

/* ---------- Standards ---------- */
.standards { padding: 0 0 var(--section); }
.standards-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.standards-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--concrete); }
.standards-list { margin-top: 2rem; display: grid; gap: 1.75rem; }
.standards-list div { padding-left: 1.25rem; border-left: 4px solid var(--amber); }
.standards-list dt { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.standards-list dd { color: var(--steel); margin-top: .3rem; max-width: 34em; }

/* ---------- FAQ ---------- */
.faq { background: var(--concrete); padding: var(--section) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
.faq-head p { color: var(--steel); margin-top: 1rem; }
.faq-head a { color: var(--navy); font-weight: 600; }
.faq-list { border-top: 2px solid var(--navy); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.25rem 3rem 1.25rem 0;
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
  transform: rotate(45deg); transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-list details p { padding: 0 3rem 1.5rem 0; color: var(--steel); max-width: 40em; }

/* ---------- Final CTA ---------- */
.final-cta { background: radial-gradient(circle at 85% 20%, rgba(245, 169, 18, .22), transparent 45%), var(--navy); color: var(--white); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.final-cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: center; }
.final-cta h2 { font-size: var(--step-3); font-weight: 700; max-width: 17ch; }
.final-cta p { font-size: var(--step-1); color: #C8D1E3; margin-top: 1rem; max-width: 30em; line-height: 1.5; }
.cta-phone {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 1; text-decoration: none;
  border-bottom: 4px solid var(--amber); padding-bottom: .25rem;
}
.final-cta-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 5px solid var(--amber); background: var(--charcoal-dark); color: #C8D1E3; padding: clamp(3.5rem, 6vw, 5rem) 0 0; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand img { height: 64px; width: auto; background: var(--white); padding: 8px 14px; border-radius: var(--radius); }
.footer-brand p { margin-top: 1.25rem; max-width: 24em; }
.social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.social a:hover { background: var(--amber); border-color: var(--amber); }
.social svg { width: 18px; height: 18px; fill: var(--white); }
.social a:hover svg { fill: var(--charcoal-dark); }
.footer-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); margin-bottom: 1rem; }
.footer-links li + li { margin-top: .5rem; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--amber); }
.footer-contact { font-style: normal; }
.footer-contact p + p { margin-top: .9rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem;
  border-top: 1px solid var(--line-dark); font-size: .875rem; color: var(--steel-light);
}
.footer-bottom a { color: var(--steel-light); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* =========================================================
   Inner pages (services and others)
   ========================================================= */
.page-hero { background: var(--concrete); padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem); font-weight: 700; line-height: .98; max-width: 14ch; }
.page-lead { font-size: var(--step-1); line-height: 1.5; margin-top: 1.25rem; max-width: 32em; }
.page-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #DDE2EA; }
.page-hero-simple .page-lead { max-width: 40em; }

.breadcrumb { font-size: .9375rem; color: var(--steel); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--steel); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span[aria-current] { color: var(--navy); font-weight: 600; }

.svc-detail { padding: var(--section) 0 calc(var(--section) * .6); }
.svc-detail-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.svc-intro p { font-size: var(--step-2); font-family: var(--font-display); font-weight: 500; line-height: 1.3; color: var(--navy); }
.svc-lists { display: grid; gap: 2.5rem; }
.svc-lists h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.check-list { display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230B1F4D' stroke-width='2.2'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { padding: .4rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .9375rem; }

.svc-steps { padding: 0 0 var(--section); }
.svc-steps h2 { margin-bottom: 1.75rem; }
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: ms; }
.mini-steps li { counter-increment: ms; padding-top: 1rem; border-top: 3px solid var(--navy); color: var(--steel); line-height: 1.5; }
.mini-steps li::before { content: counter(ms); display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--amber); line-height: 1; margin-bottom: .5rem; }
.mini-steps strong { color: var(--navy); }

.related { padding-top: var(--section); }
.service-grid-3 { grid-template-columns: repeat(3, 1fr); }

.page-book { background: radial-gradient(circle at 10% 90%, rgba(245, 169, 18, .18), transparent 40%), var(--navy); color: var(--white); padding: var(--section) 0; }
.page-book-grid { display: grid; grid-template-columns: 1fr minmax(0, 32rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.page-book h2 { color: var(--white); font-size: var(--step-3); }
.page-book-copy > p { color: #C8D1E3; font-size: var(--step-1); line-height: 1.5; margin: 1rem 0 2rem; max-width: 28em; }
.page-book .cta-phone { color: var(--white); }
.page-book-note { color: var(--steel-light) !important; font-size: 1rem !important; margin-top: 1rem !important; }
.page-book .quote-form { color: var(--charcoal); }
.page-book .quote-form .form-title { color: var(--navy); font-size: var(--step-2); }
.page-book :focus-visible { outline-color: var(--amber); }

@media (max-width: 900px) {
  .page-hero-grid, .svc-detail-grid, .page-book-grid { grid-template-columns: 1fr; }
  .mini-steps { grid-template-columns: 1fr 1fr; }
  .service-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mini-steps { grid-template-columns: 1fr; }
}

/* Projects page */
.projects-page { padding: var(--section) 0; }
.project-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.project-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #DDE2EA; }
.project-card-body { padding: 1.5rem 1.6rem 1.75rem; }
.project-card h2 { font-size: var(--step-2); margin-top: .3rem; }
.project-card-body > p:not(.project-place) { color: var(--steel); margin-top: .6rem; line-height: 1.55; }
.project-tag { display: inline-block; margin-top: 1rem; padding: .35rem .85rem; border: 1.5px solid var(--navy); border-radius: 999px; font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--navy); }
.project-tag:hover { background: var(--navy); color: var(--white); }

/* About page */
.about-story { padding: var(--section) 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-copy h2 { margin-bottom: 1.25rem; }
.about-copy p { font-size: 1.125rem; max-width: 36em; }
.about-copy p + p { margin-top: 1rem; }
.about-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #DDE2EA; }
.about-values { background: var(--concrete); padding: var(--section) 0; }
.values-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.about-services { padding: var(--section) 0 calc(var(--section) * .6); }
.about-services h2 { margin-bottom: 1.5rem; }
.about-svc-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.about-svc-list a {
  display: block; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--navy); text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.about-svc-list a:hover { border-color: var(--navy); background: var(--concrete); }
.about-clients { border-top: 1px solid var(--line); }

/* Contact page */
.contact-section { padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(0, 32rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-card { padding: 1.5rem; background: var(--concrete); border-radius: var(--radius); border-top: 4px solid var(--amber); }
.contact-card h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.contact-card a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.contact-card address { font-style: normal; }
.contact-note { color: var(--steel); font-size: .9375rem; margin-top: .5rem; }
.map-section iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.3); }

/* Legal pages */
.legal { padding: var(--section) 0; }
.legal-body { max-width: 44rem; }
.legal-body h2 { font-size: var(--step-2); margin: 2.25rem 0 .75rem; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p + p { margin-top: .75rem; }
.legal-body a { color: var(--navy); font-weight: 600; }

@media (max-width: 900px) {
  .project-cards, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .values-grid, .about-svc-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .contact-cards, .values-grid { grid-template-columns: 1fr; }
}

/* ---------- Top info bar ---------- */
.topbar { background: var(--navy); color: #D6DDEB; font-size: .875rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--topbar-h); }
.topbar-info { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; }
.topbar-info li { display: flex; align-items: center; gap: .45rem; }
.topbar-info svg { width: 16px; height: 16px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.topbar .sep { opacity: .4; margin: 0 .25rem; }
.topbar-info a { white-space: nowrap; }
.topbar-social { display: flex; gap: .35rem; }
.topbar-social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; transition: background-color .2s; }
.topbar-social a:hover { background: rgba(255, 255, 255, .12); }
.topbar-social svg { width: 15px; height: 15px; fill: currentColor; }
.topbar :focus-visible { outline-color: var(--amber); }

/* ---------- Hero decoration ---------- */
.hero-swoosh {
  position: absolute; right: -140px; top: -60px; width: 640px; height: 640px; pointer-events: none;
  fill: none; stroke: var(--navy); stroke-width: 14; stroke-linecap: round; opacity: .06;
}
.hero-grid { position: relative; }

/* ---------- Heading accent ---------- */
.section-head h2::after, .layers-head h2::after, .faq-head h2::after, .standards-copy h2::after,
.strip-head h2::after, .about-copy h2::after, .about-values h2::after, .svc-steps h2::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: .9rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), #F28C12);
}

/* ---------- Gallery page ---------- */
.gallery-section { padding: var(--section) 0; }
.gallery-grid { columns: 3 280px; column-gap: 1rem; }
.gallery-grid li { break-inside: avoid; margin-bottom: 1rem; }
.gallery-grid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.gallery-grid img { width: 100%; height: auto; transition: transform .35s ease; }
.gallery-grid button:hover img { transform: scale(1.04); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 14, 36, .88); }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 6px; }
.lightbox button {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--navy); font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 2rem 4.5rem; min-height: 3rem; }
  .step::after { top: 3rem; bottom: 0; left: 1.5rem; right: auto; width: 2px; height: auto; }
  .step:last-child { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; --topbar-h: 36px; }
  .topbar-info li:nth-child(1), .topbar-info li:nth-child(2) { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero-swoosh { display: none; }
  .strip-track img { height: 200px; }
  .logo img { height: 40px; }
  .menu-toggle {
    display: grid; place-items: center; width: 46px; height: 46px;
    background: none; border: 2px solid var(--navy); border-radius: var(--radius); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

  .main-nav {
    position: fixed; inset: calc(var(--header-h) + var(--topbar-h)) 0 0 0; background: var(--white);
    padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { font-size: 1.625rem; padding: .9rem 0; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 1rem; min-width: 0; }
  .sub-menu a { padding: .4rem 0; }
  .main-nav .nav-phone-mobile { display: block; margin-top: 1.5rem; font-size: 1.375rem; }
  .header-actions .btn { display: none; }

  .hero-grid, .layers-head, .layers-grid, .standards-grid, .faq-grid, .final-cta-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 15ch; }
  .plan { position: static; order: -1; }
  .project-grid { grid-template-columns: 1fr; }
  .project-lg { grid-row: auto; }
  .project-lg img { aspect-ratio: 16 / 10; min-height: 0; }
}

@media (max-width: 600px) {
  .topbar .sep, .topbar-info li:nth-child(3) a + .sep + a { display: none; }
  .hero-facts { grid-template-columns: 1fr; gap: 1rem; }
  .hero-facts li { max-width: none; }
  .hero-facts strong { display: inline; font-size: 1.375rem; margin-right: .35rem; }
  .hero-ctas .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .service h3 { font-size: 1.25rem; margin-top: .7rem; }
  .service p { font-size: .9375rem; }
  .client-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; flex: none; width: 100%; }
  .clients-title { max-width: none; }
  .project { grid-template-columns: 1fr; }
  .project img { aspect-ratio: 4 / 3; min-height: 0; }
  .layer-svc { display: none; }
  .layer-tab { grid-template-columns: 2.25rem 1fr; }
  .layer-panel { padding-left: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients-inner { gap: 1.25rem; }
  .final-cta-buttons .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
