/* ============================================
   fitme.yoga — Design Tokens
   ============================================ */
:root {
  --ink: #20242B;
  --ink-soft: #3A3F48;
  --terracotta: #B85C3A;
  --terracotta-deep: #9C4A2E;
  --terracotta-light: #E8916B;
  --cream: #F6F1EA;
  --cream-deep: #EFE7DA;
  --stone: #8A8175;
  --stone-light: #BDB4A6;
  --white: #FFFFFF;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Fraunces', Georgia, serif;

  --max-width: 1120px;
  --radius: 20px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ Typography ============ */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

.light-weight { font-weight: 300; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

p { font-family: var(--font-body); }

.lede {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ============ Nav ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 234, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(32,36,43,0.08);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-logo svg { width: 34px; height: 34px; }
.nav-logo .dotyoga { color: var(--terracotta); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a { opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 11px 22px;
  border-radius: 999px;
  opacity: 1 !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--terracotta); }

/* ============ Mobile nav toggle ============ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 28px 28px;
    box-shadow: 0 12px 24px rgba(32,36,43,0.1);
    border-bottom: 1px solid rgba(32,36,43,0.08);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(32,36,43,0.06);
  }
  .nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ============ Sections ============ */
section { padding: 100px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark h2, .section-dark h1 { color: var(--cream); }
.section-card { background: var(--cream-deep); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* ============ Path motif (signature element) ============
   A thin curved line that runs alongside long-form content,
   echoing "the path" from the brand story. Used on story page. */
.path-rail {
  position: absolute;
  left: -60px;
  top: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}
@media (max-width: 900px) { .path-rail { display: none; } }

/* ============ Cards ============ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid rgba(32,36,43,0.06);
}
.icon-badge {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

/* ============ Footer ============ */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 0 32px;
}
footer .wrap { display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-brand { max-width: 340px; }
.footer-brand p { color: var(--stone-light); margin-top: 12px; font-size: 0.95rem; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta-light);
  margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--stone-light); margin-bottom: 10px; font-family: var(--font-display); font-size: 0.95rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(246,241,234,0.12);
  padding-top: 24px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--stone-light);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ============ Utility ============ */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ Cookie consent banner ============ */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 100;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
#cookie-banner p { flex: 1; min-width: 220px; color: var(--stone-light); }
#cookie-banner a { color: var(--terracotta-light); text-decoration: underline; }
#cookie-banner button {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
#cookie-banner button:hover { background: var(--terracotta-deep); }

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}
