/* ── HERO ─────────────────────────────────── */
body.page-home { background: #0f0f11; }

#home {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: transparent;
  z-index: 1;
}
#mesh-canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: block; z-index: 0;
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 58% 100% at 4% 50%,
    rgba(15,15,17,0.98) 0%,
    rgba(15,15,17,0.85) 30%,
    rgba(15,15,17,0.40) 55%,
    transparent 75%);
}
#home::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, transparent, #0f0f11);
  pointer-events: none; z-index: 2;
}
.hero-inner {
  position: relative; z-index: 3;
  max-width: 1140px; margin: 0 auto; padding: 0 2.5rem;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 120px;
  width: 100%;
}

/* ── Hero text reveal animation ──────────── */
.hero-line { overflow: hidden; display: block; }
.hero-line-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
}
.hero-line-inner.reveal-text { animation: slideUp 0.9s cubic-bezier(0.16,1,0.3,1) forwards; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeIn 0.6s 0.3s forwards;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--red); }
.eyebrow-text { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ── Homepage h1 (distinct from interior h1) */
.page-home h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 900; line-height: 1.04;
  color: var(--white); margin-bottom: 0.1em;
}
.page-home h1 em { font-style: italic; color: var(--red); }

.hero-sub {
  font-size: 1.05rem; color: var(--muted); line-height: 1.8;
  max-width: 480px; margin: 2rem 0 2.5rem;
  opacity: 0; animation: fadeIn 0.8s 1.4s forwards;
}
.hero-actions {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  opacity: 0; animation: fadeIn 0.8s 1.6s forwards;
}

.hero-phone { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.hero-phone:hover { color: var(--white); }
.ph-icon { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }

.hero-stats {
  display: flex; gap: 3.5rem; flex-wrap: wrap;
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0; animation: fadeIn 0.8s 1.8s forwards;
}
.stat-n { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-n sup { font-size: 1rem; color: var(--red); }
.stat-l { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }

/* ── PRACTICE AREAS ──────────────────────── */
#practice { border-top: 1px solid var(--border); background: rgba(33,33,36,0.86); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; margin-bottom: 3.5rem; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.card { background: var(--surface); padding: 2.75rem; transition: background 0.2s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--red); transition: width 0.4s ease; }
.card:hover::before { width: 100%; }
.card:hover { background: var(--raised); }
.card-num { font-family: 'Playfair Display', serif; font-size: 0.8rem; color: var(--border); font-weight: 700; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.75rem; }
.card-link { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-top: auto; display: inline-block; }
a.card:hover .card-link { text-decoration: underline; }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-size: 0.7rem; font-weight: 500; color: var(--light); background: var(--raised); border: 1px solid var(--border); padding: 0.3rem 0.7rem; border-radius: 2px; }

/* ── ABOUT ───────────────────────────────── */
#about { background: rgba(42,42,45,0.90); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; margin-bottom: 5rem; }
blockquote { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-style: italic; color: var(--light); line-height: 1.7; border-left: 2px solid var(--red); padding-left: 1.5rem; margin: 2rem 0; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); margin-top: 2rem; }
.val { padding: 1.25rem; background: var(--bg); }
.val strong { display: block; font-size: 0.82rem; color: var(--white); margin-bottom: 0.25rem; }
.val span { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
.firm-img { background: var(--bg); border: 1px solid var(--border); aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; color: var(--muted); font-size: 0.85rem; overflow: hidden; }
.firm-img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }

/* ── ATTORNEYS (homepage) ────────────────── */
.atty-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.atty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.atty { background: var(--bg); overflow: hidden; transition: background 0.2s; }
.atty:hover { background: var(--raised); }
.atty-photo { aspect-ratio: 3/4; overflow: hidden; position: relative; }
.atty-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.6s ease; }
.atty:hover .atty-photo img { transform: scale(1.03); }
.atty-body { padding: 1.75rem 2rem; }
.atty-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--white); }
.atty-role { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin: 0.25rem 0 1rem; }
.atty-bio { font-size: 0.875rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }
.atty-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.atty-tag { font-size: 0.68rem; color: var(--muted); border: 1px solid var(--border); padding: 0.25rem 0.65rem; border-radius: 2px; }

