/* ==========================================================================
   LA Elegant Homes — Design System
   Elementor-first: every layout below is flexbox + containers only.
   No CSS Grid, no JS-driven layout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the La Elegant Homes logo */
  --color-primary:        #104B4B;   /* deep teal */
  --color-primary-deep:   #0B3434;
  --color-accent:         #BE8223;   /* antique gold */
  --color-accent-soft:    #D9A94A;
  /* Text-safe variants of the brand gold (WCAG 2.2 AA at small sizes).
     --color-accent itself is reserved for rules, icons and borders. */
  --color-accent-ink:     #875D19;   /* headroom for the paper grain */   /* gold text on light backgrounds  */
  --color-accent-on-dark: #DCBB88;   /* gold text on teal / dark        */
  --color-accent-btn:     #9E6C1D;   /* gold button fill, white label   */
  --color-accent-hover:   #85590F;   /* gold button hover fill          */
  --color-accent-bright:  #E8C88A;   /* link hover on dark backgrounds  */

  /* Which hover colour links use. Overridden on every dark surface below —
     the button-hover gold is far too dark to read on teal (1.61:1). */
  --link-hover: var(--color-accent-hover);

  --color-dark:           #0B2320;
  --color-body:           #3A4443;
  --color-muted:          #5E6767;   /* headroom for the paper grain */
  --color-light:          #FAF8F4;   /* warm bone */
  --color-light-alt:      #F1EDE6;
  --color-white:          #FFFFFF;
  --color-line:           #DED8CD;
  --color-line-dark:      rgba(255, 255, 255, .18);

  /* Typography */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(2.75rem, 1.4rem + 5.6vw, 5.25rem);
  --fs-h1:      clamp(2.25rem, 1.35rem + 3.6vw, 4rem);
  --fs-h2:      clamp(1.875rem, 1.3rem + 2.3vw, 3rem);
  --fs-h3:      clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --fs-h4:      clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-lead:    clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body:    1rem;
  --fs-small:   0.9375rem;
  --fs-eyebrow: 0.75rem;

  /* Spacing scale */
  --space-2xs: .5rem;
  --space-xs:  .75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --section-y:  clamp(3.5rem, 2rem + 6vw, 7rem);
  --container:  1240px;
  --container-narrow: 860px;
  --gutter:     clamp(1rem, .4rem + 2.4vw, 2.5rem);

  --header-h: 84px;

  /* Paper grain. Two 140px tiles — a warm dark speckle for light surfaces and a
     light speckle for dark ones. Tiled PNGs rather than an SVG turbulence filter,
     because a filter has to be rasterised and this runs on every surface. */
  --texture-light: url("../images/texture/grain-light.png");
  --texture-dark:  url("../images/texture/grain-dark.png");
  --texture-size:  140px 140px;

  --radius:       2px;     /* hairline elements */
  --radius-sm:    10px;    /* inputs, thumbnails */
  --radius-card:  16px;    /* elevated cards and panels */
  --radius-pill:  999px;   /* buttons */

  --card-shadow:       0 2px 4px -2px rgba(11,35,32,.08), 0 12px 28px -18px rgba(11,35,32,.30);
  --card-shadow-hover: 0 4px 10px -4px rgba(11,35,32,.10), 0 26px 46px -22px rgba(11,35,32,.40);
  --shadow-sm: 0 1px 2px rgba(11, 35, 32, .06);
  --shadow-md: 0 14px 40px -20px rgba(11, 35, 32, .35);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   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) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-body);
  background-color: var(--color-white);
  background-image: var(--texture-light);
  background-size: var(--texture-size);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0; line-height: 1.4; }

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

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

ul, ol { margin: 0 0 var(--space-sm); padding-left: 1.25rem; }
li { margin-bottom: .35rem; }

strong { font-weight: 600; color: var(--color-dark); }

::selection { background: var(--color-accent); color: #fff; }

/* Focus — visible and on-brand */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: .75rem 1.25rem;
  font-size: var(--fs-small);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--space-sm); color: #fff; }

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

/* Honeypot: must not contribute to layout at all */
.honeypot { display: none !important; }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES  (Elementor: Container / Inner container)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: 1480px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--light { background-color: var(--color-light); background-image: var(--texture-light); background-size: var(--texture-size); }
.section--alt   { background-color: var(--color-light-alt); background-image: var(--texture-light); background-size: var(--texture-size); }
.section--dark  { background-color: var(--color-primary); background-image: var(--texture-dark); background-size: var(--texture-size); color: rgba(255,255,255,.82); --link-hover: var(--color-accent-bright); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

/* Flex row — the workhorse. Maps to an Elementor Container set to row. */
/* The gap lives in a custom property so the column widths below can subtract the
   ACTUAL gap. Hard-coding one gap into the column maths while a modifier changed
   the real gap is what silently collapsed the 3-up grids to 2-up. */
.row {
  --gap: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.row--gap-sm { --gap: var(--space-md); }
.row--gap-lg { --gap: var(--space-xl); }
.row--middle { align-items: center; }
.row--center { justify-content: center; }
.row--between { justify-content: space-between; }

/* Column widths (flex-basis, wraps naturally) */
.col      { flex: 1 1 260px; min-width: 0; }
.col-2    { flex: 1 1 calc(50% - var(--gap) / 2); min-width: min(100%, 300px); }
.col-3    { flex: 1 1 calc(33.333% - var(--gap) * 2 / 3); min-width: min(100%, 260px); }
.col-4    { flex: 1 1 calc(25% - var(--gap) * 3 / 4); min-width: min(100%, 200px); }
.col-5of12 { flex: 1 1 calc(41.666% - var(--gap) / 2); min-width: min(100%, 300px); }
.col-7of12 { flex: 1 1 calc(58.333% - var(--gap) / 2); min-width: min(100%, 320px); }

.col--order-first { order: -1; }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIC COMPONENTS
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  margin: 0 0 var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--color-accent);
  flex: none;
}
.eyebrow--center { justify-content: center; }
.section--dark .eyebrow { color: var(--color-accent-on-dark); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--color-body);
}
.section--dark .lead { color: rgba(255,255,255,.85); }

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

