/* Brightline Dental — clean medical teal */
:root {
  --bg: #ffffff;
  --bg-soft: #f4fbfa;
  --ink: #0f2e4a;
  --muted: #5a7085;
  --teal: #0ea5a4;
  --teal-dark: #0b8382;
  --teal-soft: #dff5f4;
  --navy: #0f2e4a;
  --line: #e3eeec;
  --amber: #f5a623;
  --head: 'Poppins', sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.4rem; }
h3 { font-size: 1.15rem; }
em { font-style: normal; color: var(--teal); }
.section { padding: 84px 0; }
.section-sub { color: var(--muted); max-width: 520px; margin: 0.6rem auto 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow { font-family: var(--head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; color: var(--teal); text-transform: uppercase; margin-bottom: 0.6rem; }

/* Cursor glow — soft teal */
.cursor-glow { position: fixed; top: 0; left: 0; width: 640px; height: 640px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(14,165,164,0.10) 0%, rgba(14,165,164,0) 70%); will-change: transform; }

/* Top bar */
.topbar { background: var(--navy); color: #d7e8f2; font-size: 0.85rem; padding: 8px 0; }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar-right { opacity: 0.8; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--navy); text-decoration: none; }
.logo svg { width: 26px; height: 26px; color: var(--teal); }
.logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--teal); }
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 0.95rem; transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s; cursor: pointer; border: none; }
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 10px 22px; font-size: 0.85rem; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(14,165,164,0.28); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border: 2px solid var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 60px 24px 70px; }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 460px; margin: 1.2rem 0 1.4rem; }
.hero-checks { list-style: none; margin-bottom: 1.8rem; }
.hero-checks li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--ink); }
.hero-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 50px rgba(15,46,74,0.10); padding: 26px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-dot { width: 12px; height: 12px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 4px rgba(63,185,80,0.15); }
.card-head strong { display: block; }
.card-head p { color: var(--teal); font-weight: 600; font-size: 0.9rem; }
.card-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.card-row .badge { background: var(--teal-soft); color: var(--teal-dark); font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.hero-card .btn { margin-top: 18px; }

/* Trust bar */
.trustbar { background: var(--teal); color: #fff; padding: 34px 0; }
.trustbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.trust-item strong { display: block; font-family: var(--head); font-size: 1.7rem; font-weight: 700; }
.trust-item span { opacity: 0.85; font-size: 0.88rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.service { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.service:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 16px 34px rgba(14,165,164,0.12); }
.service svg { width: 30px; height: 30px; color: var(--teal); margin-bottom: 14px; }
.service p { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* Why */
.why { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.why-list { list-style: none; margin: 1.4rem 0 1.8rem; }
.why-list li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--ink); }
.why-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.why-visual { display: flex; justify-content: center; }
.smile-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 36px; text-align: center; box-shadow: 0 20px 44px rgba(15,46,74,0.08); max-width: 340px; }
.smile-card svg { width: 64px; height: 64px; color: var(--teal); margin-bottom: 16px; }
.smile-card p { color: var(--muted); font-size: 0.92rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.doctor { text-align: center; padding: 30px 18px; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.25s, border-color 0.25s; }
.doctor:hover { transform: translateY(-5px); border-color: var(--teal); }
.doc-avatar { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 600; color: #fff; text-align: center; line-height: 1.15; font-size: 0.9rem; }
.da-1 { background: linear-gradient(135deg, #0ea5a4, #0b8382); }
.da-2 { background: linear-gradient(135deg, #22b8b0, #0ea5a4); }
.da-3 { background: linear-gradient(135deg, #0f2e4a, #0ea5a4); }
.doctor p { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

/* Testimonials */
.testimonials { background: var(--bg-soft); border-top: 1px solid var(--line); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.testi { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.testi p { color: var(--ink); font-size: 0.95rem; }
.testi footer { color: var(--teal); font-size: 0.85rem; font-weight: 600; margin-top: 14px; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-family: var(--head); font-weight: 600; font-size: 0.98rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--muted); font-size: 0.92rem; }

/* Contact */
.contact { text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 20px; }
.address { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.footer { background: var(--navy); color: #d7e8f2; padding: 44px 0 30px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-brand { font-family: var(--head); font-weight: 700; font-size: 1.25rem; }
.footer-brand span { color: var(--teal); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #9fb8c8; text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: #7d97a8; font-size: 0.8rem; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--teal); background: var(--bg); color: var(--teal); font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-card { max-width: 420px; }
  .why-inner { grid-template-columns: 1fr; }
  .service-grid, .team-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .topbar-right { display: none; }
}
@media (max-width: 620px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 20px 24px; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .service-grid, .team-grid, .testi-grid { grid-template-columns: 1fr; }
  .trustbar-inner { justify-content: center; text-align: center; }
  .section { padding: 60px 0; }
}
