/* ==========================================================================
   Scoggins Law Group — Stylesheet
   Fonts: Cinzel (headings/logo) · Libre Franklin (body)
   Palette pulled from brand mark: onyx black, brass gold, deep forest green

   Accessibility: every color pair below is chosen to clear WCAG 2.2 AA
   (4.5:1 for normal text, 3:1 for large text / UI components & focus
   indicators). Two tokens carry that intent in their name:
     --gold-ink    = gold-family text/icons on LIGHT backgrounds  (~5.3–5.8:1)
     --gold-light  = gold-family text/icons on DARK backgrounds   (~10–12:1)
     --border-light / --border-dark = same idea for borders/dividers (>=3:1)
   Do not use plain --gold or --gold-dim for text/border contrast purposes —
   they exist only for large decorative fills (buttons, big illustrative type).
   ========================================================================== */

:root {
  /* Brand palette */
  --black: #141410;
  --charcoal: #262620;
  --green: #1b3823;
  --green-deep: #12281c;
  --gold: #c6a15c;
  --gold-light: #e4c989;   /* text/icons on dark backgrounds — ~10-12:1 */
  --gold-ink: #7f5f24;     /* text/icons on light backgrounds — ~5.3-5.8:1 */
  --cream: #f7f3e9;
  --ivory: #fffdf8;
  --ink: #1a1a17;
  --ink-soft: #4a473e;

  --border-light: rgba(127, 95, 36, 0.85);  /* borders on cream/ivory, >=4:1 */
  --border-dark: rgba(198, 161, 92, 0.6);   /* borders on black/green, >=3.5:1 */

  /* Typography */
  --font-head: "Cinzel", "Times New Roman", serif;
  --font-body: "Libre Franklin", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--ink);
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.2em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

/* ---------- Accessibility helpers ---------- */
.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* Focus rings: gold-ink reads correctly on light sections; anything sitting
   on a dark surface (header/hero/CTA band/footer) swaps to the brighter
   gold-light so it always clears 3:1 against what's behind it. */
:focus-visible {
  outline: 3px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 1px;
}
.site-header :focus-visible,
.hero :focus-visible,
.cta-banner :focus-visible,
.site-footer :focus-visible,
.mobile-nav :focus-visible {
  outline-color: var(--gold-light);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-ink);
}
.on-dark .eyebrow { color: var(--gold-light); }
.on-dark .eyebrow::before { background: var(--gold-light); }

.section { padding: 108px 0; }
.section--tight { padding: 84px 0; }
.section--dark { background: var(--black); color: var(--cream); }
.section--dark p { color: rgba(247, 243, 233, 0.78); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--green { background: linear-gradient(180deg, var(--green-deep), var(--green)); color: var(--cream); }
.section--cream { background: var(--cream); }

.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); }
.section-head .lede { font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 24px;
  padding: 16px 34px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { background: transparent; color: var(--gold-light); border-color: var(--gold); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(247,243,233,0.55); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn-outline-dark:hover { border-color: var(--gold-ink); color: var(--gold-ink); }
.btn-sm { padding: 11px 22px; font-size: 11px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 0;
  background: transparent;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(20, 20, 16, 0.96);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: nowrap; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 60px; width: auto; transition: height 0.3s ease; }
.is-scrolled .brand img { height: 48px; }

.nav-primary { display: flex; align-items: center; gap: 38px; flex-shrink: 0; }
.nav-primary a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  position: relative;
  padding: 8px 2px;
  transition: color 0.25s ease;
}
.nav-primary a::after {
  content: "";
  position: absolute; left: 50%; right: 50%; bottom: 4px;
  height: 1px; background: var(--gold-light);
  transition: left 0.25s ease, right 0.25s ease;
}
.nav-primary a:hover,
.nav-primary a:focus-visible { color: var(--gold-light); }
.nav-primary a:hover::after,
.nav-primary a:focus-visible::after { left: 0; right: 0; }

.header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-family: var(--font-head); font-weight: 500; color: var(--gold-light); font-size: 14px; letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0; }
.header-phone svg { width: 16px; height: 16px; fill: var(--gold-light); flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21.5px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 30% 0%, #26432d 0%, var(--black) 68%), var(--black);
  color: var(--cream);
  overflow: hidden;
  padding-top: 150px;
}
.hero-skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  opacity: 0.7;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,16,0.05) 0%, rgba(20,20,16,0.6) 78%, var(--black) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 780px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  color: var(--ivory);
  margin-bottom: 22px;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero .lede {
  font-size: 19px;
  max-width: 620px;
  color: rgba(247, 243, 233, 0.88);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-meta {
  display: flex; gap: 42px; flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--border-dark);
}
.hero-meta div { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247,243,233,0.68); }
.hero-meta strong { display: block; font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--gold-light); font-weight: 600; margin-top: 4px; }

