/* Building Energy Solution: site styles */

:root {
  --bg: #F5F4EF;
  --surface: #FCFBF8;
  --surface-2: #E9ECE8;
  --text: #13212E;
  --muted: #5B6772;
  --accent: #1E7A4B;
  --accent-rgb: 30, 122, 75;
  --accent-dark: #17633C;
  --accent-2: #0F2A44;
  --accent-2-rgb: 15, 42, 68;
  --line: #D6DAD4;
  --on-dark: #F5F4EF;
  --on-dark-muted: #B9C4CE;

  /* EPC rating bands, slightly muted */
  --band-a: #1E7A4B; --band-b: #2E9A55; --band-c: #8CBF4A; --band-d: #E9C33A;
  --band-e: #E9A05A; --band-f: #DB7A34; --band-g: #C8443C;
  --bands: linear-gradient(90deg,
    var(--band-a) 0 14.28%, var(--band-b) 0 28.57%, var(--band-c) 0 42.85%,
    var(--band-d) 0 57.14%, var(--band-e) 0 71.42%, var(--band-f) 0 85.71%, var(--band-g) 0 100%);

  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Outfit", var(--font);
  --tshadow: 0 1px 2px rgba(5, 12, 20, .55), 0 3px 14px rgba(5, 12, 20, .45);

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(19, 33, 46, .05), 0 12px 32px rgba(19, 33, 46, .07);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --topbar-h: 38px;
  --nav-h: 76px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent-2); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Eyebrow with the A–G ruler (signature) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 500; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 42px; height: 6px; border-radius: 3px; background: var(--bands); flex: none;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--on-dark-muted); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.on-dark .lead { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  text-shadow: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .28); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--ghost-light { border-color: rgba(245, 244, 239, .45); color: var(--on-dark); background: rgba(15, 42, 68, .25); }
.btn--ghost-light:hover { border-color: var(--on-dark); background: rgba(15, 42, 68, .45); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500; color: var(--accent); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header (sticky, phone + email always visible) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--accent-2); color: var(--on-dark); font-size: .92rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--topbar-h); }
.topbar__meta { color: var(--on-dark-muted); display: flex; gap: 18px; white-space: nowrap; min-width: 0; overflow: hidden; }
.topbar__contact a { white-space: nowrap; }
@media (max-width: 1240px) { .topbar__meta span + span { display: none; } }
@media (max-width: 1060px) { .topbar__meta { display: none; } .topbar .container { justify-content: flex-end; } }
.topbar__contact { display: flex; align-items: center; gap: 22px; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.topbar__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar__contact svg { width: 16px; height: 16px; color: var(--band-c); }

.navbar {
  background: rgba(245, 244, 239, .92); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
}
.scrolled .navbar { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(19, 33, 46, .06); }
.navbar .container { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 50px; height: auto; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; letter-spacing: .04em; text-transform: uppercase; }
.brand__sub { font-family: var(--font-head); font-size: .66rem; letter-spacing: .5em; text-transform: uppercase; margin-top: 6px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  padding: 10px 14px; border-radius: 999px; color: var(--text); transition: background-color .2s ease;
}
.nav a:not(.btn):hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { margin-left: 10px; }

.header-actions { display: none; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px;
  border: 0; background: transparent; color: var(--text); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--call, .icon-btn--wa { color: var(--accent); }
@media (max-width: 440px) { .header-actions .icon-btn[href^="mailto:"] { display: none; } }
.menu-toggle .bar { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle .bars { display: grid; gap: 5px; }
.menu-open .menu-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--on-dark); overflow: hidden;
  min-height: min(86vh, 820px); display: flex; align-items: center;
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 120px);
  background: var(--accent-2);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: drift 20s ease-in-out infinite alternate; transform-origin: 70% 50%; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 30, 50, .94) 0%, rgba(12, 34, 56, .82) 38%, rgba(15, 42, 68, .45) 70%, rgba(15, 42, 68, .3) 100%),
    linear-gradient(0deg, rgba(10, 28, 46, .55), rgba(10, 28, 46, 0) 45%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--bands); }
