/* ===== SHARED STYLES — Providence Health & Lifestyle ===== */

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

:root {
  --green-dark:   #3C5247;
  --green-mid:    #4A6A59;
  --green-light:  #6B8F78;
  --green-pale:   #D4E4DC;
  --cream-dark:   #DDD4AE;
  --cream-mid:    #EDE6CA;
  --cream-light:  #F5EFE0;
  --cream-bg:     #FBF8F2;
  --gold:         #B8943C;
  --gold-light:   #D4B05A;
  --text-dark:    #1A2E25;
  --text-mid:     #3A5248;
  --text-muted:   #6B8270;
  --white:        #FFFFFF;
  --nav-h:        80px;
  --radius:       12px;
  --transition:   200ms ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Geist', sans-serif;
  background: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Geist', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 6px;
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.04em; cursor: pointer; border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--cream-dark); color: var(--green-dark); box-shadow: 0 4px 18px rgba(187,163,100,0.28); }
.btn-primary:hover { background: var(--cream-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(187,163,100,0.36); }
.btn-outline-light { background: transparent; color: var(--cream-dark); border: 2px solid rgba(221,212,174,0.55); }
.btn-outline-light:hover { background: rgba(221,212,174,0.1); border-color: var(--cream-dark); transform: translateY(-2px); }
.btn-green { background: var(--green-dark); color: var(--cream-light); box-shadow: 0 4px 18px rgba(60,82,71,0.25); }
.btn-green:hover { background: var(--green-mid); transform: translateY(-2px); }
.btn-outline-green { background: transparent; color: var(--green-dark); border: 2px solid rgba(60,82,71,0.3); }
.btn-outline-green:hover { background: var(--green-pale); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 4px 18px rgba(184,148,60,0.3); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Geist', sans-serif; font-size: 0.74rem;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 14px;
}
.section-label::before { content: ''; display: block; width: 26px; height: 2px; background: var(--gold); }
.section-label.light { color: var(--gold); }
.section-label.light::before { background: var(--gold); }
.section-label.center { justify-content: center; }

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .reveal.visible { opacity: 1; transform: none; }
  .reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .reveal-left.visible { opacity: 1; transform: none; }
  .reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .reveal-right.visible { opacity: 1; transform: none; }
  .d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; }
  .d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }
  .d5 { transition-delay: 0.40s; } .d6 { transition-delay: 0.48s; }
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(60,82,71,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221,212,174,0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled { background: rgba(26,46,37,0.99); box-shadow: 0 4px 32px rgba(0,0,0,0.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; cursor: pointer; }
.nav-logo svg { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; color: rgba(221,212,174,0.8);
  transition: color var(--transition); position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform var(--transition); transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream-dark); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; padding: 10px 22px; font-size: 0.82rem; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--cream-dark); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.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: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(26,46,37,0.98); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.35rem; font-family: 'Geist', sans-serif; color: var(--cream-dark); font-weight: 500; transition: color var(--transition); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--green-dark); padding: calc(var(--nav-h) + 72px) 0 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(107,143,120,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-label { color: var(--gold); }
.page-hero-label::before { background: var(--gold); }
.page-hero h1 { color: var(--cream-light); margin-bottom: 16px; }
.page-hero p { color: rgba(245,239,224,0.72); max-width: 600px; }
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: rgba(221,212,174,0.5);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 28px;
}
.page-hero-breadcrumb a { color: rgba(221,212,174,0.5); transition: color var(--transition); }
.page-hero-breadcrumb a:hover { color: var(--gold); }
.page-hero-breadcrumb span { color: var(--gold); }

/* ===== FOOTER ===== */
footer { background: #111E18; padding: 64px 0 32px; border-top: 1px solid rgba(221,212,174,0.07); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand svg { height: 38px; }
.footer-brand p { color: rgba(221,212,174,0.48); font-size: 0.86rem; margin-top: 18px; max-width: 270px; }
.footer-col h5 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.87rem; color: rgba(221,212,174,0.52); margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--cream-dark); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(221,212,174,0.07); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(221,212,174,0.32); margin: 0; }

/* ===== CARDS ===== */
.card { background: var(--white); border-radius: 16px; border: 1px solid rgba(60,82,71,0.07); padding: 32px; transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(60,82,71,0.1); }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 18px; }
.icon-box svg { width: 24px; height: 24px; stroke: var(--green-dark); fill: none; stroke-width: 1.5; }
.icon-box.dark { background: rgba(221,212,174,0.12); }
.icon-box.dark svg { stroke: var(--gold); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 72px 0; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; } .mb-64 { margin-bottom: 64px; }
.tag { display: inline-block; padding: 5px 14px; border-radius: 40px; border: 1px solid rgba(60,82,71,0.2); font-size: 0.78rem; color: var(--green-mid); font-weight: 500; }
.divider { width: 48px; height: 2px; background: var(--gold); margin-bottom: 16px; }
.divider.center { margin: 0 auto 16px; }
.bg-green { background: var(--green-dark); }
.bg-cream { background: var(--cream-light); }
.bg-white { background: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@keyframes float {
  from { transform: translateY(0) translateX(0); }
  to   { transform: translateY(-28px) translateX(10px); }
}
