/* ============================================================
   Alves Family Construction — shared stylesheet
   Structure, theme tokens, state & motion. Palette: dark navy +
   muted slate-blue #5a7a9a + muted gold #c9a24b.
   ============================================================ */

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg:      #0b0e13;
  --bg-2:    #11151d;
  --bg-3:    #171c26;
  --panel:   #12161f;
  --fg:      #eef1f6;
  --fg-soft: #c3cad6;
  --muted:   #8c94a3;
  --line:    rgba(255,255,255,0.09);
  --line-2:  rgba(255,255,255,0.16);

  --blue:      #5a7a9a;
  --blue-deep: #3f5c78;
  --navy:      #14223b;
  --navy-2:    #1d3050;
  --gold:      #c9a24b;
  --gold-2:    #d9b869;
  --gold-soft: rgba(201,162,75,0.14);
  --sage-hover: rgba(140,170,150,0.14);

  --hero-overlay: linear-gradient(180deg, rgba(20,34,59,0.48) 0%, rgba(15,25,45,0.72) 55%, rgba(11,14,19,0.96) 100%);
  --shadow-1: 0 2px 10px rgba(0,0,0,0.35);
  --shadow-2: 0 24px 60px rgba(0,0,0,0.55);
  --radius: 16px;
  --maxw: 1240px;

  /* consistent type scale */
  --h1: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);
  --h2: clamp(2rem, 1.4rem + 2.1vw, 3.05rem);
  --h2-sub: clamp(1.7rem, 1.25rem + 1.5vw, 2.35rem);
  --h3: clamp(1.28rem, 1.1rem + 0.6vw, 1.5rem);
}

[data-theme="light"] {
  --bg:      #f6f4ee;
  --bg-2:    #ffffff;
  --bg-3:    #efece3;
  --panel:   #ffffff;
  --fg:      #171a1f;
  --fg-soft: #3b414c;
  --muted:   #5c626d;
  --line:    rgba(20,22,28,0.10);
  --line-2:  rgba(20,22,28,0.18);
  --blue:      #3a5a7a;
  --blue-deep: #2c4763;
  --navy:      #14223b;
  --navy-2:    #24395c;
  --gold:      #9c7a2c;
  --gold-2:    #b08f3e;
  --gold-soft: rgba(156,122,44,0.12);
  --hero-overlay: linear-gradient(180deg, rgba(20,20,22,0.42) 0%, rgba(20,20,22,0.5) 55%, rgba(246,244,238,0.96) 100%);
  --shadow-2: 0 24px 60px rgba(40,40,50,0.18);
}

[data-dys="on"] { --font: 'Lexend', ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.01em; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); transition: background .5s var(--ease); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.18rem);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--gold); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.eyebrow { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); color: var(--fg-soft); line-height: 1.5; }

/* ---------------- GRAIN ---------------- */
.grain {
  position: fixed; inset: 0; z-index: 45; pointer-events: none;
  opacity: .045; 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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  animation: grainshift 8s steps(6) infinite;
}
@keyframes grainshift {
  0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-4%)}
  60%{transform:translate(-3%,2%)} 80%{transform:translate(4%,-3%)} 100%{transform:translate(0,0)}
}

/* ---------------- CURSOR ---------------- */
[data-cursor="on"], [data-cursor="on"] a, [data-cursor="on"] button { cursor: none; }
[data-cursor="on"] input, [data-cursor="on"] textarea, [data-cursor="on"] select { cursor: auto; }

