/* ==========================================================================
   AHNEWME — Scalp Micropigmentation, Fredericksburg VA
   Website by Social Expert Digital
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #1A1D16;
  --ink-soft:   #464C3C;
  --olive-deep: #2E3A26;
  --olive:      #4A5A38;
  --olive-mid:  #6E7F58;
  --tan:        #C8A882;
  --tan-deep:   #A8865C;
  --sand:       #EDE4D6;
  --paper:      #FBF8F2;
  --white:      #FFFFFF;

  --line:       rgba(26, 29, 22, 0.14);
  --line-light: rgba(251, 248, 242, 0.20);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.65s;

  --header-h: 82px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--tan-deep); }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 40;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.25; }
h4 { font-size: 1.0625rem; line-height: 1.35; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }

:focus-visible {
  outline: 3px solid var(--tan-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.bg-paper { background: var(--paper); }
.bg-sand  { background: var(--sand); }
.bg-white { background: var(--white); }

.bg-olive { background: var(--olive-deep); color: var(--sand); }
.bg-olive h1, .bg-olive h2, .bg-olive h3, .bg-olive h4 { color: var(--white); }
.bg-olive a { color: var(--tan); }
.bg-olive a:hover { color: var(--white); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--olive-deep);
  color: var(--white);
  padding: 0.85rem 1.35rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.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;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--tan-deep);
  flex: none;
}
.bg-olive .eyebrow { color: var(--tan); }
.bg-olive .eyebrow::before { background: var(--tan); }

.lede {
  font-size: clamp(1.09rem, 1.55vw, 1.24rem);
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: 62ch;
}
.bg-olive .lede { color: rgba(237, 228, 214, 0.86); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.02rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
  text-align: center;
}

.btn--primary,
a.btn--primary { background: var(--olive); color: var(--white) !important; border-color: var(--olive); }
.btn--primary:hover,
a.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--white) !important; }

.btn--tan,
a.btn--tan { background: var(--tan); color: var(--ink) !important; border-color: var(--tan); }
.btn--tan:hover,
a.btn--tan:hover { background: var(--white); border-color: var(--white); color: var(--ink) !important; }

.btn--ghost,
a.btn--ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn--ghost:hover,
a.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white) !important; }

.btn--ghost-light,
a.btn--ghost-light { background: transparent; color: var(--white) !important; border-color: var(--line-light); }
.btn--ghost-light:hover,
a.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--ink) !important; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Stipple: the SMP signature motif ---------- */
.stipple { display: block; width: 100%; height: auto; }
.stipple circle { fill: var(--olive-mid); }
.bg-olive .stipple circle { fill: var(--tan); }

.stipple-rule {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}
.stipple-rule .stipple { max-height: 74px; opacity: 0.75; }

html.js .stipple circle {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
html.js .stipple.is-in circle { opacity: var(--o, 1); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), height 0.35s var(--ease);
}
.header.is-solid,
.header.is-inner {
  background: var(--paper);
  border-bottom-color: var(--line);
}
.header.is-solid { height: 70px; }

.header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.28s var(--ease);
}
.brand:hover .brand-logo {
  transform: scale(1.03);
}

/* Header logo switching: light on dark hero, dark on light header */
.header .brand-logo--dark { display: none; }
.header .brand-logo--light { display: block; }

.header.is-solid .brand-logo--dark,
.header.is-inner .brand-logo--dark { display: block; }
.header.is-solid .brand-logo--light,
.header.is-inner .brand-logo--light { display: none; }

/* Footer logo */
.footer .brand-logo { height: 60px; margin-bottom: 0.75rem; }
.footer .brand-logo--dark { display: block; }
.footer .brand-logo--light { display: none; }

@media (max-width: 640px) {
  .brand-logo { height: 46px; }
  .footer .brand-logo { height: 54px; }
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 2rem; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li { margin: 0; position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  padding-block: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.header.is-solid .nav-link,
.header.is-inner .nav-link { color: var(--ink-soft); }
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--tan); }
.header.is-solid .nav-link:hover,
.header.is-inner .nav-link:hover,
.header.is-solid .nav-link[aria-current="page"],
.header.is-inner .nav-link[aria-current="page"] { color: var(--olive); }

