/* ==========================================================================
   Willamette Estate Law — Pacific Northwest Editorial Design System (v2.0)
   1360px Layout · Fluid Typography · Dark Evergreen & Light Linen Themes
   ========================================================================== */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 83%;
  ascent-override: 110%;
  descent-override: 30%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Jakarta Fallback";
  src: local("Arial"), local("Helvetica Neue");
  size-adjust: 101%;
  ascent-override: 97%;
  descent-override: 25%;
  line-gap-override: 0%;
}
:root {
  --bg: #07100d;
  --bg-alt: #0b1612;
  --panel: #101f19;
  --panel-2: #152820;
  --panel-glass: rgba(12, 24, 19, 0.84);
  --text: #f3efe6;
  --muted: #b6c2ba;
  --accent: #d4b47c;
  --accent-soft: rgba(212, 180, 124, 0.14);
  --accent-ink: #08110e;
  --green: #4fb984;
  --danger: #e47d72;
  --line: rgba(243, 239, 230, 0.11);
  --line-strong: rgba(212, 180, 124, 0.36);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.44);
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.28);

  --wrap: min(1360px, calc(100% - clamp(28px, 4.2vw, 72px)));
  --font-serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", "Jakarta Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rad: 16px;
  --rad-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

[data-theme="light"] {
  --bg: #f6f3ec;
  --bg-alt: #eee9df;
  --panel: #ffffff;
  --panel-2: #f2ede3;
  --panel-glass: rgba(255, 255, 255, 0.88);
  --text: #13221b;
  --muted: #4b5c53;
  --accent: #856022;
  --accent-soft: rgba(133, 96, 34, 0.11);
  --accent-ink: #ffffff;
  --green: #1e7c50;
  --danger: #b53a2d;
  --line: rgba(19, 34, 27, 0.12);
  --line-strong: rgba(133, 96, 34, 0.38);
  --shadow: 0 24px 54px rgba(19, 34, 27, 0.1);
  --shadow-sm: 0 10px 26px rgba(19, 34, 27, 0.07);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.92rem + 0.16vw, 1.03rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #f1d9a8);
  pointer-events: none;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.35rem); }
h2 { font-size: clamp(1.95rem, 1.45rem + 1.85vw, 3.1rem); }
h3 { font-size: clamp(1.32rem, 1.15rem + 0.55vw, 1.62rem); }

h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.75;
}

.sec {
  padding-block: clamp(68px, 6.8vw, 114px);
  position: relative;
}
.sec-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.sec-head.center {
  margin-inline: auto;
  text-align: center;
}
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.75;
}
.sec-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(0.96rem, 0.92rem + 0.25vw, 1.08rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn:active { transform: translateY(0); }

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(212, 180, 124, 0.25);
}

.btn.sm { padding: 9px 16px; font-size: 0.85rem; }
.btn.lg { padding: 15px 28px; font-size: 0.97rem; }
.btn.block { width: 100%; }

.sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transition: transform 0.65s var(--ease);
  pointer-events: none;
}
.sheen:hover::after { transform: translateX(120%) skewX(-20deg); }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap 0.2s ease, opacity 0.2s ease;
}
.link-btn:hover { gap: 12px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.icon-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(7, 16, 13, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .hdr { background: rgba(246, 243, 236, 0.88); }

.hdr-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--accent);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.24rem; font-weight: 700; }
.brand-text span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--accent);
}

.hdr-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }

/* ---------- HERO (Portrait Stage + 3 Interactive Floating Badges) ---------- */
.hero {
  position: relative;
  padding-block: clamp(46px, 5.5vw, 88px) clamp(64px, 6.5vw, 102px);
  background:
    radial-gradient(ellipse 65% 55% at 80% 18%, rgba(212, 180, 124, 0.1), transparent 70%),
    radial-gradient(ellipse 55% 60% at 12% 85%, rgba(44, 108, 78, 0.13), transparent 72%);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 65% 55% at 80% 18%, rgba(133, 96, 34, 0.09), transparent 70%),
    radial-gradient(ellipse 55% 60% at 12% 85%, rgba(30, 124, 80, 0.07), transparent 72%);
}

