/* ═══════════════════════════════════════════════════════════════════
   Lifetime Law Group — Stylesheet
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────────── */
:root {
  --cherenkov:      #1E6F88;
  --cherenkov-mid:  #175e74;
  --reactor-ink:    #0E1A2A;
  --violet:         #B89DC4;
  --violet-soft:    rgba(184, 157, 196, 0.15);
  --pearl:          #F5F4F2;
  --pearl-cool:     #eaf0f4;
  --ink:            #1A1F26;
  --ink-soft:       rgba(26, 31, 38, 0.65);
  --ink-faint:      rgba(26, 31, 38, 0.60);
  --glow:           rgba(30, 111, 136, 0.18);
  --glow-strong:    rgba(30, 111, 136, 0.32);
  --hairline:       rgba(30, 111, 136, 0.22);

  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --max-w:        1200px;
  --nav-h:        72px;
  --radius:       2px;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Pearl Texture Mixin (applied via body + .pearl-bg) ─────────── */
/* The pearl texture = pearl base + noise overlay + iridescent tints */
body {
  /* Pearl texture image — never replaced with a flat color.
     White overlay at 40% lightens it enough for text readability. */
  background-color: #F5F4F2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.40)),
    url('public/pearl-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.375rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

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

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

button { cursor: pointer; border: none; background: none; font: inherit; }

ul { list-style: none; }

/* ─── Typography Base ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 0.5px currentColor;
}

p { max-width: 62ch; text-align: justify; }

em { font-style: italic; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

.violet { color: var(--violet); }

/* ─── Section Label ──────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--cherenkov);
  margin-bottom: 1.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9em 2em;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--cherenkov);
  color: var(--pearl);
  border: 1px solid var(--cherenkov);
}
.btn--primary:hover {
  background: var(--cherenkov-mid);
  border-color: var(--cherenkov-mid);
  box-shadow: 0 4px 24px var(--glow-strong), 0 0 0 3px rgba(30,111,136,0.12);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn--ghost:hover {
  border-color: var(--cherenkov);
  color: var(--cherenkov);
  background: rgba(30,111,136,0.04);
}

.btn--outline {
  background: transparent;
  color: var(--cherenkov);
  border: 1px solid var(--cherenkov);
}
.btn--outline:hover {
  background: var(--cherenkov);
  color: var(--pearl);
  box-shadow: 0 4px 20px var(--glow);
}

.btn--light {
  background: var(--pearl);
  color: var(--reactor-ink);
  border: 1px solid transparent;
}
.btn--light:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.btn--full { width: 100%; justify-content: center; }

/* ─── Eyebrow ────────────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--cherenkov);
  margin-bottom: 1.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.eyebrow__rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--cherenkov);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ─── Reveal Animations ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-up.is-visible {
  opacity: 1;
  transform: none;
}
.fade-up--delay { transition-delay: 0.2s; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay   { transition-delay: 0.15s; }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }


/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s var(--ease-in-out),
              box-shadow  0.35s var(--ease-in-out);
}

.nav.is-scrolled {
  background: rgba(242, 236, 226, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: color 0.2s;
}
.nav__logo:hover { color: var(--cherenkov); }

.nav__diamond {
  color: var(--cherenkov);
  font-size: 0.7em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--cherenkov);
  transition: right 0.25s var(--ease-out);
}
.nav__link:hover { color: var(--cherenkov); }
.nav__link:hover::after { right: 0; }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pearl);
  background: var(--cherenkov);
  padding: 0.55em 1.4em;
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.nav__cta:hover {
  background: var(--cherenkov-mid);
  box-shadow: 0 4px 16px var(--glow);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.25s var(--ease-out);
}
.nav__toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ─── Dropdown menus ─────────────────────────────────────────────── */
.nav__item { position: relative; }

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav__dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--cherenkov);
  transition: right 0.25s var(--ease-out);
}
.nav__dropdown-toggle:hover,
.nav__dropdown-toggle[aria-expanded="true"] { color: var(--cherenkov); }
.nav__dropdown-toggle:hover::after,
.nav__dropdown-toggle[aria-expanded="true"]::after { right: 0; }

.nav__caret {
  font-size: 0.58em;
  display: inline-block;
  line-height: 1;
  transition: transform 0.2s var(--ease-out);
}
.nav__dropdown-toggle[aria-expanded="true"] .nav__caret {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 185px;
  background: rgba(245, 244, 242, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(14, 26, 42, 0.12), 0 0 0 1px rgba(30, 111, 136, 0.04);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
  z-index: 100;
}
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: rgba(245, 244, 242, 0.98);
  border-left: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
}
.nav__item--has-dropdown.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav__dropdown-link {
  display: block;
  padding: 0.58rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav__dropdown-link:hover {
  color: var(--cherenkov);
  background: rgba(30, 111, 136, 0.05);
}


/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Hero: full-bleed below nav ─────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: var(--nav-h);
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 42, 0.4);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* White text overrides for hero overlay */
.hero__eyebrow-white {
  color: rgba(242, 236, 226, 0.9) !important;
}

.hero__rule-white {
  background: rgba(242, 236, 226, 0.5) !important;
}

.hero__title {
  font-size: clamp(3.5rem, 6.5vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 20px rgba(14, 26, 42, 0.3);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(242, 236, 226, 0.88);
  max-width: 44ch;
  margin: 0;
  text-align: left;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
}

/* Ghost button white variant for hero */
.btn--ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9em 2em;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease-out);
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
}