.rule {
  border: 0;
  height: 1px;
  background: var(--color-line);
  margin: var(--space-lg) 0;
}
.section--dark .rule { background: var(--color-line-dark); }

/* --------------------------------------------------------------------------
   5. BUTTONS  (Elementor: Button widget)
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;          /* lets the sheen sit above the fill but under the label */
  overflow: hidden;            /* clips the sheen to the button */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .9rem 1.9rem;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--btn-shadow, none);
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}

/* Mirror sheen. A negative z-index puts it above the button's own background but
   below the label, so the text contrast measured earlier is never affected. */
.btn::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 46%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.07) 35%,
    rgba(255,255,255,.20) 50%,
    rgba(255,255,255,.07) 65%,
    rgba(255,255,255,0) 100%);
  transform: translateX(-180%) skewX(-18deg);
}
.js .btn::after { transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.js .btn:hover::after,
.js .btn:focus-visible::after { transform: translateX(330%) skewX(-18deg); }

.btn:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow-hover, none); }
.btn:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); }

.btn--primary {
  --btn-shadow:       0 4px 14px -6px rgba(133, 89, 15, .55);
  --btn-shadow-hover: 0 12px 26px -10px rgba(133, 89, 15, .68);
  background: var(--color-accent-btn);
  border-color: var(--color-accent-btn);
  color: #fff;
}
.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }

.btn--dark {
  --btn-shadow:       0 4px 14px -6px rgba(11, 52, 52, .5);
  --btn-shadow-hover: 0 12px 26px -10px rgba(11, 52, 52, .65);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.btn--dark:hover { background: var(--color-primary-deep); border-color: var(--color-primary-deep); color: #fff; }

.btn--outline {
  --btn-shadow-hover: 0 12px 26px -10px rgba(11, 52, 52, .5);
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }

.btn--ghost {
  --btn-shadow-hover: 0 12px 28px -12px rgba(0, 0, 0, .55);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--color-primary); }
/* On the light fill a white sheen would be invisible, so darken it */
/* Outline hovers to a teal fill, which has contrast headroom to spare */
.btn--outline::after {
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.24) 50%,
    rgba(255,255,255,0) 100%);
}
/* Ghost hovers to a WHITE fill, where a white sheen would be invisible */
.btn--ghost:hover::after {
  background: linear-gradient(90deg,
    rgba(11,35,32,0) 0%,
    rgba(11,35,32,.07) 50%,
    rgba(11,35,32,0) 100%);
}

.btn--block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-primary);
}
.link-arrow span:last-child { transition: transform .25s var(--ease); }
.link-arrow:hover span:last-child { transform: translateX(5px); }
.section--dark .link-arrow { color: var(--color-accent-on-dark); }

/* --------------------------------------------------------------------------
   6. HEADER  (Elementor: Header template / Nav Menu widget)
   -------------------------------------------------------------------------- */
