/* =============================================
   SMILECRAFT DENTAL STUDIO — STYLE SHEET
   Design: Clean white + teal, medical-professional
   ============================================= */

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

:root {
    --bg: #f8fafb;
    --bg-dark: #0f1b24;
    --bg-section: #f0f5f7;
    --bg-card: #ffffff;
    --text: #1a2b3c;
    --text-muted: #64748b;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-light: #ccfbf1;
    --teal-glow: rgba(13,148,136,0.08);
    --border: rgba(0,0,0,0.06);
    --border-dark: rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

em {
    font-style: italic;
    font-family: 'DM Serif Display', serif;
    color: var(--teal);
}

a { color: var(--teal); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--teal-dark); }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding: 0.4rem 1rem;
    background: var(--teal-glow);
    border-radius: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer; border: none; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
}
.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff; box-shadow: 0 4px 15px rgba(13,148,136,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(13,148,136,0.4); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.25); color: #fff; }
.btn-sm { padding: 0.65rem 1.5rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }

/* NAVIGATION */
nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 1rem 0; transition: all 0.4s;
}
nav.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 0;
    box-shadow: var(--shadow-sm);
}
nav.scrolled .nav-links a { color: var(--text-muted); }
nav.scrolled .nav-links a:hover { color: var(--text); }
nav.scrolled .logo-text { color: var(--text); }

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: #fff; transition: color 0.3s; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 0.88rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark)) !important;
    color: #fff !important;
    padding: 0.55rem 1.3rem; border-radius: 50px; font-weight: 600 !important;
}

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 5px;
}
.hamburger span { width: 24px; height: 2px; background: #fff; transition: 0.3s; }
nav.scrolled .hamburger span { background: var(--text); }

/* HERO */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,27,36,0.7) 0%, rgba(13,148,136,0.3) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    padding: 8rem 1.5rem 4rem; max-width: 800px; color: #fff;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px; padding: 0.5rem 1.2rem;
    font-size: 0.85rem; margin-bottom: 1.5rem;
    animation: fadeIn 1s ease;
}
.badge-pulse {
    width: 8px; height: 8px; background: #34d399;
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.hero h1 {
    font-family: 'DM Serif Display', serif; font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400; line-height: 1.15; margin-bottom: 1.2rem;
    animation: fadeInUp 1s ease 0.2s both;
}
.hero h1 em { color: var(--teal-light); }
.hero p { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 0 auto 2rem; animation: fadeInUp 1s ease 0.4s both; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeInUp 1s ease 0.5s both; }

.hero-trust {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; margin-top: 3rem;
    animation: fadeInUp 1s ease 0.7s both;
    font-size: 0.85rem; opacity: 0.8;
}
.stars { color: #f5c518; letter-spacing: 1px; }
.trust-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.3); }

/* STATS BAR */
.stats-bar {
    background: var(--bg-dark); padding: 3rem 0;
    border-bottom: 2px solid var(--teal);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem; text-align: center;
}
.stat-item h3 { font-size: 2.5rem; font-weight: 800; color: var(--teal); }
.stat-item p { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.3rem; }

/* SERVICES */
.services { padding: 6rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.service-card {
    position: relative;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card.featured {
    border-color: var(--teal);
    background: linear-gradient(135deg, var(--teal-glow), rgba(13,148,136,0.02));
}
.service-badge {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--teal); color: #fff;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; padding: 0.3rem 0.8rem; border-radius: 50px;
}
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.service-price { font-weight: 700; color: var(--teal); font-size: 0.95rem; }

/* DOCTORS */
.doctors { padding: 6rem 0; background: var(--bg-section); }
.doctors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.doctor-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem 2rem;
    text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.doctor-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem; font-weight: 700; font-size: 1.5rem; color: #fff;
}
.doctor-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.doctor-title { font-size: 0.85rem; color: var(--teal); font-weight: 500; }
.doctor-exp { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.doctor-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }

.doctor-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.doctor-tags span {
    font-size: 0.75rem; background: var(--teal-glow); color: var(--teal);
    padding: 0.3rem 0.7rem; border-radius: 50px; font-weight: 500;
}

