/* ==========================================================================
   Family Legal – עו"ד קובי גל
   Design: magazine layout in a light mood – big type, fine lines, soft corners.
   Fonts: Open Sans for headings, Assistant for text.

   Palettes. The active one is chosen with PALETTE in src/build.py
   (it sets data-palette on <html>). 1 = navy & sand, 7 = graphite & copper.
   ========================================================================== */
:root {
  --bg: #f4f2ee; --surface: #fff; --ink: #101b2d; --muted: #5a6577; --line: #e2ded6;
  --primary: #1b2f4b; --soft: #e8ebf0; --accent: #c2a878; --on-accent: #1e1708;
  --dark: #0e1726; --dark2: #18243a;
}
html[data-palette="2"] { --bg: #f3f1ea; --ink: #14211b; --muted: #5b665f; --line: #dddccf; --primary: #23473a; --soft: #e4eae4; --accent: #b9a26a; --on-accent: #1c1605; --dark: #0f1c16; --dark2: #182a22; }
html[data-palette="3"] { --bg: #f3f4f5; --ink: #171b21; --muted: #5e6670; --line: #dfe2e6; --primary: #2f3e52; --soft: #e6eaee; --accent: #9fb1c4; --on-accent: #101820; --dark: #14181e; --dark2: #1f252e; }
html[data-palette="4"] { --bg: #f5f1ec; --ink: #231619; --muted: #6a5c5c; --line: #e6ddd5; --primary: #5a1f2b; --soft: #f0e6e3; --accent: #b89b72; --on-accent: #1f1606; --dark: #1c1114; --dark2: #2a1a1e; }
html[data-palette="5"] { --bg: #f2f5f6; --ink: #13212b; --muted: #586771; --line: #dce4e8; --primary: #2c5670; --soft: #e2ebf0; --accent: #cdb893; --on-accent: #211a09; --dark: #0f1c25; --dark2: #182b37; }
html[data-palette="6"] { --bg: #f5f4f1; --ink: #18181a; --muted: #5f5f62; --line: #e3e1dc; --primary: #232427; --soft: #ebe9e4; --accent: #b4975a; --on-accent: #1d1606; --dark: #141416; --dark2: #202023; }
/* 7 = graphite & copper, the colours of the Gal & Co. site (Gal-Law/css/styles.css) */
html[data-palette="7"] { --bg: #f3f2ef; --ink: #111315; --muted: #5f666c; --line: #dddcd8; --primary: #2f3840; --soft: #e5eaed; --accent: #ec9a62; --on-accent: #111315; --dark: #1b1f23; --dark2: #30363b; --accent-ink: #a84e24; }

:root {
  --accent-ink: #7e6f5b;
  --accent-ink: color-mix(in oklab, var(--accent) 60%, var(--ink));
  --line-light: rgba(255, 255, 255, .13);
  --on-dark: rgba(255, 255, 255, .74);
  --dark-grad: linear-gradient(155deg, var(--dark2), var(--dark) 72%);

  --heading: "Open Sans", "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --sans: "Assistant", "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --pad: clamp(1.25rem, 4.2vw, 4.2rem);
  --container: 1240px;
  --bar-h: 68px;      /* height of the floating top bar */
  --bar-top: 14px;    /* its distance from the top of the screen */
  --header-h: calc(var(--bar-h) + 2 * var(--bar-top));
  --radius: 2px;
  --round: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 60px -40px rgba(0, 0, 0, .45);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; font-weight: 400; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--pad), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: .7rem 1.1rem; }
.skip-link:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--heading); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.9rem); line-height: 1.16; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.22; }
h3 { font-size: 1.3rem; line-height: 1.35; }
h1 strong, h2 strong, h3 strong { font-weight: 700; }

.eyebrow { display: inline-flex; align-items: center; gap: .8rem; font-size: .92rem; font-weight: 600; letter-spacing: .12em; color: var(--accent-ink); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.eyebrow--light { color: var(--accent); }
.eyebrow .num { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  padding: 1rem 1.7rem; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1.06rem; line-height: 1.2; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-gold { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-gold:hover { background: #fff; border-color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-sm { padding: .6rem 1.15rem; font-size: .98rem; }
.btn-block { width: 100%; }

/* Photo with soft corners and a tilted fine frame */
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--accent); border-radius: var(--round); transform: rotate(-4deg); }
.framed img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 6%; border-radius: var(--round); box-shadow: 0 44px 70px -44px rgba(14, 23, 38, .55); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Header: a floating graphite bar
   ========================================================================== */
.site-header { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50; padding-top: var(--bar-top); color: #fff; pointer-events: none; }
.site-header.is-scrolled .header-inner { box-shadow: 0 22px 44px -22px rgba(14, 23, 38, .6); }
.header-inner { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--bar-h); padding-inline: 1.9rem .8rem; background: var(--primary); border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; box-shadow: 0 16px 36px -28px rgba(14, 23, 38, .5); transition: box-shadow .3s var(--ease); }
.main-nav { pointer-events: auto; }

.brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.brand-mark { font-family: var(--heading); font-size: 1.1rem; font-weight: 600; letter-spacing: .24em; color: #fff; margin-inline-end: -.24em; }
.brand-sub { font-size: .8rem; letter-spacing: .08em; font-weight: 400; color: rgba(255, 255, 255, .62); }
.brand--light .brand-mark { color: #fff; }
.brand--light .brand-sub { color: rgba(255, 255, 255, .6); }

.main-nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.main-nav > a, .nav-item > a { position: relative; font-size: 1.04rem; color: var(--on-dark); padding: .4rem 0; white-space: nowrap; transition: color .2s; }
.main-nav > a:hover, .nav-item > a:hover, .main-nav > a.is-active, .nav-item.is-active > a { color: #fff; }
.main-nav > a::after, .nav-item > a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.main-nav > a:hover::after, .nav-item > a:hover::after, .main-nav > a.is-active::after, .nav-item.is-active > a::after { transform: scaleX(1); }
.main-nav > .nav-cta-mobile { display: none; }

.nav-item { position: relative; display: flex; align-items: center; gap: .15rem; }
.sub-toggle { width: 22px; height: 22px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .6); display: grid; place-items: center; cursor: pointer; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.sub {
  position: absolute; top: calc(100% + 16px); inset-inline-start: -1.2rem; z-index: 5;
  min-width: 14rem; display: grid; padding: .5rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.sub::before { content: ""; position: absolute; inset-inline: 0; top: -18px; height: 18px; }
.sub a { padding: .6rem .9rem; border-radius: 10px; font-size: 1.02rem; white-space: nowrap; transition: background .2s, color .2s; }
.sub a:hover, .sub a[aria-current] { background: var(--bg); color: var(--primary); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .sub-toggle svg, .has-sub.open .sub-toggle svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.phone-link { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.02rem; font-weight: 600; color: #fff; }
.header-actions .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.header-actions .btn:hover { background: #fff; border-color: #fff; }
.phone-link svg { color: var(--accent); width: 1.1em; height: 1.1em; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 1.5px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Home hero: big type on a light ground, photo running to the edge
   ========================================================================== */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33%); min-height: clamp(560px, 92vh, 820px); padding-top: var(--header-h); background: var(--bg); }
.hero-copy {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(1.8rem, 3vw, 2.6rem);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 4vw, 3.6rem);
  padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2)) var(--pad);
}
.hero h1 { font-size: clamp(2.4rem, 5.3vw, 4.9rem); font-weight: 300; line-height: 1.12; letter-spacing: -.025em; color: var(--primary); }
.hero h1 b { display: block; width: fit-content; font-weight: 700; }
.hl { padding-inline: .08em; white-space: nowrap; background: linear-gradient(to top, rgba(194, 168, 120, .6) 0 36%, transparent 36%) right / 0 100% no-repeat; background-image: linear-gradient(to top, color-mix(in srgb, var(--accent) 60%, transparent) 0 36%, transparent 36%); animation: hl 1.1s var(--ease) .6s forwards; }
@keyframes hl { to { background-size: 100% 100%; } }
.hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: end; padding-top: 1.8rem; border-top: 1px solid #d9d3c6; }
.lead { color: var(--muted); font-weight: 400; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34rem; line-height: 1.8; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero-foot .hero-cta { flex-direction: column; align-items: flex-start; }
.hero-tel { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink); }
.hero-tel svg { color: var(--accent-ink); }

.hero-photo { position: relative; }
.hero-photo-clip { position: absolute; inset: 0; overflow: hidden; }
.hero-photo-clip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.hero-photo-clip::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(14, 23, 38, .6), transparent 30%); }
.hero-photo-clip::after { content: ""; position: absolute; inset: 22px; z-index: 2; border: 1px solid rgba(255, 255, 255, .75); pointer-events: none; }
.hero-tag { position: absolute; z-index: 3; inset-inline-start: 0; bottom: 60px; padding: .9rem 1.4rem; background: var(--primary); color: #fff; border-inline-start: 4px solid var(--accent); line-height: 1.3; }
.hero-tag b { display: block; font-family: var(--heading); font-weight: 600; font-size: 1.1rem; }
.hero-tag span { font-size: .95rem; color: var(--on-dark); }

/* Numbers strip */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: clamp(1.6rem, 3vw, 2.6rem) 1.6rem; border-inline-start: 1px solid var(--line); }
.stats li:first-child { border: 0; padding-inline-start: 0; }
.stats b { display: block; font-family: var(--heading); font-weight: 300; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.03em; color: var(--primary); }
.stats span { display: block; margin-top: .6rem; color: var(--muted); font-size: 1.02rem; line-height: 1.45; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--white { background: var(--surface); }
.section--tint { background: var(--soft); }
.section--dark { background: var(--dark-grad); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-intro { color: var(--muted); font-weight: 400; max-width: 27rem; line-height: 1.8; }

/* Practice areas: an index list */
.idx { display: grid; grid-template-columns: .8fr 1.5fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.idx-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.idx-head .section-intro { margin-block: 1.2rem 2rem; }
.idx-photo { margin-top: 2.2rem; }
.idx-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--round); box-shadow: 0 40px 60px -42px rgba(14, 23, 38, .6); }
@media (max-height: 780px) { .idx-head { position: static; } }
.idx-list { border-top: 1px solid var(--ink); }
.idx-list a { position: relative; isolation: isolate; display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.25fr) 2.8rem; gap: 1.4rem; align-items: center; padding: 1.5rem .4rem; border-bottom: 1px solid var(--line); transition: color .35s, padding .45s var(--ease), opacity .35s; }
.idx-list a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.idx-list .n { font-family: var(--heading); font-size: .98rem; color: var(--accent-ink); transition: color .35s; }
.idx-list h3 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
.idx-list p { color: var(--muted); font-size: 1.02rem; line-height: 1.55; transition: color .35s; }
.idx-list .arr { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid var(--line); border-radius: 50%; transition: background .35s, border-color .35s, color .35s, transform .45s var(--ease); }
.idx-list a:focus-visible { outline-offset: -3px; }
@media (hover: hover) {
  .idx-list:hover a { opacity: .45; }
  .idx-list a:hover { opacity: 1; color: #fff; padding-inline: 1.6rem; }
  .idx-list a:hover::before { transform: none; }
  .idx-list a:hover .n { color: var(--accent); }
  .idx-list a:hover p { color: var(--on-dark); }
  .idx-list a:hover .arr { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(45deg); }
}
.practice-more { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .95rem; font-weight: 600; color: var(--primary); transition: color .3s, gap .3s var(--ease); }
.practice-more svg { width: 1.1em; height: 1.1em; }
.practice-extra { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .7rem; font-size: .98rem; color: var(--muted); }
.practice-extra a { padding: .4rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); transition: border-color .25s, color .25s; }
.practice-extra a:hover { border-color: var(--primary); color: var(--primary); }

/* About */
.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.about-photo { width: min(100%, 440px); justify-self: center; }
.about-photo img { object-position: 38% 8%; }
.about-body h2 { margin-bottom: 1.4rem; }
.about-body > p { color: var(--muted); font-weight: 400; margin-bottom: 1.1rem; max-width: 38rem; line-height: 1.85; }
.credentials { margin: 1.8rem 0 2.2rem; border-top: 1px solid var(--line); max-width: 38rem; }
.credentials li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1.5rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.credentials strong { font-weight: 500; }
.credentials span { font-size: .98rem; color: var(--muted); font-weight: 400; }

/* Quote band */
.quote-band { background: var(--dark-grad); color: #fff; padding-block: clamp(4rem, 8vw, 7rem); }
.quote-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.quote-q { font-family: var(--heading); font-weight: 700; font-size: clamp(6rem, 12vw, 11rem); line-height: .7; color: var(--accent); }
.quote-band blockquote { font-family: var(--heading); font-weight: 300; font-size: clamp(1.5rem, 3.3vw, 2.8rem); line-height: 1.35; letter-spacing: -.015em; text-wrap: balance; }
.signature { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; line-height: 1.35; }
.signature img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; border: 2px solid var(--accent); }
.signature div { display: flex; flex-direction: column; }
.signature strong { font-weight: 600; }
.signature span { font-size: .98rem; color: var(--on-dark); }

/* Process */
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.process-photo { width: min(100%, 440px); justify-self: center; }
.process-photo img { aspect-ratio: 4 / 4.7; object-position: 30% 50%; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.6rem 2.2rem; }
.step { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.step-num { display: block; font-family: var(--heading); font-weight: 300; font-size: 2.3rem; line-height: 1; color: var(--accent-ink); margin-bottom: 1.1rem; }
.step h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.step p { color: var(--muted); font-weight: 400; font-size: 1.04rem; line-height: 1.75; }

/* Testimonials */
.testi-grid { columns: 3; column-gap: 1.2rem; }
.testi { break-inside: avoid; margin-bottom: 1.2rem; padding: 2rem 1.8rem; border: 1px solid var(--line); border-radius: var(--round); background: var(--bg); }
.testi::before { content: "״"; display: block; height: .55em; font-family: var(--heading); font-weight: 700; font-size: 4rem; line-height: 1; color: var(--accent); }
.testi blockquote { margin-top: 1.4rem; font-size: 1.1rem; font-weight: 400; line-height: 1.7; }
.testi figcaption { margin-top: 1.5rem; display: flex; align-items: center; gap: .8rem; }
.testi figcaption strong { font-weight: 600; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--heading); font-weight: 600; font-size: 1rem; }
.quote-mark { display: none; }
.testi--feature { background: var(--primary); border-color: transparent; color: #fff; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq-side h2 { margin-bottom: 1rem; }
.resources { margin-top: 2.2rem; display: grid; gap: .8rem; max-width: 27rem; }
.resource { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .25s; }
.resource:hover { border-color: var(--primary); }
.resource svg { width: 26px; height: 26px; color: var(--accent-ink); stroke-width: 1.3; }
.resource div { display: flex; flex-direction: column; line-height: 1.4; }
.resource strong { font-weight: 500; }
.resource span { font-size: .95rem; color: var(--muted); font-weight: 400; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-family: var(--heading); font-weight: 600; font-size: 1.15rem; line-height: 1.45; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 12px no-repeat;
  transition: transform .3s var(--ease), border-color .3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); border-color: var(--accent); }
.faq-list summary:hover { color: var(--primary); }
.faq-list details p { padding: 0 0 1.6rem; padding-inline-end: 3.5rem; color: var(--muted); font-weight: 400; max-width: 44rem; }

/* Contact */
.contact { padding-bottom: clamp(3rem, 6vw, 5rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-lead { font-weight: 400; font-size: 1.1rem; max-width: 30rem; }
.contact-list { margin-top: 2.2rem; border-top: 1px solid var(--line-light); }
.contact-list li { display: flex; align-items: center; gap: 1.1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line-light); }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); stroke-width: 1.3; }
.contact-list div { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.45; }
.contact-list span { font-size: .76rem; letter-spacing: .1em; color: rgba(255, 255, 255, .5); }
.contact-list a { color: #fff; font-size: 1.1rem; transition: color .2s; }
.contact-list a:hover { color: var(--accent); }
.contact-fax { margin-top: 1rem; font-size: .9rem; color: rgba(255, 255, 255, .55); }
.contact-social { margin-top: 1.2rem; font-size: .92rem; color: rgba(255, 255, 255, .55); }
.contact-social a { color: rgba(255, 255, 255, .88); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.contact-social a:hover { color: var(--accent); }

.contact-form { background: var(--surface); color: var(--ink); border-radius: var(--round); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.contact-form h3 { color: var(--ink); font-size: 1.35rem; margin-bottom: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .95rem; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, background .2s; }
.field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.field.has-error input { border-color: #b3261e; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: .93rem; min-height: 1.2em; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b3261e; }
.form-status.is-ok { color: #1f6b3f; }
.form-note { font-size: .85rem; color: var(--muted); font-weight: 400; text-align: center; }

.map-wrap { margin-top: clamp(3rem, 6vw, 5rem); overflow: hidden; border-radius: var(--round); border: 1px solid var(--line-light); height: 340px; background: var(--dark2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.7); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: calc(var(--header-h) + clamp(2.4rem, 5vw, 4.2rem)); padding-bottom: clamp(2.6rem, 5vw, 4.2rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero-photo { position: relative; }
.page-hero-photo::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--accent); border-radius: var(--round); transform: rotate(-4deg); }
.page-hero-photo img { position: relative; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--round); box-shadow: 0 40px 60px -42px rgba(14, 23, 38, .6); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 300; line-height: 1.16; letter-spacing: -.02em; color: var(--primary); max-width: 22ch; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .95rem; color: var(--muted); margin-bottom: 1.8rem; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-style: normal; opacity: .5; }
.breadcrumb [aria-current] { color: var(--ink); }
.page-meta { margin-top: 1.1rem; color: var(--muted); font-size: .95rem; font-weight: 400; }
.not-found { padding-bottom: clamp(5rem, 12vw, 9rem); }
.not-found .lead { margin-top: 1.2rem; }
.not-found .hero-cta { margin-top: 2rem; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); }

/* Article text */
.prose { max-width: 46rem; font-size: 1.16rem; line-height: 1.85; }
.prose > p { margin-bottom: 1.2rem; }
.prose > p:first-child { font-size: 1.22em; line-height: 1.75; font-weight: 400; margin-bottom: 1.6rem; }
.prose h2 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); margin: 2.8rem 0 .9rem; }
.prose h2::before { content: ""; display: block; width: 36px; height: 1px; background: var(--accent); margin-bottom: 1.1rem; }
.prose h3 { font-size: 1.28rem; margin: 2.1rem 0 .6rem; }
.prose h4 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; margin: 1.7rem 0 .5rem; }
.prose > :first-child { margin-top: 0; }
.prose strong { font-weight: 600; }
.prose a:not(.btn) { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--accent-ink); }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-inline-start: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--accent-ink); }
.prose blockquote { margin: 1.8rem 0; padding: .4rem 1.4rem; border-inline-start: 1px solid var(--accent); font-family: var(--heading); font-weight: 300; font-size: 1.18em; line-height: 1.5; }
.prose .btn { margin: .4rem 0; }
.prose .video { aspect-ratio: 16 / 9; margin: 2rem 0; overflow: hidden; background: var(--dark); }
.prose .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .98rem; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: start; }
.prose-signature { width: 130px; margin-top: .6rem; mix-blend-mode: multiply; }
.prose-back { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 500; }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
.side-card h2 { font-size: 1.18rem; margin-bottom: .9rem; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .72rem 0; border-top: 1px solid var(--line); font-size: 1.04rem; line-height: 1.45; transition: color .2s; }
.side-nav a svg { width: 1em; height: 1em; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s var(--ease); }
.side-nav a:hover, .side-nav a[aria-current] { color: var(--primary); }
.side-nav a[aria-current] { font-weight: 500; }
.side-nav a:hover svg, .side-nav a[aria-current] svg { opacity: 1; transform: none; color: var(--accent-ink); }
.side-cta { background: var(--primary); border-color: var(--primary); color: var(--on-dark); display: grid; gap: .8rem; }
.side-cta h2 { color: #fff; margin: 0; }
.side-cta p { font-size: 1.02rem; font-weight: 400; line-height: 1.6; }
.side-portrait { padding: .7rem .7rem 1.2rem; display: grid; text-align: center; }
.side-portrait img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 6%; border-radius: 12px; margin-bottom: 1rem; }
.side-portrait strong { font-family: var(--heading); font-size: 1.12rem; font-weight: 600; }
.side-portrait span { font-size: .88rem; color: var(--muted); font-weight: 400; }

