/* ── Animations ──────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.practice-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.practice-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.practice-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.practice-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }
.practice-grid [data-animate]:nth-child(6) { transition-delay: 0.4s; }

/* Chat mockup staggered appearance */
.chat-demo-msg {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.chat-demo-msg.msg-visible {
  opacity: 1;
  transform: translateY(0);
}
.chat-demo-msg:nth-child(2) { transition-delay: 0.4s; }
.chat-demo-msg:nth-child(3) { transition-delay: 0.8s; }
.chat-demo-msg:nth-child(4) { transition-delay: 1.2s; }

/* Counter animation */
.stat-number {
  display: inline-block;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(12, 18, 32, 0.95);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-dark);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo span {
  font-family: var(--font-heading);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--white);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--gold) !important;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s;
}
.btn-nav:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold) !important;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold-outline {
  padding: 14px 32px;
  font-size: 15px;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold-border);
}
.btn-gold-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.btn-white {
  padding: 14px 32px;
  font-size: 15px;
  background: var(--white);
  color: var(--bg);
  border: none;
}
.btn-white:hover {
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn-gold-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: gap 0.2s;
}
.btn-gold-text:hover {
  gap: 12px;
}
.btn-gold-text svg {
  width: 14px;
  height: 14px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1600&q=80');
  background-size: cover;
  background-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, 0.75);
}

.hero-depth {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(12, 18, 32, 0.3) 0%, rgba(12, 18, 32, 0.9) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust indicators below hero CTA */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.hero-trust-item {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  padding: 0 20px;
}

.hero-trust-item + .hero-trust-item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Practice Areas (dark section) ───────────────────────── */
.practice-section {
  background: var(--bg-alt);
  padding: 120px 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 16px;
}

.practice-header {
  margin-bottom: 64px;
}

.practice-header h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

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

.practice-card {
  background: var(--card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.practice-card:hover {
  border-color: #3A4458;
  transform: translateY(-2px);
}

.practice-card-accent {
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}

.practice-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.practice-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.practice-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  transition: gap 0.2s;
}
.practice-card-link:hover {
  gap: 10px;
}
.practice-card-link svg {
  width: 14px;
  height: 14px;
}

/* ── About / Firm Story (light section) ──────────────────── */
.about-section {
  background: var(--light);
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

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

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.about-text p {
  font-size: 16px;
  color: #5A6070;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.about-stat {
  text-align: left;
}

.about-stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 14px;
  color: #5A6070;
  font-weight: 500;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  margin-top: 12px;
  transition: gap 0.2s;
}
.about-link:hover {
  gap: 12px;
}
.about-link svg {
  width: 14px;
  height: 14px;
}

/* ── AI Intake Section (dark) ────────────────────────────── */
.ai-section {
  background: var(--bg);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-text h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.ai-text-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.ai-compliance {
  font-size: 13px;
  color: rgba(139, 149, 165, 0.6);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 28px;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.ai-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
}

.ai-feature svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Chat mockup -- dark card */
.chat-mockup {
  background: var(--card);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.chat-mockup-header {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.chat-mockup-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.chat-mockup-status {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.chat-mockup-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
}

.chat-demo-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-demo-msg.msg-user {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  align-self: flex-end;
}

.chat-demo-msg.msg-bot {
  background: transparent;
  color: var(--text-muted);
  align-self: flex-start;
  border: 1px solid var(--border-dark);
}

/* ── Testimonials (dark section) ─────────────────────────── */
.testimonials-section {
  background: var(--bg-alt);
  padding: 120px 0;
}

.testimonials-header {
  margin-bottom: 56px;
}

.testimonials-header h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

/* Featured (large) testimonial */
.testimonial-featured {
  margin-bottom: 48px;
  padding-left: 32px;
  border-left: 3px solid var(--gold);
}

.testimonial-featured blockquote {
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.testimonial-featured .testimonial-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
}

.testimonial-featured .testimonial-detail {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Secondary testimonials */
.testimonials-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.testimonial-small {
  padding-left: 20px;
  border-left: 2px solid var(--border-dark);
}

.testimonial-small blockquote {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-small .testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

.testimonial-small .testimonial-detail {
  font-size: 13px;
  color: rgba(139, 149, 165, 0.6);
  margin-top: 2px;
}

/* ── Consultation CTA Section ────────────────────────────── */
.cta-section {
  background: linear-gradient(180deg, var(--cta-from) 0%, var(--cta-to) 100%);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 100px 0;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cta-section .cta-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.cta-phone {
  font-size: 18px;
  color: var(--gold);
  font-weight: 500;
  margin-top: 20px;
  display: inline-block;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  padding: 72px 0 36px;
  border-top: 2px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  display: block;
}

.footer-brand .footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 280px;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}
.footer-phone svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.6;
  max-width: 680px;
}

.footer-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-copy a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copy a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* ── Chat Widget (functional, dark themed) ───────────────── */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
  transition: background 0.2s;
  border: none;
}
.chat-toggle:hover {
  background: var(--gold-hover);
}

.chat-widget {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 400px;
  height: 520px;
  background: var(--card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-header {
  padding: 16px 20px;
  background: var(--bg);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dark);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.chat-header-name {
  font-size: 15px;
  font-weight: 600;
}

.chat-header-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.chat-close {
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
}

.chat-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 85%;
}

.chat-msg.bot {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  align-self: flex-start;
  border: 1px solid var(--border-dark);
}

.chat-msg.user {
  background: var(--gold);
  color: var(--bg);
  align-self: flex-end;
}

.chat-compliance {
  font-size: 11px;
  color: rgba(139, 149, 165, 0.5);
  font-style: italic;
  text-align: center;
  padding: 8px 16px 0;
}

.chat-input-wrap {
  display: flex;
  padding: 14px;
  border-top: 1px solid var(--border-dark);
  gap: 10px;
  background: var(--bg);
}

.chat-input-wrap input {
  flex: 1;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-wrap input:focus {
  border-color: var(--gold);
}

.chat-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.chat-input-wrap button {
  padding: 10px 18px;
  background: var(--gold);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-input-wrap button:hover {
  background: var(--gold-hover);
}

/* ── Hamburger ───────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s;
}

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

/* ── Responsive: 1024px ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-headline { font-size: 48px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .ai-grid { gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-stats { gap: 32px; }
  .testimonials-secondary { gap: 24px; }
}

/* ── Responsive: 768px ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 18, 32, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 99;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 20px; color: var(--white); }

  .hero { height: 100vh; }
  .hero-headline { font-size: 40px; }
  .hero-sub { font-size: 16px; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .hero-trust-item + .hero-trust-item { border-left: none; padding: 0; }

  .practice-section,
  .about-section,
  .ai-section,
  .testimonials-section,
  .cta-section { padding: 80px 0; }

  .practice-header h2,
  .about-text h2,
  .ai-text h2,
  .testimonials-header h2,
  .cta-section h2 { font-size: 32px; }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image {
    aspect-ratio: 16 / 10;
  }
  .about-stats {
    flex-direction: column;
    gap: 24px;
  }

  .ai-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonial-featured blockquote { font-size: 18px; }
  .testimonials-secondary { grid-template-columns: 1fr; }

  .cta-section .btn { width: 100%; max-width: 320px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-copy {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }

  .chat-widget {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 88px;
    height: 460px;
  }
}