/* ── WHY US ──────────────────────────────── */
#why { border-top: 1px solid var(--border); background: rgba(33,33,36,0.86); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 3.5rem; }
.why-cell { background: var(--surface); padding: 2.25rem 2rem; transition: background 0.2s; }
.why-cell:hover { background: var(--raised); }
.why-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: rgba(192,57,43,0.25); margin-bottom: 1rem; line-height: 1; }
.why-cell h3 { font-size: 0.88rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.why-cell p { font-size: 0.8rem; color: var(--muted); line-height: 1.7; }

/* ── CONTACT ─────────────────────────────── */
#contact { background: rgba(42,42,45,0.90); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 6rem; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: 2rem; margin-top: 0.5rem; }
.ci-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 0.25rem; }
.ci a, .ci p { font-size: 0.95rem; color: var(--light); text-decoration: none; transition: color 0.2s; line-height: 1.6; }
.ci a:hover { color: var(--white); }
.form-box { background: var(--bg); border: 1px solid var(--border); padding: 2.5rem; }
.form-box h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 0.35rem; }
.form-box > p { font-size: 0.8rem; color: var(--muted); margin-bottom: 2rem; }
.fg { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.fg label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--light); }
.fg input, .fg select, .fg textarea { background: var(--surface); border: 1px solid var(--border); color: var(--white); padding: 0.7rem 1rem; font-size: 0.9rem; font-family: 'Inter', sans-serif; border-radius: 2px; outline: none; width: 100%; transition: border-color 0.15s; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--red); }
.fg select option { background: var(--surface); }
.fg textarea { resize: vertical; min-height: 100px; }
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.7rem; color: var(--muted); margin-top: 0.75rem; line-height: 1.5; }
.form-submit { width: 100%; margin-top: 0.25rem; font-size: 0.82rem; padding: 1rem; }

/* ── REVIEWS ─────────────────────────────── */
#reviews { border-top: 1px solid var(--border); background: rgba(33,33,36,0.86); }
.reviews-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3rem; }
.overall-rating { display: flex; align-items: center; gap: 1rem; }
.big-score { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900; color: var(--white); line-height: 1; }
.stars-row { color: #f5a623; font-size: 1rem; letter-spacing: .1em; }
.rating-sub { font-size: 0.72rem; color: var(--muted); margin-top: .25rem; }
.reviews-carousel { position: relative; min-height: 220px; }
.reviews-slide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); opacity: 0; position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; transition: opacity .6s ease; }
.reviews-slide.active { opacity: 1; position: relative; pointer-events: auto; }
.review-card { background: var(--surface); padding: 2rem; display: flex; flex-direction: column; gap: .75rem; transition: background .2s; }
.review-card:hover { background: var(--raised); }
.review-stars { color: #f5a623; font-size: .85rem; }
.review-text { font-size: .875rem; color: var(--muted); line-height: 1.75; flex: 1; }
.review-author { display: flex; align-items: center; gap: .6rem; margin-top: .25rem; }
.review-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--raised); object-fit: cover; }
.review-name { font-size: .75rem; font-weight: 600; color: var(--light); }
.review-time { font-size: .68rem; color: var(--muted); }
.reviews-loading { text-align: center; color: var(--muted); font-size: .875rem; padding: 3rem 0; }
.carousel-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.75rem; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); border: none; padding: 0; cursor: pointer; transition: background .25s, transform .25s; }
.carousel-dot.active { background: var(--red); transform: scale(1.3); }
.google-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; color: var(--muted); text-decoration: none; margin-top: 2rem; transition: color .2s; }
.google-badge:hover { color: var(--white); }

/* ── BLOG (homepage version) ─────────────── */
#blog { background: rgba(42,42,45,0.90); border-top: 1px solid var(--border); }
.mobile-swipe-hint { display: none; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 3rem; }
.blog-card { background: var(--bg); padding: 2.25rem; display: flex; flex-direction: column; gap: 1rem; transition: background .2s; text-decoration: none; position: relative; overflow: hidden; }
.blog-card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--red); transition: width .4s ease; }
.blog-card:hover::before { width: 100%; }
.blog-card:hover { background: var(--raised); }
.blog-tag { font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.blog-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--white); line-height: 1.3; }
.blog-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.75; flex: 1; }
.blog-meta { font-size: .68rem; color: var(--muted); display: flex; gap: 1rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.blog-read { font-size: .72rem; font-weight: 600; color: var(--red); letter-spacing: .06em; }

/* ── FLOATING CTA ────────────────────────── */
.fp { position: fixed; bottom: 2rem; right: 2rem; z-index: 500; width: 50px; height: 50px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; text-decoration: none; box-shadow: 0 4px 20px rgba(192,57,43,0.4); transition: transform 0.2s, background 0.2s; }
.fp:hover { background: var(--red-dark); transform: scale(1.1); }

/* ── SCROLL REVEAL ───────────────────────── */
.sr { opacity: 1; transform: none; }
.sr.vis { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .cards, .atty-grid, .about-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .fr { grid-template-columns: 1fr; }
  .firm-img { aspect-ratio: 3/2; }
}
@media (max-width: 700px) {
  .reviews-slide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .page-home h1 { font-size: 2.8rem; }

  /* Mobile blog — horizontal swipe carousel */
  .blog-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    background: transparent;
    border: none;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0 1.25rem 1rem;
  }
  .blog-grid::-webkit-scrollbar { display: none; }
  .blog-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    min-width: 260px;
  }
  .blog-card::before { display: none; }
  .mobile-swipe-hint { display: inline; }
}
