/* ==========================================================================
   Shresth Media — Outdoor, Transit & BTL Advertising Agency
   Main stylesheet. Mobile-first; breakpoints at 480 / 768 / 1024 / 1280px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand — taken from the Shresth Media logo (navy + gold). */
  --brand: #b58348;            /* gold: surfaces, rules, decoration */
  --brand-dark: #9d7140;       /* gold, pressed state */
  --on-brand: #20242d;         /* navy text/icons ON gold (4.7:1) */
  --brand-text: #8f6530;       /* gold small text on light backgrounds (5.2:1) */
  --brand-text-dark: #c69550;  /* gold text on dark backgrounds (5.8:1) */
  --brand-soft: rgba(181, 131, 72, 0.12);
  --error: #c2302b;            /* form errors — gold reads as decoration, not alarm */

  /* Secondary — the complement of the logo gold. */
  --teal: #1a5f6b;             /* 7.3:1 on white; white on it is 7.3:1 */
  --teal-dark: #14505c;
  --teal-light: #5fb4c4;       /* teal for text on navy (6.5:1) */
  --teal-soft: rgba(26, 95, 107, 0.09);

  /* Warm neutrals — they make the gold read as gold, not mustard. */
  --cream: #faf7f2;
  --champagne: #f5efe6;

  /* Neutrals */
  --ink: #20242d;              /* logo navy */
  --ink-2: #2a2f3a;
  --ink-3: #373d4b;
  --body: #5e5e6a;             /* 6.4:1 on white */
  --body-light: #a8a8b4;       /* 6.6:1 on navy */
  --line: #e6e6ea;
  --line-dark: rgba(255, 255, 255, 0.12);
  --bg: #ffffff;
  --bg-alt: var(--cream);

  /* Typography */
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2.25rem, 1.1rem + 5.4vw, 5.25rem);
  --fs-display: clamp(1.9rem, 1.1rem + 3.4vw, 3.75rem);
  --fs-h2: clamp(1.65rem, 1.05rem + 2.4vw, 2.9rem);
  --fs-h3: clamp(1.25rem, 1rem + 1.05vw, 1.75rem);
  --fs-h4: clamp(1.1rem, 0.98rem + 0.5vw, 1.3rem);
  --fs-body: clamp(0.95rem, 0.92rem + 0.15vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Spacing scale (8px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Section rhythm — shrinks on small screens */
  --section-y: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2.5rem);
  --container: 1280px;

  /* Effects */
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 10px rgba(45, 34, 20, 0.07);
  --shadow: 0 14px 34px rgba(45, 34, 20, 0.13);
  --shadow-lg: 0 26px 64px rgba(45, 34, 20, 0.2);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --header-h: 72px;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 88px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
}

/* `clip` contains the off-canvas drawer without creating a scroll container,
   so position: sticky on the header still works. Older engines fall back to
   the `hidden` rule above. */
@supports (overflow: clip) {
  html {
    overflow-x: clip;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* A <picture> is just a box around its <img>, so the `height: auto` above makes
   it collapse to the image's intrinsic height. An `height: 100%` on the img
   inside then resolves against an indefinite height — it computes to `auto`,
   and `object-fit: cover` becomes a no-op. Wide viewports hide this (a 16:9
   image is tall enough to fill the box anyway); narrow ones show the image as
   a short band at the top. Cover wrappers pass their height through. */
.hero__media picture,
.page-banner__bg picture,
.cta-band__bg picture,
.service-card__media picture,
.post-card__media picture,
.project-card > picture,
.gallery__item picture {
  height: 100%;
}

/* Keep one map without JavaScript; reserve its space while JS defers loading. */
.map-embed[data-deferred-src] { display: none; }
.js .map-embed[data-deferred-src] { display: block; }

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin: 0 0 var(--sp-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand-text);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand-dark);
}

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.25rem;
}

/* Visible focus ring — never remove it. */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: var(--sp-4);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 840px;
}

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: linear-gradient(155deg, var(--ink) 0%, #1b2f37 100%);
  color: var(--body-light);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4.5rem);
  }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
}

/* --------------------------------------------------------------------------
   4. Section headings
   -------------------------------------------------------------------------- */

.sec-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-head--center .sec-title::before {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  margin: 0 auto var(--sp-4);
  background: linear-gradient(90deg, var(--brand) 0 60%, var(--teal) 60% 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  font-family: var(--font-head);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--brand);
}

.sec-head--center .eyebrow::before {
  display: none;
}

.sec-title {
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
}

/* The red full-stop after headings — a signature of this layout style. */
.sec-title::after {
  content: '.' / '';
  color: var(--brand-text);
}

.sec-title--punctuated::after {
  content: none;
}

.sec-lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--body);
}

