/* Bright Smile Dental — example website for Thama Digital
   Shared stylesheet. No external fonts or images. */

:root {
  --teal: #0f766e;
  --teal-dark: #0b5e57;
  --teal-light: #ccfbf1;
  --blue: #0c4a6e;
  --blue-light: #e0f2fe;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f0fdfa;
  --amber-bg: #fef3c7;
  --amber-ink: #92400e;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

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

img, svg { max-width: 100%; }

/* Example banner — visible on every page */
.example-banner {
  background: var(--amber-bg);
  color: var(--amber-ink);
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}
.example-banner a { color: var(--amber-ink); font-weight: 700; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.logo svg { flex-shrink: 0; }
.logo small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.4px;
}
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--teal-dark); }
.main-nav a.active { background: var(--teal); color: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--teal-dark);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--bg-soft); color: var(--teal-dark); }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
h1 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.8px; }
h2 { font-size: 30px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.5px; }
h3 { font-size: 20px; margin: 0 0 8px; }
p.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.section-intro { max-width: 680px; margin-bottom: 32px; }
.section-intro p { color: var(--muted); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--teal-light) 100%);
  padding: 64px 0;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero h1 span { color: var(--teal); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(12, 74, 110, 0.08);
}
.hero-card h3 { margin-bottom: 12px; }
.hours-list { list-style: none; margin: 0 0 16px; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.hours-list li:last-child { border-bottom: 0; }
.phone-big {
  font-size: 24px;
  font-weight: 800;
  color: var(--teal-dark);
  text-decoration: none;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 24px;
}
.card p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.card .price { font-weight: 700; color: var(--teal-dark); font-size: 15px; }

/* Two-column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.two-col p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li { padding: 6px 0 6px 30px; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px;
  width: 22px; height: 22px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 50%;
  text-align: center;
  font-size: 13px; font-weight: 800; line-height: 22px;
}

/* Testimonials */
.quote {
  background: #fff;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 0 0 16px;
  box-shadow: 0 2px 8px rgba(12, 74, 110, 0.05);
}
.quote p { margin: 0 0 8px; font-style: italic; }
.quote footer { color: var(--muted); font-size: 14px; font-style: normal; }

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; background: #fff; }
.price-table th, .price-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.price-table th { background: var(--blue); color: #fff; }
.price-table th:first-child { border-radius: 12px 0 0 0; }
.price-table th:last-child { border-radius: 0 12px 0 0; }
.price-table td:last-child { font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.note {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--blue);
  margin-top: 20px;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 18px; margin-bottom: 6px; }
.faq-item p { color: var(--muted); margin: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { text-align: center; }
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  font-size: 34px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.team-card .role { color: var(--teal-dark); font-weight: 700; font-size: 14px; }

/* Form */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 16px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.form-success {
  display: none;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 600;
  margin-top: 12px;
}

/* CTA band */
.cta-band {
  background: var(--teal);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ccfbf1; max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn { background: #fff; color: var(--teal-dark); }
.cta-band .btn:hover { background: var(--teal-light); }

/* Footer */
.site-footer { background: var(--blue); color: #bae6fd; padding: 48px 0 24px; }
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer h3 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.site-footer p, .site-footer li { font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #e0f2fe; }
.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  text-align: center;
  color: #7dd3fc;
}
.footer-bottom a { color: #e0f2fe; }

/* Responsive */
@media (max-width: 820px) {
  h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  section { padding: 36px 0; }
  .hero { padding: 44px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .card-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .card-grid, .team-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 8px 9px; font-size: 14px; }
}

/* ---------- Added features (upgrade) ---------- */

/* Hamburger + header CTA */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}
.btn-header { padding: 10px 20px; font-size: 15px; }

/* Emergency strip */
.emergency-strip {
  background: #991b1b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 15px;
  text-align: center;
  flex-wrap: wrap;
}
.emergency-strip a { color: #fff; font-weight: 700; }
.emergency-strip svg { flex-shrink: 0; }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 15px; font-weight: 600; }
.trust-badge { display: inline-flex; align-items: center; gap: 6px; }
.stars { color: #d97706; letter-spacing: 1px; }
.trust-note { font-size: 13px; color: var(--muted); font-weight: 400; }

/* Open-now status */
.open-status { display: inline-block; font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.open-status.is-open { background: #dcfce7; color: #166534; }
.open-status.is-closed { background: #fef3c7; color: #92400e; }

/* Smile gallery slider */
.ba-slider { max-width: 720px; margin: 0 auto; }
.ba-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ba-wrap > svg, .ba-layer svg { display: block; width: 100%; height: auto; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer svg { height: 100%; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(15,23,42,.2); }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; box-shadow: 0 2px 10px rgba(15,23,42,.3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; padding: 0; }
.ba-label { position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(15,23,42,.75); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.ba-label.before { left: 12px; }
.ba-label.after { right: 12px; }
.ba-caption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Booking */
.booking-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 8px 24px rgba(12,74,110,.06); max-width: 760px; margin: 0 auto; }
.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.time-slots button { padding: 10px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; font-family: inherit; }
.time-slots button:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); background: var(--bg-soft); }
.time-slots button.selected { background: var(--teal); border-color: var(--teal); color: #fff; }
.time-slots button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.field-error { display: none; color: #b91c1c; font-weight: 600; font-size: 14px; margin: -8px 0 12px; }
.field-note { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.booking-summary { display: none; background: var(--teal-light); border-radius: var(--radius); padding: 20px 24px; margin-top: 20px; }
.booking-summary h3 { color: var(--teal-dark); }
.summary-list { list-style: none; padding: 0; margin: 12px 0; }
.summary-list li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.summary-list li:last-child { border-bottom: 0; }

/* Testimonial carousel */
.t-carousel { max-width: 760px; margin: 0 auto; }
.t-viewport { min-height: 170px; }
.t-slide { display: none; }
.t-slide.active { display: block; }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.t-arrow { background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--teal-dark); }
.t-arrow:hover { background: var(--bg-soft); }
.t-dots { display: flex; gap: 8px; }
.t-dot { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #cbd5e1; cursor: pointer; padding: 0; }
.t-dot.active { background: var(--teal); }
.carousel-note { text-align: center; font-size: 14px; color: var(--muted); margin-top: 12px; }

/* FAQ accordion */
.faq-item h3 { margin: 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.faq-q:hover { color: var(--teal-dark); }
.faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; transition: transform .25s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding-top: 6px; }

/* Health funds */
.funds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; }
.funds-row .funds-label { font-weight: 700; margin-right: 4px; }
.fund-badge { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 800; color: var(--blue); font-size: 15px; }
.funds-note { width: 100%; text-align: center; font-size: 13px; color: var(--muted); }

/* Map placeholder */
.map-placeholder { position: relative; height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background-color: #e8f1f5; background-image: linear-gradient(#d5e5ec 1px, transparent 1px), linear-gradient(90deg, #d5e5ec 1px, transparent 1px); background-size: 44px 44px; margin-top: 16px; }
.map-placeholder::before { content: ""; position: absolute; left: 0; right: 0; top: 45%; height: 14px; background: #fff; border-top: 2px dashed #cbd5e1; border-bottom: 2px dashed #cbd5e1; transform: rotate(-4deg); }
.map-placeholder::after { content: ""; position: absolute; top: 0; bottom: 0; left: 62%; width: 14px; background: #fff; border-left: 2px dashed #cbd5e1; border-right: 2px dashed #cbd5e1; transform: rotate(6deg); }
.map-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -100%); z-index: 2; }
.map-card { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: 0 4px 16px rgba(12,74,110,.15); font-size: 14px; line-height: 1.5; }
.map-card strong { display: block; font-size: 15px; }

/* Sticky mobile bar */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -4px 16px rgba(15,23,42,.08); }
.mobile-bar a { flex: 1; text-align: center; text-decoration: none; font-weight: 700; padding: 12px 8px; border-radius: 999px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mobile-bar-call { color: var(--teal-dark); border: 2px solid var(--teal); background: #fff; }
.mobile-bar-book { background: var(--teal); color: #fff; }

/* Service card icons + book links */
.card .icon svg { width: 26px; height: 26px; display: block; }
.book-link { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 15px; }

/* Responsive additions */
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .btn-header { display: none; }
  .header-inner { flex-direction: row; flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; flex-direction: column; gap: 2px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 66px; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }
  .booking-card { padding: 22px; }
  .t-viewport { min-height: 220px; }
}
@media (max-width: 520px) {
  .header-inner { flex-direction: row; align-items: center; }
  .time-slots { grid-template-columns: repeat(2, 1fr); }
  .logo { font-size: 18px; }
}