.site-header {
  --link-hover: var(--color-accent-bright);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.site-header.is-solid .site-header__progress,
.site-header--static .site-header__progress { opacity: 1; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.site-header__logo { display: flex; align-items: center; flex: none; }
/* Sized by height, not width: both files are now the same 6.7:1 horizontal
   lockup, so the header keeps its shape when it condenses. */
.site-header__logo img {
  width: auto;
  height: 30px;
  transition: height .3s var(--ease);
}
.logo--light { display: block; }
.logo--dark  { display: none; }

/* Scrolled / solid state */
.site-header.is-solid {
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--color-line);
  box-shadow: 0 2px 20px -12px rgba(11,35,32,.4);
}
/* Condense once scrolled — the bar tightens, the logo shrinks with it */
.site-header.is-solid .site-header__inner { min-height: 68px; }
.site-header.is-solid .site-header__logo img { height: 26px; }
.site-header.is-solid .logo--light { display: none; }
.site-header.is-solid .logo--dark  { display: block; }

/* Pages without a dark hero start solid */
.site-header--static { position: sticky; background: #fff; border-bottom-color: var(--color-line); }
.site-header--static .logo--light { display: none; }
.site-header--static .logo--dark  { display: block; }

.nav { display: flex; align-items: center; flex: 0 0 auto; gap: clamp(.9rem, .3rem + 1vw, 1.5rem); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, .25rem + .8vw, 1.15rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 0;
  font-size: .78125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width .3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--color-accent-on-dark); }

/* Transparent header, over the hero */
.nav__link:hover { color: var(--color-accent-bright); }
.nav__link:hover::after { background: var(--color-accent-bright); }

/* Solid header, on white */
.site-header.is-solid .nav__link,
.site-header--static .nav__link,
.site-header.is-mega-open .nav__link { color: var(--color-dark); }
.site-header.is-solid .nav__link:hover,
.site-header--static .nav__link:hover,
.site-header.is-mega-open .nav__link:hover { color: var(--color-accent-ink); }
.site-header.is-solid .nav__link:hover::after,
.site-header--static .nav__link:hover::after,
.site-header.is-mega-open .nav__link:hover::after { background: var(--color-accent-ink); }
.site-header.is-solid .nav__link[aria-current="page"],
.site-header--static .nav__link[aria-current="page"] { color: var(--color-accent-ink); }

/* Services mega menu — Elementor: Mega Menu widget (Pro 3.20+) */
.nav__item--has-sub { position: static; }
.nav__chevron { width: 9px; height: 9px; transition: transform .25s var(--ease); flex: none; }

.mega {
  --link-hover: var(--color-accent-hover);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  background-color: #fff;
  background-image: var(--texture-light);
  background-size: var(--texture-size);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 30px 60px -40px rgba(11,35,32,.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav__item--has-sub:hover .mega,
.nav__item--has-sub:focus-within .mega,
.nav__item--has-sub.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__item--has-sub:hover .nav__chevron,
.nav__item--has-sub:focus-within .nav__chevron,
.nav__item--has-sub.is-open .nav__chevron { transform: rotate(180deg); }

.mega__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  padding-block: clamp(2rem, 1.4rem + 2vw, 3rem);
}

.mega__col-main { flex: 1 1 64%; min-width: min(100%, 420px); }
.mega__col-side {
  flex: 1 1 24%;
  min-width: min(100%, 260px);
  padding-left: var(--space-xl);
  border-left: 1px solid var(--color-line);
}

.mega__label {
  display: block;
  margin: 0 0 var(--space-md);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

.mega__grid { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); }

/* Four cards would sit 3 + 1, orphaning the last one */
.mega__grid--half .mega__card { flex: 1 1 calc(50% - var(--space-md) / 2); }

.mega__card {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex: 1 1 calc(33.333% - var(--space-md) * 2 / 3);
  min-width: 196px;
  padding: .55rem;
  margin: -.6rem 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.mega__card:hover,
.mega__card:focus-visible {
  background: var(--color-light);
  border-color: var(--color-line);
}
.mega__card-media {
  flex: none;
  width: 74px;
  height: 50px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-light-alt);
}
.mega__card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.mega__card:hover .mega__card-media img { transform: scale(1.08); }

.mega__card-title {
  display: block;
  font-family: var(--font-body);
  font-size: .875rem;
  letter-spacing: .01em;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
  margin-bottom: .15rem;
}
.mega__card:hover .mega__card-title { color: var(--color-primary); }
.mega__card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .78125rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.mega__all {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: var(--space-md);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-primary);
}
.mega__all span:last-child { transition: transform .25s var(--ease); }
.mega__all:hover span:last-child { transform: translateX(5px); }

/* Link-style panels (About, Inclusions, Resources) */
.mega__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); }
.mega__link {
  flex: 1 1 calc(50% - var(--space-md) / 2);
  min-width: 230px;
  padding: .7rem .85rem;
  margin: -.7rem 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.mega__link:hover,
.mega__link:focus-visible { background: var(--color-light); border-color: var(--color-line); }
.mega__link-title {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: .15rem;
}
.mega__link:hover .mega__link-title { color: var(--color-primary); }
.mega__link-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .78125rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.mega__note {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: var(--space-sm);
}

/* Featured project in the side column */
.mega__feature { display: block; text-decoration: none; color: inherit; }
.mega__feature-media { overflow: hidden; aspect-ratio: 7/5; background: var(--color-light-alt); margin-bottom: var(--space-sm); }
.mega__feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega__feature:hover .mega__feature-media img { transform: scale(1.06); }
.mega__feature-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: .3rem;
}
.mega__feature:hover .mega__feature-title { color: var(--color-primary); }
.mega__feature-text { display: block; font-size: .8125rem; color: var(--color-muted); margin-bottom: .6rem; }

.mega__contact {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line);
  font-size: .8125rem;
  color: var(--color-muted);
}
.mega__contact a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.mega__contact a:hover { text-decoration: underline; }

/* While the panel is open the header must be solid, even over the hero */
.site-header.is-mega-open {
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--color-line);
}
.site-header.is-mega-open .logo--light { display: none; }
.site-header.is-mega-open .logo--dark  { display: block; }
.site-header.is-mega-open .nav__link,
.site-header.is-mega-open .header-phone { color: var(--color-dark); }
.site-header.is-mega-open .nav__link[aria-current="page"] { color: var(--color-accent-ink); }


/* Header actions */
.header-actions { display: flex; align-items: center; flex: none; gap: 1.1rem; }


.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}
.header-phone svg { width: 15px; height: 15px; flex: none; }
.site-header.is-solid .header-phone,
.site-header--static .header-phone { color: var(--color-dark); }
.header-phone:hover { color: var(--color-accent-bright); }

