/* AZ Engineering Services — site styles
   Sections: tokens, base, buttons, layout helpers, header, hero, home blocks,
   inner pages, forms, footer, motion, responsive. */

:root {
  --navy: #0c1b2e;
  --navy-2: #13294a;
  --blue: #1d5fae;
  --blue-dark: #174d8f;
  --accent: #f5a81c;
  --accent-dark: #dc9208;
  --ink: #17212f;
  --text: #46546a;
  --muted: #6b788c;
  --line: #e1e7ef;
  --tint: #f3f6fa;
  --white: #fff;
  --danger: #c0392b;
  --success: #1e7d4f;

  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --gutter: 24px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(12, 27, 46, .08);
  --shadow-lg: 0 18px 50px rgba(12, 27, 46, .16);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 600; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--navy); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.lead { font-size: 1.18rem; color: var(--ink); }
.fineprint { font-size: .88rem; color: var(--muted); margin-top: 1.6em; }
.req { color: var(--danger); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.7em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: var(--accent-dark); color: var(--navy); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  font-size: .98rem; color: var(--blue);
}
.link-more .icon { transition: transform .2s; }
.link-more:hover .icon { transform: translateX(4px); }

.eyebrow {
  font-family: var(--font-head); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  font-size: .92rem; color: var(--blue); margin: 0 0 .6em;
}
.eyebrow--light { color: var(--accent); }

/* ---------- Layout helpers ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--tint); }
.section__more { text-align: center; margin: 44px 0 0; }

.section-head { max-width: 760px; margin: 0 0 44px; padding-left: 20px; border-left: 4px solid var(--accent); }
.section-head h2 { margin-bottom: .2em; }
.section-head__text { margin: .4em 0 0; font-size: 1.08rem; }

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .4em; }
.card__body h3 a { color: inherit; }
.card__body h3 a:hover { color: var(--blue); }
.card__body > p { font-size: 1rem; }
.card__body .link-more { margin-top: auto; }

/* Blueprint paper: a fine grid over a flat colour. */
.blueprint {
  background-color: #e9f0f8;
  background-image:
    linear-gradient(rgba(29, 95, 174, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 95, 174, .1) 1px, transparent 1px),
    linear-gradient(rgba(29, 95, 174, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 95, 174, .05) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  color: var(--blue);
}
.blueprint--dark {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(120, 170, 235, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 235, .11) 1px, transparent 1px),
    linear-gradient(rgba(120, 170, 235, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 235, .045) 1px, transparent 1px);
  color: #9fc4f2;
}

.ticks { display: grid; gap: .6em; margin: 1.3em 0 1.8em; }
.ticks li { display: flex; gap: .7em; align-items: flex-start; color: var(--ink); }
.ticks .icon { color: var(--accent-dark); margin-top: .28em; }
.ticks--small { font-size: .95rem; gap: .4em; margin: .4em 0 1.2em; }
.ticks--small li { color: var(--text); }
.ticks--cols { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
.ticks--cols .icon { color: var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chips > * {
  background: var(--tint); border: 1px solid var(--line); border-radius: 100px;
  padding: .2em .9em; font-size: .9rem; color: var(--ink);
}
.chips--lg > * { padding: .45em 1.1em; font-size: .98rem; background: var(--white); }
.plain-list { display: grid; gap: .9em; margin-bottom: 1.6em; }
.plain-list strong { display: block; color: var(--ink); font-weight: 600; }
.plain-list span { font-size: .95rem; }

.tag {
  font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  font-size: .8rem; background: var(--accent); color: var(--navy); padding: .2em .7em; border-radius: 2px;
}

.facts { display: grid; gap: .7em; margin: 0 0 1.4em; }
.facts dt {
  font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  font-size: .8rem; color: var(--muted);
}
.facts dd { margin: 0; color: var(--ink); }
.facts--row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; }

.numbered { counter-reset: n; display: grid; gap: 1em; margin: 1.2em 0 2em; }
.numbered li { counter-increment: n; position: relative; padding-left: 52px; }
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--navy); color: var(--accent); font-family: var(--font-head); font-weight: 700; border-radius: var(--radius);
}
.numbered strong { color: var(--ink); }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff8e8; border-left: 4px solid var(--accent); padding: 20px 22px; margin: 2em 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout .icon { width: 26px; height: 26px; color: var(--accent-dark); margin-top: 2px; }
.callout p { margin: 0; color: var(--ink); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #c3d0e2; font-size: .9rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar p { margin: 0; }
.topbar__note { display: flex; align-items: center; gap: .5em; color: var(--accent); font-weight: 500; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.topbar__links li, .topbar__links a { display: inline-flex; align-items: center; gap: .5em; }
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--accent); }