/* Subtle architectural grid overlay in Hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 70% 70% at 65% 45%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 45%, #000 10%, transparent 80%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  align-items: start;
  gap: clamp(36px, 4.5vw, 76px);
}
.hero-copy {
  padding-top: clamp(0px, 1.6vw, 22px);
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(1rem, 0.94rem + 0.32vw, 1.16rem);
  color: var(--muted);
  max-width: 60ch;
}

.hero-btns {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-metrics {
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.hero-metrics dt {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.25rem + 0.65vw, 1.85rem);
  font-weight: 700;
  color: var(--accent);
}
.hero-metrics dd {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Portrait Stage */
.hero-stage {
  display: flex;
  justify-content: center;
  padding-inline: 24px;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 470px;
}

/* Offset architectural frame line behind portrait */
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  pointer-events: none;
  opacity: 0.72;
}

.portrait-inner {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(7, 16, 13, 0.45) 100%);
  pointer-events: none;
}

/* Floating Interactive Badges around 1:1 Portrait */
.float-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border-radius: 14px;
  background: var(--panel-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.28s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.fb-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.fb-stars {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.84rem;
  flex-shrink: 0;
}

.fb-txt { display: flex; flex-direction: column; line-height: 1.25; }
.fb-txt strong { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.fb-txt span { font-size: 0.77rem; color: var(--muted); }
.fb-txt em { font-style: normal; color: var(--accent); font-weight: 600; }

.fb-bar {
  top: 22px;
  left: -34px;
}
.fb-rating {
  top: 44%;
  right: -34px;
}
.fb-rating:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(212, 180, 124, 0.2);
}
.fb-call {
  bottom: -22px;
  left: 22px;
  right: 22px;
  justify-content: flex-start;
}
.fb-call:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(212, 180, 124, 0.22);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(79, 185, 132, 0.65);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(79, 185, 132, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(79, 185, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 185, 132, 0); }
}

/* ---------- Cards & Practice Areas (4 Columns on 1360px) ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 180, 124, 0.11), transparent 65%);
}
.spotlight-card:hover::before { opacity: 1; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.svc-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.svc-num {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--muted);
  opacity: 0.6;
}
.svc-card p { color: var(--muted); font-size: 0.92rem; }

.mini-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  margin-block: 4px auto;
}
.mini-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.87rem;
  color: var(--text);
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Atmospheric Oregon Section (Why Choose Us Redesign) ---------- */
.sec-mist {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}

.sec-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sec-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(0.7);
}
[data-theme="light"] .sec-bg-img {
  opacity: 0.14;
  filter: saturate(0.55) brightness(1.15);
}
.sec-bg-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg-alt) 0%,
    rgba(11, 22, 18, 0.72) 25%,
    rgba(11, 22, 18, 0.78) 75%,
    var(--bg-alt) 100%
  );
}
[data-theme="light"] .sec-bg-wrap::after {
  background: linear-gradient(
    180deg,
    var(--bg-alt) 0%,
    rgba(238, 233, 223, 0.76) 25%,
    rgba(238, 233, 223, 0.82) 75%,
    var(--bg-alt) 100%
  );
}

.sec-rel { position: relative; z-index: 1; }

.why-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.38fr);
  gap: clamp(26px, 3vw, 44px);
  align-items: stretch;
}

/* Left Featured Oregon Reality Panel */
.oregon-reality {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.oregon-reality::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  pointer-events: none;
}

.reality-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.oregon-reality h3 {
  margin-top: 12px;
  font-size: clamp(1.55rem, 1.3rem + 0.8vw, 2.05rem);
}
.reality-intro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.reality-stats {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}
.r-stat {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--panel-2);
  border-left: 3px solid var(--accent);
}
.r-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.45rem + 0.8vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.08;
}
.r-stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.reality-foot {
  margin-top: auto;
  padding-top: 24px;
}

/* Right Architectural 2x2 Ledger */
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ledger-item {
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--rad);
  background: var(--panel-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.ledger-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.roman-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.roman-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ledger-item p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Case Studies ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.case-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel-2);
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.case-card:hover .case-img img { transform: scale(1.04); }

.case-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(7, 16, 13, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 180, 124, 0.4);
  color: #f3efe6;
  font-size: 0.76rem;
  font-weight: 600;
}

.case-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.case-body p { color: var(--muted); font-size: 0.93rem; }

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.case-meta span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--accent);
}

.case-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- 4-Step Modern Horizontal Timeline Rail ---------- */
.timeline-rail {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  position: relative;
}

/* Connecting architectural rail line behind step nodes on desktop */
.timeline-rail::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--line-strong) 45%, var(--line));
  z-index: 0;
}

