/* ==========================================================================
   Maax Electrical Services Inc. — Redesign stylesheet
   Brand: navy (#101c42) + emerald green (#43bd8e)
   ========================================================================== */

@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/inter-var.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/plus-jakarta-sans-var.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
:root {
  --navy-900: #0a1230;
  --navy-800: #101c42;
  --navy-700: #17285c;
  --navy-600: #223a7a;
  --green: #43bd8e;
  --green-dark: #35ab7d;
  --green-light: #43bd8e;
  --green-text: #0e7a52;   /* same accent, dark enough for text on light backgrounds (4.9:1) */
  --ink: #141b2e;
  --muted: #5d6b83;
  --line: #e4eaf1;
  --bg: #ffffff;
  --bg-alt: #f3f7fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(16, 28, 66, .06);
  --shadow: 0 18px 48px -20px rgba(16, 28, 66, .30);
  --maxw: 1840px;
  --header-h: 78px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy-800);
  font-weight: 800;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }

/* Visually hidden, still read by screen readers. */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--green-text);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--green-light); }

.section-head { max-width: 680px; margin: 0 auto 52px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #05231a; box-shadow: 0 10px 26px -10px rgba(67, 189, 142, .8); }
.btn-primary:hover { background: var(--green-text); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn-outline:hover { border-color: var(--green); color: var(--green-text); }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #eaf0fa;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 700; }
.topbar .dot { color: var(--green-light); margin: 0 8px; }
.topbar .tb-emergency { display: flex; align-items: center; gap: 7px; }
.topbar .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 0 rgba(95, 211, 166, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 211, 166, .7); }
  70% { box-shadow: 0 0 0 9px rgba(95, 211, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 211, 166, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
/* Frosted-glass backdrop lives on a pseudo-element. Putting backdrop-filter on
   .site-header itself would make the header the containing block for the
   fixed-position mobile nav panel, collapsing the open menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; flex: none; }
.brand-logo { height: 52px; width: auto; flex: none; }

.nav ul { display: flex; align-items: center; gap: 4px; }
/* Scoped to the link list ONLY. Using `.nav a` here also matched the buttons in
   .nav-mobile-cta and overrode their colours (navy text on a navy button). */
.nav ul a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-800);
  padding: 10px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav ul a:hover { color: var(--green-text); background: var(--bg-alt); }
.nav ul a.active { color: var(--green-text); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; color: var(--navy-800);
}
.header-phone svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--bg-alt); color: var(--green-dark); }
.header-phone small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120; /* stays tappable above the open nav panel */
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 11px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .25s; }
.nav-toggle span + span { margin-top: 5px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(100deg,
      rgba(7,14,38,.97) 0%,
      rgba(7,14,38,.94) 40%,
      rgba(9,17,46,.84) 66%,
      rgba(12,21,54,.62) 100%),
    url("../img/petro-canada-langdon-01.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 88% 18%, rgba(67,189,142,.35), transparent 60%);
}
.hero-inner { position: relative; padding: clamp(64px, 11vw, 132px) 0 clamp(72px, 10vw, 120px); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: var(--green-light); }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: #eaf0fa; max-width: 620px; margin-bottom: 30px; text-shadow: 0 1px 3px rgba(4,9,26,.45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero-badges li { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: #e8eef8; font-weight: 500; text-shadow: 0 1px 3px rgba(4,9,26,.45); }
.hero-badges svg { width: 20px; height: 20px; color: var(--green-light); flex: none; }

/* ---------- Feature strip ---------- */
.feature-strip { background: var(--navy-800); color: #fff; }
.feature-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 34px 26px;
  border-left: 1px solid rgba(255,255,255,.10);
}
.feature:first-child { border-left: 0; padding-left: 0; }
.feature:last-child { padding-right: 0; }
.feature svg { width: 42px; height: 42px; color: var(--green-light); flex: none; }
.feature h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.feature p { color: #b9c6dc; font-size: .92rem; margin: 0; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(67,189,142,.16), rgba(67,189,142,.06));
  color: var(--green-dark);
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 700; color: var(--green-text); font-size: .9rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .18s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Requirements list inside job cards ---------- */
.card-req { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.card-req h4 {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--green-text); margin: 0 0 10px;
}
.card-req ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card-req li { position: relative; padding-left: 17px; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.card-req li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.card-req li strong { color: var(--navy-800); }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split-media .badge-float {
  position: absolute; right: -12px; bottom: -20px;
  background: var(--green); color: #05231a;
  border-radius: 14px; padding: 16px 20px; text-align: center;
  box-shadow: var(--shadow);
}
.split-media .badge-float strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.split-media .badge-float span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.split-media .badge-float--navy { background: var(--navy-800); color: #fff; left: -12px; right: auto; top: 24px; bottom: auto; }

.checklist { display: grid; gap: 14px; margin: 24px 0 30px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 3px; }
.checklist strong { color: var(--navy-800); }

/* ---------- Stats ---------- */
.stats { background: var(--navy-800); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3rem); color: var(--green-light); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: #b9c6dc; font-size: .95rem; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.filters button {
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  transition: .15s;
}
.filters button:hover { color: var(--navy-800); border-color: var(--navy-600); }
.filters button.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; cursor: zoom-in; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 14px;
  background: linear-gradient(to top, rgba(10,18,48,.88), transparent);
  color: #fff; font-weight: 600; font-size: .9rem;
  opacity: 0; transition: opacity .25s;
}
.gallery-item:hover figcaption { opacity: 1; }
.gallery-item.is-hidden { display: none; }

/* ---------- Gallery sub-section (e.g. a named site) ---------- */
.gallery-group { margin-top: 38px; }
.gallery-group.is-hidden { display: none; }
.gallery-group-head {
  display: block;
  margin: 0 0 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.gallery-group-head h2, .gallery-group-head h3 {
  margin: 0 0 5px; font-size: 1.5rem; letter-spacing: -.01em;
}
.gallery-group-head p { margin: 0; color: var(--muted); font-size: .95rem; }

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0; padding: 34px 0;
  text-align: center; color: var(--muted); font-size: .98rem;
}
@media (min-width: 1081px) {
  .gallery-group .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery-group .gallery-item:first-child:last-child { grid-column: auto; grid-row: auto; }
}

/* ---------- Image lightbox ---------- */
html.lightbox-open, html.lightbox-open body { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(5, 11, 30, .94);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s; }
.lightbox figure {
  margin: 0; max-width: min(1100px, 92vw); max-height: 86vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  background: #0b1430;
}
.lightbox figcaption {
  color: #eaf0fa; font-family: var(--font-display); font-weight: 600;
  font-size: .95rem; text-align: center;
}
.lightbox-count {
  position: absolute; bottom: 22px; left: 0; right: 0;
  text-align: center; color: #9fb0d0; font-size: .82rem; letter-spacing: .04em;
}
.lightbox button {
  position: absolute; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(10, 18, 48, .72); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.lightbox button:hover { background: var(--green); border-color: transparent; }
.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox[data-single="true"] .lightbox-prev,
.lightbox[data-single="true"] .lightbox-next { display: none; }

@media (max-width: 640px) {
  .lightbox { padding: 14px; }
  .lightbox button { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
}

/* ---------- Booking page ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--green); color: #05231a;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  margin-bottom: 14px;
}
.step h2, .step h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.notice-card {
  background: var(--navy-800); color: #dbe4f2;
  border-radius: var(--radius-sm); padding: 22px 24px;
}
.notice-card strong {
  display: block; color: #fff; font-family: var(--font-display);
  font-size: 1.05rem; margin-bottom: 6px;
}
.notice-card p { margin: 0; font-size: .92rem; }
.notice-card a { color: var(--green-light); font-weight: 600; }

.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input[type="checkbox"] { width: auto; margin: 3px 0 0; flex: none; }
.check-row label {
  margin: 0; font-weight: 500; font-size: .9rem; color: var(--muted);
  font-family: var(--font); line-height: 1.5;
}

.field input[type="file"] { padding: 10px 12px; font-size: .88rem; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  padding: 8px 14px; margin-right: 12px; border: 0; border-radius: 7px;
  background: var(--navy-800); color: #fff;
}

.form-note.is-error { color: #c0392b; font-weight: 600; }

/* Date picker (Monday-Friday only) */
.datepicker { position: relative; }
.dp-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 13px 15px; font: inherit; font-size: .95rem;
  text-align: left; color: var(--ink); background: #fbfdff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.dp-toggle:hover { border-color: var(--green); }
.dp-toggle:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(67,189,142,.14); }
.dp-value.is-placeholder { color: #8a94a8; }
.dp-icon { width: 18px; height: 18px; color: #6b7790; flex: none; }
.dp-panel {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;
  width: 292px; max-width: calc(100vw - 52px); padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(16,28,66,.45);
}
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-head strong { font-family: var(--font-display); font-size: .92rem; color: var(--navy-800); }
.dp-prev, .dp-next {
  width: 30px; height: 30px; padding: 0; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--navy-800);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
}
.dp-prev:disabled, .dp-next:disabled { opacity: .3; cursor: default; }
.dp-weekdays, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-weekdays span {
  text-align: center; padding: 4px 0; font-size: .66rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: #8a94a8;
}
.dp-day {
  height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: .84rem; color: var(--navy-800); cursor: pointer;
}
.dp-day:hover { background: #eaf7f1; }
.dp-day:disabled { color: #c6cdd9; cursor: default; background: transparent; }
.dp-day.is-selected { background: var(--green); color: #05231a; font-weight: 700; }
.dp-grid > span { height: 34px; }

.photo-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.photo-preview:empty { display: none; }
.photo-thumb {
  position: relative; width: 92px; height: 72px; border-radius: 8px;
  overflow: hidden; border: 1px solid var(--line); background: #f4f6fa;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: rgba(10, 18, 48, .78);
  color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
}
.photo-thumb span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px;
  background: rgba(10, 18, 48, .72); color: #fff; font-size: .62rem;
  text-align: center;
}

/* ---------- Certification strip (About > Credentials) ---------- */
.cert-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin: 0 0 44px;
}
.cert {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.cert svg { width: 15px; height: 15px; color: var(--green-text); flex: none; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column;
}
.quote .stars { display: flex; gap: 3px; color: #f5b301; margin-bottom: 16px; }
.quote .stars svg { width: 18px; height: 18px; }
.quote blockquote { margin: 0 0 22px; font-size: 1.02rem; color: #33405b; }
.quote .who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote .who .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-800); color: #fff;
  font-family: var(--font-display); font-weight: 700;
}
.quote .who b { display: block; color: var(--navy-800); font-family: var(--font-display); }
.quote .who span { font-size: .85rem; color: var(--muted); }

/* Google reviews bar under the home-page testimonials */
.reviews-cta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 22px;
  margin-top: 42px; padding: 26px 32px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.reviews-score { display: flex; align-items: center; gap: 18px; }
.reviews-score .num {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  line-height: 1; color: var(--navy-800); letter-spacing: -.03em;
}
.reviews-score .meta { display: flex; flex-direction: column; gap: 5px; }
.reviews-score .stars { display: flex; gap: 3px; color: #f5b301; }
.reviews-score .stars svg { width: 17px; height: 17px; }
.reviews-score .meta small { color: var(--muted); font-size: .88rem; line-height: 1.3; }
@media (max-width: 560px) {
  .reviews-cta { padding: 22px; }
  .reviews-cta .btn { width: 100%; }
}

/* ---------- Clients ---------- */
.clients { background: #fff; }
.clients-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 54px; }
.clients-grid img { height: 46px; width: auto; filter: grayscale(1); opacity: .6; transition: .25s; }
.clients-grid img:hover { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-800);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 100% 0%, rgba(67,189,142,.35), transparent 55%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { color: #c6d2e6; margin: 0; max-width: 520px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: .95rem; color: var(--ink);
  background: #fbfdff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(67,189,142,.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

/* Bot trap: off-screen decoy field. Bots fill it, people never see it. */
.hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; }

/* Cloudflare Turnstile challenge (only present when switched on) */
.cf-slot { margin: 0 0 16px; min-height: 0; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--navy-800); color: #fff; padding: clamp(48px, 7vw, 84px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 90% 10%, rgba(67,189,142,.30), transparent 55%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #dbe4f2; max-width: 640px; margin: 0; font-size: 1.06rem; }
.breadcrumb { font-size: .85rem; color: #93a4c2; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--green-light); }

/* ---------- Action / contact info blocks ---------- */
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); color: var(--green-dark); flex: none; }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item b { display: block; font-family: var(--font-display); color: var(--navy-800); }
.info-item p, .info-item a { color: var(--muted); font-size: .95rem; margin: 0; }
.info-item a:hover { color: var(--green-text); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); line-height: 0; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0cc; padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a:hover { color: var(--green-light); }
.footer-brand img { height: 48px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #9fb0cc; }
.footer-links li { margin-bottom: 10px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; transition: .18s; }
.socials a:hover { background: var(--green); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .85rem; color: #8497b6;
}
.footer-bottom a { color: #a9b8d4; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #05231a; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .header-cta .btn-outline-desktop { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw);
    background: #fff; box-shadow: -20px 0 60px -20px rgba(10,18,48,.4);
    padding: 90px 22px 22px; transform: translateX(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
    z-index: 110; overflow-y: auto; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; opacity: 1; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav ul a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav .nav-mobile-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
  /* z-index 99 keeps the scrim BELOW the sticky header (z-index 100) so the
     open nav panel is never covered and stays clickable */
  .scrim { position: fixed; inset: 0; background: rgba(10,18,48,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 99; }
  .scrim.open { opacity: 1; visibility: visible; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-strip .container { grid-template-columns: 1fr; }
  .feature { border-left: 0; border-top: 1px solid rgba(255,255,255,.10); padding: 24px 0; }
  .feature:first-child { border-top: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

/* 941-1099px: the desktop nav is shown, but there is not yet room for the
   phone block as well. Previously the flexbox stole the space from the logo
   and squashed it (measured 15% distortion at 980px). Hide the duplicate
   phone block here - the number is still in the top bar and the mobile menu. */
@media (min-width: 941px) and (max-width: 1099px) {
  .header-phone { display: none; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta .btn-primary { padding: 11px 16px; font-size: .85rem; }
  .split-media .badge-float--navy { display: none; }
}
@media (max-width: 440px) {
  .gallery { grid-template-columns: 1fr; }
}
.nav-mobile-cta { display: none; }

/* ---------- Service pages: FAQ, work tiles, related links ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.4; padding: 18px 34px 18px 0; position: relative; list-style: none; color: var(--navy-800); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.45rem; line-height: 1; color: var(--green-text); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { color: var(--green-text); }
.faq-a { padding: 0 0 20px; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.faq-a p { margin: 0; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-tile { display: block; border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.work-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-tile span { display: block; padding: 13px 16px; font-size: .86rem; font-weight: 600; color: var(--navy-800); }

.also { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; align-items: baseline; font-size: .92rem; color: var(--muted); }
.also b { color: var(--navy-800); font-family: var(--font-display); }
.also a { color: var(--green-text); font-weight: 600; }

@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------- Privacy policy page ---------- */
.policy { max-width: 820px; margin: 0 auto; color: var(--muted); }
.policy h2 { color: var(--navy-800); font-size: 1.22rem; margin: 36px 0 10px; }
.policy ul { padding-left: 22px; display: grid; gap: 8px; margin: 8px 0 14px; }
.policy-updated { display: inline-block; background: #f2f7f2; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: .88rem; color: var(--navy-800); margin-bottom: 8px; }
.policy-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: .92rem; }
.policy-table th, .policy-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy-table thead th { background: var(--navy-800); color: #fff; font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.policy-table td { color: var(--muted); line-height: 1.55; }
.policy-table td strong { color: var(--navy-800); }
.policy-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cookie notice bar ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; max-width: 980px; margin: 0 auto; animation: cookieIn .35s ease; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cookie-bar p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.cookie-bar a { color: var(--green-text); font-weight: 600; }
.cookie-actions { flex-shrink: 0; }
.cookie-bar .btn { white-space: nowrap; }
.cookie-bar.hide { opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s; }
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
}
