/* ── SAGE · Shared Stylesheet ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;1,9..40,300&display=swap');

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --cream:    #F5F0E8;
  --warm:     #EDE8DF;
  --parchment:#E0D8CC;
  --terracotta: #B87355;
  --terra-light:#C9896A;
  --sage-green: #6B7C5E;
  --sage-mid:   #8A9B7A;
  --taupe:    #8C7B6E;
  --taupe-dark: #6B5B4E;
  --ink:      #2A2520;
  --ink-soft: #4A4038;
  --muted:    #8A8078;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, box-shadow .4s;
}
nav.scrolled { background: rgba(245,240,232,.95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  border: 1.5px solid var(--terracotta); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; color: var(--terracotta); letter-spacing: .05em;
}
.nav-logo-text {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
  letter-spacing: .18em; color: var(--ink);
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--terracotta); }
.nav-book {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terracotta); transition: opacity .25s;
}
.nav-book:hover { opacity: .7; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 20px; height: 1px; background: var(--ink); transition: background .3s; }

/* ── Page hero (inner pages) ──────────────────────────────────────────────── */
.page-hero {
  padding: 10rem 3rem 5rem;
  text-align: center;
  max-width: 680px; margin: 0 auto;
}
.page-eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1.2rem;
}
.page-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1.08;
  color: var(--ink); letter-spacing: .02em; margin-bottom: 1.5rem;
}
.page-title em { font-style: italic; }
.page-divider {
  width: 36px; height: 1px; background: var(--terracotta); margin: 0 auto 1.5rem;
}
.page-intro {
  font-size: 1rem; color: var(--taupe-dark); line-height: 1.9; max-width: 520px; margin: 0 auto;
}

/* ── Section utility ──────────────────────────────────────────────────────── */
.section { padding: 6rem 3rem; }
.section-warm { background: var(--warm); }
.section-parch { background: var(--parchment); }
.container { max-width: 1060px; margin: 0 auto; }
.container-narrow { max-width: 700px; margin: 0 auto; }
.section-label {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--ink); line-height: 1.2; margin-bottom: 1rem;
}
.section-title em { font-style: italic; }
.section-body { font-size: .92rem; color: var(--taupe-dark); line-height: 1.9; }

/* ── Pullquote ────────────────────────────────────────────────────────────── */
.pullquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--taupe); line-height: 1.5;
  border-left: 2px solid var(--terracotta); padding-left: 1.75rem;
  margin: 2.5rem 0;
}

/* ── CTA button ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .25s;
}
.btn::after { content: '→'; transition: transform .25s; }
.btn:hover { color: var(--terracotta); }
.btn:hover::after { transform: translateX(4px); }
.btn-wa {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--terracotta); color: #fff;
  padding: .9rem 2.2rem; border-radius: 2px;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s;
}
.btn-wa:hover { background: var(--taupe-dark); }

/* ── Cards (3-col) ────────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  padding: 2.8rem 2.4rem; border-radius: 6px;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
}
.card-terra { background: linear-gradient(145deg, var(--terracotta), #C9896A); }
.card-sage  { background: linear-gradient(145deg, var(--sage-green), var(--sage-mid)); }
.card-taupe { background: linear-gradient(145deg, var(--taupe), #A8998C); }
.card-dark  { background: linear-gradient(145deg, var(--taupe-dark), #4A3B30); }
.card-ink   { background: linear-gradient(145deg, var(--ink), #3A3028); }
.card-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
}
.card h3 {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 400;
  color: #fff; line-height: 1.15;
}
.card p { font-size: .85rem; color: rgba(255,255,255,.72); line-height: 1.75; flex: 1; }
.card .card-link {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .4rem;
  transition: color .25s;
}
.card .card-link::after { content: '→'; transition: transform .25s; }
.card .card-link:hover { color: #fff; }
.card .card-link:hover::after { transform: translateX(3px); }
.card-bg-icon {
  position: absolute; top: 1.8rem; right: 1.8rem;
  font-size: 2rem; opacity: .18; color: #fff;
}

/* ── White feature card ───────────────────────────────────────────────────── */
.feature-card {
  background: #fff; border-radius: 4px;
  padding: 2.5rem; transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.07); }
.feature-card-num {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 300;
  color: rgba(184,115,85,.2); margin-bottom: 1rem; line-height: 1;
}
.feature-card h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-bottom: .6rem; }
.feature-card p { font-size: .88rem; color: var(--taupe-dark); line-height: 1.8; }
.tag {
  display: inline-block;
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .7rem; border: 1px solid var(--parchment);
  color: var(--muted); border-radius: 2px;
}

/* ── Founder card ─────────────────────────────────────────────────────────── */
.founder-card {
  background: var(--warm); border-radius: 4px; padding: 3rem;
  position: relative; overflow: hidden;
}
.founder-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--terracotta), transparent);
}
.founder-initial {
  font-family: var(--serif); font-size: 4rem; font-weight: 300;
  color: rgba(184,115,85,.18); line-height: 1; margin-bottom: 1.2rem;
}
.founder-name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: .25rem; }
.founder-role { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1rem; }
.founder-bio { font-size: .88rem; color: var(--taupe-dark); line-height: 1.85; margin-bottom: 1.5rem; }
.founder-contact { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.founder-contact a:hover { color: var(--terracotta); }

/* ── Connect bar ──────────────────────────────────────────────────────────── */
.connect-bar {
  background: var(--ink); padding: 5rem 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.connect-bar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,115,85,.12), transparent 60%);
}
.connect-bar-inner { position: relative; max-width: 560px; margin: 0 auto; }
.connect-bar h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; line-height: 1.15; margin-bottom: 1.2rem;
}
.connect-bar h2 em { font-style: italic; color: var(--terracotta); }
.connect-bar p { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.85; margin-bottom: 2.5rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  background: #1E1A17; padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .14em; color: rgba(255,255,255,.3); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.25); transition: color .25s; }
.footer-links a:hover { color: var(--terracotta); }
.footer-copy { font-size: .68rem; color: rgba(255,255,255,.2); letter-spacing: .06em; }

/* ── Reveal animation ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 1rem 1.5rem; }
  .section { padding: 5rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 4rem; }
}
@media (max-width: 640px) {
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-book { display: none; }
  .nav-hamburger { display: flex; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