.tl-step {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.tl-step:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.tl-step-first {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
}

.tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.tl-node {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}
.tl-step-first .tl-node {
  background: var(--accent);
  color: var(--accent-ink);
}
.tl-time {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.tl-step p { color: var(--muted); font-size: 0.92rem; }

.tl-cta-wrap {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.tl-note {
  font-size: 0.77rem;
  color: var(--muted);
}

/* ---------- Pricing Packages ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow: var(--shadow);
}
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  pointer-events: none;
  opacity: 0.55;
}

.pop-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.price-tier {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-head h3 { margin-top: 6px; font-size: 1.65rem; }
.price-val {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price-val strong {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
}
.price-val span { font-size: 0.85rem; color: var(--muted); }
.price-desc { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }

.price-list {
  list-style: none;
  padding: 22px 0;
  margin: 22px 0 auto;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 11px;
}
.price-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.91rem;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 2-Column Legal Estate Plan Builder (Summary on Right / Bottom Mobile) ---------- */
.builder-wrap {
  margin-top: 48px;
  padding: clamp(24px, 3.2vw, 42px);
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.builder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.builder-head h3 { font-size: clamp(1.5rem, 1.25rem + 0.7vw, 2rem); }
.builder-sub { max-width: 44ch; color: var(--muted); font-size: 0.93rem; }

.builder-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.builder-steps { display: grid; gap: 26px; }

.b-step {
  border: 0;
  padding: 0;
  margin: 0;
}
.b-step legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 14px;
}
.b-step-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.b-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.b-choice {
  text-align: left;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.b-choice:hover { border-color: var(--line-strong); }
.b-choice strong { font-size: 0.92rem; color: var(--text); }
.b-choice span { font-size: 0.79rem; color: var(--muted); line-height: 1.35; }
.b-choice.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.b-choice.active strong { color: var(--accent); }

.b-addon-list { display: grid; gap: 10px; }

.b-addon {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.b-addon:hover { border-color: var(--line-strong); }
.b-addon.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.b-addon-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: var(--panel);
  flex-shrink: 0;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.b-addon.active .b-addon-box {
  background: var(--accent);
  border-color: var(--accent);
}
.b-addon.active .b-addon-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.b-addon-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.b-addon-copy strong { font-size: 0.9rem; color: var(--text); }
.b-addon-copy span { font-size: 0.79rem; color: var(--muted); }
.b-addon-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  white-space: nowrap;
}

/* Sticky Summary Card (Right on Desktop, Bottom on Mobile) */
.builder-summary {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  padding: 28px;
  border-radius: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bs-kicker {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.bs-top h4 {
  margin-top: 6px;
  font-size: 1.42rem;
  line-height: 1.2;
}

.bs-breakdown {
  list-style: none;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  display: grid;
  gap: 9px;
}
.bs-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.87rem;
  color: var(--muted);
}
.bs-breakdown li strong { color: var(--text); white-space: nowrap; }

.bs-total-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.bs-total-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.bs-total-box small { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.bs-total-box strong {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 1.85rem + 0.8vw, 2.7rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.bs-includes {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.bs-includes > span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.bs-includes ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}
.bs-includes li {
  position: relative;
  padding-left: 16px;
  font-size: 0.83rem;
  color: var(--text);
}
.bs-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.bs-actions { display: grid; gap: 10px; }
.bs-disclaimer { font-size: 0.77rem; color: var(--muted); text-align: center; }

/* ---------- Direct Counsel (Clean Editorial Spread) ---------- */
.counsel-spread {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}

.counsel-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.counsel-img-box {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.counsel-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.counsel-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.counsel-caption > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.counsel-caption svg { color: var(--accent); }
.counsel-clock { color: var(--text); font-weight: 600; }

.counsel-copy { display: grid; gap: 16px; }
.counsel-copy p { color: var(--muted); }
.counsel-copy p strong { color: var(--text); }

.counsel-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.32rem, 1.15rem + 0.55vw, 1.65rem);
  font-style: italic;
  line-height: 1.38;
  color: var(--text);
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  margin-block: 4px 6px;
}

.counsel-creds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-block: 20px;
  margin-top: 6px;
  border-block: 1px solid var(--line);
}
.counsel-creds > div {
  position: relative;
}
.counsel-creds > div:not(:first-child) {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.counsel-creds dt {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.counsel-creds dd {
  margin: 3px 0 0;
  font-size: 0.79rem;
  color: var(--muted);
}

.counsel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* ---------- Reviews (Centered Actions) ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.rev-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 30px;
}
.rev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rev-stars { color: var(--accent); letter-spacing: 0.14em; font-size: 0.98rem; }
.rev-loc {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
}
.rev-text { font-size: 0.96rem; color: var(--text); flex: 1; line-height: 1.68; }
.rev-author {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rev-author strong { font-size: 0.94rem; }
.rev-author span { font-size: 0.81rem; color: var(--muted); }

/* Centered Buttons Below Reviews (Point 7) */
.reviews-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* ---------- Full-Width 2-Column FAQ (Point 9) ---------- */
.faq-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  align-items: start;
}
.faq-col {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: var(--line-strong); }

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.faq-num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}
.faq-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--accent);
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}
.faq-item.open .faq-plus {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--accent-ink);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > p {
  overflow: hidden;
  padding: 0 22px 0 54px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}
.faq-item.open .faq-a > p { padding-bottom: 22px; }

/* ---------- Contact + Full-Width Panoramic Vector Map Row (Point 10) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3vw, 38px);
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fast-call-box {
  background: linear-gradient(155deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-strong);
  border-radius: var(--rad);
  padding: 28px;
}
.fast-call-box p { color: var(--muted); font-size: 0.93rem; margin: 10px 0 20px; }

.contact-list {
  list-style: none;
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  display: grid;
  gap: 18px;
  flex: 1;
}
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list svg { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.contact-list span { display: block; font-size: 0.77rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-list a, .contact-list strong { font-size: 0.95rem; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }

/* Panoramic 1360px Map Row */
.map-row {
  margin-top: 30px;
}
.map-panoramic {
  position: relative;
  width: 100%;
  min-height: 300px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  display: flex;
  align-items: flex-end;
  padding: 26px;
}
.map-vector-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--text);
  pointer-events: none;
}
.map-card-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--panel-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.map-card-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.map-badge-dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.map-badge-dot svg { display: block; }
.map-card-info > div strong { display: block; font-size: 0.98rem; color: var(--text); }
.map-card-info > div span { display: block; font-size: 0.84rem; color: var(--muted); }
.map-card-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.map-panoramic iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}
.map-panoramic.map-loaded {
  padding: 0;
  display: block;
}

