/* =======================================================================
   GLOBAL.CSS â€” MASTER STYLES FOR ALL PAGES
   ======================================================================= */

/* -------------------------------------------------------------
   1. CSS VARIABLES & ROOT THEME TOKENS
------------------------------------------------------------- */
:root {
  --primary: #0b66c3;
  --primary-dark: #084b91;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --bg-light: #f7f8fb;
  --bg-section: #f9fafb;
  --text-main: #1f2933;
  --text-muted: #4b5563;
  --max-width: 1160px;
}

/* -------------------------------------------------------------
   2. GLOBAL ELEMENT RESETS & TYPOGRAPHY
------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 { font-size: 2.25rem; }
p { font-size: 1.125rem; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

a { color: inherit; text-decoration: none; }

/* -------------------------------------------------------------
   3. GLOBAL LAYOUT
------------------------------------------------------------- */
.container,
.rm-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
.rm-section {
  padding: 112px 0 96px;
  background: #ffffff;
}

.rm-section-alt {
  padding: 112px 0 96px;
  background: var(--bg-section);
}

.rm-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.rm-heading p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* -------------------------------------------------------------
   4. GLOBAL HEADER
------------------------------------------------------------- */
.site-header {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo img { height: 70px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  color: #111827;
}

/* Mobile Header Toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #cdd2d8;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.nav-toggle .bar {
  width: 22px;
  height: 2.5px;
  background: #111;
  margin: 4px 0;
  border-radius: 2px;
}

@media(max-width: 1024px){
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    align-items: flex-start;
  }
  nav.main-nav a { padding: 12px 0; font-size: 1.05rem; }
  .logo img { height: 50px; }
  .header-cta { width: 100%; text-align: center; }
}

/* -------------------------------------------------------------
   5. GLOBAL BUTTON SYSTEM
------------------------------------------------------------- */
.btn-primary,
.header-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff !important;
  transition: .15s ease;
  border: none;
  cursor: pointer;
}

.btn-blue { background: var(--primary); }
.btn-dark { background: var(--primary-dark); }
.btn-accent { background: var(--accent); }
.btn-green { background: #059669; }

/* Hover States */
.btn-primary:hover,
.btn-blue:hover,
.header-cta:hover { 
  background: var(--primary-dark); 
  transform: translateY(-2px);
}

.btn-accent:hover { background: var(--accent-dark) !important; }
.btn-green:hover { background: #047857 !important; }
.btn-dark:hover { background: #1f2933 !important; }

/* -------------------------------------------------------------
   6. GLOBAL CARD COMPONENTS
------------------------------------------------------------- */
.card-base {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  padding: 32px;
  transition: transform 0.2s ease;
}

.cta-card {
  text-align: center;
}

.cta-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* -------------------------------------------------------------
   7. GLOBAL GRIDS
------------------------------------------------------------- */
.footer-grid,
.team-grid,
.cta-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.team-grid { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }

/* -------------------------------------------------------------
   8. GLOBAL ACCORDION
------------------------------------------------------------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-button {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

/* -------------------------------------------------------------
   9. GLOBAL UTILITIES
------------------------------------------------------------- */
.section-accent-bar {
  height: 4px;
  width: 60px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  background: var(--accent);
}

.section-accent-bar.regen { background: var(--primary); }
.section-accent-bar.family { background: #059669; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(15px); transition: all 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 70px 0 40px;
}

.footer-section-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: #fff;
}

.footer-logo img { height: 70px; margin-bottom: 16px; }

.footer-links li { margin: 8px 0; line-height: 1.8; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
}

/* Mobile Sticky CTA */
@media(max-width:768px){
  body { padding-bottom: 170px !important; }
}
@media(min-width:769px){
  .mobile-cta-bar { display:none; }
}