.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: 0 1px 0 var(--line); transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(12, 27, 46, .12); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
/* The header holds the menu and two buttons, so it is wider than the page body. */
.topbar__inner, .site-header__inner { max-width: 1340px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-head); font-size: 1.45rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
}
.brand__name b { font-weight: 700; color: var(--blue); }
.brand__sub {
  font-family: var(--font-head); font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-top: 5px;
}

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-nav__actions .btn { padding: .7em 1.05em; font-size: .98rem; letter-spacing: .06em; }
.site-nav > ul { display: flex; align-items: center; gap: 2px; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: .3em; padding: 30px 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); position: relative;
}
.site-nav > ul > li > a .icon { width: .9em; height: .9em; }
.site-nav > ul > li > a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 20px; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav > ul > li > a:hover::after,
.site-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav > ul > li > a[aria-current="page"] { color: var(--blue); }

.dropdown-toggle { display: none; }
.dropdown {
  position: absolute; left: 0; top: 100%; min-width: 290px; padding: 8px 0;
  background: var(--white); border-top: 3px solid var(--accent); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: .4em; padding: 9px 20px; color: var(--ink); font-size: .98rem; }
.dropdown a:hover { background: var(--tint); color: var(--blue); }
.dropdown__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dropdown__all a { font-weight: 600; color: var(--blue); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 46px; height: 46px; place-items: center; cursor: pointer; color: var(--ink);
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Hero ---------- */
.hero { color: #cfdcee; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding-block: clamp(48px, 7vw, 92px) clamp(96px, 11vw, 150px);
}
.hero__copy { display: grid; }
.hero__slide {
  grid-area: 1 / 1; align-self: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .6s, transform .6s, visibility .6s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero__title { color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; margin-bottom: .35em; }
.hero__text { font-size: 1.18rem; max-width: 34em; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.hero__dots { grid-area: 2 / 1; display: flex; gap: 10px; margin-top: 40px; }
.hero__dots button {
  width: 34px; height: 5px; border: 0; padding: 0; background: rgba(255, 255, 255, .28); cursor: pointer; transition: background .2s, width .2s;
}
.hero__dots button[aria-selected="true"] { background: var(--accent); width: 54px; }
.hero__art { min-width: 0; }

/* Drawings */
.drawing { width: 100%; height: auto; fill: none; }
.drawing .ln { stroke: #a9cbf5; stroke-width: 1.6; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.drawing .thin { stroke-width: 1; }
.drawing .heavy { stroke-width: 2.6; stroke: #d7e7fb; }
.drawing .accent { stroke: var(--accent); }
.drawing .grid { stroke: rgba(169, 203, 245, .45); stroke-width: 1; stroke-dasharray: 10 4 2 4; fill: none; }
.drawing .hatch { stroke: rgba(169, 203, 245, .55); stroke-width: 1; }
.drawing .dim { stroke: var(--accent); stroke-width: 1; fill: none; }
.drawing .dot { fill: rgba(169, 203, 245, .6); }
.drawing .rebar { fill: var(--accent); }
.drawing .lbl { fill: #d7e7fb; font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.drawing .lbl.small { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; fill: #a9cbf5; }
.drawing .dimtext { fill: var(--accent); }
.drawing .accenttext { fill: var(--accent); font-size: 16px; }
.js .drawing .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Home blocks ---------- */
.licence-strip { position: relative; z-index: 2; margin-top: -64px; }
.licence-strip__grid { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); box-shadow: var(--shadow-lg); border-radius: var(--radius); overflow: hidden; }
.licence-strip__grid--flat { box-shadow: none; border: 1px solid var(--line); }
.licence-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 22px; border-left: 1px solid var(--line); }
.licence-card:first-child { border-left: 0; }
.licence-card h3 { margin: 0 0 .1em; }
.licence-card p { margin: 0; font-size: .95rem; }
.licence-card__code {
  width: 62px; height: 62px; flex: none; display: grid; place-items: center;
  background: var(--navy); color: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; letter-spacing: .04em;
  border-radius: var(--radius);
}
.licence-card__no { color: var(--ink); font-weight: 600; }
.licence-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .9rem; font-weight: 600; }
.licence-card__link .icon { width: 14px; height: 14px; }
.cert { display: block; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(12, 27, 46, .12); background: #fff; transition: transform .2s; }
.cert:hover { transform: translateY(-3px); }
.cert img { display: block; width: 100%; height: auto; }
.cert__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.cert__actions .icon { width: 18px; height: 18px; }
.juris__links { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.juris__links .link-more { margin-top: 0; }

.service-card__art, .exp-card__art {
  height: 150px; display: grid; place-items: center; position: relative; overflow: hidden;
}
.service-card__art .icon, .exp-card__art .icon { width: 68px; height: 68px; stroke-width: 1.1; transition: transform .35s; }
.service-card__art::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.card:hover .service-card__art::after { transform: scaleX(1); }
.card:hover .service-card__art .icon, .card:hover .exp-card__art .icon { transform: scale(1.12); }
.exp-card__art .tag { position: absolute; left: 16px; top: 16px; }
.service-card__art--photo { display: block; height: auto; aspect-ratio: 16 / 9; background: var(--navy); }
.service-card__art--photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .service-card__art--photo img { transform: scale(1.05); }
.service-card__badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius); background: var(--navy); color: var(--accent);
  box-shadow: 0 6px 16px rgba(12, 27, 46, .3);
}
.service-card__art .service-card__badge .icon, .service-hero .service-card__badge .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.card:hover .service-card__art .service-card__badge .icon { transform: none; }
.exp-card__meta { font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: var(--muted); margin-bottom: .5em; }
.exp-card__role { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .93rem; }
.exp-card__role strong { color: var(--ink); }
.exp-card[hidden] { display: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
.split__art { position: relative; }
.frame { padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.frame__badge {
  position: absolute; left: -18px; bottom: -22px; background: var(--accent); color: var(--navy);
  padding: 14px 22px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; line-height: 1.3;
}
.frame__badge strong { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .03em; }
.frame__badge span { font-size: .9rem; }

.tabs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tabs__list { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); }
.tabs__tab {
  background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, .1); padding: 22px 16px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; color: #b9c7da;
  position: relative; transition: color .2s, background .2s;
}
.tabs__tab:hover { color: var(--white); }
.tabs__tab[aria-selected="true"] { color: var(--navy); background: var(--accent); }
.tabs__panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: clamp(26px, 4vw, 48px); align-items: center; background: var(--white); }
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { font-size: 1.7rem; text-transform: uppercase; }
.tabs__panel .ticks { margin: 0; }

.stats { padding: clamp(56px, 8vw, 96px) 0; color: #c3d0e2; }
.stats__head { max-width: 720px; margin-bottom: 44px; }
.stats__head h2 { color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.stat { border-top: 3px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; }
.stat dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--white); line-height: 1; }
.stat dt { margin-top: 10px; font-size: .98rem; }

.sector { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); transition: background .25s, border-color .25s, transform .25s; }
.sector:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-4px); }
.sector__icon { width: 60px; height: 60px; display: grid; place-items: center; background: var(--tint); color: var(--blue); border-radius: var(--radius); margin-bottom: 18px; transition: background .25s, color .25s; }
.sector__icon .icon { width: 30px; height: 30px; }
.sector p { margin: 0; font-size: .98rem; transition: color .25s; }
.sector h3 { transition: color .25s; }
.sector:hover h3 { color: var(--white); }
.sector:hover p { color: #c3d0e2; }
.section--tint .sector { background: var(--white); }
.sector .ticks { margin: 0; }
.sector .ticks li { transition: color .25s; }
.sector:hover .ticks li { color: #c3d0e2; }
.sector:hover .ticks .icon { color: var(--accent); }
.sector:hover .sector__icon { background: var(--accent); color: var(--navy); }

.cta-band { background: var(--accent); color: var(--navy); padding: 44px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); margin-bottom: .2em; }
.cta-band p { margin: 0; color: #3a2c08; }
.cta-band__actions { display: flex; align-items: center; gap: 22px; flex: none; }
.cta-band__phone { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--navy); white-space: nowrap; }

/* ---------- Inner pages ---------- */
.page-header {
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, var(--navy) 30%, rgba(12, 27, 46, .55)),
    linear-gradient(rgba(120, 170, 235, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 235, .14) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  color: #c3d0e2; padding: clamp(44px, 6vw, 76px) 0;
  border-bottom: 4px solid var(--accent);
}
.page-header h1 { color: var(--white); margin: 0; }
.page-header__lead { margin: .7em 0 0; font-size: 1.13rem; max-width: 44em; }
.crumbs { display: flex; flex-wrap: wrap; gap: .6em; font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase; font-size: .88rem; margin-bottom: 1em; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { color: var(--white); }

.profile { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.profile__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; position: sticky; top: 110px; }
.profile__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
img.profile__photo { height: auto; aspect-ratio: 4 / 5; object-position: 50% 20%; }
.profile__photo--initials { display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 6rem; color: var(--accent); letter-spacing: .04em; }
.profile__card h3 { margin-bottom: .1em; font-size: 1.5rem; }
.profile__title { color: var(--muted); margin-bottom: 1.1em; }
.profile__licences { display: grid; gap: 8px; text-align: left; margin-bottom: 20px; }
.profile__licences li { display: flex; align-items: center; gap: 12px; font-size: .96rem; color: var(--ink); }
.profile__licences span { width: 40px; height: 30px; flex: none; display: grid; place-items: center; background: var(--navy); color: var(--accent); font-family: var(--font-head); font-weight: 700; border-radius: 3px; }
.profile__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 2em; padding-top: 2em; border-top: 1px solid var(--line); }
.profile__cols h3 { text-transform: uppercase; font-size: 1.15rem; letter-spacing: .06em; }
.memberships { margin-top: 44px; }
.memberships h3 { text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; margin-bottom: .8em; }

.with-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose h2 { font-size: 1.65rem; margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 2.4em; }
.service-hero { height: 220px; display: grid; place-items: center; border-radius: var(--radius); margin-bottom: 32px; color: var(--accent); }
.service-hero .icon { width: 96px; height: 96px; stroke-width: 1; }
.service-hero--photo { display: block; position: relative; height: auto; aspect-ratio: 16 / 7; overflow: hidden; background: var(--navy); }
.service-hero--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-hero--photo .service-card__badge { left: 18px; bottom: 18px; width: 56px; height: 56px; }
.jurisdictions { background: var(--tint); padding: 24px 26px; border-radius: var(--radius); margin-top: 2.2em; }
.jurisdictions h2 { margin-top: 0; font-size: 1.35rem; }
.jurisdictions p { margin: 0; }

.sidebar { display: grid; gap: 24px; position: sticky; top: 110px; }
.sidebar__box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.sidebar__box h2 { font-size: 1.25rem; letter-spacing: .06em; margin-bottom: .8em; }
.sidebar__nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); border-radius: 3px; font-size: .98rem; border-left: 3px solid transparent; }
.sidebar__nav a .icon { color: var(--blue); }
.sidebar__nav a:hover { background: var(--tint); }
.sidebar__nav a[aria-current="page"] { background: var(--tint); border-left-color: var(--accent); font-weight: 600; }
.sidebar__box--dark { background: var(--navy); border-color: var(--navy); color: #c3d0e2; }
.sidebar__box--dark h2 { color: var(--white); }
.sidebar__contact { display: flex; align-items: center; gap: 10px; color: var(--white); margin-bottom: .5em; overflow-wrap: anywhere; }
.sidebar__contact .icon { color: var(--accent); }
.sidebar__box--dark .btn { margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px 24px; }
.step__no { font-family: var(--font-head); font-weight: 700; font-size: 2.8rem; line-height: 1; color: var(--line); display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.25rem; }
.step p { margin: 0; font-size: .98rem; }

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter__btn {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .55em 1.3em; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .98rem; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.filter__btn:hover { border-color: var(--navy); }
.filter__btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--accent); }