/* ---------------- PAGE LOADER ---------------- */
#page-loader {
  position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px;
  background: var(--bg); transition: opacity .6s var(--ease);
}
.loader-build { display: flex; align-items: flex-end; gap: 7px; height: 66px; }
.loader-build span {
  width: 16px; background: var(--gold); border-radius: 3px; transform-origin: bottom;
  animation: stack 1.3s var(--ease) infinite;
}
.loader-build span:nth-child(1){height:26px;animation-delay:0s}
.loader-build span:nth-child(2){height:42px;animation-delay:.12s;background:var(--blue)}
.loader-build span:nth-child(3){height:58px;animation-delay:.24s}
.loader-build span:nth-child(4){height:40px;animation-delay:.36s;background:var(--blue)}
.loader-build span:nth-child(5){height:24px;animation-delay:.48s}
@keyframes stack { 0%{transform:scaleY(0);opacity:.2} 40%{transform:scaleY(1);opacity:1} 80%,100%{transform:scaleY(1);opacity:.5} }
.loader-name { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* ---------------- HEADER ---------------- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px clamp(20px, 5vw, 56px);
  background: var(--navy);
  transition: padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#site-header[data-scrolled] {
  padding: 9px clamp(20px, 5vw, 56px);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.6);
}
[data-theme="light"] #site-header, [data-theme="light"] #site-header[data-scrolled] { background: var(--navy); }
#site-header .nav-desktop a { color: rgba(238,241,246,0.82); }
#site-header .nav-desktop a:hover { color: #fff; }
#site-header .nav-desktop a[aria-current="page"] { color: var(--gold-2); }
#site-header .icon-btn { color: rgba(238,241,246,0.82); }
#site-header .icon-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
#site-header .contact-pill { color: #f3f6fa; border-color: rgba(255,255,255,0.16); }
#site-header .burger-lines span { background: #f3f6fa; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.brand-logo { height: 62px; width: 168px; display: block; background: url("assets/logo-light.png") left center / contain no-repeat; }
[data-theme="light"] .footer .brand-logo { background-image: url("assets/logo.png"); }
.footer .brand-logo { height: 92px; width: 240px; margin-bottom: 14px; }
@media (max-width: 620px) { .brand-logo { height: 50px; width: 132px; } }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold), var(--gold-2)); color: #14110a;
  font-weight: 700; font-size: 1.06rem; letter-spacing: -0.03em; box-shadow: var(--shadow-1); flex: none;
}
.brand-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav-desktop { display: flex; gap: 4px; margin-left: 8px; }
.nav-desktop a {
  color: var(--fg-soft); font-size: .98rem; font-weight: 500; padding: 8px 14px; border-radius: 9px;
  position: relative; transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-desktop a:hover { color: var(--fg); }
.nav-desktop a[aria-current="page"] { color: var(--gold); }
.nav-desktop a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }

