/* Alabama Archives — site styles */

:root {
  --navy: #10263d;
  --navy-dark: #091a2b;
  --blue: #2d6b9f;
  --blue-light: #eaf3f9;
  --ink: #172536;
  --muted: #617083;
  --line: #dce3e9;
  --surface: #f5f7f9;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(16, 38, 61, 0.08);
  --shadow-hover: 0 12px 28px rgba(16, 38, 61, 0.12);
  --radius: 12px;
  --header-height: 72px;
  --max: 1160px;
  --font: "Inter", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-surface {
  background: var(--surface);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-intro-light h2,
.section-intro-light .section-lead {
  color: var(--white);
}

.section-lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-lead.muted {
  margin-top: 1rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow-light {
  color: #9ec3e0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-lg {
  min-height: 48px;
  padding: 0.85rem 1.35rem;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #255a86;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
}

.btn-white:hover {
  background: var(--blue-light);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-1px);
}

.text-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--blue);
}

.text-link:hover {
  color: var(--navy);
}

.phone-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

.phone-link:hover {
  color: var(--blue);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  display: block;
  width: 52px;
  height: 64px;
  object-fit: contain;
  object-position: center center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 6px;
}

.nav-list a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

.header-phone {
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

/* Hero */

.hero {
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(45, 107, 159, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(45, 107, 159, 0.12), transparent 50%),
    var(--navy);
  color: var(--white);
  padding: 3.5rem 0 4rem;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1,
.hero .hero-lead,
.hero .hero-support {
  color: var(--white);
}

.hero-lead {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-support {
  margin: 1.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-visual {
  position: relative;
}

.hero-image-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0d2033;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 240px;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-badge-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

.hero-badge strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.2;
}

.hero-badge span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

/* Why / features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.feature-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-item h3 {
  margin-bottom: 0.35rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Process */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
  position: relative;
}

.step {
  position: relative;
  padding: 0.25rem 0.5rem 0 0;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 4.5rem;
  right: -1rem;
  height: 1px;
  background: var(--line);
}

.step-number {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Audience */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.audience-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.audience-card h3 {
  color: var(--white);
  margin: 0.85rem 0 0.5rem;
}

.audience-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.audience-icon {
  width: 36px;
  height: 36px;
  color: #9ec3e0;
}

.audience-icon svg {
  width: 100%;
  height: 100%;
}

/* CTA band */

.cta-band {
  background: var(--blue);
  color: var(--white);
  padding: 3rem 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  color: var(--white);
}

.cta-sub {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* About / contact */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.contact-card address {
  font-style: normal;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-phone {
  font-size: 1.2rem;
  color: var(--blue);
}

.contact-email {
  font-size: 1rem;
  color: var(--blue);
  word-break: break-word;
}

.contact-card .btn {
  margin-top: 1rem;
  width: 100%;
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.faq-intro {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding-right: 2.75rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--blue);
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

.faq-list details a {
  font-weight: 600;
}

/* Footer */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-tagline {
  margin: 0.25rem 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ec3e0;
}

.footer-brand p:last-child {
  margin: 0;
  max-width: 18rem;
  font-size: 0.95rem;
}

.footer-mark {
  width: 48px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a,
.footer-address a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-links a:hover,
.footer-address a:hover {
  color: var(--white);
}

.footer-address {
  font-style: normal;
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Responsive */

@media (max-width: 1024px) {
  .hero {
    min-height: 0;
    padding: 3rem 0;
  }

  .hero-grid,
  .about-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    position: static;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-phone {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a {
    padding: 0.85rem 0.75rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .service-grid,
  .feature-grid,
  .steps,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (max-width: 480px) {
  .brand-tagline {
    display: none;
  }

  .hero-badge {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card,
  .service-card {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
