/* Barthelemy Law — palette matched to LegalVault Pro (navy + gold) */
:root {
  --navy: hsl(222 47% 14%);
  --navy-deep: hsl(222 47% 11%);
  --navy-80: hsl(222 47% 18%);
  --gold: hsl(43 74% 49%);
  --gold-light: hsl(43 74% 92%);
  --gold-hover: hsl(43 74% 42%);
  --bg: hsl(220 20% 97%);
  --fg: hsl(222 47% 11%);
  --muted: hsl(222 12% 42%);
  --card: #ffffff;
  --border: hsl(220 14% 88%);
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.30);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; color: var(--navy); font-weight: 700; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: all .2s ease; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-hover); color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Header */
header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 8px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; color: var(--navy); line-height: 1.1; }
.brand-name span { display: block; font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--fg); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; color: var(--navy); font-size: 15px; }
.hamburger { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-80) 100%); color: #fff; overflow: hidden; }
.hero::after { content: ''; position: absolute; top: -120px; right: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(212,175,55,.18), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 96px 0; position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(38px, 5vw, 60px); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { font-size: 18px; color: rgba(255,255,255,.82); margin-bottom: 32px; max-width: 540px; }
.hero-badges { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge b { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--gold); }
.hero-badge span { font-size: 13px; color: rgba(255,255,255,.7); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 32px; backdrop-filter: blur(6px); }
.hero-card h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.hero-card .field { margin-bottom: 14px; }
.hero-card label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.hero-card input, .hero-card textarea, .hero-card select { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.9); font-size: 14px; font-family: inherit; }

/* Ribbon */
.ribbon { background: var(--gold); color: var(--navy-deep); text-align: center; padding: 12px; font-weight: 600; font-size: 14px; letter-spacing: .5px; }

/* Cards / grid */
.grid { display: grid; gap: 26px; }
.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(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--gold-light); color: var(--gold-hover); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.split .portrait { background: var(--navy); border-radius: 16px; aspect-ratio: 4/5; display: grid; place-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.split .portrait .initials { font-family: 'Playfair Display', serif; font-size: 120px; color: var(--gold); opacity: .9; }
.split .portrait .tag { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(11,17,32,.9)); padding: 28px 26px 22px; }
.split .portrait .tag b { color: #fff; font-family: 'Playfair Display', serif; font-size: 22px; }
.split .portrait .tag span { display: block; color: var(--gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--fg); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--gold-light); color: var(--gold-hover); border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* Stats band */
.band { background: var(--navy); color: #fff; }
.band .grid-4 { text-align: center; }
.band .stat b { font-family: 'Playfair Display', serif; font-size: 46px; color: var(--gold); display: block; }
.band .stat span { color: rgba(255,255,255,.72); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--navy-deep), var(--navy-80)); color: #fff; text-align: center; border-radius: 20px; padding: 64px 40px; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 18px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Page hero (subpages) */
.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; padding: 78px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 640px; margin: 0 auto; }
.crumbs { color: rgba(255,255,255,.6); font-size: 14px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold); }

