/* Merritt Law — original design system */
:root {
  --ink: #141a1f;
  --ink-soft: #2a333c;
  --stone: #eef1f3;
  --paper: #f8f9fa;
  --accent: #0e5c5a;
  --accent-deep: #0a4543;
  --copper: #b85a2a;
  --copper-hover: #9a4a22;
  --light: #ffffff;
  --muted: #5c6670;
  --line: rgba(20, 26, 31, 0.12);
  --mint: #8fd9d4;
  --hero-overlay: linear-gradient(
    105deg,
    rgba(10, 16, 20, 0.88) 0%,
    rgba(10, 16, 20, 0.55) 48%,
    rgba(14, 92, 90, 0.35) 100%
  );
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --container: min(1180px, calc(100% - 2.5rem));
  --section-y: clamp(4rem, 8vw, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--light);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.btn--copper {
  background: var(--copper);
}

.btn--copper:hover {
  background: var(--copper-hover);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--light);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--light);
}

.btn--ink {
  background: var(--ink);
}

.btn--ink:hover {
  background: var(--ink-soft);
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  padding: 1.25rem 0;
  color: var(--light);
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(20, 26, 31, 0.94);
  backdrop-filter: blur(10px);
  animation: headerIn 0.4s var(--ease);
}

@keyframes headerIn {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

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

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand__mark span {
  color: var(--mint);
}

.brand__sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.header-phone {
  display: none;
  text-align: right;
}

.header-phone__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}

.header-phone a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  opacity: 1;
  color: var(--mint);
}

.nav-item {
  position: relative;
}

.nav-item__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-item__btn svg {
  transition: transform 0.25s var(--ease);
}

.nav-item:hover .nav-item__btn svg,
.nav-item:focus-within .nav-item__btn svg {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 220px;
  background: var(--light);
  color: var(--ink);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--ink);
  opacity: 1;
}

.submenu a:hover {
  background: var(--stone);
  color: var(--accent);
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--light);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.3s var(--ease);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  margin-top: 1rem;
  background: linear-gradient(180deg, #152028 0%, #0c1216 100%);
  padding: 0.75rem;
}

.mobile-nav.is-open {
  display: block;
  animation: fadeDown 0.35s var(--ease);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a,
.mobile-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.75rem;
  color: var(--light);
  background: none;
  border: 0;
  font-size: 1.05rem;
  cursor: pointer;
}

.mobile-sub {
  display: none;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(143, 217, 212, 0.45);
  margin: 0 0 0.5rem 0.75rem;
}

.mobile-sub.is-open {
  display: block;
}

.mobile-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.75rem;
}

.mobile-contact a {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  font-weight: 600;
  color: var(--light);
}

.mobile-contact a:first-child {
  background: var(--accent);
}

.mobile-contact a:last-child {
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--light);
  background:
    var(--hero-overlay),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=2000&q=80")
      center/cover no-repeat;
  overflow: hidden;
}

.hero__content {
  width: var(--container);
  margin: 0 auto;
  padding: 8.5rem 0 5.5rem;
  max-width: min(40rem, 100%);
  min-width: 0;
  animation: heroRise 0.9s var(--ease) both;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.hero__brand em {
  font-style: italic;
  font-weight: 450;
  color: var(--mint);
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 28ch;
  margin-bottom: 0.85rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 38ch;
  margin-bottom: 0.85rem;
}

.hero p + .hero__actions {
  margin-top: 0.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__actions .btn {
  justify-content: center;
}

@media (max-width: 719.98px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* Mobile sticky call bar */
.mobile-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: var(--accent);
  color: var(--light);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
}

.mobile-call-bar__label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.mobile-call-bar__number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

/* Quick actions */
.actions {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--ink);
  color: var(--light);
}

.action {
  position: relative;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.4s var(--ease);
  overflow: hidden;
}

.action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 92, 90, 0.55), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.action:hover::before {
  opacity: 1;
}

.action > * {
  position: relative;
  z-index: 1;
}

.action h2 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.action p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
  max-width: 36ch;
}

.action__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mint);
  font-weight: 600;
}

.action__link svg {
  transition: transform 0.3s var(--ease);
}

.action:hover .action__link svg {
  transform: translateX(4px);
}

/* Split sections */
.section {
  padding: var(--section-y) 0;
}

.section--stone {
  background: var(--stone);
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.split--top {
  align-items: start;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

/* Consultation */
.consult {
  display: grid;
  gap: 2rem;
  min-width: 0;
  max-width: 100%;
}

.consult-panel {
  background: var(--ink);
  color: var(--light);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.consult-panel h3 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.35rem;
}

.consult-panel > p {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.consult-map {
  margin-top: 1.75rem;
}

.consult-map__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.consult-map__address {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.consult-map__address:hover {
  color: var(--accent);
}

.consult-map__frame {
  width: 100%;
  height: min(320px, 42vw);
  min-height: 260px;
  border: 1px solid rgba(20, 32, 31, 0.18);
  overflow: hidden;
  background: #dfe5e2;
}

@media (min-width: 900px) {
  .consult-map__frame {
    height: 340px;
    min-height: 340px;
  }
}

.consult-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-stack label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--light);
  padding: 0.7rem 0;
  border-radius: 0;
}

.form-stack input[type="checkbox"],
.form-stack input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  accent-color: var(--mint);
  background: transparent;
  flex-shrink: 0;
}

.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
  outline: none;
  border-bottom-color: var(--mint);
}