.hero__appt {
  color: rgba(242, 236, 226, 0.65);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  margin: 0;
  text-align: left;
}


/* ═══════════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════════ */

.marquee {
  overflow: hidden;
  background: var(--cherenkov);
  padding: 1rem 0;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--cherenkov), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--cherenkov), transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242, 236, 226, 0.8);
  animation: marqueeScroll 28s linear infinite;
}

.marquee__diamond {
  color: rgba(242, 236, 226, 0.35);
  font-size: 0.6em;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════════════════════════════
   PHILOSOPHY
   ═══════════════════════════════════════════════════════════════════ */

.philosophy {
  padding: 8rem 2.5rem 2rem;
  position: relative;
}

.philosophy__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.philosophy__heading {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--reactor-ink);
  margin-bottom: 2rem;
}

.philosophy__body {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
}

.philosophy__body:last-of-type { margin-bottom: 2.5rem; }

/* Azure Column ──────────────────────────────────────────────────── */
.philosophy__aside {
  padding-top: 2rem;
}

.philosophy__azure-col {
  background: var(--cherenkov);
  background-image: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
  padding: 3.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(14,26,42,0.18), 0 0 60px rgba(30,111,136,0.1);
  position: relative;
  overflow: hidden;
}

.philosophy__azure-col::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(242,236,226,0.1);
}

.philosophy__quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.5;
  color: rgba(242,236,226,0.18);
  display: block;
  margin-bottom: 1rem;
  margin-left: -0.1em;
}

.philosophy__quote {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.45;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 700;
  -webkit-text-stroke: 0.4px #ffffff;
}

.philosophy__cite {
  display: block;
  color: rgba(242, 236, 226, 0.6);
  font-style: normal;
  margin-bottom: 2.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.philosophy__hairline {
  width: 100%;
  height: 1px;
  background: rgba(242,236,226,0.15);
  margin-bottom: 1.75rem;
}

.philosophy__aside-note {
  color: rgba(242,236,226,0.55);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
}


/* ─── Philosophy Image ───────────────────────────────────────────── */
.philosophy__image-wrap {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  box-shadow: 0 8px 48px rgba(14,26,42,0.12);
}
.philosophy__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─── Three Pillars Graphic ──────────────────────────────────────── */
.pillars-graphic {
  background: var(--cherenkov);
  background-image: radial-gradient(ellipse at 110% 0%, rgba(255,255,255,0.07) 0%, transparent 55%),
                    radial-gradient(ellipse at -10% 100%, rgba(14,26,42,0.2) 0%, transparent 50%);
  border-radius: calc(var(--radius) + 2px);
  padding: 2.5rem 2rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 8px 48px rgba(30,111,136,0.3);
}

.pillars-graphic__eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.pillars-graphic__cols {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex: 1;
}

.pillars-graphic__pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.pillars-graphic__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

.pillars-graphic__line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), rgba(255,255,255,0.05));
}

