/* ============================================================
   Bright Smiles Family Dental - Stylesheet
   Palette: Teal #0D9488 | Teal-Dark #0F766E | Sky #E0F2FE | White #FFFFFF
   Fonts: DM Sans (all) - clean, modern, approachable
   ============================================================ */

:root {
  --teal:       #0D9488;
  --teal-dk:    #0F766E;
  --teal-xdk:   #115E59;
  --teal-lt:    #14B8A6;
  --teal-pale:  #CCFBF1;
  --sky:        #F0FAFA;
  --white:      #FFFFFF;
  --text:       #1E293B;
  --gray:       #64748B;
  --lt-gray:    #E2E8F0;
  --red:        #DC2626;
  --shadow:     0 4px 18px rgba(13,148,136,.10);
  --shadow-lg:  0 12px 44px rgba(13,148,136,.16);
  --radius:     8px;
  --ease:       all 0.26s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── TOPBAR ── */
.topbar { background: var(--teal-xdk); color: rgba(255,255,255,.72); font-size: .79rem; padding: .45rem 2rem; }
.topbar-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.topbar-left { display: flex; align-items: center; gap: 1.75rem; }
.topbar-left span { display: flex; align-items: center; gap: .4rem; }
.topbar-right a { color: var(--teal-pale); font-weight: 700; display: flex; align-items: center; gap: .4rem; }

/* ── NAVBAR ── */
.navbar { position: sticky; top: 0; z-index: 999; background: var(--white); border-bottom: 1px solid var(--lt-gray); padding: 0 2rem; box-shadow: 0 1px 12px rgba(0,0,0,.06); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.logo-icon { width: 40px; height: 40px; background: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.05rem; flex-shrink: 0; }
.logo-text .brand-name { font-size: 1.1rem; font-weight: 700; color: var(--teal-xdk); letter-spacing: -.01em; line-height: 1.1; }
.logo-text .brand-tag { font-size: .6rem; color: var(--gray); letter-spacing: .1em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a { font-size: .93rem; font-weight: 500; color: var(--gray); transition: var(--ease); }
.nav-links a:hover { color: var(--teal-dk); }
.btn-nav-appt { background: var(--teal) !important; color: var(--white) !important; padding: .48rem 1.3rem; border-radius: 999px !important; font-weight: 700 !important; }
.btn-nav-appt:hover { background: var(--teal-dk) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text); transition: var(--ease); }

/* ── HERO ── */
.hero { background: linear-gradient(140deg, var(--sky) 0%, #E0F7F5 100%); padding: 6rem 2rem 5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(13,148,136,.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--teal-pale); color: var(--teal-dk); padding: .35rem .9rem; border-radius: 999px; font-size: .77rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.25rem; border: 1px solid rgba(13,148,136,.2); }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--text); margin-bottom: 1rem; letter-spacing: -.02em; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-desc { color: var(--gray); font-size: 1.02rem; line-height: 1.75; margin-bottom: 2rem; max-width: 440px; }
.hero-btns { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--gray); }
.hero-trust i { color: var(--teal); }
.hero-img-box { position: relative; }
.hero-img-box img { width: 100%; height: 420px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); }
.hero-float { position: absolute; bottom: 1.5rem; left: -1.5rem; background: var(--white); border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 8px 30px rgba(0,0,0,.12); display: flex; align-items: center; gap: .75rem; }
.hf-icon { width: 40px; height: 40px; background: var(--teal-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal-dk); font-size: .95rem; }
.hf-num { font-size: 1.2rem; font-weight: 700; color: var(--text); line-height: 1; }
.hf-lbl { font-size: .7rem; color: var(--gray); }

/* ── BUTTONS ── */
.btn-teal { display: inline-flex; align-items: center; gap: .45rem; background: var(--teal); color: var(--white); padding: .85rem 2rem; border-radius: 999px; font-size: .97rem; font-weight: 700; border: none; cursor: pointer; transition: var(--ease); }
.btn-teal:hover { background: var(--teal-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,148,136,.3); }
.btn-outline-teal { display: inline-flex; align-items: center; gap: .45rem; background: transparent; color: var(--teal-dk); padding: .85rem 2rem; border-radius: 999px; font-size: .97rem; font-weight: 700; border: 2px solid var(--teal); cursor: pointer; transition: var(--ease); }
.btn-outline-teal:hover { background: var(--teal); color: var(--white); }
.btn-outline-gray { display: inline-flex; align-items: center; gap: .45rem; background: transparent; color: var(--gray); padding: .82rem 1.75rem; border-radius: 999px; font-size: .95rem; font-weight: 600; border: 1.5px solid var(--lt-gray); cursor: pointer; transition: var(--ease); }
.btn-outline-gray:hover { border-color: var(--teal); color: var(--teal-dk); }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; }

/* ── SECTION LABELS ── */
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--teal-dk); margin-bottom: .5rem; display: block; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--text); margin-bottom: .75rem; letter-spacing: -.02em; }
.section-sub { color: var(--gray); font-size: .97rem; line-height: 1.75; max-width: 520px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem; }
.section-header-center { text-align: center; margin-bottom: 3rem; }
.section-header-center .section-sub { margin: 0 auto; }