.header-actions .btn { min-height: 46px; padding: .7rem 1.35rem; font-size: .75rem; white-space: nowrap; }

/* Burger */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger__box { position: relative; width: 26px; height: 16px; }
.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color .3s var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 7px; }
.burger__box span:nth-child(3) { top: 14px; }
.site-header.is-solid .burger__box span,
.site-header--static .burger__box span { background: var(--color-dark); }

.burger[aria-expanded="true"] .burger__box span { background: var(--color-dark); }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. MOBILE NAV PANEL
   -------------------------------------------------------------------------- */
.mobile-nav {
  --link-hover: var(--color-accent-hover);
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  background-color: var(--color-light);
  background-image: var(--texture-light);
  background-size: var(--texture-size);
  padding-top: var(--header-h);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-lg) var(--gutter) var(--space-xl);
}

.mobile-nav__list { list-style: none; margin: 0 0 var(--space-lg); padding: 0; }
.mobile-nav__list li { margin: 0; border-bottom: 1px solid var(--color-line); }

.mobile-nav__link {
  display: block;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-dark);
}
.mobile-nav__link[aria-current="page"] { color: var(--color-accent-ink); }

.mobile-nav__sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 1.05rem 0;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-dark);
  text-align: left;
  cursor: pointer;
}
.mobile-nav__sub-toggle .nav__chevron { width: 13px; height: 13px; color: var(--color-accent-ink); }
.mobile-nav__sub-toggle[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.mobile-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.mobile-nav__sub li { border-bottom: 0; }
.mobile-nav__sub a {
  display: block;
  padding: .7rem 0 .7rem 1rem;
  font-size: 1rem;
  text-decoration: none;
  color: var(--color-body);
  border-left: 2px solid var(--color-line);
}
.mobile-nav__sub a:hover,
.mobile-nav__sub a[aria-current="page"] { color: var(--color-primary); border-left-color: var(--color-accent); }
.mobile-nav__sub li:last-child a { padding-bottom: 1.2rem; }

.mobile-nav__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-sm); }
.mobile-nav__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
  border: 1px solid var(--color-line);
}
.mobile-nav__phone svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   8. HERO — cinematic, homepage only
   Elementor: Container + Background Slideshow (Ken Burns) + Background Overlay,
   with Motion Effects > Scrolling Effects > Vertical Scroll for the parallax.
   -------------------------------------------------------------------------- */
.hero-cine {
  --link-hover: var(--color-accent-bright);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--space-2xl));
  padding-bottom: clamp(1.5rem, .8rem + 2.4vw, 2.5rem);
  background: var(--color-dark);
  overflow: hidden;
  isolation: isolate;
}

/* ---- Parallax stage: taller than the section so it can travel ---- */
.hero-cine__stage {
  position: absolute;
  left: 0;
  right: 0;
  top: -7%;
  height: 114%;
  z-index: 0;
  will-change: transform;
}

/* Slide transition and Ken Burns live in section 8b below. */

/* ---- Scrim: directional for legibility, plus a vignette for depth ---- */
/* Scrim. These three layers were solved against all three slides — the bright
   Kellyville façade is the binding case — so that every piece of hero text clears
   WCAG AA (4.5:1 for the eyebrow, body and credentials; 3:1 for the display H1).
   Changing any value here needs re-checking, not eyeballing. */
.hero-cine__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* 1. Directional ramp — dark under the copy, fully clear by 70% */
    linear-gradient(90deg,
      rgba(6,24,22,.54) 0%,
      rgba(6,24,22,.44) 34%,
      rgba(6,24,22,.14) 56%,
      rgba(6,24,22,0)   70%),
    /* 2. Base of frame, so the credential row and scroll cue hold */
    linear-gradient(0deg,
      rgba(6,24,22,.55) 0%,
      rgba(6,24,22,.12) 18%,
      rgba(6,24,22,0)   38%),
    /* 3. Even grade across the whole frame — cinematic, not muddy */
    linear-gradient(0deg, rgba(6,24,22,.30) 0%, rgba(6,24,22,.30) 100%);
}

/* Fine grain — masks the softness of upscaled photography and reads as film */
.hero-cine__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---- Content ---- */
.hero-cine__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  will-change: transform, opacity;
}
.hero-cine__copy {
  position: relative;
  max-width: 46rem;
}
/* Feathered pool of shade behind the copy only. This is what allows the veil
   above to sit at 30% instead of the 52% a global-only solution would need. */
.hero-cine__copy::before {
  content: "";
  position: absolute;
  left: 42%;
  top: 50%;
  width: 220%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(6,24,22,.52) 0%,
    rgba(6,24,22,.43) 45%,
    rgba(6,24,22,.18) 75%,
    rgba(6,24,22,0) 100%);
}

.hero-cine__eyebrow {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 var(--space-md);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.hero-cine__eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--color-accent-on-dark);
  flex: none;
}

.hero-cine__title {
  margin: 0 0 var(--space-md);
  font-size: clamp(2.875rem, 1.1rem + 6.6vw, 6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.hero-cine__title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent-on-dark);
}

.hero-cine__text {
  max-width: 36rem;
  margin: 0 0 var(--space-lg);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255,255,255,.84);
}

