/* ============================================
   Sage Urgent Care — Blog Styles
   Matches existing site design system
   ============================================ */

:root {
  --sage: #5a7a5a;
  --sage-dark: #3d5c3d;
  --sage-deep: #2a3f2a;
  --sage-light: #8aab8a;
  --sage-pale: #c8d9c8;
  --sage-mist: #eef4ee;
  --cream: #faf7f2;
  --warm-white: #fffef9;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --charcoal: #1e2a1e;
  --gray: #6b7a6b;
  --light-gray: #d4ddd4;
  --red-soft: #c0413a;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(42,63,42,0.10);
  --shadow-lg: 0 12px 48px rgba(42,63,42,0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--sage-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Skip link */
.skip-to-content {
  position: absolute; left: -9999px; top: 8px;
  z-index: 10000; padding: 12px 18px;
  background: var(--sage-deep); color: #fff;
  font-weight: 600; text-decoration: none; border-radius: 6px;
}
.skip-to-content:focus { left: 16px; outline: 3px solid var(--gold); }

/* ── TOPBAR ── */
.topbar {
  background: var(--sage-deep);
  color: var(--sage-pale);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 0;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.topbar a { color: var(--gold-light); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-hours { display: flex; align-items: center; gap: 8px; }
.topbar-hours::before {
  content: '●'; color: #6fcf6f; font-size: 0.6rem;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── NAV ── */
nav.site-nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--sage-pale);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(42,63,42,0.07);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark-img {
  width: 44px; height: 44px; border-radius: 50%;
  flex-shrink: 0; display: block; object-fit: cover;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600;
  color: var(--sage-deep); letter-spacing: 0.01em;
}
.logo-sub {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--sage-light);
}
.nav-links {
  display: flex; align-items: center;
  gap: 20px; list-style: none;
}
.nav-links a {
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  color: var(--charcoal); letter-spacing: 0.02em;
  transition: color var(--transition); position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--sage);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--sage); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--sage); color: #fff !important;
  padding: 10px 22px; border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--sage-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); transition: var(--transition);
}

