/* ============================================================
   body-care.sbs — Shared Stylesheet
   Organic Minimalist · Warm Beige · Sage Green · Charcoal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --cream:       #fdfaf6;
  --cream-dark:  #f5f0e8;
  --sage:        #8da399;
  --sage-light:  #b5c7be;
  --sage-dark:   #627a70;
  --charcoal:    #2f3640;
  --charcoal-60: rgba(47,54,64,.6);
  --charcoal-20: rgba(47,54,64,.12);
  --white:       #ffffff;
  --gold:        #c9a96e;

  --font-head:  'Cormorant Garamond', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;

  --radius-card: 30px;
  --radius-btn:  50px;
  --shadow-soft: 0 8px 40px rgba(47,54,64,.08);
  --shadow-hover:0 16px 56px rgba(47,54,64,.14);
  --transition:  .3s cubic-bezier(.25,.8,.25,1);

  --nav-h: 72px;
  --max-w: 1160px;
  --section-py: 96px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display:block; max-width:100%; object-fit:cover; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button { cursor:pointer; border:none; background:none; font-family: var(--font-body); }

/* ─── Utilities ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 32px;
}
.sr-only {
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ─── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.3rem; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.lead {
  font-size: 1.15rem;
  color: var(--charcoal-60);
  line-height: 1.8;
  max-width: 52ch;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: var(--transition);
}
.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--sage-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid var(--charcoal-20);
  color: var(--charcoal);
}
.btn-outline:hover {
  border-color: var(--sage);
  background: rgba(141,163,153,.08);
  transform: translateY(-2px);
}
.btn-sage {
  background: var(--sage);
  color: var(--white);
}
.btn-sage:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 900;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(253,250,246,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--charcoal-20);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .9rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--charcoal);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content:'';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--sage);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--sage-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 8px; }

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu — glassmorphism */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: rgba(253,250,246,.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 800;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--charcoal);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--sage-dark); }

/* ─── Cookie Banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: min(560px, calc(100% - 32px));
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  transition: transform .5s cubic-bezier(.25,.8,.25,1), opacity .5s ease;
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner p {
  font-size: .83rem;
  line-height: 1.6;
  flex: 1;
}
.cookie-banner a { color: var(--sage-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--sage);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  transition: var(--transition);
}
.cookie-accept:hover { background: var(--sage-dark); }
.cookie-decline {
  color: var(--sage-light);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: .82rem;
  transition: var(--transition);
}
.cookie-decline:hover { color: var(--white); }

/* ─── Scroll Animations ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: .1s; }
.fade-up.delay-2 { transition-delay: .2s; }
.fade-up.delay-3 { transition-delay: .3s; }
.fade-up.delay-4 { transition-delay: .4s; }

/* ─── Section Shared ─────────────────────────────────────── */
.section {
  padding-block: var(--section-py);
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header .lead { margin-inline: auto; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}
.card-img {
  aspect-ratio: 4/3;
  width: 100%;
}
.card-body {
  padding: 28px 28px 32px;
}
.card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: rgba(141,163,153,.12);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.card-body h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.card-body p {
  font-size: .9rem;
  color: var(--charcoal-60);
  line-height: 1.7;
  margin-bottom: 20px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--charcoal-60);
}
.card-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sage-light); }
.read-more {
  font-size: .85rem;
  font-weight: 500;
  color: var(--sage-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.read-more:hover { gap: 10px; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(253,250,246,.7);
  padding-block: 64px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-brand p { font-size: .88rem; line-height: 1.75; max-width: 36ch; }
.footer-brand .socials { display:flex; gap:14px; margin-top: 24px; }
.footer-brand .socials a {
  width:38px; height:38px;
  border-radius: 50%;
  border: 1px solid rgba(253,250,246,.2);
  display:flex; align-items:center; justify-content:center;
  color: rgba(253,250,246,.7);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-brand .socials a:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(253,250,246,.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: var(--cream); }

/* ─── Hero decorative line ───────────────────────────────── */
.hero-line {
  display: inline-block;
  width: 56px; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  width: 56px; height: 2px;
  background: var(--sage-light);
  margin: 24px auto;
}
.divider.left { margin-left: 0; }

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 72px;
  background: var(--cream-dark);
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { margin-inline: auto; }

/* ─── Legal pages ────────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 72px;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-content h3 { font-size: 1.15rem; margin-top: 28px; margin-bottom: 10px; }
.legal-content p,
.legal-content li { font-size: .93rem; color: var(--charcoal-60); margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 20px; }
.legal-content a { color: var(--sage-dark); text-decoration: underline; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-py: 64px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1/-1; }
}
@media (max-width: 600px) {
  :root { --section-py: 48px; }
  .container { padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-banner { flex-direction: column; text-align: center; bottom: 16px; }
  .cookie-actions { justify-content: center; }
}
