/* ================================================================
   NEXUS HEALTH COMMUNITY — shared.css
   ================================================================ */

:root {
  --white: #ffffff;
  --cream: #faf8f5;
  --warm-gray: #f3f0ec;
  --sand: #e8e3db;
  --text-primary: #1a1d28;
  --text-secondary: #4a4d5c;
  --text-muted: #4a4d5c;
  --teal: #0a7b6f;
  --teal-deep: #065f56;
  --teal-light: #e6f5f3;
  --teal-glow: rgba(10,123,111,0.08);
  --gold-warm: #b8860b;
  --gold-light: #f5eedd;
  --border: rgba(0,0,0,0.06);
  --border-hover: rgba(10,123,111,0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream); color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 100%; line-height: 1.7; -webkit-font-smoothing: antialiased;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,248,245,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo-text {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.25rem;
  color: var(--text-primary); letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.88rem; font-weight: 500;
  color: var(--text-secondary); transition: color 0.25s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: white !important;
  padding: 0.55rem 1.4rem; border-radius: 100px;
  font-weight: 600 !important; font-size: 0.85rem !important;
  transition: background 0.25s, transform 0.25s !important;
}
.nav-cta:hover { background: var(--teal-deep) !important; transform: translateY(-1px); }

/* ---- NAV DROPDOWN (Webinars submenu) ---- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.nav-chevron { font-size: 0.7em; transition: transform 0.25s ease; }
.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  margin: 0; padding: 0.5rem 0; list-style: none;
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown.open .nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-submenu li { display: block; }
.nav-submenu a {
  display: block; padding: 0.55rem 1.25rem; font-size: 0.86rem;
  white-space: nowrap; color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.nav-submenu a:hover { background: rgba(10,123,111,0.06); color: var(--teal); }

.section { padding: 7rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: 'Outfit', sans-serif; font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.5rem;
}
.section-heading {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2;
  letter-spacing: -0.02em; max-width: 650px; margin-bottom: 2rem;
}
.section-body { max-width: 640px; font-size: 1.05rem; color: var(--text-secondary); line-height: 1.85; }
.section-body strong { color: var(--text-primary); font-weight: 600; }

.video-wrapper {
  margin-top: 1.75rem; border-radius: 12px; overflow: hidden;
  position: relative; background: #0a0f0e; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.video-wrapper video { width: 100%; display: block; border-radius: 12px; }

.video-title {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem;
  font-size: 0.75rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em;
}
.video-label::before {
  content: '▶'; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; background: var(--teal); color: white;
  border-radius: 50%; font-size: 0.5rem; padding-left: 2px; flex-shrink: 0;
}

footer { background: var(--text-primary); color: rgba(255,255,255,0.6); padding: 3.5rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.1rem; color: rgba(255,255,255,0.85); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.25s; }
.footer-links a:hover { color: #3dd8c6; }
.footer-copy { font-size: 0.78rem; opacity: 0.4; margin-top: 2rem; text-align: center; }

.cta-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--teal); color: white; text-decoration: none;
  padding: 1rem 2.5rem; border-radius: 100px; font-weight: 600; font-size: 1rem;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(10,123,111,0.25);
}
.cta-btn:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(10,123,111,0.3); }
.cta-btn-secondary {
  display: inline-block; margin-top: 1rem; font-size: 0.88rem;
  color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.25s;
}
.cta-btn-secondary:hover { color: var(--teal); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.4rem; background: none; border: none; z-index: 200; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250,248,245,0.97); backdrop-filter: blur(20px);
  z-index: 150; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em; transition: color 0.25s; }
.mobile-menu a:hover { color: var(--teal); }
.mobile-menu .mobile-cta { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 600; background: var(--teal); color: white; padding: 0.85rem 2.5rem; border-radius: 100px; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* SECTIONS */

.section { padding: 7rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-family: Outfit, sans-serif; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.5rem; }
.section-heading { font-family: Fraunces, serif; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 650px; margin-bottom: 2rem; }
.section-body { max-width: 640px; font-size: 1.05rem; color: var(--text-secondary); line-height: 1.85; }
.section-body strong { color: var(--text-primary); font-weight: 600; }

/* BUTTONS */

.cta-btn { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--teal); color: white; text-decoration: none; padding: 1rem 2.5rem; border-radius: 100px; font-weight: 600; font-size: 1rem; transition: background 0.3s, transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 15px rgba(10,123,111,0.25); }
.cta-btn:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(10,123,111,0.3); }
.cta-btn-secondary { display: inline-block; margin-top: 1rem; font-size: 0.88rem; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.25s; }
.cta-btn-secondary:hover { color: var(--teal); }

/* FOOTER */

footer { background: var(--text-primary); color: rgba(255,255,255,0.6); padding: 3.5rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-family: Fraunces, serif; font-weight: 600; font-size: 1.1rem; color: rgba(255,255,255,0.85); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.25s; }
.footer-links a:hover { color: #3dd8c6; }
.footer-copy { font-size: 0.78rem; opacity: 0.4; margin-top: 2rem; text-align: center; }

/* VIDEO */
.video-wrapper { margin-top: 1.75rem; border-radius: 12px; overflow: hidden; background: #0a0f0e; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.video-wrapper video { width: 100%; display: block; border-radius: 12px; }
.video-label { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.75rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; }
.video-cinema { border-radius: 18px; overflow: hidden; background: #060d0c; box-shadow: 0 20px 60px rgba(0,0,0,0.16); }
.video-cinema video { width: 100%; display: block; }
.video-caption { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 1.25rem; font-size: 0.82rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; }
.video-caption::before { content: '▶'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--teal); color: white; border-radius: 50%; font-size: 0.52rem; padding-left: 2px; flex-shrink: 0; }

/* PHILOSOPHY QUOTE */
.philosophy-section { background: var(--text-primary); color: #ffffff; text-align: center; padding: 7rem 2rem; position: relative; overflow: hidden; }
.philosophy-section::before { content: ''; position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(10,123,111,0.12) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.philosophy-quote { font-family: 'Fraunces', serif; font-weight: 400; font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.5; max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.philosophy-quote em { font-style: normal; color: #3dd8c6; font-weight: 500; }
.philosophy-attr { margin-top: 2rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); font-weight: 400; letter-spacing: 0.05em; position: relative; z-index: 1; }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
