/* ═══════════════════════════════════════════════════════
   Sarah Chen — Family Law Attorney
   Design Language: Earthy Organic
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --sand:       #f0e8d8;
  --cream:      #ebe5d9;
  --charcoal:   #2d2418;
  --warm-black: #1a1510;
  --stone:      #9a8a72;
  --gold:       #c4724e;
  --gold-muted: rgba(196,114,78,0.35);
  --text-light: rgba(255,255,255,0.7);
  --text-dark:  #2d2418;
  --serif:      'Libre Baskerville', Georgia, serif;
  --sans:       'Source Sans 3', -apple-system, sans-serif;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

/* ── Scroll Progress ── */
#progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--gold); z-index: 9999;
  width: 0; transition: none;
}

/* ── Loader ── */
#loader {
  position: fixed; inset: 0;
  background: var(--warm-black);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s var(--ease);
}
#loader.done { opacity: 0; pointer-events: none; }
#loader span {
  font-family: var(--serif); font-size: 1.2rem;
  color: var(--text-light); letter-spacing: .15em;
  text-transform: uppercase;
}

/* ── Custom Cursor ── */
.cursor-dot {
  position: fixed; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid var(--gold-muted); border-radius: 50%;
  pointer-events: none; z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 1000;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(26,21,16,0.95);
  backdrop-filter: blur(12px);
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.nav-logo { height: 20px; opacity: 0.9; }
.nav-links { display: flex; gap: clamp(1.2rem, 2.5vw, 2rem); list-style: none; }
.nav-links a {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  color: var(--text-light); text-decoration: none;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; z-index: 1001;
}
.hamburger span {
  width: 22px; height: 1.5px; background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Mobile Menu ── */
#mobile-menu {
  position: fixed; inset: 0;
  background: rgba(26,21,16,0.97);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu a {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff; text-decoration: none; font-weight: 400;
  transition: color 0.3s;
}
#mobile-menu a:hover { color: var(--gold); }

/* ── Hero ── */
.hero {
  position: relative; width: 100%;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(45,36,24,0.92) 0%,
    rgba(45,36,24,0.80) 45%,
    rgba(45,36,24,0.45) 75%,
    rgba(45,36,24,0.20) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 clamp(2rem, 6vw, 5rem);
  max-width: 800px;
}
.hero-tag {
  font-family: var(--sans); font-size: 0.65rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: clamp(1rem, 2vw, 1.5rem);
  opacity: 0; transform: translateY(10px);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400; color: #fff;
  line-height: 1.15; letter-spacing: -0.3px;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.hero-title em {
  font-style: italic; color: var(--gold);
}
.hero-title .word {
  display: inline-block; opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.hero-title .word.visible { opacity: 1; transform: translateY(0); }
.hero-sub {
  font-family: var(--sans); font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--text-light); line-height: 1.7;
  max-width: 520px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.8s var(--ease) 0.2s, transform 0.8s var(--ease) 0.2s;
}
.hero-buttons {
  display: flex; gap: 1rem; margin-top: clamp(1.5rem, 2vw, 2rem);
  flex-wrap: wrap;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.8s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream); background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px; text-decoration: none;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--gold); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px; text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── Section Layouts ── */
.section-sand {
  background: var(--sand);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 2rem);
}
.section-cream {
  background: var(--cream);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 2rem);
}
.section-dark {
  background: var(--charcoal);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 2rem);
}
.container { max-width: min(90%, 1100px); margin: 0 auto; }

/* ── Section Headers ── */
.section-tag {
  font-family: var(--sans); font-size: 0.6rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400; line-height: 1.2;
  margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
}
.section-dark .section-title { color: #fff; }
.section-sub {
  font-size: 0.85rem; color: rgba(45,36,24,0.5);
  line-height: 1.7; max-width: 560px;
  margin-bottom: clamp(2rem, 3vw, 3rem);
}
.section-dark .section-sub { color: rgba(255,255,255,0.4); }

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}
.service-card {
  background: #fff; border-radius: 12px;
  padding: clamp(2rem, 3vw, 2.5rem);
  border: 1px solid rgba(45,36,24,0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(45,36,24,0.1);
}
.service-icon {
  font-size: 1.6rem; margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--serif); font-size: 1.2rem;
  font-weight: 400; margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.82rem; color: rgba(45,36,24,0.55);
  line-height: 1.7;
}

/* ── Stats Row ── */
.stats-row {
  display: flex; justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400; color: #fff;
}
.stat-label {
  font-size: 0.7rem; color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ── Testimonials ── */
.testimonial-card {
  background: #fff; border-radius: 12px;
  padding: clamp(2rem, 3vw, 2.5rem);
  border: 1px solid rgba(45,36,24,0.06);
}
.testimonial-quote {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-style: italic; font-weight: 400;
  line-height: 1.8; color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.testimonial-name {
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-dark);
}
.testimonial-role {
  font-size: 0.7rem; color: var(--stone);
}

/* ── FAQ ── */
.faq-grid { display: grid; gap: 0; }
.faq-item {
  border-bottom: 1px solid rgba(45,36,24,0.08);
  overflow: hidden;
}
.faq-q {
  padding: 1.2rem 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.88rem;
  font-weight: 400; color: var(--text-dark);
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--gold); }
.faq-q::after {
  content: '+'; font-size: 1.2rem; color: var(--stone);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 0.82rem; color: rgba(45,36,24,0.6);
  line-height: 1.7; padding: 0;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-item.open .faq-a {
  max-height: 200px; padding: 0 0 1.2rem;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--charcoal);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}
.cta-banner .section-title { color: #fff; }
.cta-banner .section-sub {
  color: rgba(255,255,255,0.4);
  margin: 0 auto clamp(1.5rem, 2vw, 2rem);
}

/* ── Footer ── */
.footer {
  background: var(--warm-black);
  padding: clamp(3rem, 5vw, 4rem) clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2rem);
}
.footer-grid {
  max-width: min(90%, 1100px); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 3vw, 3rem);
}
.footer-brand p {
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
  line-height: 1.7; margin-top: 1rem; max-width: 300px;
}
.footer h4 {
  font-family: var(--sans); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer a {
  display: block; font-size: 0.8rem;
  color: rgba(255,255,255,0.4); text-decoration: none;
  margin-bottom: 0.6rem; transition: color 0.3s;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: min(90%, 1100px); margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.68rem; color: rgba(255,255,255,0.2);
  display: flex; justify-content: space-between;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { height: auto; min-height: 100svh; padding-top: 6rem; }
  .stats-row { gap: 2rem; }
}
@media (max-width: 480px) {
  .hero { padding-top: 5rem; }
  .hero-buttons { flex-direction: column; }
}