.section--dark .sec-lead {
  color: var(--body-light);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  background-repeat: no-repeat;
  transition: background-color 0.25s var(--ease), background-size 0.4s var(--ease),
    background-position 0.65s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--primary {
  /* Layer one is the sweep, parked off the right edge; layer two is the fill. */
  background-image:
    linear-gradient(105deg,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 0.42) 47%,
      rgba(255, 255, 255, 0) 56%),
    linear-gradient(145deg, #c99a5a 0%, var(--brand) 100%);
  background-size: 250% 100%, 100% 100%;
  background-position: 135% 0, 0 0;
  border-color: #9d7140;
  color: var(--on-brand);
  box-shadow: 0 4px 12px rgba(157, 113, 64, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--primary:hover {
  background-position: -45% 0, 0 0;
  border-color: #8f6530;
  color: var(--on-brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(157, 113, 64, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.btn--secondary {
  background-image: linear-gradient(145deg, #226f7d 0%, var(--teal) 100%);
  border-color: var(--teal-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 80, 92, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--secondary:hover {
  background-image: linear-gradient(145deg, #2a8090 0%, #175764 100%);
  border-color: var(--teal-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 80, 92, 0.36);
}

.btn--ghost {
  background-color: transparent;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 100%;
  background-position: left center;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background-size: 100% 100%;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(32, 36, 45, 0.22);
}

.btn--light {
  background-color: #fff;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0 100%;
  background-position: left center;
  border-color: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background-size: 100% 100%;
  border-color: var(--brand);
  color: var(--on-brand);
  transform: translateY(-2px);
}

.btn--outline-light {
  background-color: rgba(255, 255, 255, 0.06);
  background-image: linear-gradient(#fff, #fff);
  background-size: 0 100%;
  background-position: left center;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.btn--outline-light:hover {
  background-size: 100% 100%;
  border-color: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
  transform: none;
  background-position: 135% 0, 0 0;
}

.btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.btn-group--center {
  justify-content: center;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.link-arrow svg {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--brand-text);
}

.link-arrow:hover svg {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */

.topbar {
  display: none;
  background: var(--ink);
  color: var(--body-light);
  font-size: var(--fs-small);
}

@media (min-width: 1024px) {
  .topbar {
    display: block;
  }
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 44px;
}

.topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  gap: var(--sp-2);
  color: var(--body-light);
}

.topbar a:hover {
  color: #fff;
}

.topbar__socials {
  display: flex;
  gap: var(--sp-4);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-stuck {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.logo:hover {
  color: var(--ink);
}

.logo__mark {
  width: auto;
  height: 34px;
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .logo__mark {
    height: 42px;
  }
}

.logo__text em {
  font-style: normal;
  color: var(--brand-text);
}

.footer__grid .logo__text em,
.drawer__head .logo__text em {
  color: var(--brand-text-dark);
}

.logo__text small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--body);
}

/* The tagline is the first thing to go when the header gets tight. */
@media (max-width: 479px) {
  .logo__text small {
    display: none;
  }
}

/* Desktop nav */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: block;
    margin-left: auto;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.28s var(--ease);
}

.nav__link:hover,
.nav__item.is-active > .nav__link {
  color: var(--brand-text);
}

.nav__link:hover::after,
.nav__item.is-active > .nav__link::after {
  width: 100%;
}

.nav__item--has-children {
  position: relative;
}

.nav__caret {
  width: 9px;
  height: 9px;
  transition: transform 0.25s var(--ease);
}

.nav__item--has-children:hover .nav__caret,
.nav__item--has-children:focus-within .nav__caret {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 260px;
  margin: 0;
  padding: var(--sp-2) 0;
  list-style: none;
  background: #fff;
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav__item--has-children:hover > .dropdown,
.nav__item--has-children:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.dropdown a:hover {
  background: var(--bg-alt);
  border-left-color: var(--brand);
  color: var(--brand-text);
  padding-left: 1.5rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

@media (min-width: 1024px) {
  .header__actions {
    margin-left: var(--sp-6);
  }
}

.header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .header__cta {
    display: inline-flex;
  }
}

/* Icon button (call / menu) */
.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

@media (min-width: 1024px) {
  .icon-btn--menu,
  .icon-btn--call {
    display: none;
  }
}

/* Hamburger icon */
.burger {
  position: relative;
  width: 20px;
  height: 14px;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }

.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Mobile drawer
   -------------------------------------------------------------------------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(17, 17, 20, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
}

.drawer__head .logo,
.drawer__head .logo:hover {
  color: #fff;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.drawer__close:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.drawer__nav {
  flex: 1;
  padding: var(--sp-4) var(--sp-5);
}

.drawer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer__list > li {
  border-bottom: 1px solid var(--line-dark);
}

.drawer__list a {
  display: block;
  padding: 0.95rem 0;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.drawer__list a:hover,
.drawer__list .is-active > a {
  color: var(--brand-text);
}

.drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 0;
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.drawer__toggle svg {
  flex: 0 0 12px;
  transition: transform 0.25s var(--ease);
}

.drawer__toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.drawer__sub {
  margin: 0;
  padding: 0 0 var(--sp-3) var(--sp-4);
  list-style: none;
  display: none;
}

.drawer__sub.is-open {
  display: block;
  animation: slideDown 0.25s var(--ease);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer__sub a {
  padding: 0.55rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--body-light);
}

.drawer__foot {
  padding: var(--sp-5);
  border-top: 1px solid var(--line-dark);
}

.drawer__contact {
  margin: 0 0 var(--sp-4);
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
}

.drawer__contact li {
  margin-bottom: var(--sp-2);
}

.drawer__contact a {
  display: inline-block;
  min-height: 26px;
  padding-block: 3px;
  color: var(--body-light);
}

.drawer__contact a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   8. Mobile sticky action bar
   -------------------------------------------------------------------------- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  box-shadow: 0 -4px 20px rgba(17, 17, 20, 0.25);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1024px) {
  .action-bar {
    display: none;
  }
}

.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 56px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.action-bar a + a {
  border-left: 1px solid var(--line-dark);
}

.action-bar a:first-child {
  background: var(--brand);
  color: var(--on-brand);
}

.action-bar a:hover {
  opacity: 0.88;
}

/* Keep page content clear of the bar on mobile */
@media (max-width: 1023px) {
  .site-footer {
    padding-bottom: 72px;
  }
}

/* --------------------------------------------------------------------------
   9. Hero slider
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(520px, 86vh, 860px);
  display: grid;
  overflow: hidden;
  background: var(--ink);
}

.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__slide.is-active .hero__media img {
  animation: kenburns 9s linear forwards;
}

@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.14); }
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(181, 131, 72, 0.16) 0%, rgba(181, 131, 72, 0) 34%),
    linear-gradient(103deg,
      rgba(23, 27, 34, 0.94) 0%,
      rgba(27, 34, 43, 0.89) 54%,
      rgba(27, 47, 55, 0.63) 100%);
}

/* Keep the upper part of the photo visible and darken the area behind copy. */
@media (max-width: 899px) {
  .hero {
    min-height: clamp(560px, 88svh, 860px);
  }

  .hero__media::after {
    background:
      linear-gradient(to top, rgba(181, 131, 72, 0.12) 0%, rgba(181, 131, 72, 0) 45%),
      linear-gradient(to bottom,
        rgba(23, 27, 34, 0.38) 0%,
        rgba(23, 27, 34, 0.82) 13%,
        rgba(27, 34, 43, 0.84) 70%,
        rgba(23, 27, 34, 0.78) 100%);
  }

  .hero__eyebrow,
  .hero__title,
  .hero__text {
    text-shadow: 0 2px 14px rgba(12, 15, 20, 0.62);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: calc(var(--sp-8) + 2rem) calc(var(--sp-8) + 3rem);
}

.hero__content {
  max-width: 820px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-family: var(--font-head);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
}

.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--brand);
}

.hero__title {
  margin-bottom: var(--sp-4);
  font-family: var(--font-head);
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #fff;
}

.hero__title em {
  font-style: normal;
  color: var(--brand-text);
}

.hero__text {
  max-width: 560px;
  margin-bottom: var(--sp-6);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.82);
}

/* Staggered entrance for the active slide */
.hero__slide.is-active .hero__eyebrow,
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__text,
.hero__slide.is-active .hero__actions {
  animation: heroIn 0.8s var(--ease) both;
}

.hero__slide.is-active .hero__title { animation-delay: 0.12s; }
.hero__slide.is-active .hero__text { animation-delay: 0.24s; }
.hero__slide.is-active .hero__actions { animation-delay: 0.36s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero controls follow the production layout. */

.hero__nav {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero__count {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  min-width: 42px;
  text-align: center;
}

.hero__count-now {
  color: #fff;
}

.hero__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.hero__arrow:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

@media (max-width: 1023px) {
  .hero__nav {
    right: auto;
    left: var(--gutter);
  }
}

@media (min-width: 1280px) {
  .hero__nav {
    right: auto;
    left: 0;
    bottom: auto;
    top: 50%;
    width: 100%;
    justify-content: space-between;
    padding-inline: var(--gutter);
    transform: translateY(-50%);
    pointer-events: none;
  }

  .hero__arrow {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    pointer-events: auto;
  }

  /* The counter would float in the middle of the hero copy at this width. */
  .hero__count {
    display: none;
  }
}

@media (max-width: 639px) {
  html {
    scroll-padding-bottom: 88px;
  }
}

/* Stats strip under the hero */
.hero-stats {
  position: relative;
  z-index: 4;
  background: linear-gradient(118deg, #171b22 0%, var(--ink) 42%, #1b2f37 100%);
  overflow: hidden;
}

/* A gold hairline carries the brand across the join with the hero. */
.hero-stats::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg,
    var(--brand) 0%, var(--brand-text-dark) 35%, var(--teal) 68%, var(--brand) 100%);
}

/* A soft warm glow stops the dark band reading as a plain black bar. */
.hero-stats::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -60%;
  width: 720px;
  height: 220%;
  background: radial-gradient(ellipse at center,
    rgba(181, 131, 72, 0.22) 0%, rgba(181, 131, 72, 0) 65%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .hero-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-stats__item {
  position: relative;
  z-index: 2;
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background-color 0.3s var(--ease);
}

.hero-stats__item:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* A short gold rule under each figure, widening on hover. */
.hero-stats__item::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(var(--sp-5) - 10px);
  width: 22px;
  height: 2px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}

.hero-stats__item:hover::after {
  width: 54px;
}

@media (min-width: 900px) {
  .hero-stats__item {
    border-bottom: 0;
    padding-block: var(--sp-6);
  }
  .hero-stats__item:last-child {
    border-right: 0;
  }
}

.hero-stats__num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

/* The trailing "+" takes the gold, so every figure carries a brand mark
   without the whole band being gold. */
.hero-stats__num em {
  font-style: normal;
  color: var(--brand-text-dark);
}

.hero-stats__label {
  display: block;
  margin-top: var(--sp-3);
  padding-bottom: var(--sp-3);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

/* --------------------------------------------------------------------------
   10. Page banner (inner pages)
   -------------------------------------------------------------------------- */

.page-banner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(240px, 34vw, 380px);
  background: var(--ink);
  overflow: hidden;
}

.page-banner__bg {
  position: absolute;
  inset: 0;
}

.page-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 20, 0.92) 0%,
    rgba(17, 17, 20, 0.82) 100%
  );
}

.page-banner__inner {
  position: relative;
  z-index: 2;
  padding-block: var(--sp-7);
}

.page-banner__title {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-display);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  display: inline-block;
  min-height: 24px;
  padding-block: 2px;
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--brand-text);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--sp-2);
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb [aria-current] {
  color: var(--brand-text);
}

/* --------------------------------------------------------------------------
   11. Marquee strip
   -------------------------------------------------------------------------- */

.marquee {
  padding-block: var(--sp-4);
  background: linear-gradient(96deg, #a9763d 0%, var(--brand) 38%, #c99a5a 72%, var(--brand) 100%);
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-6);
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-6);
  font-family: var(--font-head);
  font-size: clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-brand);
}

.marquee__item::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  opacity: 0.45;
}

/* --------------------------------------------------------------------------
   12. Cards — services
   -------------------------------------------------------------------------- */

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 0;
  height: 3px;
  background: var(--brand);
  transition: width 0.45s var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.service-card:hover::before,
.service-card:focus-within::before {
  width: 100%;
}

.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.07);
}

.service-card__num {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--brand);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 900;
  color: var(--on-brand);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--sp-4);
  background: var(--brand-soft);
  border-radius: var(--radius);
  color: var(--brand-text);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.service-card:hover .service-card__icon {
  background: var(--brand);
  color: var(--on-brand);
}