.utility { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border: none; background: transparent; color: var(--fg-soft);
  border-radius: 11px; display: grid; place-items: center; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { background: var(--sage-hover); color: var(--fg); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 21px; height: 21px; }

/* contact pill */
.contact-wrap { position: relative; }
.contact-pill {
  display: flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px;
  background: var(--gold-soft); color: var(--fg); border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.contact-pill:hover { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: var(--gold); }
.contact-pill svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.contact-dd {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-2); padding: 7px; opacity: 0; transform: translateY(-8px) scale(.98);
  pointer-events: none; transition: opacity .28s var(--ease), transform .28s var(--ease); z-index: 5;
}
.contact-dd[data-open] { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.contact-dd a {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px;
  color: var(--fg); font-weight: 500; transition: background .25s var(--ease);
}
.contact-dd a:hover { background: var(--gold-soft); }
.contact-dd svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.contact-dd small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

/* primary CTA */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: inherit; font-weight: 600;
  font-size: 1rem; padding: 14px 26px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn-primary { background: linear-gradient(150deg, var(--gold), var(--gold-2)); color: #14110a; box-shadow: 0 10px 30px -8px rgba(201,162,75,.5); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px -10px rgba(201,162,75,.65); color: #14110a; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.header-cta { padding: 11px 20px; }

/* burger */
#nav-burger { display: none; }
.burger-lines { display: grid; gap: 5px; }
.burger-lines span { width: 21px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
#nav-burger[aria-expanded="true"] .burger-lines span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
#nav-burger[aria-expanded="true"] .burger-lines span:nth-child(2){ opacity: 0; }
#nav-burger[aria-expanded="true"] .burger-lines span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
#mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--bg); display: flex; flex-direction: column; justify-content: center;
  gap: 6px; padding: 100px clamp(24px,7vw,64px) 48px;
  opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(-2%);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
#mobile-menu[data-open] { opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(0); }
#mobile-menu a { color: var(--fg); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--line); }
#mobile-menu a:hover { color: var(--gold); padding-left: 12px; transition: padding .3s var(--ease), color .3s var(--ease); }
.mobile-contact { margin-top: 30px; display: flex; flex-direction: column; gap: 8px; }

/* ---------------- SEARCH PANEL ---------------- */
#search-panel {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--bg-2);
  border-bottom: 1px solid var(--line); visibility: hidden;
  transform: translateY(-100%); transition: transform .45s var(--ease), visibility .45s; box-shadow: var(--shadow-2);
}
#search-panel[data-open] { transform: translateY(0); visibility: visible; }
.search-inner { max-width: 780px; margin: 0 auto; padding: 26px clamp(20px,5vw,40px) 30px; }
.search-row { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--line-2); padding-bottom: 12px; }
.search-row svg { width: 24px; height: 24px; color: var(--muted); flex: none; }
#search-input { flex: 1; background: transparent; border: none; color: var(--fg); font-family: inherit; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 500; outline: none; }
#search-input::placeholder { color: var(--muted); }
#search-mic { position: relative; }
#search-mic[data-listening] { color: var(--gold); background: var(--gold-soft); }
#search-mic[data-listening]::after { content:""; position:absolute; inset:-3px; border-radius:12px; border:2px solid var(--gold); animation: pulse 1.1s var(--ease) infinite; }
@keyframes pulse { 0%{transform:scale(1);opacity:.8} 100%{transform:scale(1.35);opacity:0} }
#search-results { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow-y: auto; }

/* ---------------- SETTINGS PANEL ---------------- */
#settings-scrim { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
#settings-scrim[data-open] { opacity: 1; pointer-events: auto; }
#settings-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 310; width: min(400px, 92vw);
  background: var(--panel); border-left: 1px solid var(--line); box-shadow: var(--shadow-2);
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
#settings-panel[data-open] { transform: translateX(0); }
.settings-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.settings-head h2 { font-size: 1.15rem; }
.settings-body { padding: 8px 24px 40px; display: flex; flex-direction: column; }
.set-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.set-group:last-child { border-bottom: none; }
.set-group > h3 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.set-row:last-child { margin-bottom: 0; }
.set-row label { font-weight: 500; font-size: .98rem; }
.set-row small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2); cursor: pointer; flex: none; transition: background .3s var(--ease); padding: 0; }
.switch::after { content:""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--ease), background .3s var(--ease); }
.switch[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); }
.switch[aria-pressed="true"]::after { transform: translateX(22px); background: var(--gold); }
.set-select, .set-range { width: 100%; }
.set-select {
  background: var(--bg-3); color: var(--fg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 12px; font-family: inherit; font-size: .95rem; margin-top: 6px; cursor: pointer;
}
input[type="range"] { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 999px; background: var(--bg-3); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); cursor: pointer; box-shadow: var(--shadow-1); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 50%; background: var(--gold); cursor: pointer; }
.range-row { display: block; margin-bottom: 16px; }
.range-row label { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 8px; }
#lang-note { display: none; margin-top: 10px; font-size: .82rem; color: var(--muted); padding: 10px 12px; background: var(--gold-soft); border-radius: 10px; }

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; padding-top: 104px; padding-bottom: 230px; margin-bottom: -180px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg::after { content:""; position: absolute; inset: 0; background: var(--hero-overlay); z-index: 1; }
.hero-img { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; animation: kenburns 26s var(--ease) infinite alternate; }
@keyframes kenburns { 0%{transform:scale(1) translate(0,0)} 100%{transform:scale(1.14) translate(-1.5%,-1.5%)} }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,5vw,56px); color: #f3f6fa; }
.hero-inner h1 { color: #f5f8fc; }
.hero-inner .lead { color: rgba(243,246,250,0.86); }
.hero-inner .btn-ghost { color: #f3f6fa; border-color: rgba(255,255,255,0.32); }
.hero-inner .btn-ghost:hover { color: var(--gold-2); border-color: var(--gold); }
.hero h1 { font-size: var(--h1); max-width: 15ch; }
.hero .lead { max-width: 46ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-tagline { margin-top: 16px; font-size: .92rem; color: rgba(243,246,250,0.68); }
.hero-sub { min-height: 78vh; padding-bottom: 210px; margin-bottom: -160px; }

/* sections */
.section { position: relative; z-index: 1; padding: clamp(70px, 9vw, 130px) 0; }
.section-tight { padding: clamp(48px, 6vw, 90px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: var(--h2); margin-top: 14px; }
.section-head p { margin-top: 18px; }
.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-3); }

/* ---------------- SERVICE CARDS ---------------- */
/* editorial two-column split (stacks on mobile) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.bene { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.bene li { display: flex; gap: 13px; align-items: flex-start; color: var(--fg-soft); font-size: 1rem; line-height: 1.45; }
/* about story imagery */
.about-media { display: grid; gap: clamp(16px,2vw,22px); }
.about-shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.about-shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.about-shot:nth-child(2) { margin-left: clamp(0px, 5vw, 56px); }
@media (max-width: 860px) { .about-shot:nth-child(2) { margin-left: 0; } }
/* single sticky story image */
.story-media { position: sticky; top: 104px; align-self: start; }
.story-media .about-shot img { aspect-ratio: 3/4; }
@media (max-width: 860px) { .story-media { position: static; } .story-media .about-shot img { aspect-ratio: 4/3; } }
/* home about-us: image with stat bar beneath */
.about-block { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 30px); }
.about-block .about-shot img { aspect-ratio: 16/11; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--gold-soft); position: relative; margin-top: 2px; }
.tick::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* staggered editorial service rows (reuses .card markup) */
.svc-stagger { display: flex; flex-direction: column; gap: clamp(44px, 6.5vw, 104px); }
.svc-stagger .card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); background: transparent; border: none; border-radius: 0; box-shadow: none; overflow: visible; }
.svc-stagger .card:hover { transform: none; box-shadow: none; border-color: transparent; }
.svc-stagger .card-media { aspect-ratio: 5/4; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.svc-stagger .card:nth-child(even) .card-media { order: 2; }
.svc-stagger .card-body { flex: none; padding: 0 clamp(0px, 1.5vw, 24px); }
.svc-stagger .card-body h3 { font-size: var(--h2-sub); margin-bottom: 14px; }
.svc-stagger .card-body p { font-size: 1.06rem; }
.svc-stagger .card-link { padding-top: 20px; }
@media (max-width: 820px) {
  .svc-stagger .card { grid-template-columns: 1fr; gap: 22px; }
  .svc-stagger .card-media, .svc-stagger .card:nth-child(even) .card-media { order: 0; }
  .svc-stagger .card-body { padding: 0; }
}
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--blue-deep); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media .num { position: absolute; top: 14px; left: 16px; font-size: .82rem; letter-spacing: .2em; color: #fff; opacity: .85; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: var(--h3); margin-bottom: 10px; }
.card-body p { color: var(--fg-soft); font-size: 1rem; }
.card-link { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: .95rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------------- STATS ---------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; }
.stat .num { font-size: clamp(2.6rem, 1.5rem + 3vw, 4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--gold); line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 10px; font-size: .95rem; }

/* ---------------- TESTIMONIALS (card) ---------------- */
.testi { position: relative; }
.testi-stage { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px,4.5vw,58px); box-shadow: var(--shadow-2); overflow: hidden; }
.testi-mark { position: absolute; top: clamp(-14px,0.5vw,4px); right: clamp(18px,4vw,44px); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(130px,20vw,240px); line-height: 1; color: var(--gold-soft); pointer-events: none; user-select: none; z-index: 0; }
#testi-slider { position: relative; min-height: 320px; z-index: 1; }
.testi-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; gap: 24px; }
.testi-stars { color: var(--gold); letter-spacing: 4px; font-size: 1.05rem; }
.testi-quote { font-size: clamp(1.3rem, 1rem + 1.4vw, 2.05rem); font-weight: 500; line-height: 1.38; max-width: 40ch; letter-spacing: -0.01em; color: var(--fg); }
.testi-who { display: flex; align-items: center; gap: 15px; }
.avatar { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; color: #14110a; background: linear-gradient(150deg, var(--gold), var(--gold-2)); flex: none; box-shadow: var(--shadow-1); }
.testi-who .name { font-weight: 600; }
.testi-who .role { color: var(--muted); font-size: .9rem; }
.testi-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(22px,3vw,34px); padding-top: 22px; border-top: 1px solid var(--line); }
.testi-dots { display: flex; gap: 8px; }
.dot { width: 34px; height: 4px; border-radius: 3px; background: var(--line-2); border: none; cursor: pointer; transition: background .3s var(--ease); padding: 0; }
.dot[data-active="on"] { background: var(--gold); }
.testi-arrows { display: flex; gap: 10px; }
.testi-arrows button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.testi-arrows button:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.testi-arrows svg { width: 20px; height: 20px; }

