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

/* ── TOKENS ── */
:root {
  --cream:  #F7F2EC;
  --mocha:  #3D3832;
  --rose:   #866256;
  --taupe:  #886358;
  --blush:  #E4D7CF;
  --border: #C6C1BB;
  --muted:  #79746E;
  --max:    1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--taupe);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--mocha);
  line-height: 1.1;
}
em { font-style: italic; color: var(--rose); }
a  { color: inherit; text-decoration: none; }

.eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── SCROLL ANIMATIONS ── */
.fade-up { transition: opacity 0.75s ease, transform 0.75s ease; }
.js .fade-up { opacity: 0; transform: translateY(24px); }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--mocha);
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  transition: background 0.25s;
  border: none;
}
.btn-primary:hover { background: var(--rose); }

.btn-ghost {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mocha);
  border-bottom: 1px solid var(--mocha);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--rose); border-color: var(--rose); }

.btn-ghost-light {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blush);
  border-bottom: 1px solid #79746E;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost-light:hover { color: var(--cream); border-color: var(--cream); }

/* ── NAVIGATION ── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(61,56,50,0.06); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
  text-decoration: none;
}
.nav-logo-icon {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--mocha);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--mocha); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  width: 22px;
  height: 1px;
  background: var(--mocha);
  display: block;
  transition: transform 0.3s, opacity 0.2s;
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--cream);
  z-index: 199;
  padding: 0 1.5rem;
  flex-direction: column;
  gap: 0;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 8px 24px rgba(61,56,50,0.08);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--mocha); }

/* ── FOOTER ── */
footer {
  background: var(--mocha);
  padding: 4.5rem 0 2.5rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #4e4842;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
.footer-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.575rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-legal {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #8a8480;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--mocha);
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--rose);
  flex-shrink: 0;
  transition: transform 0.25s;
}
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 0.95rem;
  color: var(--taupe);
  line-height: 1.85;
  padding-bottom: 1.4rem;
  max-width: 640px;
}

/* ── ARTICLE PAGES ── */
.page-hero { padding: 9rem 0 4rem; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.75rem, 5vw, 5rem); margin-top: 0.75rem; max-width: 700px; }
.article-hero { padding: 9rem 0 0; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.article-back:hover { color: var(--mocha); }
.article-hero-img { display: block; width: 100%; max-width: 720px; height: auto; margin: 3rem auto 0; }
.article-body { padding: 4rem 0 7rem; }
.article-body p  { margin-bottom: 1.4rem; font-size: 1rem; line-height: 1.9; color: var(--taupe); }
.article-body h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 3rem 0 1rem; color: var(--mocha); }
.article-body ul { margin: 0.5rem 0 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.article-body li { font-size: 0.95rem; color: var(--taupe); line-height: 1.8; }
.article-cta { background: var(--mocha); padding: 4rem 2.5rem; text-align: center; margin-top: 4rem; }
.article-cta h2 { color: var(--cream); font-size: clamp(1.75rem, 2.5vw, 2.5rem); margin-bottom: 0.75rem; }
.article-cta p  { color: var(--blush); font-size: 0.9rem; margin-bottom: 2rem; }

/* ── COOKIE BANNER: raise floating buttons when banner is visible ── */
.cookie-banner-visible .wa-float {
  bottom: calc(1.5rem + var(--cookie-h, 68px));
}
.cookie-banner-visible #back-top,
.cookie-banner-visible #back-to-top {
  bottom: calc(5.5rem + var(--cookie-h, 68px));
}

/* ── FLOATING WHATSAPP BUTTON ── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }

/* ── BACK TO TOP BUTTON ── */
.back-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 299;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mocha);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, border-color 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(61,56,50,0.1);
  text-decoration: none;
}
.back-top:hover { border-color: var(--rose); color: var(--rose); }
.back-top.visible { opacity: 1; pointer-events: auto; }

/* ── SUBSTACK SECTION ── */
.substack-section { padding: 7rem 0; border-top: 1px solid var(--border); }
.substack-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.substack-head h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.substack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ── BLOG PREVIEW CARDS ── */
.blog-preview-section { padding: 7rem 0; border-top: 1px solid var(--border); }
.blog-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.blog-preview-head h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.blog-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.blog-card-img {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--blush);
  margin-bottom: 1.25rem;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.blog-card-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.4rem;
}
.blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--mocha);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.blog-card-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.75; }

/* ── CONTACT FORM ── */
.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--mocha);
  outline: none;
  box-sizing: border-box;
}
.form-textarea { resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-row { margin-bottom: 1.5rem; }
.form-consent { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.form-consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--rose); }
.form-consent label { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: var(--taupe); line-height: 1.6; }
.form-note { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; color: var(--muted); margin-top: 1rem; line-height: 1.7; }

/* ── FOOTER LOGO ── */
.footer-logo-img { height: 50px; width: auto; display: block; margin-bottom: 0.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links, #nav-book { display: none !important; }
  .nav-hamburger { display: flex; }
  nav { padding: 0 1.25rem; }
  .container, .container-narrow { padding: 0 1.25rem; }
  footer { padding: 3rem 0 2rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-nav { flex-wrap: wrap; gap: 1rem 1.5rem; }
  .faq-q { font-size: 1rem; }
  .page-hero { padding: 6rem 0 2.5rem; }
  .article-body { padding: 2.5rem 0 4rem; }
}