.service-card__title {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-h4);
  text-transform: uppercase;
}

.service-card__title a {
  color: inherit;
}

.service-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.service-card:hover .service-card__title a {
  color: var(--brand-text);
}

.service-card__text {
  flex: 1;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-small);
}

/* The last tile in the services grid is a prompt rather than a service, so it
   has no image. Its content is centred as a block instead of being pushed to
   the top and bottom edges of a card that matches its neighbours' height. */
.service-card--cta {
  background: linear-gradient(155deg, var(--ink) 0%, #1b2f37 100%);
  border-color: transparent;
}

.service-card--cta .service-card__body {
  justify-content: center;
}

.service-card--cta .service-card__icon {
  background: rgba(198, 149, 80, 0.16);
  color: var(--brand-text-dark);
}

.service-card--cta:hover .service-card__icon {
  background: var(--brand);
  color: var(--on-brand);
}

.service-card--cta .service-card__title {
  color: #fff;
}

.service-card--cta:hover .service-card__title {
  color: var(--brand-text-dark);
}

.service-card--cta .service-card__text {
  flex: 0 1 auto;
  margin-bottom: var(--sp-5);
  color: var(--body-light);
}

.service-card--cta .btn {
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   13. Feature / why-choose-us tiles
   -------------------------------------------------------------------------- */

.feature {
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.section--alt .feature {
  background: #fff;
}

.section--dark .feature {
  background: var(--ink-2);
  border-color: var(--line-dark);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: var(--sp-4);
  background: var(--teal);
  border-radius: var(--radius);
  color: #fff;
  transition: transform 0.3s var(--ease);
}

.feature:hover .feature__icon {
  transform: translateY(-2px) rotate(-4deg);
}

.section--dark .feature__icon {
  background: var(--teal-light);
  color: var(--ink);
}

.feature__title {
  margin-bottom: var(--sp-2);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature__text {
  margin: 0;
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   14. Counters & progress bars
   -------------------------------------------------------------------------- */

.counter {
  text-align: center;
  padding: var(--sp-4);
}

.counter__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}

.section--dark .counter__num {
  color: #fff;
}

.counter__suffix {
  color: var(--brand-text);
}

.counter__label {
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 500;
}

.progress + .progress {
  margin-top: var(--sp-5);
}

.progress__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.section--dark .progress__head {
  color: #fff;
}

.progress__track {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.section--dark .progress__track {
  background: rgba(95, 180, 196, 0.22);
}

.progress__bar {
  width: 0;
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width 1.4s var(--ease);
}

/* --------------------------------------------------------------------------
   15. Projects
   -------------------------------------------------------------------------- */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.filter__btn {
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filter__btn:hover {
  border-color: var(--brand);
  color: var(--brand-text);
}

.filter__btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.project-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 600px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.2;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.project-card.is-hidden {
  display: none;
}

.project-card.is-entering {
  animation: cardIn 0.45s var(--ease) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.09);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
  background: linear-gradient(
    to top,
    rgba(17, 17, 20, 0.92) 0%,
    rgba(17, 17, 20, 0.45) 45%,
    rgba(17, 17, 20, 0) 75%
  );
}

.project-card__cat {
  margin-bottom: var(--sp-1);
  font-family: var(--font-head);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.project-card__title {
  margin: 0 0 var(--sp-1);
  font-size: 1.0625rem;
  color: #fff;
  text-transform: uppercase;
}

.project-card__meta {
  margin: 0;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.72);
}

.project-card__plus {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--brand);
  border-radius: 50%;
  color: var(--on-brand);
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
  transition: all 0.35s var(--ease);
}

.project-card:hover .project-card__plus,
.project-card:focus-visible .project-card__plus {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.project-empty {
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.project-empty[hidden] {
  display: none;
}

/* Project detail meta list */
.fact-list {
  margin: 0;
  padding: var(--sp-5);
  background: var(--champagne);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}

.fact-list dt {
  font-family: var(--font-head);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.fact-list dd {
  margin: var(--sp-1) 0 var(--sp-4);
  font-weight: 600;
  color: var(--ink);
}

.fact-list dd:last-child {
  margin-bottom: 0;
}

/* Gallery */
.gallery {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: var(--sp-5);
  background: rgba(10, 10, 12, 0.94);
}

.lightbox.is-open {
  display: grid;
  animation: fadeIn 0.25s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 84vh;
  width: auto;
  border-radius: var(--radius);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.lightbox__close {
  top: var(--sp-5);
  right: var(--sp-5);
}

.lightbox__nav--prev { left: var(--sp-4); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--sp-4); top: 50%; transform: translateY(-50%); }

.lightbox__count {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   16. Testimonials
   -------------------------------------------------------------------------- */

.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials__viewport {
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  transition: transform 0.55s var(--ease);
}

.testimonial {
  flex: 0 0 100%;
  padding-inline: var(--sp-2);
}

@media (min-width: 768px) {
  .testimonial {
    flex-basis: 50%;
  }
}

@media (min-width: 1200px) {
  .testimonial {
    flex-basis: 33.3333%;
  }
}

.testimonial__inner {
  height: 100%;
  padding: var(--sp-6) var(--sp-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.testimonial__quote {
  margin-bottom: var(--sp-5);
  font-size: 1rem;
  color: var(--body);
}

.testimonial__quote::before {
  content: '“';
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.6;
  color: var(--brand-text);
  margin-bottom: var(--sp-3);
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
}

.avatar--brand {
  background: var(--brand);
  color: var(--on-brand);
}

.testimonial__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink);
}

.testimonial__role {
  margin: 0;
  font-size: var(--fs-small);
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.slider-nav__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.slider-nav__btn:hover:not(:disabled) {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.slider-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   17. FAQ accordion
   -------------------------------------------------------------------------- */

.accordion {
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.accordion__btn:hover,
.accordion__btn[aria-expanded='true'] {
  color: var(--brand-text);
}

.accordion__icon {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all 0.25s var(--ease);
}

.accordion__btn[aria-expanded='true'] .accordion__icon {
  background: var(--brand);
  border-color: var(--brand);
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.accordion__icon::before { width: 11px; height: 2px; }
.accordion__icon::after { width: 2px; height: 11px; }

.accordion__btn[aria-expanded='true'] .accordion__icon::before,
.accordion__btn[aria-expanded='true'] .accordion__icon::after {
  background: var(--on-brand);
}

.accordion__btn[aria-expanded='true'] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__panel {
  overflow: hidden;
  height: 0;
  transition: height 0.32s var(--ease);
}

/* Without the script there is nothing to open the panels, so the answers stay
   visible rather than being permanently collapsed. */
html:not(.js) .accordion__panel {
  height: auto;
}

html:not(.js) .accordion__icon {
  display: none;
}

.accordion__panel > div {
  padding-bottom: var(--sp-5);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding-block: var(--section-y);
  background: linear-gradient(120deg, var(--ink) 0%, var(--teal-dark) 140%);
  overflow: hidden;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

/* Warm light from the corner, so the band is not a flat rectangle. */
.cta-band::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -40%;
  width: 55%;
  height: 180%;
  background: radial-gradient(ellipse at center,
    rgba(181, 131, 72, 0.3) 0%, rgba(181, 131, 72, 0) 62%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 2;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1fr auto;
    gap: var(--sp-7);
    text-align: left;
  }
}

.cta-band__title {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-h2);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}

.cta-band__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.cta-band .btn-group {
  justify-content: center;
}

@media (min-width: 900px) {
  .cta-band .btn-group {
    justify-content: flex-end;
  }
}

/* Big outlined display text */
.big-cta {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 1rem + 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 var(--sp-5);
}

.big-cta em {
  font-style: normal;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  color: transparent;
}

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-field--full {
    grid-column: 1 / -1;
  }
}

.form-field label {
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-field .req {
  color: var(--brand-text);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235e5e6a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--body-light);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181, 131, 72, 0.28);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--body-light);
}

.input[aria-invalid='true'],
.textarea[aria-invalid='true'],
.select[aria-invalid='true'] {
  border-color: var(--error);
  background: rgba(194, 48, 43, 0.04);
}

.field-error {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-small);
}

.checkbox input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.checkbox label {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--body);
  cursor: pointer;
}

/* Honeypot — hidden from humans, visible to naive bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 500;
}

.form-status[hidden] {
  display: none;
}

.form-status--ok {
  background: rgba(22, 150, 90, 0.08);
  border-left: 3px solid #16965a;
  color: #106b41;
}

.form-status--error {
  background: rgba(194, 48, 43, 0.07);
  border-left: 3px solid var(--error);
  color: #9b2622;
}

/* Contact info cards */
.info-card {
  min-width: 0;
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.info-card > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-field a[href$="privacy-policy"],
.checkbox a[href$="privacy-policy"] {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background: var(--teal);
  border-radius: var(--radius);
  color: #fff;
}

.info-card__title {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.info-card__body {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--ink);
  font-weight: 500;
}

.info-card__body a {
  display: inline-block;
  min-height: 24px;
  padding-block: 2px;
  color: var(--ink);
}

.info-card__body a:hover {
  color: var(--brand-text);
}

.map-embed {
  aspect-ratio: 16 / 9;
  border: 0;
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s var(--ease);
}

.map-embed:hover {
  filter: none;
}

@media (max-width: 599px) {
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   20. News / blog
   -------------------------------------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.post-card {
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.45s var(--ease);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.post-card:hover::before {
  width: 100%;
}

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-alt);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.07);
}

.post-card__date {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 2;
  padding: var(--sp-2) var(--sp-3);
  background: var(--brand);
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.1;
  color: var(--on-brand);
}

.post-card__date strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 900;
}

.post-card__date span {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
}

.post-card__cat {
  display: inline-block;
  margin-bottom: var(--sp-3);
  padding: 0.25rem 0.6rem;
  background: var(--teal-soft);
  border-radius: 3px;
  font-family: var(--font-head);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.post-card__title {
  margin-bottom: var(--sp-3);
  font-size: 1.0625rem;
  line-height: 1.35;
}

.post-card__title a {
  color: inherit;
}

.post-card__title a:hover {
  color: var(--brand-text);
}

.post-card__text {
  flex: 1;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-small);
}

/* Article body */
.article-body {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
}

.article-body h2 {
  margin-top: var(--sp-7);
  font-size: var(--fs-h3);
}

.article-body h3 {
  margin-top: var(--sp-6);
  font-size: var(--fs-h4);
}

.article-body img {
  margin-block: var(--sp-6);
  border-radius: var(--radius);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--sp-5);
}

.article-body li {
  margin-bottom: var(--sp-2);
}

.article-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--teal-dark);
}

.article-body blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5);
  background: var(--champagne);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-small);
  color: var(--body);
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Sidebar */
.sidebar {
  display: grid;
  gap: var(--sp-5);
  align-content: start;
}

