/* Sage Urgent Care — Site Styles
   Used across all new pages. Matches existing sageurgentcare.com aesthetic.
*/

:root {
  --sage-900: #1f2f1f;
  --sage-800: #2a3f2a;
  --sage-700: #3a523a;
  --sage-600: #4d6b4d;
  --sage-500: #6b8f6b;
  --sage-200: #c9d8c9;
  --sage-100: #e6efe6;
  --sage-50: #f3f7f3;
  --cream: #eef3ec;
  --paper: #f4f7f2;
  --ink: #1a1f1a;
  --ink-soft: #4a534a;
  --ink-muted: #6e766e;
  --rule: #d8dfd6;
  --accent: #b8755a;
  --accent-soft: #c0826a;
  --warning-bg: #fef8f0;
  --warning-rule: #e8c89e;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --rad: 6px;
  --rad-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(31, 47, 31, 0.06), 0 1px 3px rgba(31, 47, 31, 0.04);
  --shadow-md: 0 4px 12px rgba(31, 47, 31, 0.08), 0 2px 4px rgba(31, 47, 31, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage-800);
  color: white;
  padding: 12px 18px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Top hours bar */
.hours-bar {
  background: var(--sage-800);
  color: var(--sage-100);
  font-size: 14px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}

.hours-bar strong {
  color: white;
  font-weight: 600;
}

/* Contact strip */
.contact-strip {
  background: var(--sage-50);
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.contact-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: var(--ink-soft);
}

.contact-strip a {
  color: var(--sage-800);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 600;
}

.contact-strip a:hover {
  text-decoration: underline;
}

/* Header */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-800);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--sage-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-text .tagline {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

nav.primary a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--rad);
  transition: background 0.15s ease, color 0.15s ease;
}

nav.primary a:hover,
nav.primary a:focus-visible {
  background: var(--sage-100);
  color: var(--sage-800);
}

nav.primary a[aria-current="page"] {
  color: var(--sage-800);
  background: var(--sage-50);
}

.nav-cta {
  background: var(--sage-800);
  color: white !important;
  padding: 10px 18px !important;
  border-radius: var(--rad) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--sage-900) !important;
}

/* Layout */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

main.wide {
  max-width: 1100px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--sage-800);
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: var(--rule);
}

.breadcrumbs .current {
  color: var(--ink);
}

/* Page section label */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-bottom: 14px;
}

/* Headings */
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sage-900);
  margin-bottom: 20px;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--sage-900);
  margin-top: 56px;
  margin-bottom: 16px;
}

h2 em {
  font-style: italic;
  color: var(--accent);
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--sage-800);
  margin-top: 32px;
  margin-bottom: 10px;
}

h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--sage-800);
  margin-top: 24px;
  margin-bottom: 6px;
}

/* Body text */
p {
  margin-bottom: 18px;
  color: var(--ink);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

main p a, main li a {
  color: var(--sage-800);
  text-decoration: underline;
  text-decoration-color: var(--sage-200);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.15s ease;
}

main p a:hover, main li a:hover {
  text-decoration-color: var(--sage-800);
}

ul, ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 600;
  color: var(--sage-900);
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

/* Hero metadata strip (price, walk-in info) */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-meta strong {
  color: var(--sage-900);
  font-weight: 700;
}

.hero-meta .sep {
  color: var(--rule);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--rad);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.005em;
}

.btn-primary {
  background: var(--sage-800);
  color: white;
}

.btn-primary:hover {
  background: var(--sage-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--paper);
  color: var(--sage-800);
  border: 1.5px solid var(--sage-700);
}

.btn-secondary:hover {
  background: var(--sage-50);
}

/* Info card */
.info-card {
  background: var(--cream);
  border-radius: var(--rad-lg);
  padding: 28px;
  margin: 40px 0;
  border-left: 4px solid var(--sage-700);
}

.info-card h3 {
  margin-top: 0;
  color: var(--sage-900);
}

.info-card p:last-child {
  margin-bottom: 0;
}

/* Warning callout */
.callout-warn {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-rule);
  border-radius: var(--rad);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
}

.callout-warn strong {
  color: var(--accent);
}

/* Why-grid (2 column features) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.why-item h3 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--sage-900);
  font-family: var(--sans);
  font-weight: 600;
}

.why-item p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* FAQ accordion */
details.faq {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

details.faq:first-of-type {
  border-top: 1px solid var(--rule);
}

details.faq summary {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sage-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--sage-600);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

details.faq[open] summary::after {
  content: '–';
}

details.faq > div {
  padding-top: 12px;
  color: var(--ink-soft);
}

details.faq > div p {
  margin-bottom: 10px;
}

details.faq > div p:last-child {
  margin-bottom: 0;
}

/* Provider card (for /our-team) */
.provider-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}

.provider-card:first-of-type {
  border-top: none;
}

.provider-photo {
  width: 180px;
  height: 220px;
  background: var(--sage-100);
  border-radius: var(--rad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
  padding: 16px;
}

.provider-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.provider-card .role {
  font-size: 14px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 500;
}

.provider-card .credentials {
  font-size: 14px;
  margin-top: 16px;
}

.provider-card .credentials dt {
  font-weight: 600;
  color: var(--sage-800);
  margin-top: 10px;
}

.provider-card .credentials dd {
  margin-left: 0;
  color: var(--ink-soft);
}

/* Bottom CTA */
.cta-block {
  background: var(--sage-800);
  color: white;
  padding: 48px 32px;
  border-radius: var(--rad-lg);
  margin: 56px 0 24px;
  text-align: center;
}

.cta-block h2 {
  color: white;
  margin-top: 0;
}

.cta-block h2 em {
  color: var(--accent-soft);
}

.cta-block p {
  color: var(--sage-100);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 24px;
}

.cta-block .btn-primary {
  background: white;
  color: var(--sage-800);
}

.cta-block .btn-primary:hover {
  background: var(--cream);
  color: var(--sage-900);
}

.cta-block .btn-secondary {
  background: transparent;
  color: white;
  border-color: var(--sage-200);
}

.cta-block .btn-secondary:hover {
  background: var(--sage-700);
}

.cta-block .btn-row {
  justify-content: center;
}

/* Reviewer byline */
.byline {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-muted);
}

