/* Law Office of Michael R. Wesley, LLC
   Single shared stylesheet. All theming lives in the :root tokens below. */

:root {
  --navy: #1c2340;
  --navy-deep: #141a30;
  --navy-soft: #2a3355;
  --gold: #e9b52a;
  --gold-dark: #c9971a;
  --ink: #23262f;
  --muted: #5d6270;
  --line: #e2e4ea;
  --bg: #ffffff;
  --bg-alt: #f5f6f9;
  --white: #ffffff;
  --font-head: "Roboto Slab", Georgia, "Times New Roman", serif;
  --font-body: "Raleway", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(20, 26, 48, 0.10);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.6em; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.25em; }
.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 0.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--white); }

/* Header */
.topbar { background: var(--navy-deep); color: #c9cddb; font-size: 0.9rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; min-height: 2.4rem; }
.topbar a { color: #dfe2ec; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .topbar-social { margin-left: auto; }
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.25rem; }
.brand img { width: 240px; height: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.primary-nav a {
  display: block; padding: 0.6rem 0.8rem; color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--gold); }
.nav-toggle {
  display: none; background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); border-radius: var(--radius);
  padding: 0.5rem 0.9rem; font: inherit; font-weight: 700; cursor: pointer;
}

/* Hero */
.hero {
  position: relative; color: var(--white); background: var(--navy) center/cover no-repeat; isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,48,0.78), rgba(20,26,48,0.62)); z-index: -1; }
.hero-inner { padding: clamp(4rem, 10vw, 7.5rem) 0; max-width: 820px; }
.hero h1 { color: var(--white); margin-bottom: 0.4rem; }
.hero .tagline { font-size: clamp(1.05rem, 2vw, 1.35rem); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); font-weight: 700; margin-bottom: 1.5rem; }
.hero .quote { font-style: italic; color: #e6e8f0; margin-top: 2rem; max-width: 620px; border-left: 3px solid var(--gold); padding-left: 1rem; }
.hero .quote cite { display: block; font-style: normal; font-weight: 700; margin-top: 0.4rem; color: var(--white); }
.hero-home { background-image: url("/assets/images/hero-home.jpg"); }
.hero-story { background-image: url("/assets/images/hero-story.jpg"); }
.hero-personal-injury { background-image: url("/assets/images/hero-personal-injury.jpg"); }
.hero-family { background-image: url("/assets/images/hero-family.jpg"); }
.hero-criminal { background-image: url("/assets/images/hero-criminal.jpg"); }
.hero-traffic { background-image: url("/assets/images/hero-traffic.jpg"); }
.hero-contact { background-image: url("/assets/images/hero-contact.jpg"); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #dfe2ec; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body h3 { margin-bottom: 0.25rem; }
.card-body .btn { align-self: flex-start; margin-top: auto; }
.card ul { margin: 0 0 1rem; }

/* Feature / philosophy blocks */
.feature { padding: 1.75rem; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.feature .num { font-family: var(--font-head); font-size: 2rem; color: var(--gold-dark); line-height: 1; margin-bottom: 0.5rem; }

/* Team */
.team-member { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--line); }
.team-member:first-of-type { border-top: 0; }
.team-member > img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.team-photo-placeholder { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--navy-soft); color: var(--white); display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; }
.team-member .role { color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.75rem; }
.team-member h3 { margin-bottom: 0.1rem; }
.team-compact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.team-compact figure { margin: 0; text-align: center; }
.team-compact img, .team-compact .team-photo-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.6rem; }
.team-compact figcaption strong { display: block; color: var(--navy); }
.team-compact figcaption span { font-size: 0.85rem; color: var(--muted); }

/* Testimonials */
.testimonial { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.testimonial .stars { color: var(--gold); letter-spacing: 0.15em; font-size: 1.05rem; margin-bottom: 0.75rem; }
.testimonial p { font-style: italic; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy); }

/* CTA band */
.cta { background: var(--navy); color: #dfe2ec; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.5rem 0; }
.cta h2 { color: var(--white); margin: 0 0 0.25rem; }
.cta p { margin: 0; }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: -3rem; position: relative; z-index: 2; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); text-align: center; }
.contact-card h3 { margin-bottom: 0.25rem; }
.contact-card a { word-break: break-word; }
.form-wrap { max-width: 760px; }
.notice { background: #fff8e1; border-left: 4px solid var(--gold); padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1.5rem; font-size: 0.95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.95rem; }
input, textarea {
  width: 100%; font: inherit; padding: 0.75rem 0.9rem; border: 1px solid #c8ccd6; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(233,181,42,0.35); }
textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #e8f5ec; border: 1px solid #b7dfc2; color: #1d5a2f; }
.form-status.err { display: block; background: #fdecea; border: 1px solid #f3b8b1; color: #8a1f14; }
.map-link { margin-top: 1rem; }

/* Legal page */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9cddb; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h4 { color: var(--white); margin-bottom: 0.75rem; }
.site-footer a { color: #dfe2ec; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.25rem 0 1.5rem; font-size: 0.875rem; }
.footer-legal p { margin: 0 0 0.4rem; }
.advertising { font-style: italic; }

/* Responsive */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.open { display: block; }
  .nav-inner { flex-wrap: wrap; padding-bottom: 0.5rem; }
  .primary-nav ul { flex-direction: column; gap: 0; padding-bottom: 0.5rem; }
  .primary-nav a { padding: 0.7rem 0.5rem; border-top: 1px solid rgba(255,255,255,0.1); border-radius: 0; }
  .grid-3, .grid-4, .team-compact { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .split, .grid-2, .grid-3, .grid-4, .contact-cards, .team-compact, .footer-grid { grid-template-columns: 1fr; }
  .team-member { grid-template-columns: 1fr; }
  .team-member > img, .team-member .team-photo-placeholder { max-width: 260px; }
  .contact-cards { margin-top: 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .brand img { width: 200px; }
  .topbar .topbar-social { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Utilities */
.hero .hero-lead { color: #e6e8f0; }
.mt-2 { margin-top: 2rem; }
.bar-logo { width: 90px; height: auto; margin: 0.5rem 0 1rem; }