/* ---------- Forms & Custom Theme-Matched Checkboxes (Points 6 & 7) ---------- */
.contact-form-wrap { display: flex; flex-direction: column; }
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: clamp(24px, 3vw, 34px);
  height: 100%;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.invalid input, .field.invalid textarea, .field.invalid select {
  border-color: var(--danger);
}
.field-err { font-size: 0.79rem; color: var(--danger); min-height: 1em; }
.field-err:empty { display: none; }

/* Custom Styled Checkbox across ALL 4 forms (Dark & Light Themes) */
.check-field { margin-top: 4px; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  cursor: pointer;
  line-height: 1.5;
}

.check-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 19px;
  height: 19px;
  min-width: 19px;
  margin: 2px 0 0;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  background-color: var(--bg);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.check-label input[type="checkbox"]:hover {
  border-color: var(--accent);
  background-color: var(--panel-2);
}
.check-label input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.check-label input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.check-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.field.invalid .check-label input[type="checkbox"] {
  border-color: var(--danger);
}

.inline-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  font-size: inherit;
}

.form-status {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.form-status.error {
  border-color: var(--danger);
  background: rgba(228, 125, 114, 0.12);
  color: var(--danger);
}

.success-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--rad);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.success-card[hidden] { display: none; }
.success-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(79, 185, 132, 0.16);
  color: var(--green);
}
.success-card p { color: var(--muted); max-width: 44ch; font-size: 0.94rem; }
.success-summary {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text) !important;
  font-size: 0.87rem !important;
}

/* ---------- Footer ---------- */
.ftr {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
}
.ftr-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.ftr-note { margin-top: 14px; color: var(--muted); font-size: 0.88rem; max-width: 44ch; }

.ftr-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ftr-links h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.ftr-links a, .ftr-btn-link {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  transition: color 0.2s ease;
}
.ftr-links a:hover, .ftr-btn-link:hover { color: var(--text); }

.ftr-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.ftr-bottom a { color: var(--accent); text-decoration: underline; }

