/* Grantham Law Firm PLLC — base styles
   Edit tokens below to restyle the whole site. */

/* ------------------------------------------------------------------
   LOGO / WORDMARK
   ------------------------------------------------------------------
   Displayed as the SVG wordmark asset (images/grantham-law-firm-wordmark.svg).
   The footer variant is inverted to white via filter since the SVG's
   fill is a fixed navy color. */

:root {
  --navy: #233d57;
  --navy-dark: #182a3d;
  --blue: #2f6690;
  --blue-light: #eef3f7;
  --ink: #232a30;
  --ink-soft: #545e66;
  --line: #dde3e8;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --max: 1120px;
  --radius: 4px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: pretty;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

/* Phone numbers / contact detail values: force lining numerals on one
   baseline and the site's sans-serif face, since the body serif's
   numeral rendering can look uneven. */
a[href^="tel"],
.contact-info-list .label + a,
.contact-info-list li,
.credential-list li {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
a[href^="tel"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.nav-link, .btn, .footer a, .logo-link { text-decoration: none; }

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

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo-link { display: flex; align-items: center; }
.wordmark-svg {
  width: 230px;
  height: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--blue);
}

.nav-cta {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--navy-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 1.1rem;
  color: var(--navy);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, #ffffff 100%);
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--line);
}
.hero .container { max-width: 820px; text-align: left; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  max-width: 22ch;
}
.hero .subhead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 60ch;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff !important; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary {
  background: #fff;
  color: var(--navy) !important;
  border: 1px solid var(--navy);
}
.btn-secondary:hover { background: var(--blue-light); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { max-width: 640px; margin-bottom: 36px; }
.section-header p { color: var(--ink-soft); }

.eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--ink-soft); margin: 0; }
.service-card ul { color: var(--ink-soft); margin: 4px 0 0; padding-left: 20px; }
.service-card ul li { margin-bottom: 4px; }

.contact-band {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.contact-band h2 { color: #fff; }
.contact-band p { color: #cfdae4; max-width: 60ch; margin: 0 auto 24px; }
.contact-band .actions { justify-content: center; }
.contact-band .fine-print {
  color: #9db6c9;
  font-size: 0.88rem;
  max-width: 60ch;
  margin: 20px auto 0;
}
.contact-band .btn-secondary {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
}
.contact-band .btn-secondary:hover { background: rgba(255,255,255,0.1); }
.contact-band .btn-primary { background: #fff; color: var(--navy) !important; }
.contact-band .btn-primary:hover { background: #e6edf2; }

/* Attorney profile */
.profile-photo-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  opacity: 0.7;
  text-align: center;
  padding: 20px;
}

.credential-list { margin: 0 0 1.5em; padding: 0; list-style: none; }
.credential-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.credential-list li .role-detail {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 2px;
}
.credential-list li:last-child { border-bottom: none; }
.credential-group h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 8px;
}

.helps-block { margin-bottom: 28px; }
.helps-block h3 { font-size: 1.1rem; margin-bottom: 8px; }
.helps-block p { color: var(--ink-soft); margin-bottom: 0; }

/* Contact page */
.contact-info-list { list-style: none; margin: 0; padding: 0; }
.contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--navy);
  min-width: 140px;
  flex-shrink: 0;
}

.notice-box {
  background: var(--blue-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.notice-box p:last-child { margin-bottom: 0; }
.notice-box strong { color: var(--ink); }

/* Legal pages */
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { color: var(--ink-soft); }
.legal-content .updated {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 2em;
}
.sms-callout {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  padding: 18px 22px;
  margin: 1.5em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sms-callout ul { margin: 0; padding-left: 20px; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #b9c6d1;
  padding: 48px 0 28px;
  margin-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid .wordmark-svg {
  width: 190px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #b9c6d1; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a3f52;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #8ea1b3;
  font-size: 0.85rem;
}
.footer-bottom a { color: #8ea1b3; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .menu-toggle { display: inline-block; }
  .nav-cta { display: none; }
  .site-header { position: relative; }
}

@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 44px 0; }
  .hero .actions .btn, .contact-band .actions .btn { white-space: normal; }
  .wordmark-svg { width: 170px; }
}
