/* ==========================================================================
   Prospero Legal Services. Design system.
   Palette: emerald green (the firm's actual brand colour) plus warm gold.
   Note: custom property names below still say "navy" for historical reasons,
   but every one of them now holds an emerald green value.
   ========================================================================== */

:root {
  --navy-900: #0b3d31;
  --navy-800: #0f5443;
  --navy-700: #17705a;
  --navy-100: #e5f2ed;
  --charcoal: #1c211f;
  --ink: #1c211f;
  --ink-soft: #5c655f;
  --paper: #fbfaf7;
  --paper-alt: #f2f4f0;
  --line: #dfe4dd;
  --gold: #b8935a;
  --gold-dark: #9c7a45;
  --gold-soft: #e9dcc3;
  --white: #ffffff;

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 2px;
  --shadow-sm: 0 1px 3px rgba(11, 61, 49, 0.07);
  --shadow-md: 0 12px 32px rgba(11, 61, 49, 0.12);

  /* Homepage v2 (Sept 2026 brief): same palette family, named to match the brief.
     --navy-800/--gold/--paper etc above are already near-identical in hue; these
     are used only within the new homepage sections. */
  --hp-font-head: 'Cormorant Garamond', var(--font-head);
  --hp-font-label: 'Montserrat', var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.section {
  padding: 64px 0;
}
.section--tight { padding: 44px 0; }
.section--alt { background: var(--paper-alt); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.section--navy h2, .section--navy h3, .section--navy p { color: var(--white); }
.section--navy .eyebrow { color: var(--gold-soft); }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  white-space: nowrap;
}
.brand-mark {
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 30px; height: 30px; display: block; }
.brand-mark--light { color: var(--gold); }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-dark);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy-900); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-900);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid a, .footer-grid p {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  margin-bottom: 10px;
  display: block;
}
.footer-grid a:hover { color: var(--gold-soft); }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media--card { aspect-ratio: 1/1; background: var(--paper); }
.hero-media--card img { object-fit: contain; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--navy-900);
  font-weight: 600;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }
.card-index {
  font-family: var(--font-head);
  color: var(--gold-dark);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Industry chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--navy-800);
  background: var(--white);
}
.chip--sm {
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- Sector groups ---------- */
.sector-group h3 { margin-bottom: 16px; }

/* ---------- Team: compact cards ---------- */
.team-card-compact {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-100);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
}
.team-card-compact .team-body { padding: 0; }
.team-card-compact .team-body p { margin-bottom: 10px; }
.team-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Team: 3-across grid (Affiliate Partners) ---------- */
.team-grid-3col .team-card-compact {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
}
.team-grid-3col .team-avatar { width: 104px; height: 104px; }
.team-grid-3col .team-expertise { justify-content: center; }

/* ---------- Team ---------- */
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-photo {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--navy-100);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 24px 24px 28px; }
.team-body h3 { margin-bottom: 4px; }
.team-role {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.team-body p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Value list ---------- */
.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.value-list li:first-child { padding-top: 0; }
.value-num {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--gold-dark);
  flex-shrink: 0;
  width: 34px;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 520px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}
.office-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.office-card:last-child { border-bottom: none; }
.office-card h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.office-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }
.form-success {
  display: none;
  background: var(--navy-100);
  border: 1px solid var(--navy-700);
  color: var(--navy-900);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.92rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 64px 0 56px;
  background: var(--navy-900);
  color: var(--white);
}
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 620px; margin-bottom: 0; }
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--gold-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 30px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 0.95rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .brand-text { font-size: 0.86rem; }
  .brand small { display: none; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* ---------- Practice-area photo tiles (Home) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.practice-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
}
.practice-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.practice-tile:hover img { transform: scale(1.07); }
.practice-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,27,46,0.82) 0%, rgba(13,27,46,0.15) 55%, rgba(13,27,46,0.05) 100%);
}
.practice-tile span {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1;
  line-height: 1.25;
}

/* ---------- Forum chips ---------- */
.forum-note {
  max-width: 720px;
  color: var(--ink-soft);
}
.chip--forum {
  border-left: 3px solid var(--navy-900);
}

/* ---------- Blog ---------- */
.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card .post-meta { margin-bottom: 12px; }
.blog-card h3 { margin-bottom: 10px; }
.blog-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.02em;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}
.post-meta .dot { color: var(--line); }
.page-hero .post-meta { color: var(--gold-soft); }