/* ---------------- FORM ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 500; color: var(--fg-soft); }
.field input, .field textarea, .field select {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px;
  color: var(--fg); font-family: inherit; font-size: 1rem; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; background: var(--bg-3); }
.field textarea { resize: vertical; min-height: 130px; }
#form-ok { display: none; align-items: center; gap: 10px; margin-top: 18px; opacity: 0; transition: opacity .4s var(--ease); color: var(--gold); font-weight: 600; }

/* map */
.contact-line { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font-weight: 600; font-size: 1.08rem; transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease); }
a.contact-line:hover { border-color: var(--gold); transform: translateX(4px); background: var(--gold-soft); color: var(--fg); }
.contact-line small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; margin-bottom: 2px; }
.contact-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.contact-ico svg { width: 20px; height: 20px; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ---------------- SOCIAL ---------------- */
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--fg-soft);
  border: 1px solid var(--line); background: transparent; transition: transform .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.social-btn:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 0 22px -4px var(--gold); }
.social-btn svg { width: 20px; height: 20px; }

/* ---------------- FOOTER ---------------- */
.footer { position: relative; z-index: 1; background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 90px) 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.footer h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer p { font-size: .88rem; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--fg-soft); position: relative; width: fit-content; font-size: .9rem; }
.footer-links a::after { content:""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.footer-links a:hover { color: var(--fg); }
.footer-links a:hover::after { transform: scaleX(1); }
.footer-contact a { color: var(--fg-soft); }
.footer-bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--muted); font-size: .82rem; }
.footer-bottom .footer-links a { font-size: .82rem; }
.footer-note { max-width: 60ch; }