.widget {
  padding: var(--sp-5);
  background: var(--champagne);
  border-radius: var(--radius);
}

.widget p {
  font-size: var(--fs-small);
}

.widget__title {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  font-size: 1rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li + li {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

.widget a {
  display: flex;
  justify-content: space-between;
  min-height: 26px;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
}

.widget a:hover {
  color: var(--brand-text);
}

.widget--dark {
  background: var(--ink);
  color: var(--body-light);
}

.widget--dark .widget__title {
  color: #fff;
  border-color: var(--line-dark);
}

/* --------------------------------------------------------------------------
   21. Coverage list
   -------------------------------------------------------------------------- */

.coverage-list {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .coverage-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-small);
}

.coverage-list strong {
  display: block;
  font-family: var(--font-head);
  color: var(--ink);
}

.coverage-list svg {
  flex: 0 0 18px;
  margin-top: 3px;
  color: var(--brand-text);
}

/* Tick list */
.tick-list {
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-small);
}

.tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  background: var(--brand);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2320242d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding: var(--sp-5);
  padding-top: var(--sp-7);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-5);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--teal);
}

/* The process runs left to right, so the rule under each step does too. */
.step::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.4s var(--ease);
}

.step:hover::after {
  width: 100%;
}

.step__title {
  margin-bottom: var(--sp-2);
  font-size: 1rem;
  text-transform: uppercase;
}

