/* =========================================================
   THE LOCAL PHARM — Stylesheet
   Palette: Deep Charcoal / Warm Gold / Cream
   ========================================================= */

:root {
  --charcoal: #221610;
  --charcoal-mid: #2A1E18;
  --charcoal-light: #362820;
  --gold: #C9A84C;
  --gold-light: #E2C07A;
  --gold-pale: #F7EFD9;
  --white: #FFFFFF;
  --off-white: #FAF7F2;
  --text-dark: #1A1008;
  --text-mid: #5C5650;
  --text-light: #948C82;
  --radius: 12px;
  --shadow: 0 8px 40px rgba(34,22,16,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ---------------------------------------------
   Header
   --------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(34,22,16,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 0 40px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }

.logo-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: fit-content;
  align-self: center;
}
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.logo-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 8.75px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.85;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  display: block;
}
.footer-brand .logo-tagline { font-size: 7px; text-align: center; padding-left: 0; }
@media (min-width: 901px) {
  .site-header .logo-tagline { font-size: 10.5px; }
}

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--gold-light); }

.btn-member {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 6px;
  transition: all 0.25s !important;
  white-space: nowrap;
}
.btn-member:hover {
  background: var(--gold) !important;
  color: var(--charcoal) !important;
}
.nav-contact-mobile { display: none; }

/* Hamburger / Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none; cursor: pointer; padding: 0;
  z-index: 200;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 88px; left: 0; right: 0;
  background: rgba(34,22,16,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 8px 0 20px;
  z-index: 150;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 15px 28px;
  color: rgba(255,255,255,0.8);
  font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s;
}
.mobile-menu a:hover { color: var(--gold-light); background: rgba(255,255,255,0.03); padding-left: 36px; }
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .site-header { padding: 0 20px; }
  .site-nav a:not(.nav-contact-mobile) { display: none; }
  .nav-contact-mobile { display: inline-flex; }
  .hamburger { display: flex; }
}

.page-content { padding-top: 88px; }
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-menu { top: 120px; }

/* ---------------------------------------------
   Footer
   --------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  padding: 60px 40px 30px;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { font-size: 1.4rem; margin-bottom: 4px; }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 320px;
  margin: 12px 0;
}
.footer-contact a {
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.footer-contact span { display: block; color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-bottom: 4px; }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.775rem; color: rgba(255,255,255,0.3); }
.footer-tagline { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; color: var(--gold); font-style: italic; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------------------------------------------
   Shared section styles
   --------------------------------------------- */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-header h2 em { font-style: normal; color: var(--gold); }
.section-header p { color: var(--text-mid); font-size: 1rem; line-height: 1.7; }

/* ---------------------------------------------
   Buttons
   --------------------------------------------- */
.btn-primary {
  display: inline-block;
  padding: 15px 36px;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-light));
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,22,16,0.3); }

.btn-gold {
  display: inline-block;
  padding: 15px 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4); }

.btn-outline {
  display: inline-block;
  padding: 14px 34px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
}
.btn-outline:hover { background: var(--gold); color: var(--charcoal); }

/* ---------------------------------------------
   Animations
   --------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeUp 0.7s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

/* ---------------------------------------------
   Page header (inner pages)
   --------------------------------------------- */
.page-header-banner {
  background: var(--charcoal);
  padding: 64px 40px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-header-banner h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-top: 10px;
}
.page-header-banner h1 em { font-style: normal; color: var(--gold); }

/* ---------------------------------------------
   Generic container / split / grid
   --------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) {
  .container { padding: 0 20px; }
}

.split-section { padding: 90px 40px; }
.split-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 900px) {
  .split-section { padding: 60px 20px; }
  .split-grid { grid-template-columns: 1fr; gap: 36px; }
}
.split-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------------------------------------------
   Cards
   --------------------------------------------- */
.card-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--white);
  border: 1px solid rgba(34,22,16,0.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201,168,76,0.3);
}
.info-card .card-icon-circle {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.info-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.info-card p { font-size: 0.92rem; color: var(--text-mid); }

/* ---------------------------------------------
   Responsive helpers
   --------------------------------------------- */
@media (max-width: 600px) {
  .section-header { margin-bottom: 40px; }
}

/* =============================================
   SCROLL REVEAL
   Elements with .reveal start invisible and
   animate in when they enter the viewport.
   Variants: .reveal-left, .reveal-right,
   .reveal-scale. Stagger delay via .reveal-d1
   through .reveal-d5.
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.reveal-left {
  transform: translateX(-40px);
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.reveal-scale {
  transform: scale(0.92);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =============================================
   GLASSMORPHISM
   Glass-card effect for elements on dark
   background sections. Use .glass-card on
   any card that sits on --charcoal background.
   ============================================= */
.glass-card {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(14px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(201, 168, 76, 0.35) !important;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.glass-card-gold {
  background: rgba(201, 168, 76, 0.08) !important;
  backdrop-filter: blur(14px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.22) !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(201, 168, 76, 0.1) !important;
}
