/* ==========================================================================
   CDuby Law — Design System
   Direction: "The Vault" (refined) — Dark + Muted Brass
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --color-base: #1C1C1E;
  --color-surface: #232326;
  --color-surface-alt: #2A2A2E;
  --color-accent: #B8A88A;
  --color-accent-hover: #CABEA2;
  --color-accent-dim: rgba(184, 168, 138, 0.15);
  --color-navy: #2E4263;
  --color-navy-hover: #3A5278;
  --color-navy-dim: rgba(46, 66, 99, 0.2);
  --color-navy-light: #3B5580;
  --color-text: #E8E3DB;
  --color-text-muted: #8A847C;
  --color-text-dark: #2C2A27;
  --color-light-bg: #F2EDE7;
  --color-light-bg-alt: #E8E2DA;
  --color-white-bg: #FAFAF8;
  --color-border: #3A3836;
  --color-border-light: #D4CFC8;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 900px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --section-pad-sm: clamp(2.5rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-base);
  overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-base); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

.heading-xl {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

.heading-md {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.heading-sm {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-accent-hover); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}

.section--dark { background: var(--color-base); }
.section--surface { background: var(--color-surface); }
.section--surface-alt { background: var(--color-surface-alt); }

.section--light {
  background: var(--color-light-bg);
  color: var(--color-text-dark);
}
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 { color: var(--color-text-dark); }
.section--light .text-muted { color: #6B665E; }
.section--light .section-label { color: #8B7D6B; }

.section--white {
  background: var(--color-white-bg);
  color: var(--color-text-dark);
}
.section--white h1,
.section--white h2,
.section--white h3,
.section--white h4 { color: var(--color-text-dark); }
.section--white .text-muted { color: #5A564E; }
.section--white .section-label { color: var(--color-navy); }

.section--navy {
  background: var(--color-navy);
  color: #fff;
}
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: #fff; }
.section--navy .text-muted { color: rgba(255,255,255,0.6); }
.section--navy .section-label { color: var(--color-accent); }
.section--navy a { color: var(--color-accent); }

/* Navy section-label variant (on any dark bg) */
.section-label--navy { color: var(--color-navy-light); }
.section--light .section-label--navy { color: var(--color-navy); }
.section--white .section-label--navy { color: var(--color-navy); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --- Divider (line with diamond) --- */
.divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.divider__diamond {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section--light .divider::before,
.section--light .divider::after {
  background: var(--color-border-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-base);
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-base);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--outline:hover {
  background: var(--color-accent-dim);
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn--dark {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--dark:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.section--light .btn--outline {
  color: #6B5D4B;
  border-color: #6B5D4B;
}
.section--light .btn--outline:hover {
  background: rgba(107, 93, 75, 0.08);
}

.btn--navy {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}
.btn--navy:hover {
  background: var(--color-navy-hover);
  border-color: var(--color-navy-hover);
  color: #fff;
}

.btn--navy-outline {
  background: transparent;
  color: var(--color-navy-light);
  border-color: var(--color-navy);
}
.btn--navy-outline:hover {
  background: var(--color-navy-dim);
  color: #fff;
  border-color: var(--color-navy-hover);
}

.section--light .btn--navy-outline,
.section--white .btn--navy-outline { color: var(--color-navy); }

.section--white .divider::before,
.section--white .divider::after { background: var(--color-border-light); }

/* Navy stat variant */
.section--navy .stat__number { color: var(--color-accent); opacity: 1; }
.section--navy .stat__label { color: rgba(255,255,255,0.6); }

/* Navy practice item accent */
.practice-item--navy { border-color: var(--color-border); }
.practice-item--navy:hover { border-bottom-color: var(--color-navy-light); }
.practice-item--navy .practice-item__number { color: var(--color-navy-light); }
.practice-item--navy:hover .practice-item__title { color: var(--color-navy-light); }
.section--light .practice-item--navy .practice-item__number { color: var(--color-navy); }
.section--light .practice-item--navy:hover .practice-item__title { color: var(--color-navy); }
.section--white .practice-item--navy { border-color: var(--color-border-light); }
.section--white .practice-item--navy .practice-item__number { color: var(--color-navy); }
.section--white .practice-item--navy:hover .practice-item__title { color: var(--color-navy); }

/* Navy card top-border variant */
.practice-detail--navy { border-left-color: var(--color-navy-light); }
.practice-detail--navy .practice-detail__number { color: var(--color-navy-light); }
.section--light .practice-detail--navy .practice-detail__number,
.section--white .practice-detail--navy .practice-detail__number { color: var(--color-navy); }

/* Practice detail CTA link */
.practice-detail__cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.practice-detail__cta:hover { color: var(--color-accent-hover); }
.section--light .practice-detail__cta { color: #6B5D4B; }
.section--light .practice-detail__cta:hover { color: #4A3F33; }
.section--white .practice-detail__cta { color: var(--color-navy); }
.section--white .practice-detail__cta:hover { color: var(--color-navy-hover); }

/* --- Areas We Serve: courthouse cards --- */
.area-court-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.area-courts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.area-court {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--color-accent-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

.area-court strong {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
}

.section--white .area-court strong,
.section--light .area-court strong { color: var(--color-text-dark); }

.area-court__towns {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  line-height: 1.6;
}

.section--navy .area-court { border-left-color: rgba(184, 168, 138, 0.3); }
.section--navy .area-court strong { color: #fff; }

.area-case-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.area-case-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
  line-height: 1.6;
}

.area-case-list li:last-child { border-bottom: none; }

/* Navy blockquote variant */
.blockquote--navy { border-left-color: var(--color-navy-light); }
.blockquote--navy::before { color: var(--color-navy-light); }

/* --- Phone Link --- */
.phone-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.phone-link:hover { color: var(--color-accent-hover); }

.phone-link--large {
  font-size: 1.4rem;
  font-weight: 600;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav--scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(28, 28, 30, 0.97);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  max-width: none;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.nav__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.nav__firm-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav__firm-type {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  white-space: nowrap;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-text);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__phone-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__phone {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav__phone:hover { color: var(--color-accent-hover); }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }

  .nav__right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 2rem;
    transition: right 0.35s ease;
    border-left: 1px solid var(--color-border);
  }

  .nav__right.open { right: 0; }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav__links a { font-size: 1rem; }

  .nav__phone-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 28, 30, 0.93) 0%,
    rgba(28, 28, 30, 0.85) 50%,
    rgba(28, 28, 30, 0.78) 100%
  );
}

/* Subtle animated diagonal lines — unique visual element */
.hero__lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
}

.hero__lines::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 80px,
    var(--color-accent) 80px,
    var(--color-accent) 81px
  );
  animation: hero-lines-drift 30s linear infinite;
}

@keyframes hero-lines-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  max-width: 700px;
  letter-spacing: -0.02em;
}