.step__text {
  margin: 0;
  font-size: var(--fs-small);
}

/* Image with accent frame */
.framed {
  position: relative;
}

.framed img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: var(--radius);
}

.framed::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 55%;
  height: 55%;
  border: 3px solid var(--brand);
  border-radius: var(--radius);
  z-index: 1;
}

.framed::after {
  content: '';
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 48%;
  height: 42%;
  background: var(--champagne);
  border-radius: var(--radius);
  z-index: 0;
}

@media (max-width: 599px) {
  .framed::before {
    top: -10px;
    left: -10px;
  }
}

.badge-float {
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  z-index: 3;
  padding: var(--sp-4) var(--sp-5);
  background: var(--brand);
  border-radius: var(--radius);
  color: var(--on-brand);
  box-shadow: var(--shadow);
}

.badge-float strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.badge-float span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 599px) {
  .badge-float {
    right: 0;
    bottom: -0.75rem;
    padding: var(--sp-3) var(--sp-4);
  }
  .badge-float strong { font-size: 1.35rem; }
}

/* Founder placeholder block */
.founder-card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: var(--sp-6);
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-3) 100%);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.09) 1px,
    transparent 0
  );
  background-size: 18px 18px;
}

.founder-card__inner {
  position: relative;
  z-index: 2;
}