.hero-cine .btn-group { gap: var(--space-sm); }
.hero-cine .btn--ghost {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.hero-cine .btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}

/* ---- Foot: credentials + scroll cue ---- */
.hero-cine__foot {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  margin-top: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,.2);
}

.hero-cine__creds {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .8125rem;
  letter-spacing: .07em;
  color: rgba(255,255,255,.78);
}
.hero-cine__creds li { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.hero-cine__creds li::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--color-accent-on-dark);
  transform: rotate(45deg);
  flex: none;
}



/* ---- Staggered entrance (scoped to .js so nothing hides without scripting) ---- */
.js .hero-cine__rise {
  opacity: 0;
  transform: translateY(26px);
  animation: heroRise 1.1s var(--ease) forwards;
}
.js .hero-cine__rise:nth-child(1) { animation-delay: .15s; }
.js .hero-cine__rise:nth-child(2) { animation-delay: .28s; }
.js .hero-cine__rise:nth-child(3) { animation-delay: .41s; }
.js .hero-cine__rise:nth-child(4) { animation-delay: .54s; }
.js .hero-cine__foot.hero-cine__rise { animation-delay: .7s; }

@keyframes heroRise {
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   8b. HERO PROJECT SWITCHER
   The one place on this site that needs custom code in the Elementor rebuild.
   -------------------------------------------------------------------------- */
.hero-switch {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Autoplay progress ring, doubling as a pause/play control */
.hero-switch__play {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
}
.hero-switch__ring { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
.hero-switch__ring circle { fill: none; stroke-width: 1.5; }
.hero-switch__ring-track { stroke: rgba(255,255,255,.28); }
.hero-switch__ring-fill {
  stroke: var(--color-accent-on-dark);
  stroke-dasharray: 119.4;      /* 2πr, r = 19 */
  stroke-dashoffset: 119.4;
}
.js .hero-cine[data-motion="on"] .hero-switch__ring-fill {
  animation: heroRing 9s linear infinite;
}
/* Must outrank the animation shorthand above, which resets play-state */
.js .hero-cine[data-motion="on"] .hero-switch__play[aria-pressed="true"] .hero-switch__ring-fill {
  animation-play-state: paused;
}
@keyframes heroRing {
  from { stroke-dashoffset: 119.4; }
  to   { stroke-dashoffset: 0; }
}

.hero-switch__icon { position: relative; width: 10px; height: 11px; }
.hero-switch__icon::before,
.hero-switch__icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 11px;
  background: currentColor;
  transition: opacity .2s var(--ease);
}
.hero-switch__icon::before { left: 0; }
.hero-switch__icon::after  { right: 0; }
/* Paused state shows a play triangle instead of the two pause bars */
.hero-switch__play[aria-pressed="true"] .hero-switch__icon::before {
  left: 1px;
  width: 0; height: 0;
  background: none;
  border-left: 8px solid currentColor;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
}
.hero-switch__play[aria-pressed="true"] .hero-switch__icon::after { opacity: 0; }

.hero-switch__list {
  display: flex;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-switch__list li { margin: 0; }

.hero-switch__btn {
  position: relative;
  display: block;
  width: 104px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: none;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  cursor: pointer;
  opacity: .62;
  transition: opacity .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.hero-switch__btn img {
  display: block;
  width: 100%;
  aspect-ratio: 8/5;
  object-fit: cover;
}
.hero-switch__btn:hover { opacity: .9; transform: translateY(-2px); }
.hero-switch__btn[aria-current="true"] {
  opacity: 1;
  border-color: var(--color-accent-on-dark);
}
/* Guarantees the 01/02/03 labels stay readable on any thumbnail */
.hero-switch__btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(6,24,22,.82) 0%, rgba(6,24,22,0) 100%);
  pointer-events: none;
}

.hero-switch__num {
  position: absolute;
  left: 6px;
  bottom: 4px;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.hero-switch__btn[aria-current="true"] .hero-switch__num { color: var(--color-accent-on-dark); }

/* --------------------------------------------------------------------------
   Slide transition: the incoming frame wipes across the outgoing one
   -------------------------------------------------------------------------- */
.hero-cine__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 0 100%);
}
.hero-cine__slide.is-active {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0);
  z-index: 2;
}
.hero-cine__slide.is-leaving {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0);
  z-index: 1;
}
.js .hero-cine[data-motion="on"] .hero-cine__slide {
  transition: clip-path 1.05s cubic-bezier(.65,.02,.25,1), opacity .5s var(--ease), visibility 1.05s;
}
.hero-cine__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.06);
}
/* Slow push on whichever frame is showing */
.js .hero-cine[data-motion="on"] .hero-cine__slide.is-active img {
  animation: heroKen 11s linear forwards;
}
@keyframes heroKen {
  from { transform: scale(1.12); }
  to   { transform: scale(1.02); }
}

/* --------------------------------------------------------------------------
   Compact scroll cue (icon only — the switcher now carries the interaction)
   -------------------------------------------------------------------------- */
.hero-cine__cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin-right: .5rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.hero-cine__cue:hover {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}
.hero-cine__cue svg { width: 13px; height: 13px; }
.js .hero-cine[data-motion="on"] .hero-cine__cue svg { animation: heroCueNudge 2.2s var(--ease) infinite; }
@keyframes heroCueNudge {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(3px); }
}

