/* Palma Law Firm, P.A. — preview site
   Brand taken from the firm's logo files and business cards: deep navy
   (#00111e / #052030), a gold gradient (#b79c55 → #e3cf91), the palm-and-scales
   seal, and a bold geometric sans (Poppins) with hairline gold rules.
   Cormorant Garamond italic is used for accent phrases. */
:root {
  --ink: #00111e;
  --navy: #052030;
  --navy-2: #0b2a3d;
  --navy-3: #16384d;
  --gold: #c9b06b;
  --gold-1: #b79c55;
  --gold-2: #e3cf91;
  --gold-ink: #8a6f2a;
  --gold-grad: linear-gradient(100deg, #b79c55 0%, #d1ba79 45%, #e3cf91 70%, #c3ab66 100%);
  --ivory: #f7f3ea;
  --paper: #fbf9f4;
  --text: #13222e;
  --muted: #56636d;
  --line: #e4ddcc;
  --cream: #ece6d6;
  --max: 1200px;
  --sans: "Poppins", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16.5px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.1; }
h3 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em, .em { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: 0; font-size: 1.12em; }
h1 em, h2 em, .motto em, .statement em {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.light h1 em, .light h2 em, .paper h2 em { background: linear-gradient(100deg, #8a6f2a, #b79c55); -webkit-background-clip: text; background-clip: text; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Kicker: "—— LABEL" like the "LAW FIRM, P.A." rules in the logo */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 22px;
}
.kicker::before {
  content: ""; width: 44px; height: 1px; background: currentColor;
  transform: scaleX(var(--k, 1)); transform-origin: left; transition: transform 1s var(--ease) .1s;
}
.kicker[data-reveal]:not(.in) { --k: 0; }
.dark .kicker, .hero .kicker { color: var(--gold); }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 640px; }
.dark .lead, .hero .lead { color: rgba(236,230,214,.78); }

/* Scroll progress */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--gold-grad); transform-origin: left; transform: scaleX(var(--sp, 0));
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(201,176,107,.18);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(0,17,30,.9); backdrop-filter: blur(14px); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 86px; transition: height .3s ease; }
.site-header.scrolled .wrap { height: 70px; }
.brand img { height: 44px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand img { height: 36px; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a:not(.btn) {
  color: var(--cream); text-decoration: none; font-weight: 500; font-size: .86rem; position: relative; padding: 6px 0;
}
.nav a:not(.btn):not(.nav-phone)::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--gold);
  transition: left .35s var(--ease), right .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { left: 0; right: 0; }
.nav a[aria-current="page"] { color: var(--gold-2); }
.nav-phone { color: var(--gold) !important; font-weight: 600 !important; padding-left: 26px !important; border-left: 1px solid rgba(201,176,107,.3); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--gold-2); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Buttons: square, gold gradient with a navy fill that wipes in on hover */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px;
  background: var(--gold-grad); color: var(--ink);
  font: 600 .93rem/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  border: 1px solid var(--gold-1); border-radius: 2px; cursor: pointer;
  transition: color .4s var(--ease), box-shadow .4s ease, transform .3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.btn:hover { color: var(--gold-2); box-shadow: 0 16px 34px -14px rgba(183,156,85,.7); }
.btn:hover::after { transform: scaleY(1); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-line { background: transparent; color: var(--cream); border-color: rgba(201,176,107,.5); }
.btn-line::after { background: var(--gold-grad); transform-origin: top; }
.btn-line:hover { color: var(--ink); }
.light .btn-line, .paper .btn-line, .white .btn-line { color: var(--ink); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.btn-ink::after { background: var(--gold-grad); }
.btn-ink:hover { color: var(--ink); }
.btn-sm { padding: 12px 20px; font-size: .84rem; }
.btn-lg { padding: 21px 36px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.textlink { font-weight: 600; text-decoration: none; color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .35s var(--ease); }
.textlink:hover { background-size: 0 1px; background-position: 100% 100%; }
.dark .textlink { color: var(--gold-2); }

/* Sections */
section { padding: 124px 0; position: relative; }
.dark { background: var(--ink); color: var(--cream); }
.navy { background: var(--navy); }
.paper { background: var(--ivory); }
.white { background: #fff; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.head-row > div { flex: 1 1 560px; }
.head-row h2 { max-width: 760px; margin: 0; }

/* Subtle palm-leaf line pattern used on dark sections */
.pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201,176,107,.12), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(22,56,77,.9), transparent 60%);
}

/* Hero */
.hero {
  background: var(--ink); color: #fff; overflow: hidden;
  padding: 96px 0 120px;
  min-height: min(calc(100vh - 86px), 860px); display: flex; align-items: center;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.18rem; }
.hero-note { margin-top: 26px; font-size: .86rem; color: rgba(236,230,214,.6); display: flex; gap: 22px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.hero-seal {
  position: absolute; right: -180px; top: 50%; width: 640px; opacity: .06; transform: translateY(-50%) rotate(var(--r, 0deg));
  pointer-events: none; z-index: 1; filter: grayscale(.2);
}

/* The animated contract in the hero */
.doc {
  position: relative; background: #fffdf7; color: var(--text);
  border-radius: 3px; padding: 38px 36px 34px;
  box-shadow: 0 50px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(201,176,107,.25);
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg) rotate(1deg);
  transition: transform .8s var(--ease);
  font-size: .84rem;
}
.doc:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.doc::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.doc h4 { margin: 0 0 4px; font: 600 .7rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.doc .doc-title { font: 600 1.35rem/1.2 var(--serif); font-style: italic; margin-bottom: 18px; color: var(--ink); }
.doc .row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 7px 0; gap: 12px; }
.doc .row b { font-weight: 600; }
.doc .row .v { color: var(--muted); }
.doc .row.big .v { color: var(--ink); font-weight: 600; }
.doc .clause { position: relative; padding: 8px 0 8px; margin: 4px 0; }
.doc .clause strong { position: relative; z-index: 1; font-weight: 600; }
.doc .clause .lines { display: block; height: 6px; margin-top: 7px; background: repeating-linear-gradient(90deg, #dcd5c4 0 70%, transparent 70% 100%) 0 0 / 100% 6px; border-radius: 3px; opacity: .8; }
.doc .clause .lines + .lines { width: 72%; }
.doc .clause::before {
  content: ""; position: absolute; left: -6px; right: -6px; top: 4px; height: 26px; border-radius: 2px;
  background: linear-gradient(100deg, rgba(227,207,145,.75), rgba(209,186,121,.55));
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.doc .clause.on::before { transform: scaleX(1); }
.doc .note {
  position: absolute; right: 0; top: 7px; opacity: 0; transform: translateX(10px);
  background: var(--ink); color: var(--gold-2); font: 500 .7rem/1.3 var(--sans); padding: 5px 10px; border-radius: 2px; white-space: nowrap; z-index: 2;
  transition: opacity .5s ease, transform .5s var(--ease); box-shadow: 0 10px 20px -8px rgba(0,0,0,.5);
}
.doc .clause.on .note { opacity: 1; transform: none; }
.doc .sign { display: flex; gap: 22px; margin-top: 22px; align-items: end; }
.doc .sign div { flex: 1; border-top: 1px solid var(--text); padding-top: 6px; font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.doc .stamp {
  position: absolute; right: 24px; bottom: 24px; width: 92px; opacity: 0; transform: scale(1.8) rotate(-24deg);
  transition: opacity .25s ease, transform .55s cubic-bezier(.3,1.6,.5,1);
}
.doc .stamp.on { opacity: .95; transform: scale(1) rotate(-12deg); }
.doc-caption { margin-top: 26px; text-align: center; font-size: .8rem; color: rgba(236,230,214,.55); letter-spacing: .04em; }

/* Question ticker */
.ticker { background: var(--gold-grad); color: var(--ink); overflow: hidden; padding: 0; border-block: 1px solid var(--gold-1); }
.ticker .track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { white-space: nowrap; padding: 18px 0; font: 500 1.25rem var(--serif); font-style: italic; display: inline-flex; align-items: center; }
.ticker span::after { content: ""; width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); margin: 0 36px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Cards */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; display: block; text-decoration: none; background: #fff;
  padding: 40px 36px 44px; overflow: hidden; transition: background .4s ease;
}
.paper .card { background: var(--ivory); }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover { background: #fffdf8; }
.card:hover::before { transform: scaleX(1); }
.card .num { font: 600 2.4rem/1 var(--serif); font-style: italic; color: var(--gold-1); display: block; margin-bottom: 26px; transition: transform .5s var(--ease); }
.card:hover .num { transform: translateX(6px); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }
.card .go { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 600; font-size: .88rem; color: var(--gold-ink); }
.card .go::after { content: "→"; transition: transform .3s var(--ease); }
.card:hover .go::after { transform: translateX(5px); }
.card .ico { width: 46px; height: 46px; color: var(--gold-ink); margin-bottom: 26px; }
.dark .grid { background: rgba(201,176,107,.2); border-color: rgba(201,176,107,.2); }
.dark .card { background: var(--ink); }
.dark .card:hover { background: var(--navy); }
.dark .card p { color: rgba(236,230,214,.7); }
.dark .card .go, .dark .card .ico { color: var(--gold); }

/* Clause explorer */
.explorer { display: grid; grid-template-columns: 340px 1fr; border: 1px solid rgba(201,176,107,.25); background: rgba(5,32,48,.6); }
.tabs-wrap { position: relative; border-right: 1px solid rgba(201,176,107,.25); }
.explorer [role="tablist"] { display: flex; flex-direction: column; }
.tab-scroll, .tabs-hint { display: none; }
.explorer [role="tab"] {
  all: unset; cursor: pointer; padding: 18px 26px; font-weight: 500; color: rgba(236,230,214,.72);
  border-bottom: 1px solid rgba(201,176,107,.12); position: relative; display: flex; justify-content: space-between; gap: 12px;
  transition: color .3s ease, background .3s ease;
}
.explorer [role="tab"]::after { content: "→"; opacity: 0; transform: translateX(-8px); transition: .3s var(--ease); color: var(--gold); }
.explorer [role="tab"]:hover { color: #fff; background: rgba(201,176,107,.06); }
.explorer [role="tab"][aria-selected="true"] { color: var(--ink); background: var(--gold-grad); }
.explorer [role="tab"][aria-selected="true"]::after { opacity: 1; transform: none; color: var(--ink); }
.explorer [role="tab"]:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.explorer .panels { padding: 54px 56px; position: relative; min-height: 380px; }
.explorer [role="tabpanel"] { display: none; }
.explorer [role="tabpanel"].active { display: block; animation: panelIn .55s var(--ease); }
.explorer .tag { font: 600 .72rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.explorer h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; margin: 14px 0 18px; color: #fff; }
.explorer p { color: rgba(236,230,214,.8); max-width: 620px; }
.explorer .ask { margin-top: 28px; padding-left: 22px; border-left: 1px solid var(--gold); }
.explorer .ask b { display: block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.explorer .ask p { font: 500 1.3rem/1.4 var(--serif); font-style: italic; color: #fff; margin: 0; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split > :only-child { grid-column: 1 / -1; max-width: 760px; }

/* Across the table */
.table-card { position: relative; background: var(--ink); color: var(--cream); padding: 56px 48px; overflow: hidden; }
.table-card .seal-spin { width: 180px; margin: 0 auto 30px; }
.table-card blockquote { margin: 0; font: 500 1.6rem/1.4 var(--serif); font-style: italic; color: #fff; text-align: center; }
.table-card cite { display: block; margin-top: 22px; text-align: center; font: 600 .74rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.table-card::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,176,107,.3); pointer-events: none; }
.seal-spin { animation: spin 80s linear infinite; }

/* Michael's portrait */
.portrait { position: relative; margin: 0; background: var(--ink); padding: 14px; }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; outline: 1px solid rgba(201,176,107,.55); outline-offset: -14px; }
.portrait figcaption { display: flex; flex-direction: column; gap: 4px; padding: 18px 14px 6px; text-align: center; }
.portrait figcaption strong { font: 600 1.35rem/1.2 var(--serif); font-style: italic; color: #fff; }
.portrait figcaption span { font: 600 .72rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* Residential / commercial pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 56px; }
.pair > div { background: var(--paper); padding: 30px 32px; }
.pair h3 { margin-bottom: 8px; }
.pair p { margin: 0; color: var(--muted); }

.anchor { display: block; scroll-margin-top: 90px; }
.booking-alt { margin-top: 16px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; margin-top: 64px; }
.steps::before { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 27px; left: 0; height: 1px; width: 100%; background: var(--gold-grad); transform: scaleX(var(--p, 0)); transform-origin: left; }
.step { position: relative; padding-right: 30px; }
.step .dot {
  width: 55px; height: 55px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center;
  font: 600 1.3rem var(--serif); font-style: italic; color: var(--gold-ink); position: relative; z-index: 1; transform: rotate(45deg); margin-bottom: 34px;
  transition: background .5s ease, border-color .5s ease, color .5s ease;
}
.step .dot span { transform: rotate(-45deg); }
.paper .step .dot { background: var(--ivory); }
.step.lit .dot { background: var(--ink); border-color: var(--ink); color: var(--gold-2); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Statement */
.statement { font: 500 clamp(1.7rem, 3.6vw, 2.9rem)/1.3 var(--serif); color: #fff; max-width: 980px; margin: 0; }
.statement .dim { color: rgba(236,230,214,.45); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 18px 0 18px 46px; border-bottom: 1px solid var(--line); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 8px;
  border-left: 2px solid var(--gold-1); border-bottom: 2px solid var(--gold-1); transform: rotate(-45deg);
}
.dark .checklist li { border-color: rgba(201,176,107,.2); color: var(--cream); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--gold-ink); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .ans { overflow: hidden; }
.faq .ans p { color: var(--muted); padding-bottom: 22px; max-width: 760px; margin: 0; }

/* Page hero */
.page-hero { padding: 104px 0 96px; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); max-width: 900px; }
.page-hero .hero-seal { width: 520px; right: -140px; }
.crumbs { font-size: .8rem; color: rgba(236,230,214,.55); margin-bottom: 26px; }
.crumbs a { text-decoration: none; color: var(--gold); }

/* Topic blocks (campaign landing anchors) */
.topic { display: grid; grid-template-columns: 300px 1fr; gap: 70px; padding: 70px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.topic:first-of-type { border-top: 0; padding-top: 0; }
.topic .side { position: sticky; top: 120px; align-self: start; }
.topic .side .num { font: 600 4rem/1 var(--serif); font-style: italic; color: var(--gold-1); display: block; margin-bottom: 14px; }
.topic .side h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.topic .body p { color: var(--muted); font-size: 1.05rem; }
.topic .body .lead { color: var(--text); font-size: 1.25rem; font-weight: 500; }
.topic .body h3 { margin-top: 30px; }
.pullq { margin: 34px 0; padding: 28px 32px; background: var(--ivory); border-left: 2px solid var(--gold-1); font: 500 1.45rem/1.4 var(--serif); font-style: italic; color: var(--ink); }
.topic-cta { margin-top: 30px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px 26px; border: 1px solid var(--line); background: #fff; }
.topic-cta p { margin: 0; flex: 1 1 260px; font-weight: 500; color: var(--text) !important; font-size: .98rem !important; }
:target .side .num { animation: pulse 1.4s var(--ease) 2; }
@keyframes pulse { 50% { color: var(--ink); transform: scale(1.06); } }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.toc a { font-size: .85rem; font-weight: 500; color: var(--cream); text-decoration: none; padding: 9px 16px; border: 1px solid rgba(201,176,107,.35); border-radius: 2px; transition: .3s ease; }
.toc a:hover { background: var(--gold-grad); color: var(--ink); border-color: transparent; }

/* Practice list (real estate page) */
.practice { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: 90px; }
.practice .num { font: 600 2.6rem/1 var(--serif); font-style: italic; color: var(--gold-1); }
.practice h2 { font-size: 1.6rem; margin: 0; }
.practice p { color: var(--muted); margin: 0; }
.practice .flag { display: inline-block; margin-top: 14px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); background: rgba(201,176,107,.15); padding: 4px 10px; }

/* Booking */
.booking { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.agenda { list-style: none; padding: 0; margin: 30px 0; counter-reset: a; }
.agenda li { counter-increment: a; display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.agenda li::before { content: counter(a, upper-roman) "."; font: 600 1.6rem var(--serif); font-style: italic; color: var(--gold-1); }
.agenda strong { display: block; font-weight: 600; }
.agenda span { color: var(--muted); font-size: .96rem; }
.booking-frame { background: #fff; border: 1px solid var(--line); min-height: 680px; position: relative; box-shadow: 0 40px 70px -40px rgba(0,17,30,.35); }
.booking-frame::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--gold-grad); }
.booking-frame iframe { width: 100%; height: 900px; border: 0; display: block; }
.booking-empty { display: grid; place-items: center; text-align: center; min-height: 680px; padding: 40px; }
.booking-empty img { width: 110px; margin: 0 auto 24px; }
.booking-empty code { background: var(--ivory); padding: 2px 6px; font-size: .88em; }
.note { color: var(--muted); font-size: .95rem; }
.note a { color: var(--ink); }
.prep { margin-top: 34px; padding: 26px 28px; background: var(--ivory); border: 1px solid var(--line); }
.prep h3 { font-size: 1rem; margin-bottom: 10px; }
.prep ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(236,230,214,.72); padding: 0 0 40px; font-size: .94rem; position: relative; overflow: hidden; }
.foot-cta { text-align: center; padding: 100px 0 90px; border-bottom: 1px solid rgba(201,176,107,.2); margin-bottom: 60px; }
.foot-seal { width: 96px; margin: 0 auto 26px; }
.motto { font: 500 clamp(2.2rem, 5vw, 3.8rem)/1.1 var(--serif); color: #fff; margin: 0 0 34px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.site-footer .brand img { height: 40px; margin-bottom: 20px; }
.site-footer h3 { font: 600 .74rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { text-decoration: none; transition: color .25s ease; }
.site-footer a:not(.btn):hover { color: var(--gold-2); }
.site-footer a.social { display: inline-flex; align-items: center; gap: 8px; }
.legal { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(201,176,107,.15); font-size: .8rem; color: rgba(236,230,214,.45); }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

/* Reveal animations */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
[data-reveal="fade"] { transform: none; }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal].in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); filter: blur(6px); opacity: 0; transition: transform 1s var(--ease), filter 1s ease, opacity .8s ease; transition-delay: calc(var(--i) * 55ms + 100ms); }
.split-words.in .w > span { transform: none; filter: none; opacity: 1; }
.split-words em .w > span { padding-right: .06em; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .nav-phone { display: none; }
}
@media (max-width: 960px) {
  section { padding: 88px 0; }
  .hero { padding: 64px 0 90px; min-height: 0; }
  .hero .wrap, .split, .booking, .explorer, .topic { grid-template-columns: 1fr; gap: 48px; }
  .doc { transform: none; max-width: 520px; margin: 0 auto; }
  .doc:hover { transform: none; }
  .doc .note { display: none; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps::before, .steps::after { display: none; }
  .tabs-wrap { border-right: 0; border-bottom: 1px solid rgba(201,176,107,.25); min-width: 0; }
  .explorer [role="tablist"] { flex-direction: row; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
  .explorer [role="tablist"]::-webkit-scrollbar { display: none; }
  .explorer [role="tab"] { white-space: nowrap; border-bottom: 0; border-right: 1px solid rgba(201,176,107,.12); flex: 0 0 auto; }
  /* Offscreen tabs: fade + arrow at whichever edge has more */
  .tab-scroll {
    display: grid; place-items: center; position: absolute; top: 0; bottom: 0; width: 52px; z-index: 2; border: 0; padding: 0; cursor: pointer;
    font-size: 1.15rem; color: var(--gold-2); opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .tab-scroll.prev { left: 0; background: linear-gradient(90deg, #052030 45%, rgba(5,32,48,0)); justify-items: start; padding-left: 12px; }
  .tab-scroll.next { right: 0; background: linear-gradient(270deg, #052030 45%, rgba(5,32,48,0)); justify-items: end; padding-right: 12px; }
  .tabs-wrap.more-prev .tab-scroll.prev, .tabs-wrap.more-next .tab-scroll.next { opacity: 1; pointer-events: auto; }
  .tabs-wrap.more-next .tab-scroll.next { animation: nudge 1.6s ease-in-out 3; }
  .tabs-hint { display: block; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 10px 28px 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .tabs-wrap:not(.more-next) .tabs-hint { visibility: hidden; }
  .explorer .tabs-wrap + .panels { padding-top: 56px; }
  .explorer [role="tab"]::after { display: none; }
  .explorer .panels { padding: 36px 28px; min-height: 0; }
  .topic .side { position: static; }
  .practice { grid-template-columns: 60px 1fr; }
  .practice > div:last-child { grid-column: 2; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 10px 24px 28px; border-bottom: 1px solid rgba(201,176,107,.25);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); visibility: hidden;
  }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(201,176,107,.15); }
  .nav a:not(.btn)::after { display: none; }
  .nav-phone { display: block; border-left: 0; padding-left: 0 !important; }
  .nav .btn { margin-top: 20px; padding: 16px; }
  .site-header .wrap, .site-header.scrolled .wrap { height: 70px; }
  .brand img, .site-header.scrolled .brand img { height: 34px; }
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; padding: 17px 16px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }
  .mobile-cta .call { width: 54px; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); border: 1px solid var(--gold-1); border-radius: 2px; }
  .site-footer { padding-bottom: 100px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .card { padding: 32px 26px 36px; }
  .doc { padding: 28px 22px; font-size: .78rem; }
  .doc .stamp { width: 70px; }
  .steps { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .table-card { padding: 44px 26px; }
  .table-card blockquote { font-size: 1.35rem; }
  .practice { grid-template-columns: 1fr; gap: 14px; }
  .practice > div:last-child { grid-column: auto; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 36px; }
  .hero-seal { display: none; }
  .ticker span { font-size: 1.05rem; padding: 14px 0; }
}
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
@media (max-width: 600px) {
  .pair { grid-template-columns: 1fr; }
  .pair > div { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal], .split-words .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- Client feedback page (/feedback) ---------- */
.fb { padding: 48px 0 96px; }
.fb-wrap { max-width: 760px; }
.fb-card { background: #fff; border: 1px solid var(--line); padding: 44px 44px 48px; position: relative; box-shadow: 0 40px 70px -50px rgba(0,17,30,.4); }
.fb-card::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--gold-grad); }
.fb-seal { width: 64px; margin-bottom: 20px; }
.fb h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.12; color: var(--ink); }
.fb h1 em { background: linear-gradient(100deg, #8a6f2a, #b79c55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fb .lead { font-size: 1.05rem; margin-bottom: 26px; }
.fb-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fb-choice { width: 100%; min-height: 64px; padding: 16px 18px; font-size: .95rem; text-align: center; line-height: 1.25; }
.fb-choice[aria-expanded="true"] { color: var(--gold-2); }
.fb-choice[aria-expanded="true"]::after { transform: scaleY(1); }
.fb-form { margin-top: 8px; display: grid; gap: 22px; scroll-margin-top: 90px; }
.fb-happy[hidden], .fb-private[hidden], #fb-done-google[hidden], #fb-done-low[hidden], .fb-form[hidden], .fb-done[hidden], .fb-preview[hidden], .fb-field[hidden], .fb-callback-fields[hidden], .fb-choices[hidden], .fb-err[hidden], .fb-alert[hidden] { display: none; }
.fb-rating { border: 0; padding: 0; margin: 0; }
.fb-rating legend { font-weight: 600; font-size: 1.08rem; margin-bottom: 14px; padding: 0; }
.fb-stars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fb-stars label { position: relative; cursor: pointer; }
.fb-stars input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-stars .box { display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; border: 1px solid var(--line); background: var(--paper); min-height: 84px; transition: background .2s ease, border-color .2s ease, transform .2s var(--ease); }
.fb-stars .star { font-size: 1.5rem; line-height: 1; color: #d9d2bf; transition: color .2s ease; }
.fb-stars .n { font-weight: 600; font-size: 1.05rem; }
.fb-stars .t { font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.fb-stars label:hover .box { border-color: var(--gold-1); }
.fb-stars input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.fb-stars input:checked + .box { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }
.fb-stars input:checked + .box .t { color: var(--gold-2); }
.fb-stars:has(input[value="1"]:checked) label:nth-child(-n+1) .star,
.fb-stars:has(input[value="2"]:checked) label:nth-child(-n+2) .star,
.fb-stars:has(input[value="3"]:checked) label:nth-child(-n+3) .star,
.fb-stars:has(input[value="4"]:checked) label:nth-child(-n+4) .star,
.fb-stars:has(input[value="5"]:checked) label:nth-child(-n+5) .star { color: var(--gold-1); }
.fb-field { display: grid; gap: 8px; }
.fb-field label { font-weight: 600; font-size: .95rem; }
.fb input:not([type]), .fb input[type="tel"], .fb textarea {
  font: 400 1rem var(--sans); color: var(--text); width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fb input:focus, .fb textarea:focus { outline: none; border-color: var(--gold-1); box-shadow: 0 0 0 3px rgba(183,156,85,.22); background: #fff; }
.fb textarea { resize: vertical; min-height: 130px; }
.fb-hint { font-size: .86rem; color: var(--muted); margin: 0; }
.fb-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.fb-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.fb-callback-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; background: var(--ivory); border: 1px solid var(--line); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-err { color: #a1291b; font-size: .9rem; margin: 10px 0 0; font-weight: 500; }
.fb-alert { padding: 14px 16px; border: 1px solid #e3b2aa; background: #fbefec; color: #7c1f14; font-weight: 500; font-size: .95rem; }
.fb-alert:focus { outline: 2px solid #a1291b; outline-offset: 2px; }
.fb-submit { justify-self: start; min-width: 260px; }
.fb-submit[aria-busy="true"] { opacity: .75; cursor: progress; }
.fb-happy, .fb-private { display: grid; gap: 22px; padding-top: 28px; border-top: 1px solid var(--line); }
.fb-happy h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); margin: 0; }
.fb-happy p { margin: 0; color: var(--muted); }
.fb-google { justify-self: start; min-height: 60px; gap: 10px; }
.fb-linkbtn { justify-self: start; background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-weight: 600; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.fb-done { margin-top: 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.fb-done h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); outline: none; }
.fb-done p { color: var(--muted); }
.fb-preview { margin-top: 34px; padding: 26px 28px; border: 2px dashed var(--gold-1); background: #fffdf6; font-size: .92rem; }
.fb-preview h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-ink); }
.fb-preview h3 { font-size: .95rem; margin: 22px 0 10px; }
.fb-preview dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0 0 18px; }
.fb-preview dt { font-weight: 600; }
.fb-preview dd { margin: 0; color: var(--muted); }
.fb-inbox { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fb-inbox li { background: #fff; border: 1px solid var(--line); padding: 14px 16px; }
.fb-inbox p { margin: 6px 0 0; }
.fb-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fb-row strong { color: var(--gold-ink); letter-spacing: .05em; }
.fb-row .off { color: #ddd5c1; }
.fb-row time { color: var(--muted); font-size: .82rem; }
.fb-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fb-flag { font-size: .72rem; font-weight: 600; padding: 3px 8px; letter-spacing: .03em; }
.fb-flag.review { background: #fbefec; color: #7c1f14; }
.fb-flag.call { background: var(--ink); color: var(--gold-2); }
.fb-subj, .fb-cb { font-size: .82rem; color: var(--muted); }
.fb-preview-note { margin: 18px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
.fb-preview-note[hidden] { display: none; }
.fb-clear { margin-top: 14px; background: none; border: 1px solid var(--line); padding: 8px 14px; font: 500 .85rem var(--sans); cursor: pointer; }
@media (max-width: 600px) {
  .fb { padding: 16px 0 60px; }
  .fb-card { padding: 30px 20px 34px; }
  .fb-choices { grid-template-columns: 1fr; }
  .fb-stars { gap: 6px; }
  .fb-stars .box { min-height: 76px; padding: 10px 2px 8px; }
  .fb-stars .t { font-size: .6rem; }
  .fb-callback-fields { grid-template-columns: 1fr; }
  .fb-submit { width: 100%; justify-self: stretch; min-width: 0; }
  .fb-preview dl { grid-template-columns: 1fr; }
}