.pillars-graphic__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  -webkit-text-stroke: 0.3px rgba(255,255,255,0.8);
}

.pillars-graphic__sub {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.pillars-graphic__divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  align-self: stretch;
  margin: 0 0.25rem;
  margin-top: 54px;
}

.pillars-graphic__base {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pillars-graphic__base-line {
  display: none;
}

.pillars-graphic__base-label {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════════ */

.services {
  padding: 1.5rem 2.5rem 8rem;
  position: relative;
}

.services::before { display: none; }

.services__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.services__header {
  text-align: center;
  margin-bottom: 2rem;
}

.services__header .section-label {
  justify-content: center;
}

.services__heading {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--reactor-ink);
  margin-bottom: 1.25rem;
}

.services__intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.75;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius) + 1px);
  overflow: hidden;
}

/* Service Card ──────────────────────────────────────────────────── */
.service-card {
  background: var(--pearl);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(30,111,136,0.04) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: auto, 200px 200px;
  padding: 2.75rem 2.25rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 2px;
  background: var(--cherenkov);
  transition: right 0.4s var(--ease-out);
}

.service-card:hover::after { right: 0; }

.service-card:hover {
  box-shadow: inset 0 0 0 1000px rgba(30,111,136,0.025),
              0 8px 32px rgba(14,26,42,0.07);
}

/* "You" card — meditation background */
.service-card:first-child {
  background-image:
    linear-gradient(rgba(245,244,242,0.62), rgba(245,244,242,0.62)),
    url('public/service-you.png');
  background-size: cover;
  background-position: center center;
}

/* "Your Assets" card — estate background */
.service-card:nth-child(3) {
  background-image:
    linear-gradient(rgba(245,244,242,0.62), rgba(245,244,242,0.62)),
    url('public/service-assets.png');
  background-size: cover;
  background-position: center center;
}

/* "Your Family" card — pearl hands background */
.service-card:nth-child(2) {
  background-image:
    linear-gradient(rgba(245,244,242,0.62), rgba(245,244,242,0.62)),
    url('public/service-family.png');
  background-size: cover;
  background-position: center center;
}

.service-card__num {
  font-size: 0.65rem;
  color: var(--cherenkov);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  text-shadow: 0 1px 4px rgba(255,255,255,0.6);
}

.service-card__rule {
  width: 24px;
  height: 1px;
  background: var(--cherenkov);
  opacity: 0.7;
  margin: 0 auto 1.25rem;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--reactor-ink);
  margin-bottom: 1rem;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 8px rgba(255,255,255,0.7);
}

.service-card__body {
  font-size: 1rem;
  color: var(--reactor-ink);
  line-height: 1.75;
  max-width: 100%;
  text-align: center;
  text-shadow: 0 1px 6px rgba(255,255,255,0.6);
}

.service-card__list {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.service-card__list li {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cherenkov);
  padding-left: 1em;
  position: relative;
}
.service-card__list li::before {
  content: '◇';
  position: absolute;
  left: 0;
  font-size: 0.5rem;
  top: 0.05em;
  opacity: 0.6;
}

/* CTA Card ──────────────────────────────────────────────────────── */
.service-card--cta {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 2.5rem 2.25rem;
  background: var(--reactor-ink);
  background-image: radial-gradient(ellipse at 80% 20%, rgba(30,111,136,0.2) 0%, transparent 60%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  text-align: center;
}
.service-card--cta::after { background: var(--pearl); }
.service-card--cta:hover { box-shadow: 0 8px 48px rgba(30,111,136,0.25); }

.service-card__cta-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--pearl);
  line-height: 1.3;
  max-width: 100%;
}


/* ═══════════════════════════════════════════════════════════════════
   ATTORNEY
   ═══════════════════════════════════════════════════════════════════ */

.attorney {
  padding: 8rem 2.5rem;
  position: relative;
}

.attorney__heading-row {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}

.attorney__heading-row {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}

.attorney__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 6rem;
  align-items: start;
}

/* Content ───────────────────────────────────────────────────────── */
.attorney__content {
  align-self: start;
}