.hero-cine__foot-left { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }


/* Page hero (interior pages) */
.page-hero {
  --link-hover: var(--color-accent-bright);
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, 22rem + 10vw, 480px);
  padding-top: calc(var(--header-h) + var(--space-lg));
  padding-bottom: var(--space-xl);
  background: var(--color-primary-deep);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,28,26,.58) 0%, rgba(8,28,26,.34) 38%, rgba(8,28,26,.86) 100%);
}
.page-hero__inner { position: relative; z-index: 2; width: 100%; }
.page-hero h1 { color: #fff; max-width: 22ch; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--color-accent-on-dark); }
.page-hero__text { margin-top: var(--space-md); max-width: 44rem; color: rgba(255,255,255,.84); font-size: var(--fs-lead); }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: var(--space-md); font-size: .8125rem; letter-spacing: .04em; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.62); }
.breadcrumbs li + li::before { content: "/"; color: rgba(255,255,255,.35); }
.breadcrumbs a { color: rgba(255,255,255,.82); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent-on-dark); }
.breadcrumbs [aria-current="page"] { color: var(--color-accent-on-dark); }

/* --------------------------------------------------------------------------
   9. CREDIBILITY BAR
   -------------------------------------------------------------------------- */
.cred-bar { border-block: 1px solid var(--color-line); background-color: var(--color-white); background-image: var(--texture-light); background-size: var(--texture-size); }
.cred-bar__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cred-bar__list li {
  flex: 1 1 200px;
  margin: 0;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  border-left: 1px solid var(--color-line);
}
.cred-bar__list li:first-child { border-left: 0; }
.cred-bar__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: .35rem;
}
.cred-bar__label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   10. SERVICE CARDS  (Elementor: Image Box)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   10. SERVICE CARDS  (Elementor: Image Box)
   Editorial index treatment — hairline rule, overlaid numeral, drawn underline.
   -------------------------------------------------------------------------- */
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}

.service-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-light-alt);
}

/* Everything below the image sits in a padded well */
.service-card__title,
.service-card__text,
.service-card .link-arrow { margin-inline: var(--space-md); }
.service-card__title { margin-top: var(--space-md); }
.service-card .link-arrow { margin-bottom: var(--space-md); }
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.07); }

/* Gradient foot so the numeral always reads, whatever the photograph */
.service-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(6,24,22,.62) 0%, rgba(6,24,22,0) 100%);
}

.service-card__index {
  position: absolute;
  left: var(--space-md);
  bottom: .7rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .02em;
  color: rgba(255,255,255,.92);
}
.service-card__index::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin-top: .45rem;
  background: var(--color-accent-on-dark);
  transition: width .45s var(--ease);
}
.service-card:hover .service-card__index::after { width: 52px; }

.service-card__title {
  position: relative;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: .55rem;
  padding-bottom: .3rem;
  transition: color .3s var(--ease);
}
.service-card:hover .service-card__title { color: var(--color-primary); }

.service-card__text {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}
.service-card .link-arrow { margin-top: auto; }
.service-card:hover .link-arrow span:last-child { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Pillars — the "why us" band. Three across, never orphaned.
   -------------------------------------------------------------------------- */
.pillars { --gap: 0; gap: 0; }
.pillars .value-block {
  flex: 1 1 calc(33.333% - 0px);
  min-width: min(100%, 240px);
  padding: 0 var(--space-lg);
  border-left: 1px solid var(--color-line-dark);
}
.pillars .value-block:first-child { padding-left: 0; border-left: 0; }
.pillars .value-block:last-child { padding-right: 0; }

.value-block { display: flex; flex-direction: column; }

.value-block__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: var(--space-md);
  color: var(--color-accent-on-dark);
  border: 1px solid rgba(210,169,103,.42);
  border-radius: 50%;
  background: rgba(210,169,103,.07);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.value-block__icon svg { width: 26px; height: 26px; }
.value-block:hover .value-block__icon {
  background: rgba(210,169,103,.16);
  border-color: var(--color-accent-on-dark);
  transform: translateY(-3px);
}

.value-block h3 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: .55rem;
}
.value-block p { font-size: var(--fs-small); line-height: 1.65; color: var(--color-muted); }
.section--dark .value-block p { color: rgba(255,255,255,.74); }

/* On light backgrounds (the About page credentials row) */
.section--alt .value-block__icon,
.section--light .value-block__icon {
  color: var(--color-accent-ink);
  border-color: rgba(144,99,27,.35);
  background: rgba(144,99,27,.06);
}
.section--alt .pillars .value-block,
.section--light .pillars .value-block { border-left-color: var(--color-line); }

/* --------------------------------------------------------------------------
   11. FEATURE / SPLIT BLOCKS
   -------------------------------------------------------------------------- */
.split__media { position: relative; }
.split__media img { width: 100%; }
.split__media--framed::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 55%; height: 55%;
  border: 1px solid var(--color-accent);
  z-index: -1;
}
.split__body { display: flex; flex-direction: column; justify-content: center; }

/* Stat / fact list */
.fact-list { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.fact-list li { margin: 0; flex: 1 1 140px; }
.fact-list dt, .fact-list__label {
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--color-muted); margin-bottom: .25rem;
}
.fact-list dd, .fact-list__value {
  margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-dark); line-height: 1.2;
}