.nav-link .chev { width: 9px; height: 9px; transition: transform 0.25s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -1.25rem;
  min-width: 288px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.6rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  box-shadow: 0 18px 44px rgba(26, 29, 22, 0.13);
}
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 0.62rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 2px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.dropdown a:hover { background: var(--sand); color: var(--olive); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.header.is-solid .header-phone,
.header.is-inner .header-phone { color: var(--ink); }
.header-phone:hover { color: var(--tan); }
.header-phone svg { width: 15px; height: 15px; flex: none; }
.header .btn { padding: 0.82rem 1.4rem; font-size: 0.76rem; }

/* Hamburger */
.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-light);
  border-radius: 2px;
  cursor: pointer;
  flex: none;
}
.header.is-solid .burger,
.header.is-inner .burger { border-color: var(--line); }
.burger span {
  display: block;
  position: relative;
  width: 19px; height: 1.5px;
  background: var(--white);
  transition: background-color 0.2s var(--ease);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px; height: 1.5px;
  background: inherit;
  transition: transform 0.32s var(--ease), top 0.32s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.header.is-solid .burger span,
.header.is-inner .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span { background: transparent !important; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); background: var(--ink); }

/* Mobile panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--paper);
  padding: calc(var(--header-h) + 1.75rem) var(--gutter) 2.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease), visibility 0.34s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav ul { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: block;
  padding: 1.02rem 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink);
}
.mobile-nav a:hover { color: var(--olive); }
.mobile-nav .sub a {
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 500;
  padding: 0.72rem 0 0.72rem 1.1rem;
  color: var(--ink-soft);
}
.mobile-nav .sub { margin: 0; }
.mobile-nav .sub li:last-child { border-bottom: 0; }
.mobile-nav .btn { width: 100%; margin-bottom: 0.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  background: var(--olive-deep);
  overflow: hidden;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.005);
}
.hero-slide.is-active img {
  animation: kenburns 7s linear forwards;
}
@keyframes kenburns {
  from { transform: scale(1.005); }
  to   { transform: scale(1.058); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(29, 36, 23, 0.62);
}
.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 15, 0.28);
  clip-path: polygon(0 42%, 100% 22%, 100% 100%, 0 100%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 830px; }
.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--tan);
  display: block;
}
.hero .lede { color: rgba(255, 255, 255, 0.9); max-width: 56ch; margin-bottom: 2.1rem; }
.hero .btn-row { margin-bottom: 3rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.75rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
  list-style: none;
  margin: 0;
}
.hero-facts li {
  margin: 0;
  padding-block: 0.4rem;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-facts li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tan);
  flex: none;
}

/* Slide dots */
.hero-dots {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 7vw, 5.5rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-dots button {
  width: 9px; height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-dots button[aria-current="true"] {
  background: var(--tan);
  border-color: var(--tan);
  transform: scale(1.35);
}

/* Hero load-in — fires immediately, no scroll gate */
html.js .hero-copy > * { opacity: 0; transform: translateY(20px); }
html.js .hero.is-ready .hero-copy > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}
html.js .hero.is-ready .hero-copy > *:nth-child(1) { transition-delay: 0.06s; }
html.js .hero.is-ready .hero-copy > *:nth-child(2) { transition-delay: 0.15s; }
html.js .hero.is-ready .hero-copy > *:nth-child(3) { transition-delay: 0.24s; }
html.js .hero.is-ready .hero-copy > *:nth-child(4) { transition-delay: 0.33s; }
html.js .hero.is-ready .hero-copy > *:nth-child(5) { transition-delay: 0.42s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--olive-deep);
  padding-top: calc(var(--header-h) + clamp(3.25rem, 7vw, 5.5rem));
  padding-bottom: clamp(3.25rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: rgba(237, 228, 214, 0.88); }
.page-hero-inner { max-width: 800px; position: relative; z-index: 2; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.breadcrumb li { margin: 0; color: rgba(237, 228, 214, 0.55); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumb a { color: var(--tan); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.split-media--wide img { aspect-ratio: 4 / 3; }

.figure-stack { position: relative; }
.figure-stack .badge {
  position: absolute;
  right: -14px;
  bottom: 28px;
  background: var(--olive-deep);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 2px;
  max-width: 210px;
}
.figure-stack .badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.05rem;
  line-height: 1;
  color: var(--tan);
  margin-bottom: 0.35rem;
}
.figure-stack .badge span {
  font-size: 0.73rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.4;
  display: block;
}

/* ---------- Card grids ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 1.85rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--olive-mid); transform: translateY(-4px); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 1.35rem; }
.card .card-link {
  margin-top: auto;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.card .card-link::after {
  content: "";
  width: 16px; height: 1px;
  background: currentColor;
  transition: width 0.28s var(--ease);
}
.card:hover .card-link::after { width: 26px; }

.card-dots { display: flex; gap: 3px; margin-bottom: 1.15rem; }
.card-dots i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tan);
  display: block;
}
.card-dots i:nth-child(2) { background: var(--olive-mid); }
.card-dots i:nth-child(3) { background: var(--olive); }

/* ---------- Process steps (a real sequence) ---------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step {
  counter-increment: step;
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.4rem);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--tan-deep);
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.13rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.94rem; color: var(--ink-soft); }
.bg-sand .step { background: var(--sand); }

/* ---------- Checklist ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.ticks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.72rem;
  font-size: 1rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.63em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tan-deep);
}
.bg-olive .ticks li::before { background: var(--tan); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--sand);
  cursor: zoom-in;
  border-radius: 2px;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(46, 58, 38, 0);
  transition: background-color 0.35s var(--ease);
}
.gallery-item:hover::after { background: rgba(46, 58, 38, 0.22); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 25, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; }
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox figcaption {
  color: rgba(237, 228, 214, 0.85);
  font-size: 0.88rem;
  text-align: center;
  padding-top: 1rem;
}
.lightbox-btn {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }
.lightbox-btn svg { width: 17px; height: 17px; }
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox-prev { left: clamp(0.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--olive-deep);
  border-radius: 2px;
  overflow: hidden;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--olive-deep);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.78; }
.video-facade .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.34s var(--ease), background-color 0.34s var(--ease);
}
.video-facade:hover .play { transform: translate(-50%, -50%) scale(1.09); background: var(--white); }
.video-facade .play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--ink); }
.video-facade .label {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2rem);
  bottom: clamp(1.25rem, 3vw, 2rem);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.acc-trigger:hover { color: var(--olive); }
.acc-icon { position: relative; width: 15px; height: 15px; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  background: var(--tan-deep);
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}
.acc-icon::before { top: 7px; left: 0; width: 15px; height: 1.5px; }
.acc-icon::after  { left: 7px; top: 0; width: 1.5px; height: 15px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(90deg); opacity: 0; }

.acc-panel { overflow: hidden; height: 0; transition: height 0.38s var(--ease); }
.acc-panel-inner { padding: 0 0 1.6rem; max-width: 72ch; color: var(--ink-soft); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.92rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.25s var(--ease);
  width: 100%;
}
.field textarea { min-height: 138px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive); }
.form-note { font-size: 0.86rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Contact / NAP blocks ---------- */
.nap-list { list-style: none; margin: 0; padding: 0; }
.nap-list li {
  display: flex;
  gap: 1rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.nap-list li:first-child { padding-top: 0; }
.bg-olive .nap-list li { border-bottom-color: var(--line-light); }
.nap-list .ico { flex: none; width: 19px; margin-top: 5px; color: var(--tan-deep); }
.bg-olive .nap-list .ico { color: var(--tan); }
.nap-list .ico svg { width: 19px; height: 19px; }
.nap-list dt, .nap-list strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.28rem;
}
.bg-olive .nap-list strong { color: rgba(237, 228, 214, 0.6); }
.nap-list span, .nap-list a { font-size: 1.03rem; font-weight: 500; }

.map-wrap {
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand);
}
.map-wrap iframe,
.map-wrap img { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.map-wrap a { display: block; width: 100%; height: 100%; position: relative; }
.map-wrap a:hover img { filter: brightness(0.97); }

/* ---------- Area list ---------- */
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.area-list li {
  margin: 0;
  padding: 0.92rem 0.5rem 0.92rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.95rem;
  color: rgba(237, 228, 214, 0.88);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.area-list li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--tan);
  flex: none;
}

/* ---------- Quote / testimonial ---------- */
.quote {
  border-left: 2px solid var(--tan);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  max-width: 68ch;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1rem;
}
.bg-olive .quote p { color: var(--white); }
.quote cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tan-deep);
}
.bg-olive .quote cite { color: var(--tan); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; margin-bottom: 2.1rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(237, 228, 214, 0.74); padding-block: clamp(3.5rem, 6vw, 5rem) 0; }
.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
}
.footer a { color: rgba(237, 228, 214, 0.74); }
.footer a:hover { color: var(--tan); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.72rem; font-size: 0.95rem; }
.footer .brand { color: var(--white); margin-bottom: 1.25rem; display: inline-block; }
.footer-about p { font-size: 0.95rem; max-width: 40ch; }

