/* ==========================================================================
   AH Aluminium Fabrication — design system
   Industrial charcoal + safety amber. Sharp edges, high contrast, Sydney trade.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Brand / surface */
  --ink:            #0E1216;
  --graphite:       #161C22;
  --steel-900:      #212A32;
  --steel-800:      #2C3740;
  --steel-700:      #3C4954;
  --steel-600:      #55636F;
  --steel-500:      #6E7C88;
  --steel-400:      #94A1AC;
  --steel-300:      #BCC5CD;
  --steel-200:      #DCE2E7;
  --steel-100:      #EDF0F3;
  --steel-50:       #F6F8F9;
  --white:          #FFFFFF;

  /* Accent — safety amber */
  --accent:         #F0A017;
  --accent-hover:   #D9890A;
  --accent-soft:    #FFF4E0;
  --on-accent:      #14181C;

  /* Semantic */
  --bg:             var(--white);
  --bg-alt:         var(--steel-50);
  --fg:             #1B2229;
  --fg-muted:       #4E5A65;
  --border:         var(--steel-200);
  --danger:         #C62828;
  --success:        #1B7A3E;

  /* Type */
  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing (4/8 rhythm) */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 96px;  --space-10: 128px;

  /* Radius — deliberately tight; this is a metal fabrication brand */
  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(14, 18, 22, 0.08);
  --shadow-md: 0 4px 16px rgba(14, 18, 22, 0.10);
  --shadow-lg: 0 12px 40px rgba(14, 18, 22, 0.16);

  /* Motion */
  --t-fast: 150ms;
  --t-base: 220ms;
  --t-slow: 400ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --header-h: 76px;

  /* Layers */
  --z-base: 1;
  --z-sticky: 100;
  --z-nav: 200;
  --z-drawer: 300;
  --z-skip: 400;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: var(--fg);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
li { margin-bottom: var(--space-2); }

strong { font-weight: 650; }

/* Long content (URLs, ids) must reflow rather than overflow */
.wrap-anywhere { overflow-wrap: anywhere; }

/* --- Accessibility ------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-skip);
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--space-3) var(--space-5);
  font-weight: 650;
  border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible { outline-color: var(--accent); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }

.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: var(--steel-200); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --- Type helpers -------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--accent); }

.lead {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 62ch;
}
.section--dark .lead, .on-dark .lead { color: var(--steel-300); }

.section-head { max-width: 64ch; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
  touch-action: manipulation;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark:hover { background: var(--steel-800); border-color: var(--steel-800); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--steel-300); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  text-decoration: none;
  min-height: 44px;
  transition: gap var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--accent); }
.on-dark .link-arrow:hover { color: var(--white); }

/* --- Top bar ------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: var(--steel-300);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-2);
  min-height: 40px;
}
@media (min-width: 900px) { .topbar__inner { justify-content: space-between; } }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--steel-300);
  transition: color var(--t-fast) var(--ease);
}
.topbar__item svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
a.topbar__item:hover { color: var(--white); }
.topbar__group { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
@media (max-width: 600px) { .topbar__hide-sm { display: none; } }

/* --- Header / nav -------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--graphite);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  padding-block: var(--space-2);
}
.brand__emblem {
  width: 52px;
  height: auto;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
}
.brand__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 420px) { .brand__name { font-size: 0.9375rem; } .brand__sub { letter-spacing: 0.16em; } }

.nav { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: var(--space-1); }
}
.nav__link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel-300);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--white); border-bottom-color: rgba(240,160,23,0.5); }
.nav__link[aria-current="page"] { color: var(--white); border-bottom-color: var(--accent); }

.header__cta { display: none; }
@media (min-width: 1000px) { .header__cta { display: inline-flex; } }

/* Mobile menu toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-sm);
  color: var(--white);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle svg { width: 22px; height: 22px; }
.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; }
@media (min-width: 1000px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: rgba(14,18,22,0.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base) var(--ease);
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(360px, 88vw);
  background: var(--graphite);
  padding: var(--space-5);
  padding-top: max(var(--space-5), env(safe-area-inset-top));
  padding-bottom: max(var(--space-5), env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.drawer[data-open="true"] .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; justify-content: flex-end; margin-bottom: var(--space-3); }
.drawer__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.drawer__link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.drawer__link[aria-current="page"] { color: var(--accent); }
.drawer__foot { margin-top: var(--space-5); display: grid; gap: var(--space-3); }

body.is-locked { overflow: hidden; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(14,18,22,0.94) 0%, rgba(14,18,22,0.82) 42%, rgba(14,18,22,0.55) 100%),
    linear-gradient(to top, rgba(14,18,22,0.9) 0%, rgba(14,18,22,0) 45%);
}
.hero__inner {
  padding-block: clamp(64px, 11vw, 132px);
  max-width: 780px;
}
.hero h1 { color: var(--white); margin-bottom: var(--space-5); }
.hero__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--steel-200);
  max-width: 56ch;
  margin-bottom: var(--space-6);
}
.hero--compact .hero__inner { padding-block: clamp(52px, 8vw, 92px); }

/* Hero trust strip */
.hero__strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-7);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero__strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--steel-200);
}
.hero__strip-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--steel-400);
  margin-bottom: var(--space-4);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: '/'; color: var(--steel-600); }
