/* =============================================
   SPERANZA PILATES — Global Styles
   Palette: cream bg, sage green primary, charcoal text
   ============================================= */

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

:root {
  --cream:     #F5F3EE;
  --cream-mid: #EDEAE2;
  --sage:      #7A8C6E;
  --sage-dark: #5C6B52;
  --sage-light:#C4CFBB;
  --charcoal:  #3D3D3D;
  --muted:     #888880;
  --white:     #FFFFFF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

em { font-style: italic; }

p { color: var(--charcoal); max-width: 680px; }

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-mid);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--sage); text-decoration: none; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
}
.btn-primary:hover { background: var(--sage-dark); text-decoration: none; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--sage-dark);
  border: 1.5px solid var(--sage);
}
.btn-outline:hover { background: var(--sage); color: var(--white); text-decoration: none; }

/* ---- LAYOUT UTILITIES ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--cream-mid);
}

.section-sage {
  background: var(--sage);
  color: var(--white);
}

.section-sage h2,
.section-sage h3,
.section-sage p { color: var(--white); }

.text-center { text-align: center; }
.text-center p { margin: 0 auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
  display: block;
}

.section-sage .eyebrow { color: var(--sage-light); }

.divider {
  width: 40px;
  height: 1px;
  background: var(--sage-light);
  margin: 1.5rem auto;
}

/* ---- GRID ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}

/* ---- CARD ---- */
.card {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
}

.card h3 { margin-bottom: 1rem; }
.card p { margin: 0 auto 1.5rem; font-size: 0.95rem; color: var(--muted); }

/* ---- FOOTER ---- */
footer {
  background: var(--charcoal);
  color: #aaa;
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
}

footer a { color: var(--sage-light); }
footer .footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
footer p { margin: 0 auto; color: #aaa; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 1rem; }
  .section { padding: 3rem 0; }
}

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