/* ============================================================
   FitToday — Shared Stylesheet
   Edit this file to change colors, fonts, nav, or footer
   across every page. Page-specific styles live in <style>
   blocks inside each individual HTML file.
   ============================================================ */

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

/* DESIGN TOKENS — change a color here, it updates everywhere */
:root {
  --white:    #FFFFFF;
  --warm:     #F8F5EE;
  --paper:    #FBF9F4;
  --ink:      #0A0A0A;
  --ink-2:    #3D3D3D;
  --ink-3:    #6E6E6E;
  --ink-4:    #A8A8A8;
  --border:   rgba(10,10,10,0.08);
  --border-2: rgba(10,10,10,0.18);
  --accent:   #1A4D2E;  /* deep forest green — used sparingly */
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---- NAVIGATION ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 5%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-size: 0.86rem;
  font-weight: 400; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  color: var(--ink) !important; border: 1px solid var(--border-2);
  padding: 0.5rem 1.15rem; border-radius: 3px; font-weight: 500 !important;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-cta:hover { background: var(--ink); color: var(--white) !important; border-color: var(--ink); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink-2); transition: 0.25s; }
.mobile-nav {
  display: none; position: fixed; top: 65px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1.25rem 5%; z-index: 99;
}
.mobile-nav a {
  display: block; color: var(--ink-2); text-decoration: none;
  font-size: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; color: var(--ink); font-weight: 500; }
.mobile-nav.open { display: block; }

/* ---- LAYOUT UTILITIES ---- */
.container { max-width: 1300px; margin: 0 auto; }
.label {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.5rem; display: block;
}
.section-h2 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--ink); letter-spacing: -0.025em; line-height: 1.1;
}
.section-h2 em { font-style: italic; color: var(--accent); }
.section-header { margin-bottom: 4rem; max-width: 800px; }
.section-sub {
  font-size: 1.05rem; color: var(--ink-2); line-height: 1.7;
  font-weight: 300; margin-top: 1.25rem; max-width: 640px;
}

/* ---- BUTTONS ---- */
.btn-dark {
  background: var(--ink); color: var(--white); font-family: 'Outfit', sans-serif;
  font-weight: 500; font-size: 0.9rem; padding: 0.85rem 1.85rem; border-radius: 3px;
  text-decoration: none; transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-dark:hover { background: #2A2A2A; transform: translateY(-1px); }
.btn-out {
  color: var(--ink); font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  font-weight: 500; text-decoration: none; padding: 0.85rem 1.5rem;
  border: 1px solid var(--border-2); border-radius: 3px;
  transition: border-color 0.2s, background 0.2s; display: inline-block;
}
.btn-out:hover { border-color: var(--ink); background: var(--paper); }

/* ---- BLOG CARDS (homepage preview + blog index) ---- */
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 2rem; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none; display: block; cursor: pointer;
}
.blog-card:hover {
  border-color: var(--border-2); transform: translateY(-3px);
  box-shadow: 0 12px 32px -16px rgba(10,10,10,0.08);
}
.card-badge {
  font-size: 0.63rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.75rem; display: block;
}
.card-topic {
  font-size: 0.68rem; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: 0.16em; font-weight: 500; margin-bottom: 0.65rem;
}
.card-title {
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.1rem;
  color: var(--ink); line-height: 1.4; margin-bottom: 2rem; letter-spacing: -0.005em;
}
.card-author { display: flex; align-items: center; gap: 0.85rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 0.78rem;
  color: var(--ink); flex-shrink: 0; border: 1px solid var(--border-2);
}
.author-name { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.author-role { font-size: 0.72rem; color: var(--ink-3); margin-top: 0.15rem; font-weight: 300; }

/* ---- PHOTO BREAK ---- */
.photo-break { height: 50vh; min-height: 360px; position: relative; overflow: hidden; }
.photo-break img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-break-quote {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; padding: 2rem; text-align: center;
}
.photo-break-quote::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.55);
}
.photo-break-quote p {
  position: relative; font-family: 'Fraunces', serif; font-weight: 400;
  font-style: italic; font-size: clamp(1.25rem, 2.6vw, 2rem); color: var(--ink);
  max-width: 740px; line-height: 1.45; letter-spacing: -0.01em;
}

/* ---- FOOTER ---- */
footer { background: var(--white); padding: 4rem 5% 2.5rem; border-top: 1px solid var(--border); }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 3rem; margin-bottom: 3rem; max-width: 1300px;
  margin-left: auto; margin-right: auto;
}
.footer-logo { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.6rem; }
.footer-tagline { font-size: 0.82rem; color: var(--ink-3); max-width: 200px; line-height: 1.55; font-weight: 300; }
.footer-links { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col-title { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 0.85rem; margin-bottom: 0.65rem; font-weight: 300; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border);
  max-width: 1300px; margin: 0 auto;
}
.footer-copy { font-size: 0.78rem; color: var(--ink-3); font-weight: 300; }
.footer-social { display: flex; gap: 1.75rem; }
.footer-social a { color: var(--ink-3); text-decoration: none; font-size: 0.78rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--ink); }

/* ---- SCROLL REVEAL ANIMATIONS ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.22s; }
.d3 { transition-delay: 0.32s; }
.d4 { transition-delay: 0.42s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
}
@media (max-width: 600px) {
  .footer-top    { flex-direction: column; }
  .footer-links  { gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
