/* Mount Airy Dental Center — site styles */
:root {
  --ink: #182430;
  --ink-2: #24384a;
  --body: #45596b;
  --gold: #d9a419;
  --gold-dark: #b8890e;
  --cream: #faf7f0;
  --paper: #ffffff;
  --mist: #eef2f5;
  --line: #dde5ea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 36, 48, 0.09);
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0rem;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.wrap { width: min(1140px, 92%); margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 0.8rem;
}
.section { padding: 4.5rem 0; }
.section.tint { background: var(--cream); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head p { margin-top: 0.7rem; }

/* Top bar */
.topbar {
  background: var(--ink); color: #b9c6d2; font-size: 0.82rem;
  padding: 0.45rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #e8eef3; }
.topbar span { white-space: nowrap; }

/* Live open/closed status */
.open-status { display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; }
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none;
  position: relative;
}
.status-dot.open { background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); animation: pulse-green 2s infinite; }
.status-dot.closed { background: #e74c3c; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55); animation: pulse-red 2.4s infinite; }
@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
@keyframes pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}
.open-status .status-open-text { color: #7ee2a8; font-weight: 600; }
.open-status .status-closed-text { color: #f1a9a0; font-weight: 600; }
.info-cell .open-status { margin-top: 0.35rem; font-size: 0.92rem; }
.info-cell .status-open-text { color: #7ee2a8; }
.info-cell .status-closed-text { color: #f1a9a0; }

/* Header */
header.site {
  background: var(--ink-2); position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; }
.nav-links .btn { padding: 0.62rem 1.15rem; font-size: 0.9rem; white-space: nowrap; }
.nav-links a {
  color: #dbe4ec; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--gold); }
.btn {
  display: inline-block; background: var(--gold); color: var(--ink) !important;
  font-weight: 700; padding: 0.75rem 1.5rem; border-radius: 999px;
  border: none; cursor: pointer; font-size: 0.95rem; font-family: var(--font-body);
  transition: background .18s ease, transform .18s ease;
  text-decoration: none !important;
}
.btn:hover { background: #e9b62a; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,0.55); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold) !important; background: transparent; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  background:
    linear-gradient(100deg, rgba(20,30,41,0.94) 38%, rgba(20,30,41,0.55) 68%, rgba(20,30,41,0.35)),
    url("../assets/img/hero-office.webp") center/cover no-repeat;
  color: #fff; padding: 6.5rem 0 7rem;
}
.hero h1 { color: #fff; max-width: 620px; }
.hero p.lead { max-width: 540px; margin: 1.2rem 0 2rem; color: #cfd9e2; font-size: 1.08rem; }
.hero .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero .hero-eyebrow { color: var(--gold); }

/* Info strip */
.info-strip { background: var(--ink-2); color: #fff; }
.info-strip .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
}
.info-cell { padding: 1.4rem 1.6rem; border-left: 1px solid rgba(255,255,255,0.09); }
.info-cell:first-child { border-left: none; }
.info-cell h4 { color: var(--gold); font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.3rem; }
.info-cell p { font-size: 0.95rem; color: #d5dee6; }
.info-cell a { color: #fff; font-weight: 600; }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.55rem; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
  color: var(--gold-dark); font-size: 1.3rem;
}
.card ul { margin: 0.6rem 0 0 1.1rem; }
.card li { margin: 0.3rem 0; }

/* Feature split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.split .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; margin-top: 1.4rem; }
.checklist li { padding-left: 1.9rem; position: relative; margin: 0.55rem 0; color: var(--ink-2); font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold-dark); font-weight: 800;
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.person .photo { aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--mist); }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person .meta { padding: 1.3rem 1.4rem 1.5rem; }
.person .meta .role { color: var(--gold-dark); font-weight: 700; font-size: 0.83rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.55rem; }
.person .meta p.bio { font-size: 0.93rem; }

/* Page title band */
.page-title {
  background: linear-gradient(100deg, rgba(20,30,41,0.96), rgba(24,36,48,0.82)), url("../assets/img/exam.webp") center/cover;
  color: #fff; padding: 4rem 0 4.2rem;
}
.page-title h1 { color: #fff; }
.page-title p { color: #c6d2dc; margin-top: 0.6rem; max-width: 560px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: 0.4rem; }
.contact-card + .contact-card { margin-top: 1.4rem; }
.hours { width: 100%; border-collapse: collapse; margin-top: 0.6rem; }
.hours td { padding: 0.42rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink-2); }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Form */
form .field { margin-bottom: 1.05rem; }
label { display: block; font-weight: 600; color: var(--ink-2); font-size: 0.9rem; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; padding: 0.72rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.97rem; color: var(--ink);
  background: #fff; transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.83rem; color: #7a8a97; margin-top: 0.8rem; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 4rem 0; }
.cta-band h2 { color: #fff; margin-bottom: 0.7rem; }
.cta-band p { color: #bcc9d4; max-width: 520px; margin: 0 auto 1.8rem; }

/* Footer */
footer.site { background: var(--ink); color: #9fb0be; padding: 3.5rem 0 2rem; font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; margin-bottom: 2.6rem; }
footer.site img.logo { height: 40px; width: auto; margin-bottom: 1rem; }
footer.site h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
footer.site ul { list-style: none; }
footer.site li { margin: 0.45rem 0; }
footer.site a { color: #c6d2dc; }
footer.site a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; }

/* FAQ */
details.faq {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 1.05rem 1.3rem; margin-bottom: 0.9rem; box-shadow: var(--shadow);
}
details.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.02rem; list-style: none; position: relative; padding-right: 2rem; }
details.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: -0.15rem; font-size: 1.5rem; color: var(--gold-dark); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 0.7rem; }

/* Responsive */
@media (max-width: 920px) {
  .grid.cols-3, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .info-strip .wrap { grid-template-columns: 1fr; }
  .info-cell { border-left: none; border-top: 1px solid rgba(255,255,255,0.09); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid.cols-3, .grid.cols-2, .team-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-2); flex-direction: column; padding: 1.2rem 6%;
    gap: 1rem; align-items: flex-start; box-shadow: 0 12px 20px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .field-row { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
  .topbar span.hours-note { display: none; }
  .hero { padding: 4.5rem 0 5rem; }
}

/* ============ v2 additions ============ */

/* Announcement bar */
.announce-bar {
  background: var(--gold); color: var(--ink); font-weight: 600;
  padding: 0.55rem 0; font-size: 0.92rem; text-align: center;
}
.announce-bar a { color: var(--ink); text-decoration: underline; }

/* Stats band */
.stats-band { background: var(--ink-2); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-value {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--gold); font-weight: 600; line-height: 1.1;
}
.stat-label { color: #c6d2dc; font-size: 0.92rem; margin-top: 0.3rem; }
@media (max-width: 680px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Testimonials */
.testimonial .stars { color: var(--gold); letter-spacing: 0.15em; font-size: 1.05rem; margin-bottom: 0.7rem; }
.testimonial .attribution { margin-top: 0.8rem; font-weight: 600; color: var(--ink-2); font-size: 0.92rem; }

/* Social links */
.social-links { display: flex; gap: 0.9rem; margin-top: 1.1rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: #c6d2dc;
  border: 1px solid rgba(255,255,255,0.18); transition: all .18s ease;
}
.social-links a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* Italic display accent */
.accent-i { font-style: italic; color: var(--gold-dark); }
.hero .accent-i, .cta-band .accent-i { color: var(--gold); }

/* Scroll-reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Card hover lift */
.card, .person { transition: transform .22s ease, box-shadow .22s ease; }
.card:hover, .person:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(24,36,48,0.14); }

/* ============ Booking acknowledgment ============ */
.ack-banner {
  background: #fff7e0; border: 2px solid var(--gold); border-radius: 10px;
  padding: 0.9rem 1.1rem; font-size: 0.95rem; font-weight: 600; color: #6b5200;
  margin-bottom: 1.4rem; line-height: 1.5;
}
.ack-modal {
  position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: center; justify-content: center;
  background: rgba(20, 30, 41, 0.72); padding: 1rem;
}
.ack-modal[hidden] { display: none; }
.ack-modal-box {
  background: #fff; border-radius: 16px; max-width: 520px; width: 100%;
  padding: 2rem 2rem 1.8rem; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  border-top: 6px solid var(--gold);
}
.ack-modal-warn { font-size: 2.4rem; line-height: 1; margin-bottom: 0.6rem; }
.ack-modal-box h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.ack-modal-box p { color: var(--body); font-size: 0.98rem; }
.ack-modal-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; align-items: center; }
.btn-plain {
  background: none; border: none; cursor: pointer; color: #7a8a97;
  font-family: var(--font-body); font-size: 0.92rem; text-decoration: underline;
}
.ack-success {
  text-align: center; padding: 2rem 0.5rem;
}
.ack-success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #e8f7ee;
  color: #1d7a46; font-size: 2rem; font-weight: 800; line-height: 64px;
  margin: 0 auto 1.1rem;
}
.ack-success h2 { margin-bottom: 0.8rem; }
.ack-success p { max-width: 460px; margin: 0 auto; }
