/* ==========================================================================
   Revivify Restorative Medicine — shared stylesheet
   Palette: charcoal + burnt orange — close cousin of RevivifyDPC.com's
   black/orange system, warmed to charcoal and deepened to a burnt orange
   Type: Oswald (display) + Public Sans (body/UI) — matches RevivifyDPC.com
   ========================================================================== */

:root {
  --charcoal: #1C1813;
  --charcoal-2: #262019;
  --charcoal-3: #302921;
  --bronze: #C1571F;
  --bronze-deep: #973F17;
  --bronze-bright: #D97A3E;
  --bronze-pale: #E8AF82;
  --bronze-soft: rgba(193, 87, 31, 0.14);
  --bronze-soft-strong: rgba(193, 87, 31, 0.22);
  --bronze-tint: #FBEEE4;
  --cream: #FFFDFD;
  --cream-2: #FAFAFA;
  --white: #FFFFFF;
  --ink: #141210;
  --ink-muted: #46413B;
  --border: #EDEDED;
  --border-dark: #2E2820;
  --on-bronze: #170F08;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Public Sans', sans-serif;

  --container: 1200px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.01em;
}
p { margin: 0; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 1000;
  background: var(--bronze);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bronze-soft);
  color: var(--bronze-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
}
.eyebrow.on-dark {
  background: var(--bronze-soft-strong);
  color: var(--bronze-pale);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  min-height: 44px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--bronze); color: var(--cream); }
.btn-primary:hover { background: var(--bronze-bright); }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: #2A2519; }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(255,253,253,0.35); }
.btn-outline-light:hover { border-color: var(--bronze); color: var(--bronze-pale); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline-dark:hover { border-color: var(--bronze); color: var(--bronze-deep); }
.btn-link {
  color: var(--bronze-deep);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease, gap .15s ease;
}
.btn-link:hover { color: var(--bronze); gap: 10px; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 3px solid var(--bronze);
}
.site-header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-lockup {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img { height: 40px; width: auto; display: block; }
.logo-img-footer { height: 34px; width: auto; display: block; }
.nav {
  display: flex;
  align-items: center;
  gap: 0px;
  flex-wrap: wrap;
  font-family: var(--font-body);
}
.navlink {
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--cream);
  padding: 10px 11px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.navlink:hover { background: var(--bronze-soft-strong); color: var(--bronze-pale); }
.navlink.active { color: var(--bronze-pale); background: var(--bronze-soft-strong); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-call {
  background: var(--bronze);
  color: var(--cream);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease;
}
.header-call:hover { background: var(--bronze-bright); }
.phone-short { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--charcoal);
    border-bottom: 3px solid var(--bronze);
    padding: 10px 20px 20px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav.open { display: flex; animation: nav-in .2s ease both; }
  .phone-full { display: none; }
  .phone-short { display: inline; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Footer ---- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-body);
  padding: 56px 28px 28px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-pale);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: var(--cream); text-decoration: none; font-size: 15px; transition: color .15s ease; }
.footer-link:hover { color: var(--bronze-pale); }
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #9C9284;
  font-size: 13px;
}
.footer-bottom a { color: #9C9284; text-decoration: none; }
.footer-bottom a:hover { color: var(--bronze-pale); }
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Sections & grids ---- */
section { padding: 96px 28px; }
.section-tight { padding: 72px 28px; }
.section-dark { background: var(--charcoal); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-muted { background: var(--cream-2); }
.section-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  section { padding: 64px 20px; }
}

.card {
  background: var(--bronze-tint);
  border: 2px solid var(--charcoal);
  border-top: 4px solid var(--bronze);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.card h3 { transition: color .18s ease; }
.card:hover {
  border-color: var(--bronze);
  box-shadow: 0 16px 32px rgba(23,20,15,0.18);
  transform: translateY(-4px) scale(1.02);
}
.card:hover h3 { color: var(--bronze-deep); }
.card-link { text-decoration: none; color: inherit; display: block; }

.tag-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bronze-soft);
  color: var(--bronze-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 18px;
}
.tag-icon svg { width: 26px; height: 26px; }

.rounded-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.rounded-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Blog ---- */
.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.filter-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.filter-btn:hover { border-color: var(--bronze); color: var(--bronze-deep); }
.filter-btn.active { background: var(--bronze); border-color: var(--bronze); color: var(--cream); }

.blog-card {
  display: flex;
  background: var(--white);
  border: 2px solid var(--charcoal);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.blog-card:hover { border-color: var(--bronze); box-shadow: 0 14px 32px rgba(23,20,15,0.14); transform: translateY(-3px); }
.blog-card-thumb { width: 160px; flex-shrink: 0; background: var(--charcoal); display: flex; align-items: center; justify-content: center; }
.blog-card-thumb svg { width: 40px; height: 40px; color: var(--bronze); }
.blog-card-thumb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 26px 28px; flex: 1; }
.blog-card-category { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bronze-deep); margin-bottom: 8px; }
.blog-card-body h3 { font-size: 21px; margin-bottom: 8px; transition: color .18s ease; }
.blog-card:hover .blog-card-body h3 { color: var(--bronze-deep); }
.blog-card-body p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.blog-card-meta { font-size: 13px; color: var(--ink-muted); opacity: .8; }
@media (max-width: 640px) {
  .blog-card { flex-direction: column; }
  .blog-card-thumb { width: 100%; height: 110px; }
}

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Staggered grid/card reveal ---- */
.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .03s; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.stagger.in > *:nth-child(3) { transition-delay: .13s; }
.stagger.in > *:nth-child(4) { transition-delay: .18s; }
.stagger.in > *:nth-child(5) { transition-delay: .23s; }
.stagger.in > *:nth-child(6) { transition-delay: .28s; }
.stagger.in > *:nth-child(7) { transition-delay: .33s; }
.stagger.in > *:nth-child(8) { transition-delay: .38s; }

/* ---- Misc utilities ---- */
.text-muted { color: var(--ink-muted); }
.max-prose { max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.cluster { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