.post-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.post-body p { margin-bottom: 1.3em; }
.post-body h2 { margin-top: 1.6em; font-size: 1.5rem; }
.post-body ol, .post-body ul { margin: 0 0 1.3em; padding-left: 1.3em; }
.post-body li { margin-bottom: 0.4em; }
.post-body blockquote {
  margin: 0 0 1.3em;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--navy-900);
  color: var(--ink-soft);
  font-style: italic;
}
.post-note {
  background: var(--navy-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 1.3em;
}
.post-note p { margin-bottom: 0; color: var(--navy-900); font-weight: 600; }
.post-disclaimer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- About: gallery ---------- */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.about-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.about-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Team page: founders banner + subgroups ---------- */
.team-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: var(--shadow-md);
}
.team-banner img { width: 100%; display: block; max-height: 460px; object-fit: cover; }
.team-group-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
}
.team-group-label span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  white-space: nowrap;
}
.team-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.team-group { margin-bottom: 56px; }
.team-group:last-child { margin-bottom: 0; }
.grid-2-wide { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }

@media (max-width: 960px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Call + Email button group ---------- */
.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-call, .btn-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-call svg, .btn-email svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-call {
  background: var(--navy-900);
  color: var(--white);
}
.btn-call:hover { background: var(--navy-800); }
.btn-email {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-email:hover { background: var(--navy-900); color: var(--white); }
/* on dark sections */
.section--navy .btn-call, .site-footer .btn-call {
  background: var(--gold);
  color: var(--navy-900);
}
.section--navy .btn-call:hover, .site-footer .btn-call:hover { background: var(--gold-dark); }
.section--navy .btn-email, .site-footer .btn-email {
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}
.section--navy .btn-email:hover, .site-footer .btn-email:hover { background: rgba(255,255,255,0.12); }
.btn-call--sm, .btn-email--sm { padding: 9px 16px; font-size: 0.78rem; }

/* ---------- WhatsApp quick-chat chip (home hero) ---------- */
.whatsapp-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 11px 20px 11px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.whatsapp-chip:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.whatsapp-chip-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.whatsapp-chip-icon svg { width: 20px; height: 20px; }
.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsappPulse 2.2s ease-out infinite;
}
@keyframes whatsappPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}
.whatsapp-chip-text { display: flex; flex-direction: column; line-height: 1.3; }
.whatsapp-chip-text strong { font-size: 0.9rem; color: var(--ink); }
.whatsapp-chip-text span { font-size: 0.76rem; color: var(--ink-soft); }
.whatsapp-chip--inline { margin-top: 0; }
.whatsapp-chip--footer {
  display: flex;
  width: fit-content;
  margin: 8px auto 32px;
}

/* Hero is unique to the homepage, so these are safe to scope here. */
.hero .eyebrow { font-family: var(--hp-font-label); }
.hero h1 { font-family: var(--hp-font-head); font-weight: 600; }

/* ---------- Homepage v2: Practice Areas (Section 02) & About (Section 03) ---------- */
.hp-section { padding: 92px 0; }
.hp-eyebrow-label {
  display: block;
  font-family: var(--hp-font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.hp-section h2 { font-family: var(--hp-font-head); font-weight: 600; }
.hp-intro { max-width: 640px; margin: 0 auto; color: var(--ink-soft); }

.hp-practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.hp-practice-card {
  display: block;
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.hp-practice-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.hp-practice-card:focus-visible {
  outline: 2px solid var(--navy-800);
  outline-offset: 3px;
}
.hp-practice-index {
  display: block;
  font-family: var(--hp-font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.hp-practice-card h3 {
  font-family: var(--hp-font-head);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.hp-practice-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }

.hp-section-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 44px;
}

.hp-about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.hp-about-grid .hp-about-copy p { margin-bottom: 18px; }
.hp-about-grid .hp-about-copy p:last-of-type { margin-bottom: 0; }

@media (max-width: 980px) {
  .hp-practice-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hp-section { padding: 64px 0; }
  .hp-practice-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Tabs (Practice Areas / Industries / Forums) ---------- */
.tabs-head {
  display: inline-flex;
  gap: 4px;
  background: var(--paper-alt);
  padding: 5px;
  border-radius: var(--radius);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 11px 22px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}
.tab-btn.active { background: var(--navy-900); color: var(--white); }
.tab-btn:not(.active):hover { color: var(--navy-900); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}
.tab-list-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink);
}
.tab-list-item span { color: var(--gold-dark); font-family: var(--font-head); font-size: 0.8rem; }

@media (max-width: 720px) {
  .tab-list { grid-template-columns: 1fr; }
  .tabs-head { width: 100%; }
  .tab-btn { flex: 1; text-align: center; padding: 10px 12px; }
}

/* ---------- Disclaimer popup ---------- */
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 61, 49, 0.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.disclaimer-overlay[hidden] { display: none; }
.disclaimer-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 34px;
}
.disclaimer-modal .eyebrow { display: block; margin-bottom: 6px; }
.disclaimer-modal h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--navy-900);
  margin-bottom: 18px;
}
.disclaimer-modal p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.6;
}
.disclaimer-modal p:last-of-type { margin-bottom: 0; }
.disclaimer-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}
.disclaimer-actions .btn { width: 100%; justify-content: center; }
body.disclaimer-lock { overflow: hidden; }
