/* =============================================
   Prevent & Sustain Medicine — Global Styles
   ============================================= */

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

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

:root {
  --cream: #f7f3ee;
  --sage: #7a9e87;
  --deep: #1c2b25;
  --gold: #c9a96e;
  --text: #2e3d38;
  --light-text: #6b7f78;
  --border: #ddd5c8;
  --white: #ffffff;
  --deep2: #2d4a3e;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.7;
}

/* ── NAVIGATION ── */
nav {
  background: var(--deep);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 128px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(201,169,110,0.2);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #f0ebe3;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-logo span { color: var(--gold); }

.nav-logo img {
  height: 90px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,235,227,0.65);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: #f0ebe3; }
.nav-links a.active { color: var(--gold); }

.nav-links .nav-cta {
  background: var(--sage);
  color: #fff !important;
  padding: 7px 16px;
  margin-left: 8px;
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}

.nav-links .nav-cta:hover { background: #5e8a75; }

/* ── NAV DROPDOWN ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.6rem;
  margin-left: 4px;
  opacity: 0.5;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--deep2);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 0 0 4px 4px;
  list-style: none;
  min-width: 170px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 300;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li { width: 100%; }

.dropdown-menu a {
  display: block;
  padding: 10px 20px !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap;
  border-bottom: 1px solid rgba(201,169,110,0.08);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(201,169,110,0.1);
  color: var(--gold) !important;
}

/* ── HAMBURGER TOGGLE (hidden on desktop) ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f0ebe3;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Animate to X when open */
nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── PAGE HEADER ── */
.page-hero {
  background: var(--deep);
  padding: 72px 48px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 0%, rgba(122,158,135,0.22) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 100%, rgba(201,169,110,0.12) 0%, transparent 55%);
}

.page-hero .eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: #f0ebe3;
  line-height: 1.15;
  position: relative;
}

.page-hero h1 em { font-style: italic; color: var(--sage); }

.page-hero p {
  font-size: 0.95rem;
  color: rgba(240,235,227,0.55);
  margin-top: 16px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.hero-divider {
  width: 50px; height: 1px;
  background: var(--gold);
  margin: 24px auto 0;
  opacity: 0.5;
  position: relative;
}

/* ── NOTICE BANNER ── */
.notice-banner {
  background: var(--sage);
  color: #fff;
  text-align: center;
  padding: 14px 40px;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

/* ── MAIN CONTAINER ── */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--deep);
  margin-bottom: 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.section-label span {
  font-size: 0.7rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light-text);
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(28,43,37,0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 36px 22px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}

.card-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: var(--deep);
}

.card-title p {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--light-text);
  line-height: 1.65;
  max-width: 500px;
}

.price-badge {
  background: var(--deep);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 300;
  padding: 10px 22px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

.price-badge small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.6);
}

.card-body { padding: 26px 36px 32px; }

/* ── CTA BLOCK ── */
.cta-block {
  text-align: center;
  margin-top: 60px;
  padding: 52px 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep2) 100%);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(122,158,135,0.18) 0%, transparent 60%);
}

.cta-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 300;
  color: #f0ebe3;
  position: relative;
}

.cta-block p {
  color: rgba(240,235,227,0.5);
  font-size: 0.88rem;
  margin-top: 10px;
  position: relative;
}

.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 32px;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.btn-light {
  background: #f0ebe3;
  color: var(--deep);
}

.btn-light:hover { background: #fff; }

.btn-sage {
  background: var(--sage);
  color: #fff;
}

.btn-sage:hover { background: #5e8a75; }

/* ── FOOTER ── */
footer {
  background: var(--deep);
  color: rgba(240,235,227,0.5);
  text-align: center;
  padding: 40px 32px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(201,169,110,0.15);
}

footer .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #f0ebe3;
  margin-bottom: 10px;
  display: block;
}

footer .footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 14px 0;
}

footer .footer-links a {
  color: rgba(240,235,227,0.45);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

footer .footer-links a:hover { color: var(--gold); }

footer .footer-copy { margin-top: 16px; font-size: 0.72rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.1s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.2s ease both; }
.fade-up-4 { animation: fadeUp 0.6s 0.3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav {
    padding: 0 20px;
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 16px;
    gap: 0;
    order: 3;
    background: var(--deep2);
    border-top: 1px solid rgba(201,169,110,0.2);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  nav.nav-open .nav-links {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 12px 8px;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(201,169,110,0.1);
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
    padding: 12px 16px;
  }
  .nav-dropdown > a::after { display: inline; }
  .dropdown-menu {
    position: static;
    display: none;
    background: rgba(0,0,0,0.15);
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 0;
    border-radius: 0;
  }
  .nav-dropdown.dropdown-open .dropdown-menu {
    display: block;
  }
  .dropdown-menu a {
    padding: 10px 8px 10px 28px !important;
    font-size: 0.78rem !important;
  }
  .page-hero { padding: 52px 24px 44px; }
  .container, .container-wide { padding: 44px 20px 72px; }
  .card-header { flex-direction: column; }
  .price-badge { align-self: flex-start; }
  .card-header, .card-body { padding-left: 20px; padding-right: 20px; }
}