.breadcrumb a { color: var(--steel-300); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--accent); }

/* --- Value band (amber) -------------------------------------------------- */
.band {
  background: var(--accent);
  color: var(--on-accent);
}
.band__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding-block: var(--space-7);
}
@media (min-width: 900px) {
  .band__inner { grid-template-columns: 1fr auto; gap: var(--space-8); }
}
.band h2 { color: var(--on-accent); margin-bottom: var(--space-3); }
.band p { color: rgba(20,24,28,0.82); max-width: 62ch; }
.band .eyebrow { color: rgba(20,24,28,0.7); }
.band .eyebrow::before { background: rgba(20,24,28,0.6); }

/* --- Trust / stat items -------------------------------------------------- */
.trust-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-item {
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
}
.trust-item__icon {
  width: 36px; height: 36px;
  color: var(--accent-hover);
  margin-bottom: var(--space-4);
}
.trust-item h3 { font-size: 1.0625rem; margin-bottom: var(--space-2); }
.trust-item p { font-size: 0.9375rem; color: var(--fg-muted); margin: 0; }

/* --- Service cards ------------------------------------------------------- */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.service-card:hover {
  border-color: var(--steel-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--steel-100);
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__tag {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
}
.service-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { margin-bottom: var(--space-3); }
.service-card__body p { color: var(--fg-muted); font-size: 0.9375rem; flex: 1; }
.service-card__foot { margin-top: var(--space-4); }

/* Compact list-style service item (used on service pages) */
.spec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--space-5);
  height: 100%;
}
.spec-card__icon { width: 32px; height: 32px; color: var(--accent-hover); margin-bottom: var(--space-4); }
.spec-card h3 { font-size: 1.0625rem; margin-bottom: var(--space-2); }
.spec-card p { font-size: 0.9375rem; color: var(--fg-muted); margin: 0; }

/* --- Split content ------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--reverse .split__media { order: 2; }
}
.split__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--steel-100);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__badge {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  background: var(--ink);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 70%;
}

/* --- Checklist ----------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  font-size: 0.9688rem;
}
.checklist svg {
  width: 21px; height: 21px;
  color: var(--accent-hover);
  flex: none;
  margin-top: 2px;
}
.section--dark .checklist svg, .on-dark .checklist svg { color: var(--accent); }
@media (min-width: 700px) { .checklist--2col { grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-6); } }

/* --- Process steps ------------------------------------------------------- */
.steps { display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.section--dark .step { background: var(--steel-900); border-color: rgba(255,255,255,0.1); }
.step__num {
  position: absolute;
  top: 0;
  left: var(--space-5);
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--r-sm);
}
.step h3 { font-size: 1.0625rem; margin-bottom: var(--space-2); }
.step p { font-size: 0.9375rem; color: var(--fg-muted); margin: 0; }
.section--dark .step p { color: var(--steel-300); }

/* Process with imagery */
.process-visual { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .process-visual { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-visual { grid-template-columns: repeat(4, 1fr); } }
.process-visual__item { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--ink); }
.process-visual__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: 0.66;
  transition: opacity var(--t-base) var(--ease), transform var(--t-slow) var(--ease);
}
.process-visual__item:hover img { opacity: 0.8; transform: scale(1.03); }
.process-visual__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: linear-gradient(to top, rgba(14,18,22,0.95), rgba(14,18,22,0));
  color: var(--white);
}
.process-visual__step {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-1);
}
.process-visual__caption h3 { font-size: 1rem; color: var(--white); margin: 0 0 var(--space-1); }
.process-visual__caption p { font-size: 0.875rem; color: var(--steel-300); margin: 0; }

