/* ============================================
   Mid-Michigan Radiology Associates — styles.css
   ============================================ */
:root {
  --primary: #0891B2;
  --primary-dark: #0E7490;
  --accent: #22D3EE;
  --cta: #16A34A;
  --cta-dark: #15803D;
  --bg-light: #F0FDFA;
  --navy: #0C1A2E;
  --navy-2: #0F2744;
  --text: #1E293B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(12, 26, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 26, 46, 0.14);
  --font-head: 'Figtree', sans-serif;
  --font-body: 'Noto Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; transition: all .25s ease;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,163,74,.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-teal { background: var(--primary); color: #fff; }
.btn-teal:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy); color: #94A3B8; font-size: .85rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--accent); font-weight: 600; }
.topbar span strong { color: #CBD5E1; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { font-family: var(--font-head); }
.brand-text .brand-name { font-weight: 800; font-size: 1.05rem; color: var(--navy); line-height: 1.15; display: block; }
.brand-text .brand-tag { font-size: .72rem; color: var(--primary); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--bg-light); }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { padding: 10px 22px; font-size: .9rem; }

/* dropdown */
.dropdown > a::after { content: " ▾"; font-size: .7em; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { padding: 9px 14px; font-size: .9rem; border-radius: 8px; }
.dropdown-menu .sub { padding-left: 28px; font-weight: 500; color: var(--text-muted); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 26px; height: 3px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0C1A2E 0%, #0F2744 40%, #0E3A50 75%, #0C2D42 100%);
  padding: 110px 0 90px;
}
.hero::before {
  content: ""; position: absolute; top: -120px; right: -80px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(8,145,178,.25) 0%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; bottom: -100px; left: -60px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.12) 0%, transparent 70%);
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: linear-gradient(#22D3EE 1px, transparent 1px), linear-gradient(90deg, #22D3EE 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3);
  color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800;
  max-width: 760px; margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead { color: #B6C5D8; font-size: 1.15rem; max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-split {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px;
  align-items: center; margin-bottom: 64px;
}
.hero-media { position: relative; min-height: 380px; }
.hero-photo {
  width: 86%; height: 340px; object-fit: cover; border-radius: 20px;
  border: 1px solid rgba(34,211,238,.25);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  margin-left: auto;
}
.hero-photo-sm {
  position: absolute; left: 0; bottom: -28px;
  width: 46%; height: 180px; object-fit: cover; border-radius: 16px;
  border: 3px solid var(--navy-2);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 36px;
}
.hero-stats .stat .num {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--accent);
}
.hero-stats .stat .label { color: #8FA3BC; font-size: .88rem; white-space: pre-line; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; padding: 76px 0 60px; overflow: hidden;
  background: linear-gradient(120deg, #0C1A2E 0%, #0F2744 55%, #0E3A50 100%);
}
.page-hero::after {
  content: ""; position: absolute; top: -100px; right: -60px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(8,145,178,.3) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: .85rem; color: #8FA3BC; margin-bottom: 14px; font-family: var(--font-head); }
.breadcrumb a { color: var(--accent); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: #B6C5D8; max-width: 640px; font-size: 1.08rem; }
.page-hero-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.page-hero-media img {
  width: 100%; height: 240px; object-fit: cover; border-radius: 18px;
  border: 1px solid rgba(34,211,238,.25);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.section-light { background: var(--bg-light); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: all .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(8,145,178,.35); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(8,145,178,.12), rgba(34,211,238,.18));
  margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; stroke: var(--primary); }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; }
.card .more { font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.card .more::after { content: " →"; transition: margin .2s; }
.card:hover .more::after { margin-left: 4px; }
a.card { display: block; color: inherit; }

/* image cards */
.img-card { overflow: hidden; padding: 0; }
.img-card img { height: 200px; width: 100%; object-fit: cover; }
.img-card .body { padding: 26px; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .img-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 18px; }
.split p { color: var(--text-muted); margin-bottom: 16px; }

/* check list */
.checklist { list-style: none; margin: 20px 0; }
.checklist li {
  padding-left: 34px; position: relative; margin-bottom: 12px; color: var(--text);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(22,163,74,.12); color: var(--cta);
  font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center;
}

/* ---------- Detail page content ---------- */
.detail-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: 48px; align-items: start; }
.detail-content h2 { font-size: 1.7rem; font-weight: 800; margin: 38px 0 14px; }
.detail-content h2:first-child { margin-top: 0; }
.detail-content h3 { font-size: 1.2rem; font-weight: 700; margin: 26px 0 10px; color: var(--primary-dark); }
.detail-content p { color: #3A4A5E; margin-bottom: 14px; }
.detail-content figure { margin: 24px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-content figure img { width: 100%; }
.detail-content figcaption { font-size: .82rem; color: var(--text-muted); padding: 10px 16px; background: var(--bg-light); }

.info-box {
  background: var(--bg-light); border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 24px 0;
}
.info-box strong { color: var(--primary-dark); }

/* sidebar */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { border-bottom: 1px solid var(--border); }
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card li a { display: block; padding: 10px 2px; font-weight: 600; font-family: var(--font-head); font-size: .92rem; color: var(--text); }
.sidebar-card li a:hover, .sidebar-card li a.active { color: var(--primary); padding-left: 8px; transition: all .2s; }
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy), #113852); color: #fff; text-align: center;
}
.sidebar-cta h3 { color: #fff; }
.sidebar-cta p { color: #B6C5D8; font-size: .9rem; margin-bottom: 18px; }
.sidebar-cta .phone { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--accent); display: block; margin-bottom: 16px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--accent), var(--primary)); border-radius: 2px;
}
.timeline .t-item { position: relative; padding-bottom: 36px; }
.timeline .t-item::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; border: 4px solid var(--primary);
}
.timeline h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.timeline p { color: var(--text-muted); font-size: .96rem; }

