/* ============================================================
   BrightSmile Dental — styles
   Edit the CSS variables below to rebrand quickly.
   ============================================================ */
:root {
  /* Brand blue, sampled from the Dent-O-Shine logo */
  --teal: #0a8fd1;
  --teal-dark: #0769a3;
  --navy: #11324d;
  --ink: #1f2a37;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-alt: #f1f8fd;
  --line: #e2eaed;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 50, 77, 0.08);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo { font-family: "Poppins", system-ui, sans-serif; color: var(--navy); line-height: 1.2; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--teal-dark); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--teal-dark); }
.btn-small { padding: 9px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; gap: 6px; }
.logo-name { color: var(--navy); }
.logo-name span { color: var(--teal); }
.logo-mark { font-size: 1.4rem; }
.logo img { height: 46px; width: auto; display: block; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav-menu a { color: var(--navy); font-weight: 500; }
.nav-menu a:hover { color: var(--teal); text-decoration: none; }
.nav-menu .btn { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: 18px;
  background: #eef6fc url("assets/hero-bg.jpg") no-repeat center top / cover;
  padding: 88px 0 96px;
  overflow: hidden;
}
/* keep the photo crisp — only a faint tint for overall depth */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(17,50,77,.12);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-text {
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  padding: 34px 36px;
  box-shadow: var(--shadow);
}
.eyebrow { color: var(--teal-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; color: var(--navy); font-weight: 500; font-size: .95rem; }

.hero-card {
  margin: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden;
}
.hero-card img { width: 100%; height: auto; display: block; }
.hero-card figcaption {
  font-family: "Poppins", sans-serif; font-weight: 600; color: var(--navy);
  font-size: 1.15rem; text-align: center; padding: 18px 24px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: 1.1rem; }

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

/* ---------- Doctors ---------- */
.doctor-grid { max-width: 880px; margin: 0 auto; }
.doctor-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 20px; align-items: flex-start;
}
.doctor-avatar {
  flex: 0 0 104px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--bg-alt); overflow: hidden;
}
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.doctor-body h3 { font-size: 1.2rem; }
.doctor-role { color: var(--teal-dark); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.doctor-body p:last-child { color: var(--muted); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 2.4rem; margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.awards-strip { margin-top: 28px; max-width: 440px; width: 100%; height: auto; }
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.check-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; color: var(--ink); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- Reviews ---------- */
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.stars { color: #f5b50a; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review blockquote { font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
.review figcaption { color: var(--muted); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 22px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.hours { margin-top: 26px; }
.hours h3 { margin-bottom: 10px; }
.hours dl { display: grid; gap: 8px; }
.hours dl > div { display: flex; justify-content: space-between; max-width: 320px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.hours dt { font-weight: 600; color: var(--navy); }
.hours dd { color: var(--muted); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.contact-map {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.contact-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-directions { border-radius: 0; }
.contact-form h3 { margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; color: var(--ink); background: #fbfdfd;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,143,209,.18);
}
.field input:user-invalid, .field select:user-invalid { border-color: #e35d5d; }
.form-status { margin-top: 12px; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.88); padding: 48px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.logo-light, .logo-light span { color: #fff; }
.footer-tag { margin-top: 8px; color: rgba(255,255,255,.75); }
.footer-links { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.88); }
.footer-links a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.22); padding-top: 18px; color: rgba(255,255,255,.7); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-menu.open { max-height: 360px; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu li:first-child { border-top: 0; }
  .nav-menu a { display: block; padding: 14px 20px; }
  .nav-menu .btn { margin: 12px 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { background-position: center top; padding: 48px 0 56px; }
  .hero-text { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