/* Portrait ──────────────────────────────────────────────────────── */
.attorney__portrait-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  top: 0;
}

.attorney__frame {
  position: relative;
}

.attorney__glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at 30% 40%, var(--glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 5s ease-in-out infinite;
}

.attorney__photo-wrap {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow:
    0 0 0 1px rgba(30,111,136,0.06),
    0 12px 48px rgba(14,26,42,0.14);
}

.attorney__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    155deg,
    var(--pearl-cool) 0%,
    rgba(210,228,236,0.85) 50%,
    rgba(30,111,136,0.14) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.attorney__photo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.attorney__photo-label {
  color: var(--cherenkov);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  opacity: 0.6;
}

.attorney__credential-badge {
  color: var(--cherenkov);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  border-top: 1px solid var(--hairline);
  padding-top: 0.85rem;
}

/* Content ───────────────────────────────────────────────────────── */
.attorney__name {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.05;
  color: var(--reactor-ink);
  margin-bottom: 0.5rem;
}

.attorney__title-line {
  color: var(--cherenkov);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  margin-bottom: 1.75rem;
}

.attorney__hairline {
  width: 60px;
  height: 1px;
  background: var(--cherenkov);
  opacity: 0.4;
  margin-bottom: 2rem;
}

.attorney__bio {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 1.02rem;
  margin-bottom: 1.35rem;
  max-width: 58ch;
}

.attorney__credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.attorney__cred-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.attorney__cred-label {
  color: var(--cherenkov);
  font-size: 0.63rem;
  letter-spacing: 0.15em;
}

.attorney__cred-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
}


/* ═══════════════════════════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════════════════════════ */

.process {
  padding: 7rem 2.5rem 8rem;
  position: relative;
  overflow: hidden;
}

/* Azure tint strip right side */
.process::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(to left, rgba(30,111,136,0.04) 0%, transparent 100%);
  pointer-events: none;
}

.process__inner {
  max-width: 820px;
  margin: 0 auto;
}

.process__header {
  margin-bottom: 4rem;
}

.process__heading {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--reactor-ink);
  margin-bottom: 1rem;
}

.process__intro {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* Steps ─────────────────────────────────────────────────────────── */
.process__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.25s;
}
.process-step:first-child { border-top: 1px solid var(--hairline); }

.process-step__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.process-step__roman {
  font-size: 0.65rem;
  color: var(--cherenkov);
  letter-spacing: 0.2em;
  padding-top: 0.2em;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  flex-shrink: 0;
}

.process-step__connector {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--hairline), transparent);
  margin-top: 0.5rem;
}

.process-step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--reactor-ink);
  margin-bottom: 0.7rem;
  line-height: 1.2;
}

.process-step__text {
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.78;
  max-width: 56ch;
}


/* ═══════════════════════════════════════════════════════════════════
   BANNER
   ═══════════════════════════════════════════════════════════════════ */

.banner {
  margin: 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.banner__text {
  background: var(--pearl);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(30,111,136,0.05) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: auto, 200px 200px;
  padding: 5rem 4rem;
}

.banner__label {
  color: var(--cherenkov);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
}

.banner__heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--reactor-ink);
  line-height: 1.08;
}

.banner__azure {
  background: var(--cherenkov);
  background-image: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.07) 0%, transparent 60%);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.banner__quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--pearl);
  line-height: 1.5;
  font-weight: 400;
}


/* ═══════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════ */

.contact {
  padding: 8rem 2.5rem;
}