/* ---------- Testimonials ---------- */
.testimonial { position: relative; }
.testimonial .quote-mark { font-family: var(--font-head); font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.testimonial p { font-style: italic; color: #3A4A5E; }
.testimonial .who { margin-top: 16px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-style: normal; }
.testimonial .who span { display: block; font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, #0AA9CC);
  color: #fff; text-align: center; border-radius: 24px; padding: 64px 40px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-band p { color: #D7F5FB; margin-bottom: 30px; position: relative; }
.cta-band .btn { position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-band .btn-primary:hover { background: var(--bg-light); }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card .icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(8,145,178,.12), rgba(34,211,238,.18));
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { color: var(--text-muted); font-size: .95rem; }
.map-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

.map-card {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: #fff; border: 1px solid var(--border);
}
.map-card-art {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, var(--navy), var(--primary-dark) 70%, var(--primary));
}
.map-card-art svg { width: 64px; height: 64px; opacity: .9; }
.map-card-body { padding: 28px; }
.map-card-body h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.map-card-body p { color: var(--text-muted); margin-bottom: 20px; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.hours-table td:last-child { text-align: right; font-weight: 700; font-family: var(--font-head); }
.hours-table .closed td:last-child { color: var(--text-muted); font-weight: 500; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #8FA3BC; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; }
footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: #8FA3BC; font-size: .92rem; transition: color .2s; }
footer a:hover { color: var(--accent); }
.footer-brand img { height: 44px; margin-bottom: 16px; background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand p { font-size: .92rem; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-split, .page-hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { min-height: 0; margin-bottom: 28px; }
  .hero-photo { width: 100%; height: 280px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100vh;
    background: #fff; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 90px 24px 24px; box-shadow: -10px 0 40px rgba(0,0,0,.15);
    transition: right .35s ease; z-index: 99; overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 0 14px; display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-cta { margin: 14px 0 0; }
  .topbar .container { justify-content: center; text-align: center; }
  section { padding: 60px 0; }
  .hero { padding: 80px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

@media (max-width: 520px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