/* ---------- Intro / pillars ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.intro-grid .section-head { margin-bottom: 28px; }
.pillars { display: grid; gap: 26px; }
.pillar { display: flex; gap: 20px; padding-top: 8px; }
.pillar-index { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--gold-ink); border: 1px solid var(--border-light); width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; }
.pillar h3 { font-size: 18px; margin-bottom: 6px; }
.pillar p { margin: 0; font-size: 15px; }

/* ---------- Practice areas ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
.practice-card {
  background: var(--ivory);
  padding: 44px 36px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.practice-card:hover { background: var(--black); }
.practice-card:hover h3, .practice-card:hover p, .practice-card:hover .practice-link, .practice-card:hover .num { color: var(--cream); }
.practice-card:hover .practice-link, .practice-card:hover .num { color: var(--gold-light); }
.practice-card .num { font-family: var(--font-head); font-size: 13px; color: var(--gold-ink); letter-spacing: 0.2em; transition: color 0.3s ease; }
.practice-card h3 { font-size: 21px; margin: 18px 0 12px; transition: color 0.3s ease; }
.practice-card p { font-size: 14.5px; margin-bottom: 22px; transition: color 0.3s ease; }
.practice-link { display: inline-block; padding: 4px 0; font-family: var(--font-head); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); transition: color 0.3s ease; }

/* ---------- Stat strip (self-contained accent band) ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.stat-strip div { padding: 40px 24px; text-align: center; border-left: 1px solid var(--border-dark); }
.stat-strip div:first-child { border-left: none; }
.stat-strip h4 { font-family: var(--font-head); color: var(--gold-light); font-size: 15px; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-strip p { margin: 0; font-size: 13.5px; color: rgba(247,243,233,0.8); }

/* ---------- Attorney feature ---------- */
.attorney-feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.attorney-portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--charcoal), var(--black));
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.attorney-portrait .initials { font-family: var(--font-head); font-size: 90px; color: var(--gold-light); opacity: 0.9; }
.attorney-portrait span.note {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(247,243,233,0.62); font-family: var(--font-head);
}
.attorney-copy h3 { font-size: 30px; margin-bottom: 4px; }
.attorney-copy .role { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 20px; display: block; }
.attorney-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.attorney-tags span { border: 1px solid var(--border-light); padding: 8px 16px; font-size: 12.5px; font-family: var(--font-head); letter-spacing: 0.06em; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.review-card {
  background: var(--ivory);
  border: 1px solid var(--border-light);
  padding: 38px;
  position: relative;
}
.review-stars { color: var(--gold-ink); letter-spacing: 3px; font-size: 15px; margin-bottom: 18px; }
.review-card p { font-size: 16.5px; font-style: italic; color: var(--ink); margin-bottom: 22px; }
.review-name { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--black);
  color: var(--cream);
  padding: 90px 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.cta-banner h2 { color: var(--ivory); font-size: clamp(28px, 3.4vw, 40px); }
.cta-banner p { max-width: 560px; margin: 0 auto 36px; color: rgba(247,243,233,0.82); }
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--black), var(--green-deep) 220%);
  color: rgba(247,243,233,0.78);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand img { height: 54px; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; max-width: 300px; color: rgba(247,243,233,0.78); }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a { width: 44px; height: 44px; border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; transition: border-color 0.25s ease, background 0.25s ease; }
.footer-social a:hover { border-color: var(--gold); background: rgba(198,161,92,0.14); }
.footer-social svg { width: 16px; height: 16px; fill: var(--gold-light); }

.footer-col h3 { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 14.5px; color: rgba(247,243,233,0.78); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col address { font-style: normal; font-size: 14.5px; line-height: 1.8; color: rgba(247,243,233,0.78); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 26px 0;
  font-size: 12.5px;
  color: rgba(247,243,233,0.78);
}
.footer-bottom a { display: inline-block; padding: 6px 0; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-legal { max-width: 900px; font-size: 12px; line-height: 1.7; color: rgba(247,243,233,0.72); padding-bottom: 26px; }

/* ---------- Mobile nav overlay ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  padding: 32px 24px;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  overflow-y: auto;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a { font-family: var(--font-head); font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); padding: 6px 0; }
.mobile-nav a:hover { color: var(--gold-light); }
.mobile-nav .header-phone { margin-top: 14px; font-size: 18px; }
.mobile-nav .btn {
  margin-top: 8px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.mobile-nav-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.mobile-nav-close svg { width: 18px; height: 18px; }
.mobile-nav-close svg path { stroke: var(--cream); transition: stroke 0.25s ease; }
.mobile-nav-close:hover, .mobile-nav-close:focus-visible {
  border-color: var(--gold-light);
  transform: rotate(90deg);
}
.mobile-nav-close:hover svg path, .mobile-nav-close:focus-visible svg path { stroke: var(--gold-light); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
/* Switches to the hamburger well before the desktop nav row (logo + 5 links +
   phone + CTA button) could ever get tight enough to squeeze or overflow —
   nav items and the phone number are nowrap, so this threshold is the only
   thing standing between "fits on one line" and clipping. Keep it generous. */
@media (max-width: 1180px) {
  .nav-primary, .header-actions .header-phone, .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  /* Hamburger stays pinned right; logo is taken out of flow and centered
     in the header bar independent of the toggle's width. */
  .site-header .container { justify-content: flex-end; }
  .brand {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }
}
@media (max-width: 480px) {
  .brand img { height: 40px; }
  .is-scrolled .brand img { height: 34px; }
}
@media (max-width: 1024px) {
  .intro-grid, .attorney-feature { grid-template-columns: 1fr; gap: 44px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div:nth-child(3) { border-left: none; }
}
@media (max-width: 860px) {
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .practice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 26px; }
  .attorney-portrait { max-width: 280px; margin: 0 auto; }
}