.founder-card__monogram {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin: 0 auto var(--sp-5);
  background: var(--brand);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--on-brand);
  letter-spacing: -0.03em;
}

.founder-card__name {
  margin-bottom: var(--sp-1);
  font-size: var(--fs-h3);
  color: #fff;
  text-transform: uppercase;
}

.founder-card__role {
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.founder-card__note {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #1b2f37 0%, var(--ink) 55%);
  color: var(--body-light);
}

/* A hairline of the full palette ties the footer to the brand. */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 38%,
    var(--teal) 38%, var(--teal) 62%, var(--brand) 62%);
}

.footer__top {
  padding-block: var(--section-y) var(--sp-7);
}

.footer__grid {
  display: grid;
  gap: var(--sp-7);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: var(--sp-6);
  }
}

.footer .logo,
.footer__grid .logo {
  color: #fff;
  margin-bottom: var(--sp-4);
}

.footer__grid .logo:hover {
  color: #fff;
}

.footer__grid .logo__text small {
  color: var(--body-light);
}

.footer__about {
  font-size: var(--fs-small);
  margin-bottom: var(--sp-5);
}

.footer__title {
  margin-bottom: var(--sp-5);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
}

.footer__list li {
  margin-bottom: var(--sp-3);
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  gap: var(--sp-2);
  color: var(--body-light);
}

.footer__list a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--brand);
  transition: width 0.25s var(--ease);
}

.footer__list a:hover {
  color: #fff;
}

.footer__list a:hover::before {
  width: 12px;
}

.footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
}

.footer__contact li {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.footer__contact svg {
  flex: 0 0 18px;
  margin-top: 4px;
  color: var(--brand-text);
}

.footer__contact a {
  display: inline-block;
  min-height: 24px;
  padding-block: 2px;
  color: var(--body-light);
}

.footer__contact a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  color: #fff;
  transition: all 0.25s var(--ease);
}

.socials a:hover {
  background: var(--brand);
  color: var(--on-brand);
  transform: translateY(-3px);
}

