/* =============================================================
   staelfogarty.com — shared global stylesheet
   Extracted from duplicated <style> blocks across 20+ HTML files.
   Page-specific overrides remain inline in each page.
   ============================================================= */

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

/* ───────── DESIGN TOKENS ───────── */
:root {
  /* Surfaces */
  --bg: #FEFBF6;
  --bg-warm: #FFF9F2;
  --white: #FFFFFF;

  /* Blue */
  --blue: #5B8EC9;
  --blue-deep: #4A78B0;
  --blue-light: #A3C4E9;
  --blue-wash: #EBF2FA;

  /* Peach */
  --peach: #F2A07B;
  --peach-deep: #E08A60;
  --peach-light: #FADBC8;
  --peach-wash: #FFF2EB;

  /* Lavender */
  --lavender: #B8A9D4;
  --lavender-light: #E6DFF3;
  --lavender-wash: #F5F1FB;

  /* Mint */
  --mint: #8FC5B5;
  --mint-deep: #6BAA97;
  --mint-light: #D0EDE3;
  --mint-wash: #EFF9F5;

  /* Text */
  --dark: #2A2A3A;
  --text: #3D3D50;
  --text-muted: #7C7C96;
  --text-light: #A5A5BA;
  --border: #EDECF0;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(42,42,58,0.04);
  --shadow-md: 0 8px 32px rgba(42,42,58,0.06);
  --shadow-lg: 0 20px 48px rgba(42,42,58,0.08);
  --shadow-xl: 0 32px 64px rgba(42,42,58,0.1);
  --shadow-blue: 0 8px 28px rgba(91,142,201,0.28);
}

/* ───────── BASE ───────── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────── NAVIGATION ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(254, 251, 246, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(237,236,240,0.6);
  transition: all 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.55rem; font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--peach); }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s;
}
.nav-link:hover { color: var(--text); background: rgba(91,142,201,0.06); }
.nav-link.active { color: var(--blue); background: var(--blue-wash); }

.nav-cta {
  margin-left: 8px;
  padding: 10px 26px;
  background: var(--blue);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 700;
  transition: all 0.3s;
  box-shadow: var(--shadow-blue);
}
.nav-cta:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(91,142,201,0.35);
}

/* Mobile hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  position: absolute; left: 5px;
  transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-wash);
}

/* ───────── FOOTER — full 4-column ───────── */
.footer {
  padding: 60px 0 40px;
  border-top: 1.5px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 14px; display: inline-block; }
.footer-brand p {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.7; max-width: 280px;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-wash);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.3s;
  color: var(--blue);
}
.social-link:hover {
  background: var(--blue); color: white;
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: 'Fraunces', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 18px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.9rem; color: var(--text-muted);
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1.5px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-light); }

/* ───────── FOOTER — minimal single-line variant ───────── */
.footer-mini {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-mini p { font-size: 0.85rem; color: var(--text-light); }

/* ───────── SCROLL REVEAL ───────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ───────── KEYFRAMES ───────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ───────── RESPONSIVE (shared nav + footer) ───────── */
@media (max-width: 768px) {
  .nav { padding: 0 24px; height: 64px; }
  .nav-menu {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg);
    padding: 16px 24px 24px;
    flex-direction: column;
    border-bottom: 1.5px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; width: 100%; text-align: center; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-mini { flex-direction: column; gap: 8px; text-align: center; }
}

/* ───────── ACCESSIBILITY — skip link + focus ─────────
   Added in recent PR. Keep in global to prevent drift.
*/
.skip-link {
  position: absolute;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus {
  position: fixed;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: auto; height: auto;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