.contact__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact__heading {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  color: var(--reactor-ink);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.contact__body {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-detail__label {
  color: var(--cherenkov);
  font-size: 0.63rem;
  letter-spacing: 0.15em;
}

.contact-detail__value {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}

.contact-detail__value a {
  color: var(--cherenkov);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.contact-detail__value a:hover {
  color: var(--reactor-ink);
  text-decoration-color: var(--cherenkov);
}

.contact__ornament {
  color: var(--ink-faint);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: inline-block;
}

/* Form ──────────────────────────────────────────────────────────── */
.contact__form-col {
  position: relative;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius) + 2px);
  padding: 2.75rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 40px rgba(14,26,42,0.06);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  color: var(--cherenkov);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.form-input {
  width: 100%;
  padding: 0.8em 1em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(242,236,226,0.7);
  border: 1px solid rgba(30,111,136,0.2);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--cherenkov);
  background: rgba(242,236,226,0.95);
  box-shadow: 0 0 0 3px rgba(30,111,136,0.1);
}

.form-input::placeholder {
  color: var(--ink-faint);
  font-style: italic;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231E6F88' opacity='.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.65;
}

.form-note {
  color: var(--ink-faint);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-align: center;
}

/* Success state ─────────────────────────────────────────────────── */
.form-success {
  position: absolute;
  inset: 0;
  background: rgba(242,236,226,0.97);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius) + 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.form-success[hidden] { display: none; }

.form-success__inner {
  text-align: center;
  padding: 3rem;
}

.form-success__diamond {
  display: block;
  font-size: 2rem;
  color: var(--cherenkov);
  margin-bottom: 1.5rem;
  animation: glowPulse 2s ease-in-out infinite;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--reactor-ink);
  margin-bottom: 0.75rem;
}

.form-success__text {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 4rem 2.5rem;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.footer__est {
  color: var(--cherenkov);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.2rem;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--cherenkov); }

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__copy {
  color: var(--ink-soft);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
}

.footer__disclaimer {
  color: var(--ink-faint);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 4rem;
  }
  .hero::after { display: none; }
  .hero__portrait-col { align-items: center; }
  .hero__portrait-frame { max-width: 340px; }
  .hero__content { text-align: center; }
  .hero__actions { justify-content: center; }
  .eyebrow { justify-content: center; }
  .hero__appt { text-align: center; }

  .philosophy__inner { grid-template-columns: 1fr; gap: 3rem; }
  .attorney__inner { grid-template-columns: 1fr; gap: 3rem; }
  .attorney__portrait-col { max-width: 360px; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__legal { grid-column: 1 / -1; }
  .banner__inner { grid-template-columns: 1fr; }
  .banner { margin: 0; border-radius: 0; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(242,236,226,0.97);
    backdrop-filter: blur(16px);
    padding: 1rem 2.5rem 2rem;
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 8px 32px rgba(14,26,42,0.1);
  }

  .nav__links.is-open li { border-bottom: 1px solid var(--hairline); }
  .nav__links.is-open .nav__link,
  .nav__links.is-open .nav__cta {
    display: block;
    padding: 1rem 0;
    font-size: 0.78rem;
    background: none;
    color: var(--ink);
    border-radius: 0;
  }

  /* Dropdown — mobile: inline expansion */
  .nav__links.is-open .nav__item--has-dropdown { border-bottom: none; }
  .nav__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 0.78rem;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
  }
  .nav__dropdown-toggle::after { display: none; }
  .nav__dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out);
  }
  .nav__dropdown::before { display: none; }
  .nav__item--has-dropdown.is-open .nav__dropdown { max-height: 400px; }
  .nav__dropdown-link {
    padding: 0.75rem 0 0.75rem 1rem;
    font-size: 0.74rem;
    border-bottom: 1px solid var(--hairline);
  }
  .nav__dropdown-link:hover { background: transparent; }

  .services__grid { grid-template-columns: 1fr; }
  .attorney__credentials { grid-template-columns: 1fr; }

  .philosophy,
  .services,
  .attorney,
  .process,
  .contact { padding: 5rem 1.5rem; }

  .banner__text,
  .banner__azure { padding: 3.5rem 2rem; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer { padding: 3rem 1.5rem; }

  .contact__form { padding: 2rem; }

  .process-step { grid-template-columns: 60px 1fr; gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero { height: 70vh; }
  .hero__content { padding: 0 1.5rem; }
  .hero__title { font-size: clamp(3rem, 14vw, 4.5rem); }
  .services__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn,
  .hero__actions .btn--ghost-white { width: 100%; justify-content: center; }
}


/* ─── Focus Styles ────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cherenkov);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ─── Selection ───────────────────────────────────────────────────── */
::selection {
  background: rgba(30, 111, 136, 0.2);
  color: var(--reactor-ink);
}