/* ---------- Floating Controls ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 850;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--panel);
  border-top: 1px solid var(--line-strong);
  gap: 10px;
}
.mb-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}
.mb-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Modals (<dialog> & 15-Min Call Modal) ---------- */
.modal {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(640px, 94vw);
  width: 100%;
  color: var(--text);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(4, 10, 8, 0.78);
  backdrop-filter: blur(6px);
}
.modal-box {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  max-height: 88vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.modal-head h2 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); }

.case-modal-img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 18px;
}
.case-modal-grid { display: grid; gap: 14px; }
.case-modal-grid h3 { font-size: 1.5rem; }
.case-modal-grid p { color: var(--muted); font-size: 0.94rem; }
.case-modal-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--panel-2);
}
.case-modal-kpis strong { display: block; color: var(--accent); font-family: var(--font-serif); font-size: 1.35rem; }
.case-modal-kpis span { font-size: 0.78rem; color: var(--muted); }
.legal-copy { display: grid; gap: 14px; color: var(--muted); font-size: 0.93rem; }
.legal-copy strong { color: var(--text); }

/* 15-Min Call Modal */
.call-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 16px;
}
.call-modal[hidden] { display: none; }
.call-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 8, 0.78);
  backdrop-filter: blur(6px);
}
.call-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.call-lead { color: var(--muted); font-size: 0.91rem; margin-bottom: 18px; }
.call-lead strong { color: var(--accent); }

.call-step { border: 0; padding: 0; margin: 0 0 18px; }
.call-step legend { font-size: 0.86rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }

.call-day-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.call-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.slot-btn {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.slot-btn small { display: block; font-weight: 400; font-size: 0.73rem; color: var(--muted); }
.slot-btn:hover { border-color: var(--accent); }
.slot-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slot-btn.active small { color: var(--accent-ink); opacity: 0.86; }

.call-slot-preview { margin-top: 10px; font-size: 0.84rem; color: var(--accent); font-weight: 600; }

.call-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.channel-opt { position: relative; cursor: pointer; }
.channel-opt input { position: absolute; opacity: 0; }
.channel-opt span {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.channel-opt input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive Breakpoints for 1360px Fluid Layout
   ========================================================================== */

@media (max-width: 1280px) {
  .fb-bar { left: -16px; }
  .fb-rating { right: -16px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .nav { gap: 14px; }
  .nav a { font-size: 0.85rem; }
  .why-editorial { grid-template-columns: 1fr; }
  .timeline-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-rail::before { display: none; }
  .price-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .counsel-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counsel-creds > div:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-copy { padding-top: 0; }
  .hero-stage { padding-inline: 0; margin-top: 16px; }
  .portrait-frame { max-width: 440px; }

  /* Builder: Summary stacks cleanly BELOW steps on tablet & mobile */
  .builder-grid { grid-template-columns: 1fr; }
  .builder-summary { position: static; }

  .cases-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .counsel-spread { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .faq-columns { grid-template-columns: 1fr; gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .hdr-cta { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line-strong);
    padding: 20px 24px 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { font-size: 1.02rem; }
}

@media (max-width: 720px) {
  .ledger-grid { grid-template-columns: 1fr; }
  .b-choice-grid { grid-template-columns: 1fr; }
  .map-card-overlay { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { padding-bottom: 72px; }
  .mobile-bar { display: flex; }
  .back-to-top { bottom: 82px; right: 14px; }

  .hero-metrics { grid-template-columns: 1fr; gap: 14px; }
  .svc-grid { grid-template-columns: 1fr; }
  .timeline-rail { grid-template-columns: 1fr; }

  /* Keep floating badges compact and cleanly inside viewport on small phones */
  .portrait-frame { max-width: 340px; }
  .portrait-frame::before { inset: -8px -8px 8px 8px; }
  .float-badge { padding: 9px 12px; gap: 9px; }
  .fb-bar { top: 10px; left: -6px; }
  .fb-rating { top: auto; bottom: 54px; right: -6px; }
  .fb-call { bottom: -18px; left: 8px; right: 8px; }
  .fb-txt strong { font-size: 0.81rem; }
  .fb-txt span { font-size: 0.72rem; }

  .form-row-2 { grid-template-columns: 1fr; }
  .ftr-links { grid-template-columns: 1fr 1fr; }
  .call-day-grid { grid-template-columns: repeat(3, 1fr); }
  .call-time-grid { grid-template-columns: repeat(2, 1fr); }
  .call-channel-grid { grid-template-columns: 1fr; }
  .faq-a > p { padding-left: 22px; }
  .map-panoramic { min-height: 260px; padding: 16px; }
  .case-modal-kpis { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
