/* === Brightside Dental — Professional Clean === */
:root {
    --bg: #ffffff;
    --bg-blue: #f4f8fc;
    --bg-dark: #0f2942;
    --text: #1a2b3c;
    --text-muted: #5a6b7d;
    --text-light: #8a9aad;
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --blue-pale: #dbeafe;
    --blue-dark: #1d4ed8;
    --accent: #06b6d4;
    --font: 'Plus Jakarta Sans', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(15,41,66,.04);
    --shadow-md: 0 8px 30px rgba(15,41,66,.06);
    --shadow-lg: 0 16px 50px rgba(15,41,66,.08);
    --transition: .4s cubic-bezier(.25,.46,.45,.94);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.center { display: block; text-align: center; }

/* Typography */
.section-tag {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 12px;
}
.section-sub {
    color: var(--text-muted);
    font-size: .92rem;
    max-width: 480px;
    margin-bottom: 40px;
}
.section-title + .section-sub,
.section-tag.center + .section-title { text-align: center; }
.section-tag.center ~ .section-sub { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue-pale);
}
.btn-outline:hover { border-color: var(--blue); background: var(--blue-pale); }
.btn-full { width: 100%; text-align: center; }
.btn-header {
    padding: 9px 20px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    transition: all .3s;
}
.btn-header:hover { background: var(--blue-dark); }

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255,255,255,0);
    transition: all .35s ease;
}
.header.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 16px rgba(15,41,66,.05);
    padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.logo span { color: var(--blue); }
.nav { display: flex; gap: 28px; }
.nav a { font-size: .84rem; color: var(--text-muted); font-weight: 500; transition: color .3s; }
.nav a:hover { color: var(--blue); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s;
}

/* ==================== HERO ==================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg) 60%, var(--bg-blue) 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--blue-pale);
    color: var(--blue);
    font-size: .72rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: .02em;
}
.hero-text h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-text h1 .accent { color: var(--blue); }
.hero-text > p {
    color: var(--text-muted);
    font-size: .95rem;
    margin-bottom: 28px;
    max-width: 440px;
}
.hero-btns { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; }
.trust-item { text-align: left; }
.trust-item strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.trust-item span { font-size: .72rem; color: var(--text-light); font-weight: 500; }
.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.hero-image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 140px;
    height: 140px;
    border-radius: var(--radius);
    background: var(--blue-pale);
    z-index: -1;
}

/* ==================== TRUST BAR ==================== */
.trust-bar {
    padding: 20px 0;
    border-bottom: 1px solid rgba(37,99,235,.06);
    background: var(--bg);
}
.trust-bar-inner {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trust-logo {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: .02em;
    opacity: .7;
}

/* ==================== SERVICES ==================== */
.section { padding: 90px 0; }
.section-blue { background: var(--bg-blue); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--bg);
    border: 1px solid rgba(37,99,235,.06);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37,99,235,.12);
}
.service-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--blue);
}
.service-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: .84rem; color: var(--text-muted); line-height: 1.6; }

/* ==================== ABOUT ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}
.about-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    margin-bottom: 16px;
    font-weight: 700;
}
.about-text > p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 24px;
}
.about-list {
    list-style: none;
}
.about-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: .86rem;
    color: var(--text-muted);
}
.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-pale);
    border: 2px solid var(--blue);
    transform: translateY(-50%);
}

/* ==================== TEAM ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.team-card {
    text-align: center;
}
.team-img {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.team-card:hover .team-img img { transform: scale(1.04); }
.team-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: .78rem; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.team-bio { font-size: .8rem; color: var(--text-muted); }

/* ==================== TESTIMONIAL ==================== */
.testimonial-band {
    padding: 60px 0;
    background: var(--bg-dark);
}
.testimonial { text-align: center; border: none; padding: 0; }
.testimonial p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255,255,255,.9);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 16px;
    font-weight: 300;
}
.testimonial cite {
    font-style: normal;
    color: rgba(255,255,255,.5);
    font-size: .82rem;
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.contact-text h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); margin-bottom: 12px; font-weight: 700; }
.contact-text > p { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail strong {
    display: block;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 4px;
}
.detail span { font-size: .86rem; color: var(--text-muted); line-height: 1.5; }

/* Form */
.contact-form {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.form-group {
    position: relative;
    margin-bottom: 20px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(37,99,235,.1);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .88rem;
    background: var(--bg-blue);
    color: var(--text);
    transition: border-color .3s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--blue); }
.form-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .84rem;
    color: var(--text-light);
    transition: all .25s;
    pointer-events: none;
    background: transparent;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: .7rem;
    color: var(--blue);
    background: var(--bg);
    padding: 0 4px;
}
.form-note { font-size: .75rem; color: var(--text-light); text-align: center; margin-top: 12px; }

/* ==================== FOOTER ==================== */
.footer { padding: 48px 0 0; border-top: 1px solid rgba(37,99,235,.06); }
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
}
.footer-left p { font-size: .78rem; color: var(--text-light); margin-top: 8px; line-height: 1.6; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .82rem; color: var(--text-muted); transition: color .3s; }
.footer-links a:hover { color: var(--blue); }
.footer-right { text-align: right; }
.footer-right p { font-size: .78rem; color: var(--text-light); line-height: 1.6; }
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 32px;
    border-top: 1px solid rgba(37,99,235,.04);
}
.footer-bottom p { font-size: .72rem; color: var(--text-light); }

/* ==================== ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--transition), transform .6s var(--transition);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-image { order: -1; }
    .hero-image img { height: 300px; }
    .contact-details { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .footer-right { text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 768px) {
    .nav, .btn-header { display: none; }
    .nav-toggle { display: flex; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--bg);
        padding: 100px 32px 40px;
        gap: 24px;
        z-index: 999;
    }
    .nav.open a { font-size: 1.1rem; color: var(--text); }
    .hero { padding: 120px 0 60px; }
    .hero-text h1 { font-size: 1.8rem; }
    .services-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .hero-trust { gap: 16px; }
    .trust-bar-inner { gap: 20px; }
    .section { padding: 60px 0; }
}