/* first section after a hero: clear the hero's downward bleed so text never overlaps the hero heading */
.hero + section { padding-top: clamp(216px, 14vw, 238px); }

/* ---------------- CTA BAND (shared, image + navy overlay) ---------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta-band .cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,34,59,0.86) 0%, rgba(15,25,45,0.82) 45%, rgba(11,17,30,0.9) 100%); }
.cta-band .cta-inner { max-width: 820px; margin: 0 auto; }
.cta-band h2 { color: #f5f8fc; }
.cta-band .lead { color: rgba(243,246,250,0.88); margin: 20px auto 30px; }
.cta-band .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #f3f6fa; border-color: rgba(255,255,255,0.34); }
.cta-band .btn-ghost:hover { color: var(--gold-2); border-color: var(--gold); }

/* ---------------- REVEAL ---------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
[data-reveal][data-shown] { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease); }
[data-reveal="clip"][data-shown] { clip-path: inset(0 0 0 0); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  #nav-burger { display: grid; place-items: center; }
  .header-cta, .header-search-label { display: none; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split > * { order: 0 !important; }
}
@media (max-width: 620px) {
  .contact-pill .pill-num { display: none; }
  .contact-pill { padding: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 190px; }
}

/* ---------------- DEVICE OPTIMIZATION (tablet + mobile polish) ---------------- */
@media (max-width: 1024px) {
  .hero { min-height: 84vh; }
  .hero-sub { min-height: 68vh; }
}
@media (max-width: 760px) {
  .hero { min-height: 72vh; }
  .hero-sub { min-height: 60vh; padding-bottom: 180px; margin-bottom: -140px; }
  #testi-slider { min-height: 400px; }
  .stats { gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 480px) {
  .icon-btn { width: 44px; height: 44px; }
  .hero-cta, .cta-band .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .cta-band .cta-actions .btn { width: 100%; justify-content: center; }
  #testi-slider { min-height: 470px; }
  .testi-quote { font-size: clamp(1.15rem, 4.6vw, 1.5rem); }
  .brand-logo { height: 46px; width: 122px; }
  .utility { gap: 4px; }
}

/* ---------------- REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-img { animation: none; }
  .grain { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
[data-reduced="on"] .hero-img, [data-reduced="on"] .grain { animation: none; }

/* export: transparent single-nav wrapper keeps header layout identical */
#site-header > nav.site-nav { display: contents; }


/* mm-batch-patch: drawer centering */
#mobile-menu{align-items:center;}
#mobile-menu > *:not(button){width:100%;max-width:440px;margin-left:auto;margin-right:auto;}