/* GALLERY */
.gallery { padding: 6rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.gallery-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.ba-container { display: grid; grid-template-columns: 1fr 1fr; }
.ba-before, .ba-after {
    height: 140px; display: flex; align-items: center; justify-content: center;
    position: relative;
}
.ba-label {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(0,0,0,0.35);
}
.gallery-info { padding: 1.2rem; }
.gallery-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.gallery-info p { font-size: 0.85rem; color: var(--text-muted); }

/* TESTIMONIALS */
.testimonials { padding: 6rem 0; background: var(--bg-section); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.testimonial-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem;
    transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card .stars { font-size: 1rem; margin-bottom: 1rem; }
.testimonial-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }

.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; color: #fff;
}
.testimonial-author h4 { font-size: 0.9rem; font-weight: 600; }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

/* FAQ */
.faq { padding: 6rem 0; }
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq-question {
    width: 100%; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.3rem 0; cursor: pointer;
    font-size: 1rem; font-weight: 600; color: var(--text);
    font-family: 'Inter', sans-serif; text-align: left;
    transition: color 0.3s;
}
.faq-question:hover { color: var(--teal); }
.faq-icon {
    font-size: 1.4rem; color: var(--teal);
    transition: transform 0.3s; font-weight: 300;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px; padding-bottom: 1.2rem;
}
.faq-answer p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* APPOINTMENT */
.appointment { padding: 6rem 0; background: var(--bg-section); }

.appt-wrapper {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: start;
}
.appt-info h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem; font-weight: 400; margin-bottom: 1rem;
}
.appt-info > p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }

.appt-highlights { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2rem; }
.highlight { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-muted); }
.hi { color: var(--teal); font-weight: 700; }

.clinic-hours {
    background: var(--teal-glow); border: 1px solid rgba(13,148,136,0.15);
    border-radius: var(--radius-sm); padding: 1.2rem;
}
.clinic-hours h4 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.clinic-hours p { font-size: 0.85rem; color: var(--text-muted); }

/* FORM */
.appt-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem;
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 0.5rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; }

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg); border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm); padding: 0.75rem 1rem;
    color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}
.form-group textarea { resize: vertical; }

.form-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }

/* LOCATION */
.location { padding: 6rem 0; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.location-info h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem; font-weight: 400; margin-bottom: 2rem;
}
.location-details { display: flex; flex-direction: column; gap: 1.5rem; }
.loc-item { display: flex; gap: 1rem; align-items: flex-start; }
.loc-item span:first-child { font-size: 1.5rem; }
.loc-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.loc-item p { font-size: 0.9rem; color: var(--text-muted); }

.location-map {
    border-radius: var(--radius); overflow: hidden;
    min-height: 350px; background: var(--bg-section); border: 1px solid var(--border);
}
.location-map iframe { display: block; }

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 56px; height: 56px; background: #25d366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    z-index: 99; box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    transition: transform 0.3s; animation: bounceIn 1s ease 2s both;
}
.whatsapp-float:hover { transform: scale(1.1); }

@keyframes bounceIn {
    0% { opacity:0; transform: scale(0.3); }
    50% { opacity:1; transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity:1; transform: scale(1); }
}

/* FOOTER */
footer { padding: 4rem 0 2rem; background: var(--bg-dark); color: #fff; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 0.8rem; }

.footer-links h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; color: var(--teal); }
.footer-links a { display: block; color: rgba(255,255,255,0.5); font-size: 0.9rem; padding: 0.3rem 0; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem; display: flex; justify-content: space-between;
    font-size: 0.82rem; color: rgba(255,255,255,0.4);
}
.footer-demo a { color: var(--teal); }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeInUp { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .doctors-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .gallery-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .appt-wrapper { grid-template-columns: 1fr; }
    .location-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 1.5rem; gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-links a { color: var(--text) !important; }
    .hamburger { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-trust { flex-direction: column; gap: 0.5rem; }
    .trust-divider { display: none; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