/* ── SERVICES PREVIEW ── */
.services-section { padding: 5.5rem 2rem; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.svc-card { background: var(--sky); border-radius: var(--radius); padding: 1.75rem; transition: var(--ease); border: 1px solid transparent; }
.svc-card:hover { border-color: var(--teal); background: var(--white); box-shadow: var(--shadow); transform: translateY(-4px); }
.svc-icon { width: 52px; height: 52px; background: var(--teal-pale); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--teal-dk); font-size: 1.3rem; margin-bottom: 1.1rem; }
.svc-card h3 { font-size: 1.05rem; color: var(--text); margin-bottom: .4rem; }
.svc-card p { font-size: .875rem; color: var(--gray); line-height: 1.65; }

/* ── WHY US ── */
.why-section { padding: 5.5rem 2rem; background: var(--teal-xdk); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-text h2 { font-size: clamp(2rem, 3vw, 2.75rem); color: var(--white); margin-bottom: 1rem; letter-spacing: -.02em; }
.why-text > p { color: rgba(255,255,255,.68); font-size: .97rem; line-height: 1.8; margin-bottom: 2rem; }
.why-list { display: flex; flex-direction: column; gap: .85rem; }
.why-item { display: flex; align-items: flex-start; gap: .8rem; }
.why-check { width: 28px; height: 28px; background: rgba(255,255,255,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal-pale); font-size: .72rem; flex-shrink: 0; margin-top: .12rem; }
.why-item h4 { font-size: .97rem; color: var(--white); margin-bottom: .15rem; }
.why-item p { font-size: .85rem; color: rgba(255,255,255,.58); line-height: 1.65; }
.why-img img { width: 100%; height: 440px; object-fit: cover; border-radius: 14px; }
.why-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem; }
.w-stat .num { font-size: 2.1rem; font-weight: 700; color: var(--teal-lt); line-height: 1; }
.w-stat .lbl { font-size: .72rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }

/* ── TESTIMONIALS ── */
.testimonials { padding: 5rem 2rem; background: var(--sky); }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; margin-top: 3rem; }
.t-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border-bottom: 3px solid transparent; transition: var(--ease); }
.t-card:hover { border-bottom-color: var(--teal); }
.t-stars { color: #f59e0b; font-size: .9rem; margin-bottom: .75rem; letter-spacing: .04em; }
.t-text { font-size: .92rem; color: var(--gray); line-height: 1.75; margin-bottom: 1.25rem; }
.t-author { display: flex; align-items: center; gap: .75rem; border-top: 1px solid var(--lt-gray); padding-top: 1rem; }
.t-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal-pale); }
.t-name { font-size: .95rem; font-weight: 700; color: var(--text); }
.t-detail { font-size: .75rem; color: var(--gray); }