.form-stack textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.form-stack .btn {
  width: auto;
  min-width: 16rem;
  max-width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

.benefit-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.benefit-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

.benefit-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
  background: var(--mint);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.form-success.is-visible {
  display: block;
}

.form-success h3 {
  color: var(--mint);
}

/* Practice areas */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.practice-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.practice {
  background: var(--paper);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.practice:hover {
  background: #e7f2f1;
  transform: translateY(-3px);
}

.practice h3 {
  font-size: 1.55rem;
  color: var(--accent-deep);
}

.practice p {
  color: var(--muted);
  flex: 1;
  margin: 0;
}

.practice span {
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Results */
.results-layout {
  display: grid;
  gap: 2rem;
  min-width: 0;
  max-width: 100%;
}

.results-intro h2 span {
  color: var(--accent);
  display: block;
}

.carousel {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track > * {
  flex: 0 0 min(85%, 340px);
  scroll-snap-align: start;
}

.result-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin: 1rem 0 0.25rem;
}

.carousel__nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.carousel__nav button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.carousel__nav button:hover {
  background: var(--ink);
  color: var(--light);
}

/* Insights */
.insight-card {
  position: relative;
  min-height: 340px;
  color: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.insight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 20, 0.15), rgba(10, 16, 20, 0.9));
}

.insight-card > * {
  position: relative;
  z-index: 1;
}

.insight-card__tag {
  align-self: flex-end;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  padding: 0.35rem 0.75rem;
}

.insight-card h3 {
  font-size: 1.45rem;
  margin: 0.5rem 0;
}

.insight-card p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.insight-card__link {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--mint);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #163a3a 0%, #0c1216 70%);
  color: var(--light);
  padding: var(--section-y) 0 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .brand__mark {
  font-size: 2.2rem;
}

.footer-brand .brand__mark span {
  color: var(--mint);
}

.footer-meta {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.footer-meta a {
  transition: color 0.25s var(--ease);
}

.footer-meta a:hover {
  color: var(--mint);
}

.address,
.phone-block {
  display: grid;
  gap: 0.25rem;
}

.phone-block__label {
  color: var(--mint);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phone-block a {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.socials a {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

.socials a:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.footer-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--mint);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 12, 14, 0.7);
}

.modal.is-open {
  display: flex;
}

.modal__dialog {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(180deg, #163a3a, #0c1216);
  color: var(--light);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  animation: heroRise 0.35s var(--ease);
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal h3 {
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.modal .form-stack label {
  color: rgba(255, 255, 255, 0.8);
}

.modal .form-stack input,
.modal .form-stack textarea,
.modal .form-stack select {
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.75rem 0.85rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--light);
}

.checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  grid-template-columns: none !important;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.checkbox span {
  flex: 1;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (min-width: 720px) {
  .actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .action {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.25rem;
  }

  .action:first-child {
    border-left: 0;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .full {
    grid-column: 1 / -1;
  }

  .header-phone {
    display: block;
  }
}

@media (min-width: 960px) {
  .menu-toggle,
  .mobile-nav,
  .mobile-contact,
  .mobile-call-bar {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }

  .nav-desktop {
    display: block;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .consult {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .results-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }


  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1.1fr;
  }

  .carousel__track > * {
    flex-basis: min(48%, 360px);
  }

  .hero__content {
    padding-bottom: 6.5rem;
  }
}


/* Private preview gate */
.preview-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(160deg, rgba(20, 32, 31, 0.94), rgba(14, 92, 90, 0.88)),
    #14201f;
  color: #f4f1ea;
}

.preview-gate[hidden] {
  display: none !important;
}

.preview-gate__card {
  width: min(100%, 22rem);
  text-align: center;
}

.preview-gate__card h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-bottom: 0.4rem;
}

.preview-gate__card p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.preview-gate__card form {
  display: grid;
  gap: 0.75rem;
}

.preview-gate__card input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.85rem 1rem;
  font: inherit;
}

.preview-gate__card input:focus {
  outline: none;
  border-color: var(--mint);
}

.preview-gate__error {
  color: #ffb4a8;
  font-size: 0.85rem;
  min-height: 1.2em;
}


.form-error {
  color: #ffb4a8;
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}


/* Inner pages (additive — homepage selectors unchanged) */
.site-header--solid {
  position: sticky;
  top: 0;
  background: rgba(20, 26, 31, 0.96);
  backdrop-filter: blur(10px);
}

.page-hero {
  background: linear-gradient(160deg, #14201f 0%, #0e5c5a 70%, #0a4543 100%);
  color: var(--light);
  padding: 5.5rem 0 3.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 18ch;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.related-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.5rem;
}

.related-grid a {
  background: var(--paper);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  transition: background 0.3s var(--ease);
}

.related-grid a:hover {
  background: #e7f2f1;
}

.related-grid strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--paper);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--muted);
}

.inner-cta {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--ink);
  color: var(--light);
}

.inner-cta h2 {
  color: var(--light);
  font-size: 1.75rem;
}

.inner-cta p {
  color: rgba(255, 255, 255, 0.75);
}

.inner-cta .btn {
  margin-top: 0.75rem;
}