.hero__tagline em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__phone-fallback {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Section Number (editorial element) --- */
.section-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-accent);
  opacity: 0.5;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

.section--light .section-number { color: #8B7D6B; }

/* --- Practice Area Items --- */
.practice-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: border-color 0.3s ease;
}

.practice-item:first-child { border-top: 1px solid var(--color-border); }
.practice-item:hover { border-bottom-color: var(--color-accent); }

.section--light .practice-item { border-color: var(--color-border-light); }
.section--light .practice-item:hover { border-bottom-color: #8B7D6B; }

.practice-item__number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-accent);
  opacity: 0.4;
  width: 2.5rem;
  padding-top: 0.2rem;
}

.section--light .practice-item__number { color: #8B7D6B; }

.practice-item__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.practice-item:hover .practice-item__title { color: var(--color-accent); }
.section--light .practice-item:hover .practice-item__title { color: #6B5D4B; }

.practice-item__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.section--light .practice-item__desc { color: #6B665E; }

/* Practice area detail cards (services page) */
.practice-detail {
  padding: var(--section-pad-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.practice-detail:last-child { border-bottom: none; }

.practice-detail__header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.practice-detail__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.25;
  line-height: 1;
}

.practice-detail__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.practice-detail__body {
  max-width: 720px;
  margin-left: 4.5rem;
}

.practice-detail__body p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .practice-detail__body { margin-left: 0; }
  .practice-detail__header { flex-direction: column; gap: 0.25rem; }
}

/* --- Blockquote --- */
.blockquote {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--color-accent);
}

.blockquote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: -1.5rem;
  left: 1.5rem;
  line-height: 1;
}

.blockquote__text {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.blockquote__cite {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.section--light .blockquote { border-left-color: #8B7D6B; }
.section--light .blockquote::before { color: #8B7D6B; }

/* --- Stats --- */
.stat {
  text-align: left;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.team-member {
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.team-member:hover { border-color: var(--color-accent); }

.team-member__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__photo-placeholder {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-border);
  letter-spacing: 0.05em;
}

.team-member__info {
  padding: 1.75rem;
}

.team-member__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-member__title {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.team-member__bio {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.team-member__credentials {
  list-style: none;
  padding: 0;
}

.team-member__credentials li {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0.3rem 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 0.5rem;
}

.team-member__credentials li::before {
  content: '\25C6';
  color: var(--color-accent);
  font-size: 0.5rem;
  line-height: 2;
  opacity: 0.6;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A847C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-select option { background: var(--color-surface); }

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.form-status {
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.form-status--success {
  display: block;
  background: rgba(80, 140, 80, 0.15);
  border: 1px solid rgba(80, 140, 80, 0.3);
  color: #8BC48B;
}

.form-status--error {
  display: block;
  background: rgba(180, 70, 70, 0.15);
  border: 1px solid rgba(180, 70, 70, 0.3);
  color: #D4847A;
}

/* --- CTA Band --- */
.cta-band {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  padding: var(--section-pad) 0;
}

.cta-band__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--color-base);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
}

.footer__links li { margin-bottom: 0.5rem; }

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--color-text); }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer__disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
  max-width: 480px;
  text-align: right;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__disclaimer { text-align: center; }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--left {
  transform: translateX(-30px);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.56s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.64s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* ==========================================================================
   Team — Clickable Cards & Individual Bio Pages
   ========================================================================== */

/* --- Clickable team card --- */
a.team-member--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.team-member--link:hover {
  border-color: var(--color-accent);
}

a.team-member--link:hover .team-member__name {
  color: var(--color-accent);
}

a.team-member--link:hover .team-member__more {
  color: var(--color-accent-hover);
}

a.team-member--link:hover .team-member__photo-placeholder {
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.team-member__more {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 1rem;
  transition: color 0.2s ease;
}

.team-member__more a {
  color: var(--color-text-muted);
}
.team-member__more a:hover {
  color: var(--color-accent);
}

/* --- Back link --- */
.attorney-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.attorney-back:hover { color: var(--color-accent); }

/* --- Attorney profile layout --- */
.attorney-profile {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
  padding-top: 3rem;
}

@media (max-width: 900px) {
  .attorney-profile {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Photo column */
.attorney-profile__photo-col {
  position: sticky;
  top: 6rem;
}

@media (max-width: 900px) {
  .attorney-profile__photo-col {
    position: static;
    max-width: 340px;
  }
}

.attorney-profile__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.attorney-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attorney-profile__placeholder {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-border);
  letter-spacing: 0.05em;
}

.attorney-profile__contact {
  display: flex;
  flex-direction: column;
}

/* Info column */
.attorney-profile__bio {
  margin-bottom: 2.5rem;
}

.attorney-profile__bio p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.attorney-profile__section {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.attorney-profile__section-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.attorney-profile__list {
  list-style: none;
  padding: 0;
}

.attorney-profile__list li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.attorney-profile__list li::before {
  content: '\25C6';
  color: var(--color-accent);
  font-size: 0.45rem;
  flex-shrink: 0;
  opacity: 0.5;
  position: relative;
  top: -1px;
}

/* --- Other team members strip --- */
.attorney-others {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.attorney-others__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}

.attorney-others__item:hover {
  border-color: var(--color-accent);
}

.attorney-others__initials {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.attorney-others__item:hover .attorney-others__initials {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.attorney-others__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.attorney-others__title {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Navy bg overrides for attorney-others */
.section--navy .attorney-others__item {
  border-color: rgba(255,255,255,0.15);
}
.section--navy .attorney-others__item:hover {
  border-color: var(--color-accent);
}
.section--navy .attorney-others__initials {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
}
.section--navy .attorney-others__item:hover .attorney-others__initials {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.section--navy .attorney-others__name { color: #fff; }
.section--navy .attorney-others__title { color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Services Page — Visual Variety
   ========================================================================== */

/* --- Page hero (short, with bg image) --- */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 28, 30, 0.95) 0%,
    rgba(28, 28, 30, 0.82) 60%,
    rgba(28, 28, 30, 0.97) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

/* --- Section with background image --- */
.section--bg {
  position: relative;
  overflow: hidden;
}

.section--bg > .section__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  filter: grayscale(100%);
}

/* --- Split layout (image + content) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__image {
  position: relative;
  overflow: hidden;
}

.split__image img,
.split__image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__image-bg {
  background-size: cover;
  background-position: center;
}

.split__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 28, 30, 0) 60%,
    rgba(28, 28, 30, 1) 100%
  );
}

.split--reverse .split__image::after {
  background: linear-gradient(
    -90deg,
    rgba(28, 28, 30, 0) 60%,
    rgba(28, 28, 30, 1) 100%
  );
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-pad) clamp(2rem, 5vw, 4rem);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .split--reverse { direction: ltr; }
  .split__image {
    height: 300px;
  }
  .split__image::after {
    background: linear-gradient(
      180deg,
      rgba(28, 28, 30, 0) 40%,
      rgba(28, 28, 30, 1) 100%
    );
  }
  .split--reverse .split__image::after {
    background: linear-gradient(
      180deg,
      rgba(28, 28, 30, 0) 40%,
      rgba(28, 28, 30, 1) 100%
    );
  }
}

/* --- Watermark number (big faded number behind content) --- */
.section--watermark {
  position: relative;
  overflow: hidden;
}

.section--watermark::before {
  content: attr(data-number);
  font-family: var(--font-heading);
  font-size: clamp(15rem, 25vw, 25rem);
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.04;
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.section--watermark > .container {
  position: relative;
  z-index: 1;
}

/* --- Interstitial (visual break between groups) --- */
.interstitial {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.interstitial__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.interstitial__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 30, 0.88);
}

.interstitial__content {
  position: relative;
  z-index: 2;
}

.interstitial__text {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.interstitial__sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Offset layout (push content to one side) --- */
.practice-detail--offset-right .practice-detail__body {
  margin-left: auto;
  margin-right: 0;
  max-width: 620px;
}

.practice-detail--offset-left .practice-detail__header,
.practice-detail--offset-left .practice-detail__body {
  margin-left: 0;
  max-width: 620px;
}

/* --- Callout treatment (urgent sections) --- */
.practice-detail--callout {
  border-left: 3px solid var(--color-accent);
  padding-left: 2rem;
}

.practice-detail--callout .practice-detail__body p:first-child {
  font-size: 1.15rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.6;
}

/* --- Group header (sub-section divider) --- */
.group-header {
  padding: var(--section-pad-sm) 0;
  text-align: center;
}

.group-header__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.group-header__label::before,
.group-header__label::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--color-border);
}

/* --- Wide practice detail (full container width) --- */
.practice-detail--wide {
  max-width: none;
}

.practice-detail--wide .practice-detail__body {
  max-width: none;
  margin-left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 640px) {
  .practice-detail--wide .practice-detail__body {
    grid-template-columns: 1fr;
  }
  .practice-detail--callout {
    padding-left: 1rem;
  }
}
