/* ============================================================
   shared.css — Christopher Kowal site — shared across all pages
   Design tokens, base styles, nav, footer, buttons, cta-strip
   ============================================================ */

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

:root {
  --teal:        #14B8A6;
  --teal-dark:   #0f2d52;
  --teal-mid:    #1F3447;
  --teal-light:  #c2eeff;
  --teal-xlight: #eef8fd;
  --ink:         #101820;
  --ink-mid:     #334E68;
  --ink-light:   #5a7a96;
  --bg:          #ffffff;
  --bg-soft:     #F6F8FA;
  --border:      #d4e2ed;
  --cyan:        #18C8FF;
  --amber:       #F5A623;
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:   'Fira Code', 'Cascadia Code', monospace;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
/* NOTE: overflow-x removed from body — it breaks position:sticky on the nav. overflow-x: hidden is set on <html> in index.html instead. */
body { font-family: var(--font-sans); font-size: 18px; line-height: 1.75; color: var(--ink); background: var(--bg); }

/* ── AVAILABILITY BANNER ── */
.avail-banner {
  background: var(--teal-xlight); border-bottom: 1px solid var(--teal-light);
  padding: 13px 60px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.avail-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.avail-text { font-size: 0.9rem; font-weight: 600; color: var(--teal-dark); }
.avail-text a { color: var(--teal); text-decoration: none; font-weight: 700; }
.avail-text a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 60px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--font-sans); font-size: 1.28rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; display: flex; align-items: center; gap: 11px; }
.nav-logo span { color: var(--teal); }
.nav-logo img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center top; border: 2px solid var(--teal-light); flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--ink-mid); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-mobile-menu {
  display: none;
  background: #fff; border-top: 1px solid var(--border);
  padding: 8px 20px 20px;
}
.nav-mobile-links { list-style: none; margin-bottom: 14px; }
.nav-mobile-links li a {
  display: block; padding: 13px 0;
  font-size: 1rem; font-weight: 600; color: var(--ink-mid);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-mobile-links li:last-child a { border-bottom: none; }
.nav-mobile-links li a:hover, .nav-mobile-links li a.active { color: var(--teal); }
.nav-mobile-menu .btn-primary { display: flex; width: 100%; justify-content: center; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; background: var(--teal-dark); color: #fff;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700;
  border-radius: var(--radius-sm); text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; background: transparent; color: var(--teal);
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700;
  border-radius: var(--radius-sm); border: 2px solid var(--teal);
  text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--teal-xlight); }

/* ── DARK CTA STRIP ── */
.cta-strip { background: var(--teal-dark); padding: 60px 60px; }
.cta-strip-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-strip h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: #ffffff; line-height: 1.15; }
.cta-strip h2 em { font-style: italic; color: #18C8FF; }
.cta-strip p { font-size: 0.97rem; color: rgba(255,255,255,0.78); margin-top: 10px; }
.cta-strip-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.btn-strip-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; background: #fff; color: var(--teal-dark);
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700;
  border-radius: var(--radius-sm); text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.btn-strip-primary:hover { background: var(--teal-xlight); }
.btn-strip-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; background: transparent; color: rgba(255,255,255,0.85);
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600;
  border-radius: var(--radius-sm); border: 1.5px solid rgba(255,255,255,0.3);
  text-decoration: none; white-space: nowrap; transition: border-color 0.2s, color 0.2s;
}
.btn-strip-secondary:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* ── FOOTER ── */
footer { background: var(--teal-dark); padding: 16px 60px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-brand { font-family: var(--font-sans); font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; }
.footer-brand span { color: #18C8FF; }
.footer-tagline { font-size: 0.92rem; color: rgba(255,255,255,0.95); margin-top: 3px; line-height: 1.5; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #18C8FF; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.7); width: 100%; text-align: center; margin-top: 8px; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .avail-banner { padding: 10px 20px; gap: 10px; }
  .avail-text { font-size: 0.82rem; }
  .nav-inner { padding: 0 20px; height: 60px; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
  nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav.open .nav-mobile-menu { display: block; }
  .cta-strip { padding: 40px 24px; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-strip-actions { flex-direction: row; flex-wrap: wrap; }
  footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
