/* ============================================================
   Speech Works of Alabama — Shared Stylesheet
   Style guide: warm grey-brown backgrounds, blue accents
   Fonts: Nunito (sans) + Lora (serif headings)
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  --blue:       #2563EB;   /* primary accent — buttons, dots, highlights */
  --blue-lt:    #EFF6FF;   /* light blue — chips, hover fills */
  --blue-mid:   #6B9ED4;   /* secondary blue — badges, avatars */
  --bg-warm:    #F2F1EE;   /* warm grey-white — hero, cards, page sections */
  --bg-alt:     #EDECEA;   /* slightly darker warm grey — alternating sections */
  --navy:       #1E3A5F;   /* deep navy — all headings and dark text */
  --muted:      #4E6480;   /* mid-grey — body copy, sub-text */
  --white:      #FFFFFF;
  --border:     #DBEAFE;   /* subtle blue-tinted divider */

  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  32px;

  --shadow-sm:  0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.13);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans Variable', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}

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

a { color: var(--blue); }

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: 'Plus Jakarta Sans Variable', sans-serif;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h4, h5, h6 {
  font-family: 'Plus Jakarta Sans Variable', sans-serif;
  font-weight: 600;
  color: var(--navy);
}

/* ── LAYOUT ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ANNOUNCEMENT BANNER ── */
.announcement-banner {
  background: #D97706;
  color: #fff;
  text-align: center;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(217,119,6,0.35);
}
.announcement-banner svg { width: 20px; height: 20px; flex-shrink: 0; }
.announcement-banner strong { font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

/* ── NAV ── */
nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo-text {
  font-family: 'Plus Jakarta Sans Variable', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--blue-lt); color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 700; }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #1d4ed8 !important; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans Variable', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans Variable', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--blue); }

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans Variable', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); }

.btn-outline-white {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans Variable', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--white);
  padding: 22px 24px;
}
.trust-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.trust-item .dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── SECTION UTILITIES ── */
.section-tag {
  display: inline-block;
  background: var(--blue-lt);
  color: var(--blue);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Plus Jakarta Sans Variable', sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header .section-sub { margin: 0 auto; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--bg-warm);
  padding: 64px 24px 56px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 52px 24px 28px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}
.footer-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-logo-text {
  font-family: 'Plus Jakarta Sans Variable', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.94);
  line-height: 1;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.footer-col h4 {
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.footer-bottom a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--blue); color: var(--white); }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: 2px solid var(--blue); outline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--blue-lt); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    padding: 0;
    gap: 0;
    z-index: 99;
    overflow: hidden;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links.nav-open li { width: 100%; }
  .nav-links.nav-open li + li {
    border-top: 1px solid var(--border);
  }
  .nav-links.nav-open a {
    display: flex;
    align-items: center;
    padding: 28px 24px;
    width: 100%;
    font-size: 17px;
    border-radius: 0;
  }
  .nav-links.nav-open a:hover { border-radius: 0; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
@keyframes swoa-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes swoa-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero entrance — fires immediately on load */
.anim-hero-tag   { animation: swoa-fade-in  0.45s ease 0.05s both; }
.anim-hero-h1    { animation: swoa-fade-up  0.55s ease 0.15s both; }
.anim-hero-sub   { animation: swoa-fade-up  0.55s ease 0.30s both; }
.anim-hero-cta   { animation: swoa-fade-up  0.55s ease 0.45s both; }

/* Scroll-reveal — JS adds .revealed when element enters viewport */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.60s cubic-bezier(0.16, 1, 0.3, 1), transform 0.60s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.28s; }
.reveal-d4 { transition-delay: 0.38s; }

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .anim-hero-tag, .anim-hero-h1, .anim-hero-sub, .anim-hero-cta {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── LUCIDE ICONS ── */
[data-lucide] {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.diff-icon [data-lucide],
.glance-icon [data-lucide],
.value-icon [data-lucide],
.contact-card-icon [data-lucide] {
  width: 28px;
  height: 28px;
  stroke: white;
}
.btn-primary [data-lucide],
.btn-white-block [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: white;
}
.btn-secondary [data-lucide],
.btn-outline-white-block [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.cta-contact-item [data-lucide],
.hero-phone [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.trust-item [data-lucide] {
  width: 8px;
  height: 8px;
  stroke: var(--blue);
  fill: var(--blue);
}