/* Numbered process steps */
.step { display: flex; flex-direction: column; padding-top: var(--space-md); border-top: 1px solid var(--color-line); }
.step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-accent-ink);
  margin-bottom: var(--space-sm);
}
.step h3 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: .4rem; }
.step p { font-size: var(--fs-small); color: var(--color-muted); }
.section--dark .step { border-top-color: var(--color-line-dark); }
.section--dark .step p { color: rgba(255,255,255,.72); }
.section--dark .step__num { color: var(--color-accent-on-dark); }

/* Checklist (Elementor: Icon List) */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: .7rem;
  font-size: var(--fs-small);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
  transform: rotate(-45deg);
}
.checklist--two { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.checklist--two li { flex: 1 1 260px; }

/* --------------------------------------------------------------------------
   12. PROJECTS
   -------------------------------------------------------------------------- */
.project-row { display: flex; flex-wrap: wrap; gap: var(--space-xl); align-items: center; }
.project-row + .project-row { margin-top: var(--space-2xl); }
.project-row__media { flex: 1 1 calc(58% - var(--space-xl)); min-width: min(100%, 320px); overflow: hidden; }
.project-row__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .8s var(--ease); }
.project-row:hover .project-row__media img { transform: scale(1.04); }
.project-row__body { flex: 1 1 calc(42% - var(--space-xl)); min-width: min(100%, 280px); }
.project-row--flip .project-row__media { order: 2; }

.project-meta { display: flex; flex-wrap: wrap; gap: var(--space-md); list-style: none; margin: var(--space-md) 0; padding: 0; }
.project-meta li { margin: 0; }
.project-meta dt { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }
.project-meta dd { margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--color-dark); }

/* Gallery (Elementor: Gallery widget) */
.gallery { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.gallery__item { flex: 1 1 calc(33.333% - var(--space-sm) * 2 / 3); min-width: min(100%, 260px); overflow: hidden; margin: 0; }
/* Lead image runs full width above the 3-up grid */
.gallery__item--lead { flex: 1 1 100%; }
.gallery__item--lead img { aspect-ratio: 16 / 9; }
.gallery__item { border-radius: var(--radius-sm); }
.gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: .8125rem; color: var(--color-muted); padding-top: .5rem; }

/* Project cards — the only place we have real meta to show */
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: transparent; }

.project-card__media { position: relative; overflow: hidden; aspect-ratio: 3/2; background: var(--color-light-alt); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.06); }

.project-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-md); }

.project-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: .4rem;
  transition: color .3s var(--ease);
}
.project-card:hover .project-card__title { color: var(--color-primary); }

.project-card__where {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}
.project-card__where svg { width: 14px; height: 14px; color: var(--color-accent-ink); flex: none; }

.project-card__text { font-size: var(--fs-small); color: var(--color-muted); margin-bottom: var(--space-md); }

/* Spec strip along the base of the card */
.project-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  margin: auto 0 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-line);
}
.project-card__specs li { display: flex; align-items: center; gap: .45rem; margin: 0; }
.project-card__specs svg { width: 15px; height: 15px; color: var(--color-accent-ink); flex: none; }
.project-card__specs .spec-k {
  display: block;
  font-size: .625rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-muted);
}
.project-card__specs .spec-v { display: block; font-size: .8125rem; font-weight: 600; color: var(--color-dark); }

/* Suburb tiles */
.suburb-list { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; }
.suburb-list li { margin: 0; }
.suburb-list span,
.suburb-list a {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: .55rem 1.15rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-primary);
  border: 1px solid var(--color-line);
  background: #fff;
}
.section--dark .suburb-list span,
.section--dark .suburb-list a { color: #fff; background: transparent; border-color: var(--color-line-dark); }

/* Design cards */
.design-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.design-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: transparent; }
.design-card h3,
.design-card p { margin-inline: var(--space-md); }
.design-card h3 { margin-top: var(--space-md); }
.design-card > p:last-of-type { margin-bottom: var(--space-md); }
.design-card__media { overflow: hidden; aspect-ratio: 4/3; background: var(--color-light-alt); }
.design-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.design-card:hover .design-card__media img { transform: scale(1.05); }
.design-card h3 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.design-card p { font-size: var(--fs-small); color: var(--color-muted); }

/* --------------------------------------------------------------------------
   13. TESTIMONIAL  (Elementor: Testimonial widget)
   -------------------------------------------------------------------------- */