/* Call-to-action band */
.cta-band { position: relative; isolation: isolate; background: var(--dark); color: var(--on-dark); padding-block: clamp(3.4rem, 7vw, 5.6rem); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(14, 23, 38, .96) 38%, rgba(14, 23, 38, .62)), url(../img/photo-library.jpg) center / cover; background: linear-gradient(to left, color-mix(in srgb, var(--dark) 96%, transparent) 38%, color-mix(in srgb, var(--dark) 62%, transparent)), url(../img/photo-library.jpg) center / cover; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem 3rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .5rem; }
.cta-band p:not(.eyebrow) { font-weight: 400; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Articles list */
.blog { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.post-card { background: var(--surface); border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); padding: 1.9rem 1.7rem; display: flex; flex-direction: column; gap: .7rem; transition: background .3s var(--ease), color .3s var(--ease); }
.post-card time { font-size: .78rem; letter-spacing: .1em; color: var(--accent-ink); transition: color .3s; }
.post-card h2 { font-size: 1.22rem; line-height: 1.4; }
.post-card p { color: var(--muted); font-size: 1.03rem; font-weight: 400; line-height: 1.7; transition: color .3s; }
.post-card .practice-more { margin-top: auto; padding-top: .6rem; }
.post-card:hover { background: var(--primary); color: #fff; }
.post-card:hover p { color: var(--on-dark); }
.post-card:hover time, .post-card:hover .practice-more { color: var(--accent); }

/* Directions */
.directions { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); }
.directions-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; align-items: stretch; }
.directions-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--round); padding: clamp(1.8rem, 3vw, 2.8rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.directions-card > svg { width: 36px; height: 36px; color: var(--accent-ink); stroke-width: 1.2; }
.directions-card h2 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
.directions-card p { color: var(--muted); font-weight: 400; }
.directions-card p a { color: var(--primary); font-weight: 500; }
.directions-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.map-wrap--light { margin-top: 0; height: auto; min-height: 400px; border-color: var(--line); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .66); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 1.02rem; font-weight: 400; border-top: 1px solid var(--line-light); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { margin-top: 1.3rem; max-width: 22rem; }
.site-footer h4 { color: #fff; font-family: var(--heading); font-weight: 600; font-size: 1.02rem; margin-bottom: 1rem; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.site-footer nav a, .footer-contact a { transition: color .2s; }
.site-footer nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { line-height: 2; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line-light); font-size: .84rem; color: rgba(255, 255, 255, .5); }

.mobile-bar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .phone-link { display: none; }
}
@media (max-width: 1080px) {
  .testi-grid { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 1.5rem) var(--pad) 6rem; overflow-y: auto;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .main-nav > a, .nav-item > a { font-family: var(--heading); font-weight: 600; font-size: 1.3rem; padding: 1rem 0; color: var(--ink); }
  .main-nav > a { border-bottom: 1px solid var(--line); }
  .main-nav > a::after, .nav-item > a::after { display: none; }
  .nav-item { flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
  .nav-item > a { flex: 1; }
  .main-nav > a:hover, .nav-item > a:hover { color: var(--primary); }
  .nav-item.is-active > a, .main-nav > a.is-active { color: var(--accent-ink); }
  .sub-toggle { width: 44px; height: 44px; border: 1px solid #d3cdc0; border-radius: 50%; color: var(--ink); }
  .sub-toggle svg { width: 18px; height: 18px; }
  .has-sub:hover .sub-toggle svg { transform: none; }
  .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
  .sub { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 1rem; background: none; color: var(--muted); border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .sub::before { display: none; }
  .sub a { font-size: 1.05rem; padding: .55rem .9rem; white-space: normal; }
  .sub a:hover, .sub a[aria-current] { background: none; color: var(--primary); }
  .nav-item.open .sub { display: grid; }
  .main-nav > .nav-cta-mobile { display: block; flex: none; margin-top: 1.8rem; border: 0; border-radius: 999px; text-align: center; background: var(--primary); color: #fff; font-family: var(--sans); font-size: 1.05rem; font-weight: 600; padding: 1rem; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-inline: var(--pad); }
  .hero-photo { aspect-ratio: 1 / 1.05; }
  .hero-foot { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li { padding-inline: 1.2rem; border-top: 1px solid var(--line); }
  .stats li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .stats li:nth-child(-n+2) { border-top: 0; }
  .idx { grid-template-columns: 1fr; }
  .idx-head { position: static; }
  .idx-list a { grid-template-columns: 2.2rem minmax(0, 1fr) 2.8rem; gap: .5rem .9rem; }
  .idx-list p { grid-column: 2 / 3; grid-row: 2; }
  .idx-list .arr { grid-column: 3; grid-row: 1 / 3; }
  .quote-inner { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-photo { width: 100%; }
  .process-photo img { aspect-ratio: 16 / 10; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-photo img { aspect-ratio: 2 / 1; }
  .idx-photo img { aspect-ratio: 16 / 10; }
  .quote-q { line-height: .5; padding-top: 2rem; }

  .about-grid, .faq-grid, .contact-grid, .page-layout, .directions-grid { grid-template-columns: 1fr; }
  .about-photo { width: min(78%, 340px); }
  .sidebar { position: static; }
  .side-cta, .side-portrait { display: none; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .map-wrap--light { min-height: 320px; }
}
@media (max-width: 720px) {
  :root { --bar-h: 58px; --bar-top: 10px; }
  .header-inner { padding-inline: 1.3rem .35rem; }
  body { font-size: 1rem; padding-bottom: 68px; }
  .header-actions .btn { display: none; }
  .brand-mark { font-size: 1rem; }
  .hero-foot .hero-cta { align-items: stretch; }
  .hero-cta .btn { justify-content: space-between; }
  .steps, .field-row, .post-grid { grid-template-columns: 1fr; }
  .framed.process-photo::before, .page-hero-photo::before { transform: rotate(-2.5deg); }
  .testi-grid { columns: 1; }
  .steps { gap: 2rem; }
  .faq-list summary { font-size: 1.05rem; padding: 1.2rem 0; }
  .faq-list details p { padding-inline-end: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .map-wrap { height: 280px; }
  .cta-band-actions .btn { flex: 1 1 100%; }
  .prose { font-size: 1.08rem; }
  .prose > p:first-child { font-size: 1.12em; }

  .mobile-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.2fr; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--dark); border-top: 1px solid var(--line-light); }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 48px; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 1px solid rgba(255, 255, 255, .32); color: #fff; }
  .mobile-bar .mobile-bar-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  /* Keep the accessibility widget button clear of the action bar */
  .uwy .userway_buttons_wrapper { top: auto !important; bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .mobile-bar, .map-wrap, .contact-form { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
