/* Jeffrey Law Firm — styles.css
   Brand colors live in :root. Change them here and they update everywhere. */
:root {
  --navy: #102A43;
  --navy-2: #0B1F33;
  --blue: #1D5A96;
  --accent: #2878C8;
  --white: #FFFFFF;
  --tint: #F0F6FC;
  --text: #1B2633;
  --muted: #5A6B7D;
  --line: #D9E4EF;
  --amber: #E8A317;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16,42,67,.06), 0 8px 24px rgba(16,42,67,.08);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92em; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }


.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; padding: 14px 22px; border-radius: 8px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; min-height: 48px; }
.btn-sm { padding: 10px 16px; font-size: .95rem; min-height: 44px; }
.btn-lg { padding: 17px 28px; font-size: 1.06rem; min-height: 56px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 18px rgba(40,120,200,.28); }
.btn-primary:hover { background: var(--blue); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--tint); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 8px; background: var(--navy); color: var(--white); font-family: var(--serif); font-size: 1.6rem; display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.brand-sub { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .96rem; }
.main-nav a:hover { color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%); color: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 420px at 85% 10%, rgba(40,120,200,.28), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: var(--white); }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: #8FC1EE; margin: 0 0 16px; }
.eyebrow-dark { color: var(--accent); }
.lead { font-size: 1.15rem; color: #D3E2F1; max-width: 37em; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-center { justify-content: center; }
.hero-phone { margin: 18px 0 0; color: #B7CDE3; font-size: .95rem; }
.hero-phone a { color: var(--white); font-weight: 600; }
.hero-phone .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; margin-right: 6px; box-shadow: 0 0 0 3px rgba(74,222,128,.2); vertical-align: middle; }
.trust-big .star { color: #F5C451; }

.hero-photo { margin: 0; position: relative; }
.photo-frame { position: relative; aspect-ratio: 9 / 11; border-radius: 14px; overflow: hidden; background: #1A3A5A; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; position: relative; z-index: 1; }
.photo-placeholder { position: absolute; inset: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; color: #A9C3DC; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, rgba(255,255,255,.06) 12px 24px); }
.photo-placeholder small { font-family: var(--sans); font-size: .8rem; color: #7E9AB6; }
.photo-frame-alt { background: var(--tint); }
.photo-frame-alt .photo-placeholder { color: var(--blue); background: repeating-linear-gradient(135deg, rgba(16,42,67,.03) 0 12px, rgba(16,42,67,.06) 12px 24px); }
.photo-frame-alt .photo-placeholder small { color: var(--muted); }
.photo-card { position: absolute; left: -28px; bottom: 32px; z-index: 2; background: var(--white); color: var(--text); padding: 16px 20px; border-radius: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-width: 270px; border-left: 4px solid var(--accent); }
.photo-card strong { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.photo-card span { font-size: .85rem; color: var(--muted); line-height: 1.4; }

.trust-bar { position: relative; background: rgba(255,255,255,.05); border-top: 1px solid rgba(255,255,255,.1); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 24px 16px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 2px; }
.trust-item:first-child { border-left: 0; }
.trust-big { font-family: var(--serif); font-size: 1.7rem; color: var(--white); font-weight: 600; }
.trust-label { font-size: .85rem; color: #B7CDE3; }

/* Sections */
.section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: #D3E2F1; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head-light h2 { color: var(--white); }
.section-intro { font-size: 1.1rem; color: var(--muted); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.why-card p { color: var(--muted); margin: 0; }
.why-num { font-family: var(--serif); color: var(--accent); font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; }
.why-card-cta { background: var(--tint); border-color: transparent; display: flex; flex-direction: column; justify-content: center; }
.why-card-cta p { margin-bottom: 18px; }
.why-card-cta .btn { align-self: flex-start; }

/* Practice */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.practice-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 3px solid var(--accent); }
.practice-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.practice-card a { font-weight: 600; text-decoration: none; font-size: .95rem; }
.practice-card a:hover { text-decoration: underline; }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.about-photo { margin: 0; position: sticky; top: 100px; }
.about-copy > p:not(.eyebrow) { color: #34465A; }
.cred-list { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.cred-list li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.cred-list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Reviews */
.rating-line { color: #D3E2F1; display: inline-block; padding: 4px 8px; }
.stars { color: #F5C451; letter-spacing: 2px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.review-card p { color: var(--white); font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; margin: 14px 0 18px; flex: 1; }
.review-card footer { font-size: .9rem; color: #9FBAD4; }
.review-foot { text-align: center; margin-top: 40px; }
.fine-print { font-size: .85rem; color: var(--muted); }
.fine-print.light { color: #8FA8C0; margin-top: 18px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--serif); font-size: 1.4rem; display: grid; place-items: center; margin-bottom: 18px; }
.step p { color: var(--muted); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 34px; left: 72px; right: -16px; height: 2px; background: var(--line); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.contact-phone { display: flex; flex-direction: column; text-decoration: none; background: var(--navy); color: var(--white); padding: 22px 26px; border-radius: var(--radius); margin: 28px 0; max-width: 360px; }
.contact-phone:hover { background: var(--blue); }
.contact-phone-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #8FC1EE; font-weight: 700; }
.contact-phone-num { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.contact-meta { margin: 0; display: grid; gap: 18px; }
.contact-meta dt { font-weight: 700; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-meta dd { margin: 4px 0 0; color: #34465A; }
.contact-meta dd a { font-weight: 600; }

.call-panel { background: var(--white); border-radius: 14px; padding: 36px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.call-panel h3 { font-size: 1.45rem; margin-bottom: .4em; }
.call-panel > p { color: var(--muted); }
.ready-list { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
.ready-list li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; color: #34465A; }
.ready-list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ready-list strong { color: var(--navy); }
.panel-note { background: var(--tint); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 6px; font-size: .95rem; color: #34465A; margin-bottom: 16px; }
.call-panel .fine-print { margin-bottom: 18px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.2rem; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--accent); font-weight: 300; }
.faq[open] summary::after { content: "−"; }
.faq-body p { color: #34465A; margin: 0 0 22px; }

/* Final CTA */
.final-cta { background: var(--navy); color: var(--white); padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% 0%, rgba(40,120,200,.3), transparent 70%); }
.final-inner { position: relative; max-width: 760px; }
.final-cta h2 { color: var(--white); }
.final-cta p { color: #D3E2F1; font-size: 1.15rem; margin-bottom: 32px; }

/* Footer */
.site-footer { background: var(--navy-2); color: #A9C3DC; padding: 64px 0 40px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }
.footer-head { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #8FC1EE; margin-bottom: 10px; }
.site-footer address { font-style: normal; margin-bottom: 10px; display: inline-block; padding: 2px 4px; }
.footer-legal { padding-top: 28px; font-size: .82rem; color: #7E9AB6; }

/* Mobile bar */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; padding-bottom: 48px; }
  .hero-photo { max-width: 420px; }
  .photo-card { left: 16px; bottom: 16px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .why-grid, .review-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { position: static; max-width: 420px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step:not(:last-child)::after { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .container { padding: 0 18px; }
  .header-inner { height: 64px; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.35rem; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { display: none; }
  .header-call span { display: none; }
  .header-call { padding: 10px 12px; }
  .hero-grid { padding-top: 32px; }
  .lead { font-size: 1.05rem; margin-bottom: 24px; }
  .cta-row .btn { width: 100%; }
  .hero-photo { max-width: none; }
  .photo-frame { aspect-ratio: 4 / 4.2; }
  .why-grid, .review-grid, .practice-grid, .footer-grid { grid-template-columns: 1fr; }
  .call-panel { padding: 26px 20px; }
  .trust-big { font-size: 1.4rem; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .final-cta { padding: 72px 0; }
  .mobile-bar { display: grid; grid-template-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16,42,67,.12); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 1rem; }
  .mb-call { background: var(--accent); color: var(--white); }
}
