/* =========================================================
   BrightSmile Dental — public site styles
   ========================================================= */
:root {
    --teal:      #0d9488;
    --teal-dark: #0f766e;
    --teal-soft: #ccfbf1;
    --ink:       #0f172a;
    --muted:     #64748b;
    --bg:        #f8fafc;
    --white:     #ffffff;
    --border:    #e2e8f0;
    --shadow:    0 10px 30px rgba(15,23,42,.08);
    --radius:    16px;
}

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

body {
    font-family: 'Quicksand', "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

/* Titles / headings use Poppins */
h1, h2, h3, h4,
.brand, .hero h1, .section-head h2, .service-card h3,
.badge-pill, .btn, .stat .num {
    font-family: 'Poppins', "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- Navbar ---------- */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.brand .logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--teal); color: #fff;
    display: grid; place-items: center; font-size: 1.2rem;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--teal); color: #fff;
    padding: 12px 22px; border-radius: 10px; border: none;
    font-weight: 600; cursor: pointer; font-size: .95rem;
    transition: background .2s, transform .1s;
}
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal-soft); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 50px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.badge-pill {
    display: inline-block; background: var(--teal-soft); color: var(--teal-dark);
    padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700;
    letter-spacing: .3px; margin-bottom: 18px;
}
.hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 18px; }
.hero h1 span { color: var(--teal); }
.hero p.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 30px;
}
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 24px; }
.stat { text-align: center; }
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--teal); }
.stat .lbl { font-size: .78rem; color: var(--muted); }
.perk-list { list-style: none; display: grid; gap: 12px; }
.perk-list li { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.perk-list li::before { content: "✓"; color: var(--teal); font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 2rem; margin-bottom: 8px; }
.section-head p { color: var(--muted); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 22px; }
.service-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft);
    color: var(--teal-dark); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.service-card .price { font-weight: 800; color: var(--teal); }
.service-card .dur { font-size: .8rem; color: var(--muted); }

/* ---------- Booking form ---------- */
.book-section { background: var(--white); border-top: 1px solid var(--border); }
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.form-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px;
}
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
label .req { color: #e11d48; }
input, select, textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: 10px; font-size: .95rem; font-family: inherit; background: var(--bg);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--teal); background: #fff;
    box-shadow: 0 0 0 3px var(--teal-soft);
}
textarea { resize: vertical; min-height: 90px; }
.help-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-info    { background: var(--teal-soft); color: var(--teal-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cbd5e1; padding: 40px 0; margin-top: 20px; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer strong { color: #fff; }
.footer a { color: var(--teal-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid, .form-wrap { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .form-row { grid-template-columns: 1fr; }
}