/* Profile */
.profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }
.profile .portrait { background: var(--navy); border-radius: 16px; aspect-ratio: 4/5; display: grid; place-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; position: sticky; top: 100px; }
.profile .portrait .initials { font-family: 'Playfair Display', serif; font-size: 130px; color: var(--gold); }
.profile h2 { font-size: 30px; margin: 28px 0 14px; }
.profile p { color: var(--muted); margin-bottom: 16px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.badge { background: var(--gold-light); color: var(--gold-hover); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.detail { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.detail h4 { font-family: 'Inter', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 8px; }
.detail p { margin: 0; color: var(--fg); font-size: 15px; }

/* FAQ / accordion */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 22px 26px; background: none; border: none; font-family: 'Playfair Display', serif; font-size: 18px; color: var(--navy); font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .plus { color: var(--gold); font-size: 24px; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 26px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 22px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 38px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--navy); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-light); }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item .ic { width: 48px; height: 48px; flex-shrink: 0; background: var(--navy); color: var(--gold); border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.info-item h4 { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--navy); margin-bottom: 3px; }
.info-item p, .info-item a { color: var(--muted); font-size: 15px; }
.info-item a:hover { color: var(--gold); }
.map-embed { border-radius: 14px; overflow: hidden; margin-top: 20px; border: 1px solid var(--border); }
.form-note { background: var(--gold-light); border-radius: 8px; padding: 14px; font-size: 13px; color: var(--gold-hover); margin-top: 8px; }

/* Testimonials */
.quote { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.quote .stars { color: var(--gold); font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.quote p { font-style: italic; color: var(--fg); margin-bottom: 16px; }
.quote .who { font-weight: 700; color: var(--navy); font-size: 15px; }

/* Footer */
footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { font-size: 15px; transition: color .2s; }
footer a:hover { color: var(--gold); }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { font-size: 14px; margin-top: 14px; max-width: 280px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.55); }
.foot-bottom a:hover { color: var(--gold); }
.disclaimer { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 18px; line-height: 1.6; }

@media (max-width: 900px) {
  .hero-inner, .split, .profile, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .profile .portrait { position: relative; top: 0; max-width: 340px; margin: 0 auto; }
  .nav-links, .nav-phone, .nav-cta { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); z-index: 99; }
  .hamburger { display: block; }
  .detail-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 60px 0; gap: 36px; }
  .split { gap: 36px; }
}

/* ---- Phone (<=640px): tighten type, spacing, and kill horizontal overflow ---- */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }

  /* Prevent grid/flex children from forcing the page wider than the viewport */
  .hero-inner > *, .split > *, .profile > *, .contact-grid > * { min-width: 0; }
  .hero-inner, .split, .profile, .contact-grid { max-width: 100%; }
  /* Decorative hero glow must not create horizontal scroll */
  .hero::after { right: -80px; width: 300px; height: 300px; }
  input, textarea, select { max-width: 100%; }

  .grid-2, .grid-3, .grid-4, .foot-grid { grid-template-columns: 1fr; }
  .foot-grid { gap: 30px; }
  .card { padding: 24px; }

  /* Header / brand */
  .nav { height: 66px; }
  .nav-links.open { top: 66px; }
  .brand-mark { width: 38px; height: 38px; font-size: 18px; }
  .brand-name { font-size: 17px; }

  /* Ribbon */
  .ribbon { font-size: 12px; padding: 10px 14px; line-height: 1.4; }

  /* Hero */
  .hero-inner { padding: 44px 0; gap: 28px; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badges { gap: 20px; margin-top: 30px; }
  .hero-badge b { font-size: 26px; }
  .hero-card { padding: 24px; }

  /* Page hero (subpages) */
  .page-hero { padding: 52px 0; }
  .page-hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .page-hero p { font-size: 16px; }

  /* Section headings */
  .section-head { margin-bottom: 38px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 32px); }
  .section-head p { font-size: 16px; }
  .split h2 { font-size: clamp(25px, 7vw, 32px); }

  /* Buttons: comfortable tap targets, wrap gracefully */
  .btn { padding: 13px 22px; font-size: 15px; }
  .cta-actions, .hero-actions { width: 100%; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Stats band */
  .band .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .band .stat b { font-size: 38px; }

  /* CTA band */
  .cta-band { padding: 44px 22px; }
  .cta-band h2 { font-size: clamp(24px, 7vw, 32px); }
  .cta-band p { font-size: 16px; }

  /* Profile / attorney */
  .profile { gap: 30px; }
  .profile .portrait { max-width: 100%; }
  .profile .portrait .initials { font-size: 96px; }
  .badge-row { gap: 8px; }
  .badge { font-size: 12px; padding: 6px 12px; }

  /* Contact */
  .contact-grid { gap: 32px; }
  .form-card { padding: 26px; }

  /* FAQ */
  .faq-q { padding: 18px 20px; font-size: 16px; }
  .faq-a { padding: 0 20px; }
  .faq-item.open .faq-a { padding-bottom: 18px; }

  /* Footer bottom stacks */
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero-badges { gap: 14px; }
  .hero-badge b { font-size: 23px; }
  .band .stat b { font-size: 32px; }
}
