/* CPMC Health — Shared CSS for all inner pages */
:root {
  --olive-700: #3A5229;
  --olive-500: #6B8C5A;
  --olive-400: #8FAF7A;
  --olive-100: #E2F0EB;
  --olive-50:  #F4F7F0;
  --blush:     #F5EDE8;
  --blush-border: #E8D0C5;
  --gold:      #C17F3E;
  --white:     #FFFFFF;
  --card-border: #D4E0C8;
  --text-dark: #3A5229;
  --text-mid:  #6B8C5A;
  --text-light:#8FAF7A;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 18px; line-height: 1.75; color: var(--text-mid); background: var(--olive-50); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
#nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 6%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background .35s, border-color .35s;
}
#nav.scrolled { background: var(--olive-700); border-color: transparent; }
.nav-logo { display: flex; align-items: center; gap: 0; flex-shrink: 0; }

.nav-logo-mark { height: 70px; width: auto; max-width: 280px; object-fit: contain; transition: filter .35s; }
#nav.scrolled .nav-logo-mark { filter: none; background: var(--white); border-radius: 6px; padding: 3px 6px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a { font-size: 16px; color: var(--olive-700); font-weight: 500; transition: color .35s; }
.nav-links a.active { color: var(--gold); }
#nav.scrolled .nav-links a { color: var(--olive-400); }
.nav-cta { background: var(--gold); color: var(--white); font-size: 15px; font-weight: 500; padding: 10px 18px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 6px; transition: opacity .2s; flex-shrink: 0; }
.nav-cta:hover { opacity: .88; }
.hamburger { display: none; background: none; font-size: 24px; color: var(--olive-700); transition: color .35s; border: none; cursor: pointer; }
#nav.scrolled .hamburger { color: var(--white); }

/* ── MOBILE MENU ── */
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--olive-700); z-index: 200; flex-direction: column; padding: 24px 32px; }
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu-logo { font-size: 16px; font-weight: 600; color: var(--white); }
.mobile-close { background: none; border: none; font-size: 28px; color: var(--white); cursor: pointer; }
.mobile-links { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.mobile-links a { font-size: 22px; font-weight: 500; color: var(--white); }
.mobile-phone { font-size: 18px; font-weight: 500; color: var(--gold); }

/* ── BUTTONS ── */
.btn-gold { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--white); font-size: 16px; font-weight: 500; padding: 13px 24px; border-radius: var(--radius-sm); transition: opacity .2s; white-space: nowrap; }
.btn-gold:hover { opacity: .88; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--olive-700); font-size: 16px; font-weight: 500; padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid var(--olive-700); transition: background .2s, color .2s; }
.btn-ghost:hover { background: var(--olive-700); color: var(--white); }

/* ── TYPOGRAPHY ── */
.label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 12px; }
.section-h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 500; color: var(--olive-700); line-height: 1.2; }
.section-white { background: var(--white); }
.section-blush { background: var(--blush); }

/* ── PAGE HERO ── */
.page-hero { padding: 72px 7% 64px; }
.page-hero-inner { max-width: 680px; }
.page-h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 500; color: var(--olive-700); line-height: 1.15; margin-bottom: 18px; }
.page-body { font-size: 18px; color: var(--text-mid); line-height: 1.8; }

/* ── RESOURCES PAGE ── */
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource-card { background: var(--white); border: 1px solid var(--blush-border); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; }
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(58,82,41,0.1); }
.resource-card.featured { border-color: var(--olive-400); border-width: 2px; }
.resource-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.resource-title { font-size: 16px; font-weight: 500; color: var(--olive-700); line-height: 1.4; }
.resource-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; flex: 1; }
.resource-link { font-size: 13px; color: var(--olive-400); font-weight: 500; display: flex; align-items: center; gap: 4px; margin-top: auto; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { background: var(--olive-50); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 20px; }
.category-card i { font-size: 26px; color: var(--olive-500); display: block; margin-bottom: 12px; }
.category-card h3 { font-size: 16px; font-weight: 600; color: var(--olive-700); margin-bottom: 12px; }
.category-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.category-card ul li a { font-size: 14px; color: var(--text-mid); line-height: 1.4; transition: color .2s; }
.category-card ul li a:hover { color: var(--gold); }

/* ── FOOTER ── */
footer { background: var(--olive-700); padding: 56px 7% 24px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-name { font-size: 15px; font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand-mark { width: 18px; height: 18px; background: var(--olive-400); border-radius: 3px; }
.footer-tagline { font-size: 15px; color: rgba(143,175,122,.8); line-height: 1.7; margin-bottom: 14px; }
.footer-contact { font-size: 15px; color: rgba(143,175,122,.75); display: flex; flex-direction: column; gap: 6px; }
.footer-contact a:hover { color: var(--olive-400); }
.footer-col-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--olive-400); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; list-style: none; }
.footer-links a { font-size: 15px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-links a:hover { color: var(--olive-400); }
.footer-bottom { border-top: 1px solid rgba(143,175,122,.2); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 11px; color: rgba(143,175,122,.55); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 11px; color: rgba(143,175,122,.6); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #nav { padding: 14px 5%; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .resources-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 48px 5% 40px; }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}


/* ── FLOATING QUESTION CARDS (over hero images) ── */
.fc-wrap { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fc { position: absolute; background: var(--white); border-radius: 12px; padding: 12px 16px 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); pointer-events: all; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 4px; max-width: 200px; text-decoration: none; }
.fc:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }
.fc.blush { background: var(--blush); }
.fc-q { font-size: 12.5px; font-weight: 600; color: var(--olive-700); line-height: 1.4; }
.fc-lbl { font-size: 11.5px; color: var(--gold); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.fc-lbl::before { content: "\25B6"; font-size: 8px; color: var(--gold); }
@media (max-width: 520px) {
  .fc-wrap { position: static; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
  .fc { position: static; max-width: 100%; }
}
