/* Grand Strand Law Group — multi-page proposal
   Theme: deep trust blue #1c628f + warm gold accent, Lora serif display.
   Multi-page scaffold: shared header/footer/nav across all pages. */

:root {
  --ink: #1a2b38;
  --muted: #5a6b78;
  --paper: #f5f7f9;
  --surface: #ffffff;
  --soft: #e8eef3;
  --brand: #1c628f;
  --brand-dark: #123f5e;
  --accent: #c9a24b;
  --line: rgba(26, 43, 56, .14);
  --hero-overlay: linear-gradient(90deg, rgba(10, 30, 45, .86) 0%, rgba(10, 30, 45, .55) 45%, rgba(10, 30, 45, .12) 75%);
  --display: "Lora", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 20px 60px rgba(18, 40, 60, .12);
  --radius: 3px;
  --max: 1240px;
  --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1.1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 96px 0; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.split-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.split-heading .section-heading { margin-bottom: 0; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--brand); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Header (shared across pages) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; width: 40px; height: 40px; flex: 0 0 40px; overflow: hidden; }
.brand-name { font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); font-size: .95rem; font-weight: 600; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--brand); }
.header-cta { display: inline-flex; align-items: center; gap: 8px; }
.header-cta .phone { font-weight: 700; color: var(--ink); }
.header-cta .phone:hover { text-decoration: none; color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 640px; min-height: calc(100svh - 116px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-image: var(--hero-overlay), url('assets/images/hero.webp'); }
.hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 48px)); margin-inline: auto; padding: 60px 0; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; max-width: 720px; }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.9); max-width: 560px; margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--radius); transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1a2b38; }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(201,162,75,.4); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 40px; list-style: none; padding: 0; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero-trust li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--brand-dark); color: #fff; padding: 72px 0; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; margin-top: 12px; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Practice area cards ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.practice-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; transition: transform .2s, box-shadow .2s; }
.practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.practice-card .icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.practice-card .icon svg { width: 40px; height: 40px; color: var(--brand); }
.practice-card h3 { margin-bottom: 10px; }
.practice-card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.practice-card .more { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--brand-dark); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 40px 24px; text-align: center; border-top: 1px solid rgba(255,255,255,.15); border-left: 1px solid rgba(255,255,255,.15); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--display); font-size: 2.6rem; color: var(--accent); font-weight: 400; }
.stat span { font-size: .85rem; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Split (about / locations) ---------- */
.split-grid { display: grid; grid-template-columns: .9fr 1fr; gap: 56px; align-items: center; }
.split-grid .image-caption { position: relative; }
.split-grid img { border-radius: var(--radius); }
.image-caption .caption { position: absolute; right: -22px; bottom: 22px; background: var(--accent); color: #1a2b38; padding: 10px 18px; font-weight: 700; font-size: .85rem; border-radius: var(--radius); }

/* ---------- Team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.team-card .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 1.6rem; color: var(--brand); margin: 0 auto 16px; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-card .role { color: var(--brand); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.team-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.review-card .stars { color: var(--accent); margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { color: var(--ink); font-style: italic; margin-bottom: 16px; }
.review-card .author { font-weight: 700; font-size: .9rem; }
.review-card .author span { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding-top: 48px; }
.process-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--display); font-size: 2rem; color: var(--accent); }
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .95rem; }

/* Service definition page */
.service-points { list-style: none; padding: 0; margin: 0 0 28px; }
.service-points li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink); }
.service-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); padding-bottom: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-grid > * { min-width: 0; }
.contact-info h3 { margin-bottom: 12px; }
.contact-info .info-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-info .info-row .label { font-weight: 700; min-width: 90px; }
.contact-info .info-row a { min-width: 0; overflow-wrap: anywhere; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); font-size: 1rem; background: var(--paper); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--brand); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- Locations ---------- */
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.location-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.location-card h3 { margin-bottom: 12px; }
.location-card p { color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.location-card .loc-phone { font-weight: 700; color: var(--brand); }

/* ---------- Footer (shared) ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.85); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,.8); font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.8); }
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* ---------- Legal pages ---------- */
.legal-page { background: var(--paper); }
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.legal-content p { color: var(--muted); }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .main-nav ul { gap: 20px; }
  .header-cta .phone { display: none; }
}
@media (max-width: 1100px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Collapse nav to hamburger at 1100px so the 7-item nav + brand + CTA
     never crowd and the brand name never wraps (validated 2026-08-14). */
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 24px; }
  .main-nav.open ul { flex-direction: column; gap: 16px; }
  .header-cta .phone { display: none; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 24px; }
  .main-nav.open ul { flex-direction: column; gap: 16px; }
  .header-cta .phone { display: none; }
  .practice-grid, .process-list, .team-grid, .reviews-grid, .locations-grid { grid-template-columns: 1fr; }
  .split-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .image-caption .caption { right: 0; }
  .hero { height: 600px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .hero { height: 560px; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .header-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Progressive no-JavaScript fallback chrome. */
.nojs-header { padding: 18px 0; background: var(--navy); color: #fff; }
.nojs-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.nojs-header a { color: #fff; }
.nojs-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nojs-content { padding: 32px 0; background: var(--surface); }
.nojs-footer { padding: 28px 0; background: var(--navy); color: rgba(255,255,255,.75); }

/* Baseline navigation remains usable before JavaScript enhancement. */
@media (max-width: 1100px) {
  html:not(.js-ready) .site-header { position: relative; }
  html:not(.js-ready) .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 14px; }
  html:not(.js-ready) .main-nav { display: block; position: static; flex: 1 0 100%; order: 4; padding: 0; border: 0; background: transparent; }
  html:not(.js-ready) .main-nav ul { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
  html:not(.js-ready) .main-nav a { display: block; padding: 8px 0; }
  html:not(.js-ready) .nav-toggle { display: none; }
}