/* ── BLOG HERO (used on landing + post pages) ── */
.blog-hero {
  background: var(--sage-deep);
  color: #fff;
  padding: 80px 24px 64px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(90,122,90,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(201,168,76,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.blog-hero-inner {
  max-width: 800px; margin: 0 auto;
  position: relative; z-index: 1;
}
.blog-hero-tag {
  display: inline-block;
  background: rgba(201,168,76,0.18);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.blog-hero h1 em { font-style: italic; color: var(--gold-light); }
.blog-hero-meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
}
.blog-hero-meta a { color: var(--gold-light); text-decoration: none; }
.blog-hero-meta a:hover { color: #fff; }
.blog-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.blog-hero-author { color: rgba(255,255,255,0.9); }
.blog-hero-author strong { font-weight: 500; color: #fff; }
.blog-hero-date { color: rgba(255,255,255,0.6); }
.blog-hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 680px;
}

/* ── ARTICLE ── */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 32px;
}
.article p,
.article ul,
.article ol {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #2a3a2a;
  margin-bottom: 1.4em;
}
.article p:first-of-type::first-line {
  font-weight: 500;
}
.article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--sage-deep);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 2.4em 0 0.8em;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin: 2em 0 0.6em;
  line-height: 1.3;
}
.article ul, .article ol { padding-left: 24px; }
.article ul li, .article ol li { margin-bottom: 0.5em; }
.article ul li::marker { color: var(--sage); }
.article ol li::marker { color: var(--sage); font-weight: 600; }
.article strong { color: var(--sage-deep); font-weight: 600; }
.article a { color: var(--sage-dark); font-weight: 500; }
.article a:hover { color: var(--sage); }

.article-divider {
  border: none;
  border-top: 1px solid var(--sage-pale);
  margin: 2.5em 0;
}

/* Callout box (used inside articles for tips/warnings) */
.article .callout {
  background: var(--sage-mist);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 2em 0;
}
.article .callout p:last-child { margin-bottom: 0; }
.article .callout strong { color: var(--sage-deep); }

.article .disclaimer {
  background: var(--cream);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 2.5em;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── CTA BLOCK (article footer) ── */
.cta-block {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 0 24px 64px;
}
.cta-card {
  background: linear-gradient(135deg, var(--sage-deep) 0%, var(--sage-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,168,76,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-card h2 em { font-style: italic; color: var(--gold-light); }
.cta-card p {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--sage-deep);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* ── BLOG LANDING — POST GRID ── */
.blog-landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.post-card {
  background: var(--warm-white);
  border: 1px solid var(--sage-pale);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(42,63,42,0.04);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-light);
}
.post-card-tag {
  display: inline-block;
  background: var(--sage-mist);
  color: var(--sage-deep);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  align-self: flex-start;
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--sage-deep);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.post-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.post-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.post-card:hover .post-card-link {
  gap: 10px;
  color: var(--sage-dark);
}

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-brand .logo-name { color: #fff; font-size: 1.5rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.45); }
.footer-brand p {
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  margin-top: 16px; line-height: 1.7; max-width: 280px;
}
.footer-col h3 {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-col ul {
  list-style: none; display: flex;
  flex-direction: column; gap: 8px;
}
.footer-col ul li a {
  text-decoration: none; font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap;
  gap: 12px; font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--gold-light); }

/* ── STICKY MOBILE CALL ── */
.sticky-call { display: none; }


/* Tablet/small laptop: too many nav items — switch to hamburger earlier */
@media (max-width: 1340px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--warm-white);
    padding: 24px; gap: 16px;
    border-bottom: 1px solid var(--sage-pale);
    box-shadow: var(--shadow);
    z-index: 100;
  }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--warm-white);
    padding: 24px; gap: 16px;
    border-bottom: 1px solid var(--sage-pale);
    box-shadow: var(--shadow);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .sticky-call {
    display: flex;
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    z-index: 100;
    align-items: center; justify-content: center;
    gap: 10px;
    padding: 16px 22px;
    background: var(--gold);
    color: var(--sage-deep);
    font-family: var(--font-body);
    font-weight: 600; font-size: 1rem;
    text-decoration: none;
    border-radius: 100px;
    box-shadow: 0 6px 24px rgba(42,63,42,0.35), 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: stickySlideUp 0.5s ease 1s both;
  }
  .sticky-call:active {
    transform: scale(0.97);
    box-shadow: 0 3px 12px rgba(42,63,42,0.3);
  }
  .sticky-call svg { width: 18px; height: 18px; flex-shrink: 0; }
  .sticky-call-pulse {
    position: relative; display: inline-flex;
    align-items: center; justify-content: center;
  }
  .sticky-call-pulse::before {
    content: '';
    position: absolute; inset: -6px;
    border-radius: 50%;
    background: var(--sage-deep);
    opacity: 0.18;
    animation: stickyPulse 2.2s ease-in-out infinite;
  }
  @keyframes stickyPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0; }
  }
  @keyframes stickySlideUp {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  body { padding-bottom: 80px; }

  .blog-hero { padding: 56px 24px 48px; }
  .article { padding: 48px 20px 24px; }
  .cta-block { padding: 0 20px 48px; }
  .cta-card { padding: 36px 24px; }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { padding: 48px 16px 24px; }
  .footer-bottom {
    flex-direction: column; gap: 12px;
    text-align: center; padding-top: 24px;
  }
  .footer-bottom > div {
    justify-content: center; flex-wrap: wrap;
  }
  .nav-links.open { top: 64px; }
}


/* ── Related articles block (added DEPLOY_19) ── */
.related-articles {
  background: var(--sage-mist);
  padding: 64px 24px;
  margin-top: 64px;
}
.related-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.related-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--sage-deep);
  margin: 0 0 32px;
  text-align: center;
  letter-spacing: -0.01em;
}
.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.related-grid .post-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--sage-deep);
  margin: 0 0 12px;
  line-height: 1.25;
}
@media (max-width: 640px) {
  .related-articles { padding: 48px 16px; }
  .related-heading { font-size: 1.6rem; }
}
/* ── end related articles ── */

.post-card-author { display: block; font-size: 0.85rem; color: var(--text-muted, #6b6b6b); margin: 4px 0 8px; }