.footer__bottom {
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line-dark);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-small);
  text-align: center;
}

@media (max-width: 639px) {
  .footer__bottom-inner {
    justify-content: center;
  }
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal a {
  display: inline-block;
  min-height: 24px;
  padding-block: 2px;
  color: var(--body-light);
}

.footer__legal a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   23. Back to top
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: var(--sp-4);
  bottom: calc(56px + var(--sp-4) + env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--brand);
  border: 0;
  border-radius: 50%;
  color: var(--on-brand);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: var(--shadow);
  transition: all 0.3s var(--ease);
}

@media (min-width: 1024px) {
  .to-top {
    right: var(--sp-6);
    bottom: var(--sp-6);
    width: 52px;
    height: 52px;
  }
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--brand-dark);
}

/* --------------------------------------------------------------------------
   24. Scroll reveal
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.js [data-reveal='left'] { transform: translateX(-30px); }
.js [data-reveal='right'] { transform: translateX(30px); }
.js [data-reveal='zoom'] { transform: scale(0.94); }

/* --------------------------------------------------------------------------
   25. 404
   -------------------------------------------------------------------------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding-block: var(--sp-8);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 2rem + 18vw, 13rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--brand-text);
  margin-bottom: var(--sp-5);
}

/* --------------------------------------------------------------------------
   26. Utilities
   -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: var(--sp-7);
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--teal-soft);
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   27. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .topbar,
  .action-bar,
  .to-top,
  .cta-band,
  .site-footer,
  .hero__nav {
    display: none !important;
  }

  body {
    color: #000;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   28. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }

  .btn--primary:hover {
    background-position: 135% 0, 0 0;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__slide.is-active .hero__media img {
    animation: none;
  }

  .marquee__track {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   29. Gold on dark surfaces
   The deep gold used for small text on white goes muddy against navy, so dark
   contexts step up to the lighter tone (5.8:1 against --ink).
   -------------------------------------------------------------------------- */

.section--dark .eyebrow,
.section--dark .counter__suffix,
.cta-band .eyebrow,
.widget--dark .widget__title,
.hero__title em,
.project-card__cat,
.founder-card__role,
.footer__contact svg,
.breadcrumb [aria-current],
.drawer__list a:hover,
.drawer__list .is-active > a,
.section--dark .sec-title::after {
  color: var(--brand-text-dark);
}

/* Decorative rules keep the pure logo gold on every background. */
.eyebrow::before,
.hero__eyebrow::before {
  background: var(--brand);
}

.sec-title::after {
  color: var(--brand);
}

/* ==========================================================================
   Quote popup ("Get a Quote" buttons)
   ========================================================================== */

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
}

.quote-modal[hidden] {
  display: none;
}

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 30, 0.72);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.quote-modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 2 * var(--sp-4));
  max-height: calc(100dvh - 2 * var(--sp-4));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--bg);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.quote-modal__panel:focus {
  outline: none;
}

.quote-modal.is-open .quote-modal__backdrop,
.quote-modal.is-open .quote-modal__panel {
  opacity: 1;
}

.quote-modal.is-open .quote-modal__panel {
  transform: none;
}

.quote-modal__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.quote-modal__close:hover,
.quote-modal__close:focus-visible {
  background: var(--ink);
  color: #fff;
}

.quote-modal__head {
  margin-bottom: var(--sp-5);
  padding-right: 3rem;
}

.quote-modal__title {
  margin: 0;
  font-size: var(--fs-h3);
}

.quote-modal__text {
  margin: var(--sp-3) 0 0;
  color: var(--body);
}

.quote-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
}

.quote-modal__actions .form-status {
  flex-basis: 100%;
  margin: 0;
}

.quote-modal__call {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.quote-modal__call:hover {
  text-decoration: underline;
}

@media (max-width: 639px) {
  .quote-modal {
    padding: 0;
    align-items: end;
  }

  .quote-modal__panel {
    width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(40px);
  }

  .quote-modal__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-modal__backdrop,
  .quote-modal__panel {
    transition: none;
  }
}

/* ==========================================================================
   Chat assistant (bottom right, below the back-to-top button)
   ========================================================================== */

.chatbot {
  --chat-bottom: calc(56px + var(--sp-4) + env(safe-area-inset-bottom));
  position: fixed;
  right: var(--sp-4);
  bottom: var(--chat-bottom);
  z-index: 115;
  font-family: var(--font-body);
}

/* The back-to-top button moves up to sit above the chat button. */
body.has-chatbot .to-top {
  bottom: calc(56px + var(--sp-4) + 60px + var(--sp-3) + env(safe-area-inset-bottom));
  right: calc(var(--sp-4) + 7px);
}

@media (min-width: 1024px) {
  .chatbot {
    --chat-bottom: var(--sp-6);
    right: var(--sp-6);
  }
  body.has-chatbot .to-top {
    bottom: calc(var(--sp-6) + 64px + var(--sp-3));
    right: calc(var(--sp-6) + 6px);
  }
}

.chatbot__launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  color: var(--ink);
  background: var(--brand);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  --agent-face: #fdf8f0;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

@media (min-width: 1024px) {
  .chatbot__launcher {
    width: 64px;
    height: 64px;
  }
}

.chatbot__launcher:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--brand-dark);
}

.chatbot__launcher::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: chatbot-pulse 2.6s var(--ease) infinite;
  pointer-events: none;
}

.chatbot.is-open .chatbot__launcher::before {
  animation: none;
  opacity: 0;
}

@keyframes chatbot-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