.testimonial { max-width: 52rem; margin-inline: auto; text-align: center; }
.testimonial__stars { display: flex; justify-content: center; gap: .3rem; margin-bottom: var(--space-md); color: var(--color-accent); }
.testimonial__stars svg { width: 17px; height: 17px; }
.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2.125rem);
  line-height: 1.4;
  color: var(--color-dark);
  margin: 0 0 var(--space-lg);
  text-wrap: balance;
}
.section--dark .testimonial__quote { color: #fff; }
.testimonial__cite { font-style: normal; }
.testimonial__name { display: block; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8125rem; color: var(--color-primary); }
.testimonial__stars { color: var(--color-accent-ink); }
.section--dark .testimonial__name { color: var(--color-accent-on-dark); }
.testimonial__role { display: block; font-size: .8125rem; color: var(--color-muted); margin-top: .25rem; }
.section--dark .testimonial__role { color: rgba(255,255,255,.6); }

/* --------------------------------------------------------------------------
   14. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band { background-color: var(--color-primary); background-image: var(--texture-dark); background-size: var(--texture-size); color: #fff; --link-hover: var(--color-accent-bright); }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: clamp(2.75rem, 1.8rem + 4vw, 4.5rem);
}
.cta-band__copy { flex: 1 1 420px; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 42ch; }
.cta-band .btn-group { flex: none; }

/* --------------------------------------------------------------------------
   15. ACCORDION / FAQ  (Elementor: Accordion widget)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--color-line); }
.accordion__item { border-bottom: 1px solid var(--color-line); }
.accordion__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  min-height: 56px;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-dark);
  text-align: left;
  cursor: pointer;
}
.accordion__trigger:hover { color: var(--color-primary); }
.accordion__icon { position: relative; flex: none; width: 14px; height: 14px; margin-top: .4em; }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--color-accent);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.accordion__icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.accordion__icon::after  { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.accordion__panel { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.accordion__panel-inner { padding: 0 0 1.5rem; max-width: 62ch; font-size: var(--fs-small); color: var(--color-body); }

/* --------------------------------------------------------------------------
   16. FORMS  (Elementor: Form widget)
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--space-md); }
.form__row { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.form__field { display: flex; flex-direction: column; gap: .4rem; flex: 1 1 220px; min-width: 0; }

.form__label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }
.form__label .req { color: var(--color-accent-ink); }

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 52px;
  padding: .85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.form 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='none' stroke='%236E7A79' stroke-width='1.5' 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; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16,75,75,.12);
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.form__hint { font-size: .8125rem; color: var(--color-muted); }
.form__note { font-size: .8125rem; color: var(--color-muted); }

/* --------------------------------------------------------------------------
   17. CONTACT DETAILS
   -------------------------------------------------------------------------- */
.contact-block + .contact-block { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--color-line); }
.contact-block h3 { font-size: .75rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent-ink); margin-bottom: var(--space-sm); }
.contact-block address { font-style: normal; font-size: var(--fs-small); line-height: 1.75; }
.contact-block a { color: var(--color-body); text-decoration: none; }
.contact-block a:hover { color: var(--color-primary); text-decoration: underline; }

.map-embed { position: relative; width: 100%; aspect-ratio: 21/9; min-height: 300px; overflow: hidden; border-radius: var(--radius-card); background: var(--color-light-alt); border: 1px solid var(--color-line); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   18. NOTICES / PLACEHOLDERS
   -------------------------------------------------------------------------- */
.notice {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-light-alt);
  border-left: 3px solid var(--color-accent);
  font-size: var(--fs-small);
}
.notice strong { display: block; margin-bottom: .25rem; }

.legal-note { font-size: .8125rem; line-height: 1.7; color: var(--color-muted); }
.legal-note strong { color: var(--color-body); }

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background-color: var(--color-dark); background-image: var(--texture-dark); background-size: var(--texture-size); color: rgba(255,255,255,.7); --link-hover: var(--color-accent-bright); }
.site-footer__main { padding-block: var(--space-2xl) var(--space-xl); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: var(--space-xl); }

.footer-brand { flex: 1 1 280px; }
.footer-brand img { width: auto; height: 34px; margin-bottom: var(--space-md); }
.footer-brand p { font-size: var(--fs-small); color: rgba(255,255,255,.62); max-width: 36ch; }

.footer-col { flex: 1 1 165px; }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { font-size: var(--fs-small); color: rgba(255,255,255,.7); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); }

.footer-col address { font-style: normal; font-size: var(--fs-small); line-height: 1.7; color: rgba(255,255,255,.7); }
.footer-col address + address { margin-top: var(--space-sm); }

.footer-social { display: flex; gap: .625rem; margin-top: var(--space-md); }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-line-dark);
  color: rgba(255,255,255,.8);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.footer-social a:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-lg); }
.footer-badges__chip {
  display: inline-flex;
  align-items: center;
  padding: .55rem .9rem;
  background: #fff;
  border-radius: var(--radius-sm);
}
.footer-badges img { height: 26px; width: auto; }

.site-footer__bar {
  border-top: 1px solid var(--color-line-dark);
  padding-block: var(--space-md);
}
.site-footer__bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem var(--space-md); list-style: none; margin: 0; padding: 0; }
.site-footer__legal li { margin: 0; }
.site-footer__legal a { color: rgba(255,255,255,.55); text-decoration: none; }
.site-footer__legal a:hover { color: var(--color-accent); }
.site-footer__licences { display: flex; flex-wrap: wrap; gap: .3rem var(--space-md); }

/* --------------------------------------------------------------------------
   20. REVEAL ANIMATION (subtle, respects reduced motion)
   -------------------------------------------------------------------------- */
/* Scoped to .js so that content is never hidden when scripting is unavailable. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* Shadows stay; the mirror sweep does not */
  .js .btn::after { transition: none; }
  .js .btn:hover::after,
  .js .btn:focus-visible::after { transform: translateX(-180%) skewX(-18deg); }

  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