.socials { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(237, 228, 214, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.26s var(--ease), border-color 0.26s var(--ease);
}
.socials a:hover { background: var(--tan); border-color: var(--tan); }
.socials a:hover svg { fill: var(--ink); }
.socials svg { width: 16px; height: 16px; fill: rgba(237, 228, 214, 0.8); transition: fill 0.26s var(--ease); }

.footer-bottom {
  border-top: 1px solid rgba(237, 228, 214, 0.14);
  padding-block: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .stagger > * { opacity: 0; transform: translateY(22px); }
html.js .stagger.is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
html.js .stagger.is-in > *:nth-child(1) { transition-delay: 0.04s; }
html.js .stagger.is-in > *:nth-child(2) { transition-delay: 0.12s; }
html.js .stagger.is-in > *:nth-child(3) { transition-delay: 0.20s; }
html.js .stagger.is-in > *:nth-child(4) { transition-delay: 0.28s; }
html.js .stagger.is-in > *:nth-child(5) { transition-delay: 0.36s; }
html.js .stagger.is-in > *:nth-child(6) { transition-delay: 0.44s; }
html.js .stagger.is-in > *:nth-child(7) { transition-delay: 0.52s; }
html.js .stagger.is-in > *:nth-child(8) { transition-delay: 0.60s; }

body.nav-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
  .area-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: flex; }
  .header-cta { gap: 0.75rem; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; }
  .figure-stack .badge { right: 16px; bottom: 16px; }
  .hero-dots { flex-direction: row; bottom: 1.5rem; left: var(--gutter); right: auto; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps--4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 4.5rem); }
  .hero .btn-row .btn { width: 100%; }
  .header-phone span { display: none; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .figure-stack .badge { position: static; max-width: none; margin-top: 1rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal,
  html.js .stagger > *,
  html.js .hero-copy > * { opacity: 1 !important; transform: none !important; }
  html.js .stipple circle { opacity: var(--o, 1) !important; }
  .hero-slide.is-active img { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .header, .mobile-nav, .hero-slides, .lightbox, .video-wrap, .map-wrap { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Before / after slider ---------- */
.ba-figure { margin: 0; }
.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 460px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--sand);
  touch-action: pan-y;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  pointer-events: none;
}
.ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: var(--tan);
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--tan);
  display: block;
}
.ba-handle span::before, .ba-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0; height: 0;
  border-block: 5px solid transparent;
  transform: translateY(-50%);
}
.ba-handle span::before { left: 9px;  border-right: 7px solid var(--ink); }
.ba-handle span::after  { right: 9px; border-left: 7px solid var(--ink); }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba:focus-within { outline: 3px solid var(--tan-deep); outline-offset: 3px; }
.ba-tag {
  position: absolute;
  bottom: 12px;
  padding: 0.34rem 0.7rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--sand);
  border-radius: 2px;
  pointer-events: none;
}
.ba-tag--b { left: 12px; }
.ba-tag--a { right: 12px; background: var(--olive); color: var(--white); }
.ba-figure figcaption {
  padding-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Mobile sticky call bar ---------- */
.callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
}
.callbar .btn { flex: 1; padding: 0.88rem 0.5rem; font-size: 0.78rem; }
@media (max-width: 900px) {
  .callbar { display: flex; }
  body { padding-bottom: 72px; }
  .hero-dots { bottom: 5.5rem; }
  body.nav-open .callbar { display: none; }
}
