/* ============================================
   THE DETOX CLUB — Shared Styles
   ============================================ */

@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&family=DM+Sans:wght@300;400;500&family=Cormorant:ital,wght@1,300&display=swap');

:root {
  --cream: #f5f0e4;
  --cream-dark: #ede6d3;
  --sage: #7a8c5e;
  --sage-dark: #5a6b42;
  --sage-light: #a8b990;
  --charcoal: #2c2c1e;
  --tan: #c4a882;
  --tan-light: #ddc9a8;
  --white: #fdfaf4;
  --terracotta: #b5714a;
  --muted: #8a8470;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(44,44,30,0.10);
  --shadow-lg: 0 12px 48px rgba(44,44,30,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.7;
}

/* ── ANNOUNCEMENT BAR ── */
#announcement-bar {
  background: var(--charcoal);
  color: var(--tan-light);
  text-align: center;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 200;
  overflow: hidden;
}
#announcement-bar .marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}
#announcement-bar span { display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── NAVBAR ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,240,228,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,168,130,0.25);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(237,230,211,0.97);
  box-shadow: var(--shadow);
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  transition: var(--transition);
}
.nav-logo:hover img { transform: rotate(6deg) scale(1.05); }
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 10px;
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 30px;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 60%; }
.nav-links a:hover { color: var(--sage-dark); }
.nav-links a.active { color: var(--sage-dark); font-weight: 500; }
.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 8px 22px !important;
  border-radius: 30px !important;
  font-weight: 500 !important;
  transition: var(--transition) !important;
}
.nav-cta:hover {
  background: var(--sage-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(90,107,66,0.3) !important;
}
.nav-cta::after { display: none !important; }

/* Nav entrance animation */
.nav-links li {
  opacity: 0;
  transform: translateY(-8px) translateZ(-10px);
  animation: navEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.17s; }
.nav-links li:nth-child(3) { animation-delay: 0.24s; }
.nav-links li:nth-child(4) { animation-delay: 0.31s; }
.nav-links li:nth-child(5) { animation-delay: 0.38s; }
.nav-links li:nth-child(6) { animation-delay: 0.45s; }
@keyframes navEntrance {
  to { opacity: 1; transform: translateY(0) translateZ(0); }
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ── FLOATING BUTTONS ── */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 150;
}
.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
}
.float-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-lg);
}
.float-btn svg { width: 22px; height: 22px; }
.float-btn-wa { background: #25D366; }
.float-btn-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.float-btn-email { background: var(--sage); }
.float-btn-label {
  position: absolute;
  right: 58px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.float-btn:hover .float-btn-label { opacity: 1; }

/* Dashboard icon - small green circle, bottom-left */
.dashboard-subtle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 34px;
  height: 34px;
  background: var(--sage);
  border-radius: 50%;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 99;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(90,107,66,0.35);
}
.dashboard-subtle:hover {
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 4px 18px rgba(90,107,66,0.45);
}
.dashboard-subtle svg { width: 16px; height: 16px; fill: white; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
}
.btn:active { transform: scale(0.96); }
.btn:active::after { opacity: 1; }
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(90,107,66,0.35); }
.btn-secondary { background: transparent; color: var(--charcoal); border: 1.5px solid var(--tan); }
.btn-secondary:hover { background: var(--tan-light); transform: translateY(-2px); }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: #1a1a10; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44,44,30,0.3); }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: var(--tan-light);
  padding: 60px 40px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.footer-brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  opacity: 0.9;
}
.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-col p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(196,168,130,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

/* ── SECTION TITLES ── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.15;
}
.section-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 12px;
  display: block;
}
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--sage);
  margin: 20px 0;
  border-radius: 2px;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245,240,228,0.98);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid rgba(196,168,130,0.2);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .floating-buttons { bottom: 20px; right: 16px; }
}
