/* ============================================
   Alliance Heart & Vascular PLLC
   Site-wide stylesheet
   ============================================ */

:root {
  --navy: #16324f;
  --navy-dark: #0e2338;
  --red: #b62b35;
  --red-dark: #93202a;
  --gold: #c9a227;
  --ink: #23303d;
  --muted: #5b6b7a;
  --line: #dde5ec;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(22, 50, 79, 0.08);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: "Lora", Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy-dark);
  color: #cfdbe6;
  font-size: 0.85rem;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  flex-wrap: wrap;
}
.utility-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.utility-bar a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-mark {
  flex: none;
  width: 44px;
  height: 44px;
}
.brand-text { line-height: 1.15; }
.brand-name {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.brand-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--navy);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--red);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.btn-outline {
  background: transparent;
  color: var(--red) !important;
}
.btn.btn-outline:hover { background: var(--red); color: #fff !important; }
.btn.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--navy) !important;
}
.btn.btn-light:hover { background: #e9eef4; border-color: #e9eef4; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 70%);
  color: #e8eff6;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 43, 53, 0.35), transparent 65%);
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 55ch;
  color: #c9d6e2;
}
.hero .hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 70%);
  color: #e8eff6;
  padding: 2.75rem 0;
}
.page-hero h1 { color: #fff; margin-bottom: 0.25em; }
.page-hero p { color: #c9d6e2; max-width: 60ch; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head .kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.25rem; }
.card .icon {
  width: 42px;
  height: 42px;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.card ul { padding-left: 1.15rem; margin: 0.5em 0 0; }
.card ul li { margin-bottom: 0.3em; }

/* ---------- Physician cards ---------- */
.physician-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.physician-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.physician-photo {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.physician-photo svg { width: 72px; height: 72px; opacity: 0.45; }
.physician-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.physician-body { padding: 1.4rem 1.5rem 1.6rem; }
.physician-body .specialty {
  display: inline-block;
  background: #f6e8e9;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.6rem;
}
.physician-body h3 { margin-bottom: 0.2em; }
.physician-body .credentials { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.8em; }

/* ---------- Physician profile page ---------- */
.profile-header {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.25rem;
  align-items: start;
}
.profile-header .profile-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: #eaf1f8;
  color: var(--navy);
  border: 1px solid #cfdfee;
  white-space: nowrap;
}
.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}
.condition-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.condition-card .cond-name { font-weight: 700; color: var(--navy); }
.condition-card .cond-desc { font-size: 0.9rem; color: var(--muted); margin-top: 0.15rem; }
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item .what { font-weight: 700; color: var(--navy); }
.timeline-item .where { color: var(--muted); font-size: 0.93rem; }
.timeline-item .when { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }

@media (max-width: 700px) {
  .profile-header { grid-template-columns: 1fr; }
  .profile-header .profile-photo { max-width: 280px; }
}

/* ---------- Location cards ---------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.location-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.location-card h3 { display: flex; align-items: center; gap: 0.5rem; }
.location-card h3 svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.location-card dl { margin: 0.75em 0 0; }
.location-card dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.9em;
}
.location-card dd { margin: 0.15em 0 0; }

/* ---------- Placeholder styling ---------- */
.placeholder {
  color: var(--muted);
  font-style: italic;
}
.placeholder-banner {
  background: #fdf6e3;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  color: #7a6114;
  font-size: 0.92rem;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.75rem;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split .panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--navy);
  color: #fff;
  padding: 2.25rem 0;
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat .num {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.stat .label { font-size: 0.92rem; color: #c9d6e2; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 80%);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #f3d9db; max-width: 55ch; margin: 0 auto 1.4rem; }

/* ---------- Forms ---------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--navy);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--red);
  font-family: "Source Sans 3", Arial, sans-serif;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 1.25rem 1.1rem; color: var(--ink); }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Notice ---------- */
.emergency-note {
  background: #fbeeee;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c8d6;
  padding: 3rem 0 1.5rem;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45em; }
.site-footer a { color: #cfdbe6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8fa3b5;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  h1 { font-size: 1.9rem; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: none; padding-top: 0.75rem; }
  .site-nav a { display: block; padding: 0.75rem 0; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .utility-bar .container { justify-content: center; }
}
