/* =====================================================
   Tarrant Media — Editorial Light Mode
   ===================================================== */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;1,400&display=swap');

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

body {
  background-color: #F8F7F3;
  color: #1C1917; /* stone-900 */
  overflow-x: hidden;
}

::selection {
  background-color: #3CABEE;
  color: #fff;
}

h1, h2, h3, h4 {
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 700;
}

.font-serif { font-family: 'Fraunces', Georgia, serif; }

/* ─── Cinematic Reveal System (no blur) ─── */
.reveal {
  opacity: 0;
  transition: opacity 900ms ease-out, transform 900ms ease-out;
  transform: translateY(1.5rem);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Floating Nav Pill ─── */
.nav-pill {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.6rem 1.75rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  width: auto;
  max-width: 90vw;
}

/* ─── Mobile Menu Toggle ─── */
.menu-toggle { display: none; }

@media (max-width: 768px) {
  .nav-pill {
    padding: 0.5rem 1rem;
    gap: 1rem;
    justify-content: space-between;
    width: 90%;
  }

  .nav-links-container {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.5rem;
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .menu-toggle:checked ~ .nav-links-container {
    display: flex;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    cursor: pointer;
    font-size: 0; /* hide the raw HTML glyph */
    color: #57534E; /* stone-600 */
    transition: color 300ms;
    position: relative;
    z-index: 110;
    flex-shrink: 0;
  }

  .menu-btn::before {
    content: '☰';
    font-size: 1.25rem;
    line-height: 1;
  }

  .menu-toggle:checked + .menu-btn::before {
    content: '✕';
    font-size: 1.1rem;
  }

  .menu-btn:hover { color: #1C1917; }
}

.nav-link {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #57534E; /* stone-600 */
  transition: color 300ms;
  text-decoration: none;
}

.nav-link:hover { color: #1C1917; }
.nav-link.active { color: #3CABEE; }

/* ─── Editorial Card (flat, default) ─── */
.editorial-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* ─── Glass Card (exception — use once per page) ─── */
.glass-card {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ─── Primary Button ─── */
.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background-color: #3CABEE;
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 400ms;
  box-shadow: 0 4px 16px rgba(60, 171, 238, 0.25);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(60, 171, 238, 0.4);
  color: #ffffff;
}

.btn-primary:active { transform: scale(0.97); }

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 400ms;
}

.btn-primary:hover::after { opacity: 1; }

/* ─── Newspaper-style matted headshot ─── */
.headshot-matted {
  background: #FFFFFF;
  padding: 16px 16px 44px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 16px 36px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  display: block;
}

.headshot-matted img {
  width: 100%;
  display: block;
  border-radius: 0;
  height: auto;
}

.headshot-matted figcaption {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.8125rem;
  color: #57534E;
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* ─── Handwritten signature ─── */
.signature {
  color: #1C1917;
  opacity: 0.85;
  width: 90px;
  height: auto;
  display: block;
  margin-top: 1.25rem;
}

/* ─── Plan Step Numerals ─── */
.plan-step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: #3CABEE;
  font-size: 3.25rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── Video Utilities (preserved) ─── */
.video-container {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  border-bottom-left-radius: 4rem;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  z-index: 10;
}

/* ─── About Page Timeline ─── */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid #E7E5E4; /* stone-200 */
  padding-bottom: 3rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -5px;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #3CABEE;
}

/* ─── Deep accent band (for one CTA per page) ─── */
.accent-dark {
  background-color: #1A1A17;
  color: #F8F7F3;
}

.accent-dark .text-muted { color: #A8A29E; } /* stone-400 */
