/* ============================================================
   20 Mile Urgent Care & Family Medicine — Shared Stylesheet
   ============================================================ */

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

:root {
  --black:      #111214;
  --charcoal:   #1e2024;
  --dark:       #2c2f36;
  --mid:        #6b7280;
  --border:     #e5e7eb;
  --light:      #e8eaed;
  --offwhite:   #f4f5f7;
  --white:      #ffffff;
  --red:        #8C1F28;
  --red-hover:  #7a1b23;
  --red-pale:   #fce8ea;

  /* Hero / page header background — dark slate instead of burgundy gradient */
  --hero-bg: linear-gradient(120deg, #1a2e2e 0%, #1f3535 50%, #1a3030 100%);
  --hero-overlay: radial-gradient(ellipse at 20% 50%, rgba(140,31,40,0.15) 0%, transparent 65%);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { line-height: 1.2; }

/* ── SHARED UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 1rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.6rem;
  border-radius: 7px;
  transition: all 0.18s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn-outline:hover { background: var(--red); color: white; }
.btn-white { background: white; color: var(--red); }
.btn-white:hover { background: var(--offwhite); }
.btn-white-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ── TOP BAR ── */
.topbar {
  background: var(--charcoal);
  color: var(--light);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 7px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a { color: var(--light); text-decoration: none; transition: color 0.15s; }
.topbar a:hover { color: white; }
.topbar-left, .topbar-right { display: flex; gap: 1.25rem; align-items: center; }
.topbar-sep { opacity: 0.25; }

/* ── NAV ── */
nav {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 50px; width: auto; display: block; }
.nav-links { display: flex; gap: 0.15rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--red); background: var(--red-pale); }
.nav-links a.active { color: var(--red); }
.nav-cta {
  background: var(--red) !important;
  color: white !important;
  margin-left: 0.5rem;
  padding: 0.5rem 1.15rem !important;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--red-hover) !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(--dark); border-radius: 2px; }

/* ── PAGE HEADER (used on all inner pages) ── */
.page-header {
  background: var(--hero-bg);
  color: white;
  padding: 3.5rem 0;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.page-header-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8d5d5;
  margin-bottom: 0.6rem;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}
.page-header p {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 0;
  font-size: 0.82rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: white; }

/* ── RESPONSIVE ── */
@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: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 0.25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .nav-cta { margin-left: 0 !important; }
  .topbar-left { display: none; }
}