.byline strong {
  color: var(--sage-800);
}

.disclaimer {
  margin-top: 24px;
  padding: 18px;
  background: var(--sage-50);
  border-radius: var(--rad);
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}

/* Footer */
footer.site-footer {
  background: var(--sage-900);
  color: var(--sage-200);
  padding: 56px 24px 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo-mark {
  width: 56px;
  height: 56px;
  font-size: 28px;
}

.footer-brand p {
  color: var(--sage-200);
  font-size: 14px;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 280px;
}

footer h4 {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin: 0 0 16px;
  font-weight: 700;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li {
  margin-bottom: 9px;
}

footer a {
  color: var(--sage-200);
  text-decoration: underline;
  text-decoration-color: rgba(201, 216, 201, 0.4);
  text-underline-offset: 2px;
  font-size: 14px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

footer a:hover {
  color: white;
  text-decoration-color: white;
}

.footer-contact-line {
  font-size: 14px;
  color: var(--sage-200);
  margin-bottom: 9px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 216, 201, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(201, 216, 201, 0.7);
}

.footer-bottom a {
  font-size: 13px;
  margin-right: 18px;
}

.areas-served {
  font-size: 13px;
  color: rgba(201, 216, 201, 0.85);
  margin-top: 14px;
  letter-spacing: 0.01em;
}

/* Mobile */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  nav.primary {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  nav.primary a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .contact-strip-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  main {
    padding: 32px 20px 56px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    margin-top: 40px;
  }

  .provider-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .provider-photo {
    width: 140px;
    height: 170px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-block {
    padding: 36px 24px;
  }
}

@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Print */
@media print {
  .hours-bar, .contact-strip, header.site-header, footer.site-footer, .cta-block, .btn-row {
    display: none;
  }
  body { background: white; }
  main { max-width: 100%; padding: 0; }
}


/* ── Contextual blog cross-link (added DEPLOY_19) ── */
.related-read {
  margin: 32px 0;
  padding: 18px 22px;
  background: var(--sand, #f7f4ed);
  border-left: 3px solid var(--sage, #5a7a5a);
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
}
.related-read strong {
  color: var(--ink, #2a3f2a);
}
.related-read a {
  color: var(--sage, #5a7a5a);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.related-read a:hover {
  border-bottom-color: var(--sage, #5a7a5a);
}
/* ── end related-read ── */


/* ── Related care links block (added DEPLOY_21) ── */
.related-care-links {
  list-style: none;
  padding: 0;
  margin: 18px 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 24px;
}
.related-care-links li {
  padding: 0;
  margin: 0;
}
.related-care-links li a {
  display: inline-block;
  padding: 4px 0;
  color: var(--sage, #5a7a5a);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.related-care-links li a::before {
  content: "→ ";
  color: var(--sage, #5a7a5a);
  margin-right: 4px;
}
.related-care-links li a:hover {
  border-bottom-color: var(--sage, #5a7a5a);
}
/* ── end related care links ── */


/* ── External authoritative source citations (added DEPLOY_27) ── */
.external-references {
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--sand, #f7f4ed);
  border-left: 3px solid var(--gold-light, #c9a84c);
  border-radius: 0 4px 4px 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink, #2a3f2a);
}
.external-references strong {
  color: var(--sage-deep, #1e2a1e);
  margin-right: 4px;
}
.external-references a {
  color: var(--sage, #5a7a5a);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.external-references a:hover {
  border-bottom-color: var(--sage, #5a7a5a);
}
/* ── end external references ── */

/* ===== FAQ Card Style (matches homepage) ===== */
.faq-list { margin-top: 24px; max-width: 760px; }
.faq-item {
  background: var(--cream, #eef3ec);
  border: 1px solid var(--sage-pale, #d8e2d8);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sage-deep, #2a3f2a);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.4;
}
.faq-q:hover { background: rgba(0,0,0,0.02); }
.faq-q .chev { flex-shrink: 0; transition: transform 0.2s ease; color: var(--sage, #7a9f7a); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 1200px; }
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-soft, #555); font-size: 0.97rem; line-height: 1.7; }
.faq-a-inner p { margin: 0 0 10px; }
.faq-a-inner p:last-child { margin-bottom: 0; }


/* ── Sticky mobile call bar (added v15, site-wide) ── */
  .sticky-call {
    display: none;  /* hidden on desktop */
  }
  @media (max-width: 900px) {
    .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, #d8a64e);
      color: var(--sage-deep, #2a3f2a);
      font-family: var(--font-body, "DM Sans", sans-serif);
      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);
    }
    /* Chrome paint-artifact fix: contain the fixed+animated layer so the
       pulsing pseudo-element can't bleed a ghost paint below the page. */
    .sticky-call {
      contain: layout paint;
      will-change: transform;
      backface-visibility: hidden;
    }
    .sticky-call svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
    }
    /* Pulse ring around the phone icon to draw the eye */
    .sticky-call-pulse {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      isolation: isolate;
    }
    .sticky-call-pulse::before {
      content: '';
      position: absolute;
      inset: -6px;
      border-radius: 50%;
      background: var(--sage-deep, #2a3f2a);
      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; }
    }
    /* Add bottom padding to body so the sticky button doesn't cover footer/CTA content */
    body { padding-bottom: 80px; }
  }