/* ── CTA BAND ── */
.cta-band { background: var(--teal); padding: 3.5rem 2rem; }
.cta-band-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); color: var(--white); margin-bottom: .3rem; letter-spacing: -.01em; }
.cta-band p { color: rgba(255,255,255,.82); font-size: .97rem; }
.btn-white { display: inline-flex; align-items: center; gap: .5rem; background: var(--white); color: var(--teal-dk); padding: 1rem 2.25rem; border-radius: 999px; font-size: .97rem; font-weight: 700; border: none; cursor: pointer; transition: var(--ease); white-space: nowrap; }
.btn-white:hover { background: var(--teal-pale); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--teal-xdk); color: rgba(255,255,255,.55); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; }
.footer-logo-icon { width: 36px; height: 36px; background: rgba(255,255,255,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal-pale); font-size: .9rem; }
.footer-logo-name { font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.footer-brand p { font-size: .87rem; line-height: 1.75; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: .85rem; transition: var(--ease); }
.footer-social a:hover { background: var(--teal-lt); color: var(--white); }
.footer-col h4 { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a { font-size: .87rem; color: rgba(255,255,255,.45); transition: var(--ease); }
.footer-col ul li a:hover { color: var(--teal-pale); }
.footer-line { display: flex; align-items: flex-start; gap: .6rem; font-size: .87rem; margin-bottom: .7rem; }
.footer-line i { color: var(--teal-pale); font-size: .78rem; margin-top: .25rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .79rem; }
.footer-bottom a { color: var(--teal-pale); }

/* ── PAGE HERO ── */
.page-hero { background: linear-gradient(140deg, var(--sky), #E0F7F5); padding: 6.5rem 2rem 3.5rem; border-bottom: 1px solid var(--lt-gray); }
.page-hero .container { max-width: 1200px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--gray); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb a { color: var(--teal-dk); font-weight: 600; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--text); margin-bottom: .6rem; letter-spacing: -.02em; }
.page-hero p { color: var(--gray); font-size: .97rem; max-width: 520px; }

/* ── SERVICES DETAIL ── */
.services-detail { padding: 5rem 2rem; background: var(--white); }
.svc-category { margin-bottom: 4rem; }
.svc-cat-title { display: flex; align-items: center; gap: .75rem; font-size: 1.5rem; color: var(--text); margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 2px solid var(--lt-gray); }
.svc-cat-title i { color: var(--teal); font-size: 1.15rem; }
.svc-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.svc-detail-card { border: 1px solid var(--lt-gray); border-radius: var(--radius); padding: 1.5rem; transition: var(--ease); }
.svc-detail-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.svc-detail-card h3 { font-size: 1.05rem; color: var(--text); margin-bottom: .4rem; }
.svc-detail-card p { font-size: .875rem; color: var(--gray); line-height: 1.65; margin-bottom: .75rem; }
.svc-ins { font-size: .78rem; color: var(--teal-dk); font-weight: 600; display: flex; align-items: center; gap: .3rem; }

/* ── CONTACT ── */
.contact-section { padding: 5rem 2rem; background: var(--sky); }
.contact-layout { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: 2rem; color: var(--text); margin-bottom: .75rem; letter-spacing: -.02em; }
.contact-info > p { color: var(--gray); font-size: .95rem; line-height: 1.8; margin-bottom: 2rem; }
.info-block { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.25rem; }
.i-icon { width: 44px; height: 44px; background: var(--teal-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal-dk); font-size: .95rem; flex-shrink: 0; }
.i-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-dk); margin-bottom: .2rem; }
.i-val { font-size: .93rem; color: var(--text); font-weight: 600; line-height: 1.55; }
.contact-form-box { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-lg); border-top: 4px solid var(--teal); }
.contact-form-box h2 { font-size: 1.85rem; color: var(--text); margin-bottom: .4rem; letter-spacing: -.02em; }
.contact-form-box > p { font-size: .88rem; color: var(--gray); margin-bottom: 1.75rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.1rem; }
.form-group label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid var(--lt-gray); border-radius: var(--radius); padding: .72rem 1rem; font-size: .9rem; color: var(--text); background: var(--white); transition: var(--ease); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; background: var(--teal); color: var(--white); border: none; border-radius: 999px; padding: .9rem; font-size: 1rem; font-weight: 700; cursor: pointer; transition: var(--ease); margin-top: .5rem; }
.form-submit:hover { background: var(--teal-dk); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-img-box { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .why-img { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--white); padding: 1.5rem 2rem; gap: 1.25rem; border-top: 1px solid var(--lt-gray); z-index: 998; box-shadow: var(--shadow-lg); }
  .topbar { display: none; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .t-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── YTS Demo Labels ── */
.btn-back-yts { background: rgba(30,58,138,.88) !important; color: #fff !important; padding: .42rem 1.05rem !important; border-radius: 999px !important; font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .04em !important; white-space: nowrap !important; border: 1px solid rgba(99,162,251,.25) !important; transition: background .2s ease !important; }
.btn-back-yts::after { display: none !important; }
.btn-back-yts:hover { background: rgba(29,78,216,1) !important; color: #fff !important; }
.powered-yts { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .78rem; color: rgba(255,255,255,.45); }
.powered-yts a { color: #93c5fd; font-weight: 700; text-decoration: none; }
.powered-yts a:hover { text-decoration: underline; }