.chatbot__launcher-close {
  display: none;
}

.chatbot.is-open .chatbot__launcher-agent {
  display: none;
}

.chatbot.is-open .chatbot__launcher-close {
  display: block;
}

.chatbot__launcher-agent,
.chatbot__launcher-agent svg {
  display: block;
}

.chatbot__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  font: 700 0.75rem/1 var(--font-head);
  color: #fff;
  background: var(--error);
  border: 2px solid #fff;
  border-radius: 999px;
}

.chatbot__badge[hidden] {
  display: none;
}

/* ----- panel ----- */

.chatbot__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + var(--sp-3));
  width: min(390px, calc(100vw - 2 * var(--sp-4)));
  height: min(620px, calc(100vh - var(--chat-bottom) - 110px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(20, 23, 30, 0.35);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.chatbot__panel[hidden] {
  display: none;
}

.chatbot.is-open .chatbot__panel {
  opacity: 1;
  transform: none;
}

.chatbot__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4);
  color: #fff;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  border-bottom: 3px solid var(--brand);
}

.chatbot__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--brand);
  border-radius: 50%;
  --agent-face: #fdf8f0;
}

.chatbot__who {
  flex: 1;
  min-width: 0;
}

.chatbot__name {
  margin: 0;
  font: 700 1rem/1.2 var(--font-head);
  color: #fff;
}

.chatbot__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--body-light);
}

.chatbot__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ecf7a;
  box-shadow: 0 0 0 3px rgba(62, 207, 122, 0.25);
}

.chatbot__tools {
  display: flex;
  gap: 2px;
}

.chatbot__tool {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.chatbot__tool:hover,
.chatbot__tool:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

/* ----- messages ----- */

.chatbot__log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  scroll-behavior: smooth;
}

.chatbot__row {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.chatbot__row--user {
  justify-content: flex-end;
}

.chatbot__mini {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--brand);
  border-radius: 50%;
  --agent-face: #fdf8f0;
}

.chatbot__body {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  min-width: 0;
}

.chatbot__row--user .chatbot__body {
  align-items: flex-end;
}

.chatbot__bubble {
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}

.chatbot__row--user .chatbot__bubble {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  border-radius: 14px 4px 14px 14px;
}

.chatbot__bubble p {
  margin: 0 0 6px;
}

.chatbot__bubble p:last-child {
  margin-bottom: 0;
}

.chatbot__bubble ul,
.chatbot__bubble ol {
  margin: 4px 0 6px;
  padding-left: 1.1rem;
}

.chatbot__bubble li {
  margin: 2px 0;
}

.chatbot__bubble a {
  color: var(--teal);
  font-weight: 600;
}

.chatbot__more {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  text-decoration: none;
}

.chatbot__time {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--body);
}

/* typing indicator */
.chatbot__typing .chatbot__bubble {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}

.chatbot__typing .chatbot__bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9b9c3;
  animation: chatbot-typing 1.2s infinite ease-in-out;
}

.chatbot__typing .chatbot__bubble span:nth-child(2) { animation-delay: 0.15s; }
.chatbot__typing .chatbot__bubble span:nth-child(3) { animation-delay: 0.3s; }

.chatbot__typing .chatbot__mini {
  margin-bottom: 0;
}

@keyframes chatbot-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ----- option buttons ----- */

.chatbot__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-2);
}

.chatbot__opts--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.chatbot__opts--list {
  flex-direction: column;
  align-items: stretch;
}

.chatbot__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  font: 600 0.8rem/1.3 var(--font-body);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid var(--brand);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.chatbot__opts--grid .chatbot__opt {
  border-radius: 10px;
}

.chatbot__opts--list .chatbot__opt {
  justify-content: flex-start;
  text-align: left;
  border-radius: 10px;
  border-color: var(--line);
  border-left: 3px solid var(--brand);
}

.chatbot__opt:hover,
.chatbot__opt:focus-visible {
  color: var(--ink);
  background: var(--brand-soft);
  border-color: var(--brand);
}

.chatbot__opt--primary {
  background: var(--brand);
}

.chatbot__opt--primary:hover,
.chatbot__opt--primary:focus-visible {
  background: var(--brand-dark);
}

.chatbot__opt--ghost {
  color: var(--teal);
  border-color: transparent !important;
  background: transparent;
}

/* ----- input ----- */

.chatbot__form {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: #fff;
  border-top: 1px solid var(--line);
}

.chatbot__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 var(--sp-4);
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chatbot__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.chatbot__send {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--brand);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.chatbot__send:hover {
  background: var(--brand-dark);
}

.chatbot__note {
  margin: 0;
  padding: 0 var(--sp-3) var(--sp-2);
  font-size: 0.7rem;
  color: var(--body);
  text-align: center;
  background: #fff;
}

/* ----- phones: full screen ----- */

@media (max-width: 639px) {
  .chatbot.is-open .chatbot__launcher {
    display: none;
  }

  .chatbot__panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .chatbot__head {
    padding-top: calc(var(--sp-3) + env(safe-area-inset-top));
  }

  .chatbot__note {
    padding-bottom: calc(var(--sp-2) + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot__launcher::before,
  .chatbot__typing .chatbot__bubble span {
    animation: none;
  }
  .chatbot__panel {
    transition: none;
  }
}

@media print {
  .chatbot {
    display: none;
  }
}

/* Social icons inside the mobile menu */
.drawer__socials {
  flex-wrap: wrap;
  margin: 0 0 var(--sp-4);
}

.topbar__socials a,
.socials a {
  line-height: 0;
}
