/* ============================================
   GAVEL ADS — Dark Luxe Legal Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600;700&family=Tabular+Nums:wght@400&display=swap');

/* --- CSS Variables --- */
:root {
  --black: #08080c;
  --bg-primary: #0b0b10;
  --bg-secondary: #101018;
  --bg-card: #15151f;
  --bg-card-hover: #1a1a28;
  --bg-elevated: #1e1e2e;
  --gold: #c8a55a;
  --gold-light: #dfc07f;
  --gold-dim: #9a7d3a;
  --gold-glow: rgba(200, 165, 90, 0.15);
  --cream: #f5f0e8;
  --cream-dim: #b8b0a0;
  --text-primary: #eae5db;
  --text-secondary: #8a8596;
  --text-muted: #5a5568;
  --border: rgba(200, 165, 90, 0.12);
  --border-hover: rgba(200, 165, 90, 0.3);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --radius: 2px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  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");
  pointer-events: none;
  z-index: 9999;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 65ch;
}

.text-gold {
  color: var(--gold);
}

.text-cream {
  color: var(--cream);
}

/* --- Layout --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
}

.section--dark {
  background: var(--bg-secondary);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition);
  background: transparent;
}

.nav--scrolled {
  background: rgba(11, 11, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav__logo svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
  position: relative;
}

.nav__link:hover {
  color: var(--cream);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__dropdown-trigger svg {
  width: 10px;
  height: 10px;
  fill: var(--text-secondary);
  transition: transform var(--transition);
}

.nav__dropdown:hover .nav__dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -1rem;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 0.7rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav__dropdown-item:hover {
  color: var(--cream);
  background: var(--gold-glow);
  padding-left: 1.8rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.95rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--gold-light);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(200, 165, 90, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}

.btn--outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn--large {
  padding: 1.15rem 2.8rem;
  font-size: 0.92rem;
}

.btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 165, 90, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__subtitle {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--cream-dim);
  margin-bottom: 2.5rem;
  max-width: 580px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

/* Decorative gavel line */
.hero__decoration {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.04;
  z-index: 1;
}

.hero__decoration svg {
  width: 500px;
  height: 500px;
  fill: var(--gold);
}

/* --- Stats Bar --- */
.stats {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats__item {
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}

.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border);
}

.stats__number {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats__label {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* --- Practice Areas --- */
.areas__header {
  text-align: center;
  margin-bottom: 4rem;
}

.areas__header p {
  margin: 1rem auto 0;
}

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

.area-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: all 0.4s ease;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.area-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.area-card:hover::before {
  transform: scaleX(1);
}

.area-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.area-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.area-card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.area-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.area-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition);
}

.area-card:hover .area-card__link {
  gap: 0.8rem;
}

.area-card__link svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

/* Wide card for the last two items */
.areas__grid--bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* --- How It Works --- */
.how__header {
  text-align: center;
  margin-bottom: 5rem;
}

.how__header p {
  margin: 1rem auto 0;
}

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

.how__steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-hover), transparent);
}

.how__step {
  text-align: center;
  position: relative;
}

.how__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold-dim);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2rem;
  position: relative;
  background: var(--bg-secondary);
}

.how__step-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.how__step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto;
}

/* --- Social Proof / Testimonials --- */
.proof__header {
  text-align: center;
  margin-bottom: 4rem;
}

.proof__header p {
  margin: 1rem auto 0;
}

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

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
}

.proof-card__quote {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.proof-card__quote::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--gold-dim);
  line-height: 0;
  position: absolute;
  top: 2.8rem;
  left: 1.5rem;
  opacity: 0.4;
}

.proof-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.proof-card__avatar {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.proof-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream);
}

.proof-card__role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* --- Results Section --- */
.results__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.results__content h2 {
  margin-bottom: 1.5rem;
}

.results__content p {
  margin-bottom: 2rem;
}

.results__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.result-metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
}

.result-metric__value {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.result-metric__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- CTA Section --- */
.cta {
  text-align: center;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(200, 165, 90, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta h2 {
  margin-bottom: 1.2rem;
  position: relative;
}

.cta p {
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.15rem;
}

.cta .btn {
  position: relative;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 3rem;
  background: var(--black);
}

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

.footer__brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__brand svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
}

.footer__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__links a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--cream);
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.fade-in--d1 { transition-delay: 0.1s; }
.fade-in--d2 { transition-delay: 0.2s; }
.fade-in--d3 { transition-delay: 0.3s; }
.fade-in--d4 { transition-delay: 0.4s; }
.fade-in--d5 { transition-delay: 0.5s; }

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

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: all var(--transition);
}

/* --- Practice Area Page Hero --- */
.page-hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(200, 165, 90, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.page-hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.page-hero__title {
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.page-hero__desc {
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* --- Pain Points --- */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  gap: 1.2rem;
}

.pain-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid var(--border);
}

.pain-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.pain-card__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.pain-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Features List --- */
.features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--gold);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.feature__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.feature__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .areas__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
  }

  .hero {
    min-height: 90vh;
  }

  .hero__decoration {
    display: none;
  }

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

  .stats__item:nth-child(2)::after {
    display: none;
  }

  .areas__grid,
  .areas__grid--bottom {
    grid-template-columns: 1fr;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .how__steps::before {
    display: none;
  }

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

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

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

  .footer__bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

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

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