.hero__copy { max-width: 700px; text-shadow: var(--tshadow); }
.hero__copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #CFE6B4; }
.hero .lead { color: #D9E1E8; max-width: 56ch; margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 36px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.creds li {
  font-family: var(--font-head); font-weight: 500; font-size: .85rem; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px; text-shadow: none;
  background: rgba(8, 20, 34, .5); border: 1px solid rgba(245, 244, 239, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--on-dark);
}

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; background: var(--accent-2); color: var(--on-dark); padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 88px); overflow: hidden; isolation: isolate; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--bands); }
.page-head::before {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .35), rgba(var(--accent-rgb), 0));
  animation: glow 9s ease-in-out -3s infinite alternate;
}
@keyframes glow { from { transform: translate(0, 0) scale(1); opacity: .8; } to { transform: translate(-40px, 30px) scale(1.08); opacity: 1; } }
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head .lead { color: var(--on-dark-muted); }
.page-head__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.crumbs { font-size: .9rem; color: var(--on-dark-muted); margin-bottom: 18px; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--on-dark);
  border: 1px solid rgba(245, 244, 239, .28); background: rgba(255, 255, 255, .04); transition: background-color .2s ease, border-color .2s ease;
}
.jump a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(245, 244, 239, .6); }

/* ---------- Sections ---------- */
.section { padding: clamp(68px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--accent-2); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

/* Arch frame (signature, from the logo's doorway) */
.arch { border-radius: 999px 999px var(--radius-sm) var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--outline { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(19, 33, 46, .28); }
.arch-wrap { position: relative; }
.arch-wrap::before {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 100%; height: 100%;
  border: 1.5px solid var(--line); border-radius: 999px 999px var(--radius-sm) var(--radius-sm); z-index: 0;
}
.arch-wrap .arch { z-index: 1; }

/* ---------- Accreditation logos ---------- */
.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(32px, 4vw, 44px) 0; }
.trust .container { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.trust__label { margin: 0; font-family: var(--font-head); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.trust__items { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.logo-card {
  display: grid; place-items: center; width: 220px; height: 92px; padding: 16px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(19, 33, 46, .04);
}
.logo-card img { max-width: 100%; max-height: 56px; width: auto; height: auto; }

/* ---------- Services list (home) ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.split__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 22px; align-items: center; padding: 22px 6px;
  text-decoration: none; color: var(--text); transition: background-color .25s ease, padding .25s ease; border-radius: 12px;
}
.svc-row:hover { background: var(--surface); padding-inline: 14px; }
.svc-row .arch { width: 76px; aspect-ratio: 4 / 5; }
.svc-row h3 { margin: 0 0 4px; font-size: 1.25rem; }
.svc-row p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.svc-row__go {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent);
  transition: background-color .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.svc-row__go svg { width: 18px; height: 18px; }
.svc-row:hover .svc-row__go { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateX(3px); }
.tag { display: inline-block; font-family: var(--font-head); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* ---------- Why (home) ---------- */
.why { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.why .arch-wrap { max-width: 420px; }
.reasons { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 26px; }
.reasons li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.reasons__num {
  width: 52px; height: 52px; border-radius: 999px 999px 8px 8px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; color: var(--accent);
}
.reasons h3 { margin-bottom: 4px; font-size: 1.2rem; }
.reasons p { margin: 0; color: var(--muted); }

/* ---------- Steps (home, dark) ---------- */
.section--dark::before {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: -300px; bottom: -520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .28), rgba(var(--accent-rgb), 0));
  animation: glow 10s ease-in-out -4s infinite alternate;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); counter-reset: step; }
.step { position: relative; padding: 30px 28px 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .045); border: 1px solid rgba(245, 244, 239, .14); }
.step__n { font-family: var(--font-head); font-weight: 500; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(207, 230, 180, .8); margin-bottom: 18px; }
.step p { color: var(--on-dark-muted); margin: 0; }
.step h3 { margin-bottom: 8px; }

/* ---------- Areas (home) ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .98rem; }
.chips li:first-child { background: var(--accent-2); color: var(--on-dark); border-color: var(--accent-2); }
.hours { margin-top: 26px; display: grid; gap: 4px; color: var(--muted); }
.hours strong { color: var(--text); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background: var(--accent-2); color: var(--on-dark); border-radius: 28px;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px);
}
.cta::before {
  content: ""; position: absolute; z-index: -1; inset: auto -10% -60% -10%; height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--accent-rgb), .38), rgba(var(--accent-rgb), 0));
  animation: glow 9s ease-in-out -2s infinite alternate;
}
.cta::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--bands); }
.cta h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta .lead { margin: 0 auto 30px; color: var(--on-dark-muted); }
.cta__lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-bottom: 32px; }
.cta__lines a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 500; text-decoration: none; color: #fff; }
.cta__lines a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.cta__lines svg { width: 22px; height: 22px; color: var(--band-c); }
.cta .btn-row { justify-content: center; }
.section--cta { padding-top: 0; }

/* ---------- Services page blocks ---------- */
.svc { scroll-margin-top: calc(var(--header-h) + 8px); }
.svc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.svc__grid--flip .svc__media { order: 2; }
.svc__media .arch-wrap { max-width: 460px; margin-inline: auto; }
.svc__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 22px; color: var(--muted); font-size: .98rem; }
.svc__meta span { display: inline-flex; align-items: center; gap: 8px; }
.svc__meta svg { width: 18px; height: 18px; color: var(--accent); }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A4B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.on-dark .ticks li::before, .section--dark .ticks li::before {
  background-color: rgba(207, 230, 180, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CFE6B4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 16px; }
.panel--wide-img { padding: 0; overflow: hidden; }
.panel--wide-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.panel--wide-img .panel__body { padding: clamp(24px, 3.5vw, 36px); }

.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: stage; position: relative; }
.stages li { position: relative; padding: 0 clamp(14px, 2vw, 28px) 0 0; }
.stages__dot {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-2); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; margin-bottom: 18px; position: relative; z-index: 1;
}
.stages li::before { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 2px; background: var(--line); }
.stages li:last-child::before { display: none; }
.stages h3 { font-size: 1.15rem; margin-bottom: 6px; }
.stages p { color: var(--muted); margin: 0; font-size: 1rem; }
.sap-top { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.sap-top .arch { max-width: 300px; margin-left: auto; aspect-ratio: 1 / 1; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(245, 244, 239, .14); }
.fact b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 2.2rem; line-height: 1; color: #CFE6B4; margin-bottom: 10px; }
.fact span { color: var(--on-dark-muted); font-size: .98rem; line-height: 1.5; display: block; }
.mees { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.mees .ticks li { color: var(--on-dark); }
.mees .lead { margin-bottom: 22px; }

/* ---------- About page ---------- */
.portrait { width: 100%; max-width: 320px; margin-left: auto; }
.portrait .arch { display: grid; place-items: center; background: linear-gradient(160deg, #183A5C, #0B2136); border: 1px solid rgba(245, 244, 239, .2); }
.portrait .arch--photo { display: block; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(245, 244, 239, .08), 0 30px 60px -20px rgba(0, 0, 0, .5); }
.portrait__mono { font-family: var(--font-head); font-weight: 500; font-size: clamp(4rem, 9vw, 6rem); letter-spacing: .04em; color: rgba(245, 244, 239, .9); }
.portrait__caption { margin-top: 16px; text-align: center; color: var(--on-dark-muted); font-size: .92rem; }
.post-nominals { font-family: var(--font-head); font-weight: 500; letter-spacing: .08em; color: #CFE6B4; margin-bottom: 18px; }

.intro { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.intro__big { font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; font-weight: 500; margin: 0; }
.intro__big em { font-style: normal; color: var(--accent); }

.quals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.qual { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; overflow: hidden; }
.qual::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--band, var(--accent)); }
.qual__abbr { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; letter-spacing: .02em; margin-bottom: 4px; }
.qual__name { font-weight: 600; margin-bottom: 8px; }
.qual p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.qual__logo { height: 30px; width: auto; margin-top: 16px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.timeline li { position: relative; padding: 0 0 38px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.section--alt .timeline li::before { background: var(--surface-2); }
.timeline__when { font-family: var(--font-head); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.timeline h3 { margin: 4px 0 6px; font-size: 1.25rem; }
.timeline h3 span { color: var(--muted); font-weight: 500; }
.timeline p { margin: 0; color: var(--muted); }

.principle { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.principle h3 { font-size: 1.15rem; }
.principle p { color: var(--muted); margin: 0; }
.principle > div { border-top: 2px solid var(--text); padding-top: 18px; }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6772' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--band-g); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form__note { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; min-width: 220px; }
.form-success { display: none; text-align: left; }
.form-success__icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(var(--accent-rgb), .12); display: grid; place-items: center; color: var(--accent); margin-bottom: 18px; }
.form-success__icon svg { width: 28px; height: 28px; }
.sent .form-success { display: block; }
.sent .form, .sent .form-intro { display: none; }

.details { display: grid; gap: 16px; }
.details .panel { padding: 26px; }
.dl { display: grid; gap: 18px; margin: 0; }
.dl div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.dl dt { width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--accent-rgb), .1); color: var(--accent); display: grid; place-items: center; }
.dl dt svg { width: 20px; height: 20px; }
.dl dd { margin: 0; }
.dl dd { color: var(--text); }
.dl dd small { display: block; color: var(--text); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-head); }
.dl dd a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.dl dd a:hover { color: var(--accent); text-decoration: underline; }
.details__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); box-shadow: var(--shadow); }
.details__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* ---------- Footer ---------- */
.site-footer { background: #0B2136; color: var(--on-dark-muted); padding: clamp(56px, 7vw, 80px) 0 28px; font-size: .98rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--bands); opacity: .9; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.site-footer .brand { color: var(--on-dark); margin-bottom: 18px; }
.site-footer .brand__sub { color: var(--on-dark-muted); }
.site-footer h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); font-weight: 500; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .strong-link { color: var(--on-dark); font-weight: 600; }
.footer-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-logos span { display: grid; place-items: center; width: 128px; height: 54px; padding: 8px 14px; background: #fff; border-radius: 10px; }
.footer-logos img { max-width: 100%; max-height: 34px; width: auto; height: auto; }

/* ---------- Same day / price offers (services) ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 28px); }
.offer { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.offer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--bands); }
.offer__icon { width: 52px; height: 52px; border-radius: 999px 999px 10px 10px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .1); color: var(--accent); margin-bottom: 18px; }
.offer__icon svg { width: 26px; height: 26px; }
.offer h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 10px; }
.offer > p { color: var(--muted); }
.offer .ticks { margin-bottom: 26px; }
.offer .btn { margin-top: auto; align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: rgba(var(--accent-rgb), .45); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; min-height: 56px; font-family: var(--font-head); font-weight: 500; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A4B' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 22px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }
.legal { margin-top: clamp(40px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(245, 244, 239, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .9rem; }
.legal p { margin: 0; max-width: 80ch; }

/* ---------- Long-form text (privacy page) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 2em 0 .6em; }
.prose h2:first-of-type { margin-top: 1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .6em; }
.prose a { color: var(--accent); font-weight: 600; }
.muted { color: var(--muted); }

/* ---------- Landing pages ---------- */
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--on-dark); font-size: .98rem; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: rgba(207, 230, 180, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CFE6B4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.cards3 li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cards3 h3 { font-size: 1.15rem; margin-bottom: 6px; }
.cards3 p { margin: 0; color: var(--muted); font-size: 1rem; }
.note { border-left: 4px solid var(--accent); background: var(--surface); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--text); margin-top: 26px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

/* ---------- Cookie banner (only shown once ad tracking is switched on) ---------- */
.cookie-banner {
  position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 640px;
  display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; justify-content: space-between;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(19, 33, 46, .22); padding: 16px 18px; font-size: .95rem; line-height: 1.5;
}
.cookie-banner p { margin: 0; flex: 1 1 300px; }
.cookie-banner strong { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 2px; }
.cookie-banner a { color: var(--accent); font-weight: 600; }
.cookie-banner__btns { display: flex; gap: 10px; }
.cookie-banner__btns .btn { min-width: 104px; }
@media (max-width: 900px) { .cookie-banner { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.footer-small { font-size: .9rem; }
.footer-small a { color: var(--on-dark-muted); }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--on-dark-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.done { transition-delay: 0ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { padding: 10px 10px; }
  .topbar__meta span + span { display: none; }
}

@media (max-width: 900px) {
  :root { --topbar-h: 0px; --nav-h: 66px; }
  .topbar { display: none; }
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .header-actions { display: flex; }
  .brand { gap: 10px; min-width: 0; }
  .brand img { width: 42px; }
  .brand__name { font-size: .95rem; white-space: nowrap; letter-spacing: .03em; }
  .brand__sub { font-size: .58rem; letter-spacing: .5em; margin-top: 5px; }
  .navbar .container { gap: 8px; }
  .header-actions { gap: 0; margin-right: -8px; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 20px var(--gutter) 120px;
    background: var(--bg); border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    overflow-y: auto;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .nav a:not(.btn) { font-size: 1.35rem; padding: 14px 8px; border-radius: 10px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 18px 0 0; min-height: 54px; }
  .nav__contact { display: grid !important; gap: 6px; margin-top: 22px; color: var(--muted); }
  .nav__contact a { font-size: 1.05rem !important; border: 0 !important; padding: 6px 0 !important; color: var(--text); font-weight: 600; }
  .menu-open body, body.menu-open { overflow: hidden; }

  .action-bar {
    display: grid; grid-template-columns: .85fr 1.2fr 1.15fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 98;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 33, 54, .96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(245, 244, 239, .12);
  }
  .action-bar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 12px; padding: 0 6px; white-space: nowrap;
    font-family: var(--font-head); font-weight: 500; text-decoration: none; color: var(--on-dark); border: 1px solid rgba(245, 244, 239, .22); font-size: .95rem;
  }
  .action-bar a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
  .action-bar svg { width: 18px; height: 18px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .split, .why, .areas, .svc__grid, .mees, .intro, .contact, .page-head__grid, .sap-top { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
  .svc__grid--flip .svc__media { order: 0; }
  .svc__media .arch-wrap, .why .arch-wrap { max-width: 340px; margin-inline: auto 0; }
  .why .arch-wrap { margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; gap: 26px; }
  .stages li { padding: 0 0 0 66px; }
  .stages__dot { position: absolute; left: 0; top: 0; }
  .stages li::before { top: 48px; left: 23px; right: auto; bottom: -26px; width: 2px; height: auto; }
  .sap-top .arch { display: none; }
  .quals { grid-template-columns: 1fr 1fr; }
  .principle { grid-template-columns: 1fr; }
  .portrait { margin: 0 auto; max-width: 260px; }
  .trust__label { text-align: center; width: 100%; }
  .offers { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1.02rem; }
  .hero { min-height: auto; padding: 56px 0 72px; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 30, 50, .82) 0%, rgba(12, 34, 56, .88) 60%, rgba(10, 28, 46, .95) 100%); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .svc-row { grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 2px; }
  .svc-row .arch { width: 56px; }
  .svc-row__go { display: none; }
  .svc-row:hover { padding-inline: 2px; }
  .form { grid-template-columns: 1fr; }
  .quals { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { border-radius: 20px; }
  .cta .btn-row .btn { flex: 1 1 100%; }
  .trust__items { width: 100%; flex-wrap: nowrap; gap: 12px; }
  .logo-card { flex: 1 1 0; width: auto; height: 78px; padding: 12px 14px; }
  .logo-card img { max-height: 46px; }
  .faq summary { font-size: 1.04rem; padding: 18px; }
  .faq details > div { padding: 0 18px 18px; }
  .arch-wrap::before { inset: -10px -10px auto auto; }
}

@media (pointer: coarse) { .btn { min-height: 48px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