.juris__head { height: 120px; display: grid; place-items: center; }
.juris__head span { font-family: var(--font-head); font-weight: 700; font-size: 3.6rem; color: var(--accent); letter-spacing: .06em; }
.firm { margin-top: 36px; padding: 26px 28px; background: var(--tint); border-radius: var(--radius); }
.firm h3 { text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__heading { margin: 0; font-size: inherit; text-transform: none; }
.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left;
  background: none; border: 0; padding: 22px 4px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--ink); letter-spacing: .01em;
}
.accordion__trigger:hover { color: var(--blue); }
.accordion__trigger .icon { width: 24px; height: 24px; color: var(--accent-dark); transition: transform .25s; }
.accordion__trigger[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion__panel { padding: 0 44px 22px 4px; }
.accordion__panel p { margin: 0; }

.notfound { text-align: center; color: #c3d0e2; }
.notfound h1 { color: var(--white); }
.notfound__code { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--accent); margin: 0; }
.notfound .hero__actions { justify-content: center; margin-top: 2em; }

/* ---------- Contact & forms ---------- */
.contact { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info { display: grid; gap: 24px; }
.form { display: grid; gap: 20px; margin-top: 1.4em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; color: var(--ink); font-size: .96rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #c9d3df; border-radius: var(--radius); padding: .75em .9em; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 95, 174, .18); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .88rem; margin: 0; }
.field__hint { color: var(--muted); font-size: .88rem; margin: 0; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--success); }
.form__status.is-error { color: var(--danger); }
.form .fineprint { margin: 0; }

.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); }
.info-card h2 { font-size: 1.4rem; letter-spacing: .05em; margin-bottom: .9em; }
.info-card--dark { background: var(--navy); border-color: var(--navy); }
.info-card--dark h2 { color: var(--white); }
.info-card--dark .profile__licences { margin: 0; }
.info-card--dark .profile__licences li { color: #dbe5f2; }
.info-card--dark .profile__licences span { background: var(--accent); color: var(--navy); }
.info-list { display: grid; gap: 20px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list > li > .icon { width: 44px; height: 44px; padding: 11px; background: var(--tint); color: var(--blue); border-radius: var(--radius); }
.info-list div { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.info-list span { display: block; font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
.map iframe { width: 100%; height: 400px; border: 0; filter: grayscale(.35); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b8cc; font-size: .98rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr .8fr 1.2fr 1.2fr; gap: 44px; padding-block: 72px 56px; }
.site-footer h3 { color: var(--white); text-transform: uppercase; letter-spacing: .1em; font-size: 1.15rem; margin-bottom: 1.1em; padding-bottom: .6em; position: relative; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--accent); }
.site-footer a { color: #a9b8cc; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand { margin-bottom: 20px; }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__name b { color: var(--accent); }
.site-footer .brand__sub { color: #8798ae; }
.site-footer .logo-mark rect { fill: #13294a; }
.footer-links { display: grid; gap: .5em; }
.footer-contact { display: grid; gap: .8em; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--accent); margin-top: .28em; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); color: var(--white); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 20px; }
.site-footer__bar p { margin: 0; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--accent); color: var(--navy); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--navy); background: var(--accent-dark); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .grid > .reveal:nth-child(3n + 2), .js .steps > .reveal:nth-child(2), .js .licence-strip__grid > .reveal:nth-child(2) { transition-delay: .1s; }
.js .grid > .reveal:nth-child(3n), .js .steps > .reveal:nth-child(3), .js .licence-strip__grid > .reveal:nth-child(3) { transition-delay: .2s; }
.js .steps > .reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Responsive ---------- */
/* Header steps between full width and the phone menu at 960px, so the two buttons always fit. */
@media (max-width: 1340px) {
  .site-header__inner { gap: 16px; }
  .site-nav { gap: 14px; }
  .site-nav > ul > li > a { padding-inline: 7px; font-size: .98rem; }
  .site-nav > ul > li > a::after { left: 7px; right: 7px; }
  .brand__name { font-size: 1.3rem; }
  .brand__sub { display: none; }
}

@media (max-width: 1220px) {
  .brand__text { display: none; }
  .site-nav { gap: 12px; }
  .site-nav__actions .btn { padding-inline: .9em; }
}

@media (max-width: 1000px) {
  .site-header__inner { gap: 12px; }
  .site-nav > ul > li > a { padding-inline: 5px; }
  .site-nav > ul > li > a::after { left: 5px; right: 5px; }
  .site-nav__actions .btn { padding-inline: .75em; }
}

@media (max-width: 1100px) {
  .grid--4, .stats__grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .licence-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .licence-card { flex-direction: row; align-items: center; gap: 18px; }
  .licence-card:nth-child(odd) { border-left: 0; }
  .licence-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .site-header__inner { min-height: 70px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 70px); overflow-y: auto; padding: 8px var(--gutter) 24px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .site-nav > ul > li > a { padding: 15px 4px; flex: 1; font-size: 1.1rem; }
  .site-nav > ul > li > a::after, .site-nav > ul > li > a .icon { display: none; }
  .dropdown-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: var(--tint); border: 0; border-radius: var(--radius); cursor: pointer; }
  .dropdown-toggle .icon { transition: transform .2s; }
  .dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .dropdown { position: static; display: none; width: 100%; min-width: 0; box-shadow: none; border-top: 0; opacity: 1; visibility: visible; transform: none; padding: 0 0 10px; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { padding: 9px 14px; }
  .site-nav__actions { flex-direction: column; align-items: stretch; margin-top: 18px; }
  .btn { white-space: normal; }
  .brand__text { display: flex; }
  .brand__name { font-size: 1.45rem; }
  .brand__sub { display: block; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; margin-inline: auto; width: 100%; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .with-sidebar, .contact, .profile { grid-template-columns: 1fr; }
  .profile__card, .sidebar { position: static; }
  .profile__card { max-width: 380px; }
  .frame__badge { left: 16px; }
  .tabs__panel { grid-template-columns: 1fr; gap: 24px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hide-sm { display: none !important; }
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__links { justify-content: center; }
  .licence-strip__grid { grid-template-columns: 1fr; }
  .licence-card { border-left: 0; border-top: 1px solid var(--line); padding: 20px 22px; }
  .licence-card:first-child { border-top: 0; }
  .tabs__list { grid-template-columns: repeat(2, 1fr); }
  .tabs__tab { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 16px 10px; }
  .form__row, .profile__cols, .ticks--cols { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; padding-block: 52px 40px; }
  .cta-band__actions { flex-wrap: wrap; }
  .accordion__trigger { font-size: 1.18rem; }
  .accordion__panel { padding-right: 4px; }
}

@media (max-width: 600px) {
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .brand__name { font-size: 1.2rem; }
  .brand .logo-mark { width: 40px; height: 40px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media print {
  .topbar, .site-header, .cta-band, .to-top, .map, .hero__dots { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- Contact: quote / appointment switch ---- */
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin-bottom: 22px; background: var(--navy); border-radius: var(--radius); }
.switch__tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 10px; border: 0; border-radius: calc(var(--radius) - 2px); cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .78);
  font: 600 1rem/1.2 'Barlow Condensed', sans-serif; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.switch__tab .icon { width: 18px; height: 18px; flex: none; }
.switch__tab:hover { color: var(--white); }
.switch__tab[aria-selected="true"] { background: var(--accent); color: var(--navy); }
.switch__tab:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.contact__intro { margin: 0 0 18px; color: var(--muted); }
.booking-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.booking-embed iframe { display: block; width: 100%; height: 640px; border: 0; }

/* ---- Thank-you page ---- */
.thanks { text-align: center; }
.thanks__icon { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); color: var(--navy); }
.thanks__icon .icon { width: 40px; height: 40px; stroke-width: 2.5; }
.thanks .lead { max-width: 560px; margin-left: auto; margin-right: auto; }
.thanks__contact { list-style: none; padding: 0; margin: 28px auto; display: inline-flex; flex-direction: column; gap: 10px; text-align: left; }
.thanks__contact li { display: flex; align-items: flex-start; gap: 10px; }
.thanks__contact .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--blue); }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 600px) {
  .switch__tab { font-size: .9rem; padding: 11px 6px; }
  .switch__tab .icon { display: none; }
}
.juris__note { margin: -2px 0 0; font-size: .85rem; color: var(--muted); }