/* --- Gallery ------------------------------------------------------------- */
.gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--steel-100);
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-6) var(--space-3) var(--space-3);
  background: linear-gradient(to top, rgba(14,18,22,0.92), rgba(14,18,22,0));
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { aspect-ratio: 2 / 1; }

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.cta-band::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(14,18,22,0.95) 20%, rgba(14,18,22,0.6) 100%);
}
.cta-band__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
}
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: var(--space-8); } }
.cta-band h2 { color: var(--white); margin-bottom: var(--space-3); }
.cta-band p { color: var(--steel-300); max-width: 58ch; margin: 0; }

/* --- FAQ accordion ------------------------------------------------------- */
.faq { display: grid; gap: var(--space-3); max-width: 860px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--steel-400); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  min-height: 60px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.0313rem;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--t-fast) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--steel-50); }
.faq__icon {
  width: 22px; height: 22px;
  flex: none;
  color: var(--accent-hover);
  transition: transform var(--t-base) var(--ease);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--fg-muted);
  font-size: 0.9688rem;
}
.faq__a > :first-child { margin-top: 0; }

/* --- Form panel (wraps the GoHighLevel embed) ---------------------------- */
.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
@media (min-width: 700px) { .form-panel { padding: var(--space-7); } }

/* The embedded form brings its own internal padding */
.form-panel--embed { padding: var(--space-4); }
@media (min-width: 700px) { .form-panel--embed { padding: var(--space-5); } }
.form-panel--embed iframe { display: block; width: 100%; }

/* --- Contact block ------------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.contact-list li { display: flex; gap: var(--space-4); margin: 0; }
.contact-list__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(240,160,23,0.14);
  border-radius: var(--r-sm);
  flex: none;
}
.contact-list__icon svg { width: 21px; height: 21px; color: var(--accent); }
.contact-list dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-600);
  margin-bottom: 2px;
}
.contact-list dd { margin: 0; font-size: 1.0313rem; }
.contact-list a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(240,160,23,0.5); }
.contact-list a:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* --- Long-form content (privacy policy) ---------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin: var(--space-7) 0 var(--space-3); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--fg-muted); }
.prose ul { margin-bottom: var(--space-5); }
.prose strong { color: var(--fg); }
.prose a { color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose__updated { font-size: 0.9375rem; color: var(--steel-300); margin-top: var(--space-4); }

.form-note { font-size: 0.8125rem; color: var(--fg-muted); margin-top: var(--space-3); }
.form-note a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }

/* --- 404 quick links --------------------------------------------------- */
.spec-card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.spec-card--link p { flex: 1; }
.spec-card--link .link-arrow { margin-top: var(--space-4); }
.spec-card--link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.spec-card--link:hover .link-arrow svg { transform: translateX(4px); }

/* --- Footer -------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--steel-300);
  padding-block: var(--space-8) var(--space-5);
  font-size: 0.9375rem;
}
.footer__grid { display: grid; gap: var(--space-7); }
@media (min-width: 760px)  { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--space-3); }
.footer a { color: var(--steel-300); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.footer a:hover { color: var(--accent); }
.footer__about p { color: var(--steel-400); max-width: 42ch; font-size: 0.9375rem; }
.footer__brand { margin-bottom: var(--space-4); }
.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  align-items: center;
  color: var(--steel-400);
  font-size: 0.875rem;
}
.footer__areas { color: var(--steel-400); font-size: 0.875rem; line-height: 1.7; }

/* --- Sticky mobile call bar ---------------------------------------------- */
.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.12);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(14,18,22,0.22);
}
@media (min-width: 1000px) { .callbar { display: none; } }
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.callbar svg { width: 18px; height: 18px; }
.callbar__call { background: var(--ink); color: var(--white); }
.callbar__quote { background: var(--accent); color: var(--on-accent); }

/* Give content room above the fixed bar on mobile */
@media (max-width: 999px) {
  .footer { padding-bottom: calc(var(--space-8) + 56px); }
}

/* --- Scroll reveal ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .header, .topbar, .callbar, .cta-band, .drawer { display: none !important; }
  body { font-size: 12pt; }
}
