/* DENTACARE - DENTAL CLINIC CSS */

:root {
    --primary: #ffffff;
    --secondary: #f0f8ff; /* Soft pastel blue */
    --accent: #4a90e2; /* Medical blue */
    --text-dark: #1a2b3c;
    --text-light: #5a6c7d;
    --border: #e1eaf2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--primary);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--text-dark);
}

/* Header */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu { display: flex; gap: 30px; }
.menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}
.menu a:hover { color: var(--accent); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    border: 2px solid var(--accent);
}
.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

/* Hero */
.hero {
    padding: 150px 5vw 100px 5vw;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #fff 100%);
    min-height: 90vh;
}

.hero-text { flex: 1; padding-right: 5vw; }
.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-text h1 span { color: var(--accent); }
.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-img {
    flex: 1;
    height: 600px;
    border-radius: 20px;
    background-image: url('mockup_dis_hero_1781161516894.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.15);
}

/* Services */
.services { padding: 100px 5vw; background: #fff; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-title p { color: var(--text-light); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--secondary);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
}

.service-icon {
    width: 60px; height: 60px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 15px; font-size: 1.2rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.5; }

/* Before / After Slider */
.ba-section {
    padding: 100px 5vw;
    background: var(--secondary);
    text-align: center;
}

.ba-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: 450px;
    background: #fff;
}

.ba-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ba-img.after { z-index: 1; }
.ba-img.before {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    opacity: 0; /* visually hide native slider but keep functional */
    cursor: ew-resize;
}

.ba-line {
    position: absolute;
    top: 0; left: 50%;
    width: 4px; height: 100%;
    background: #fff;
    z-index: 2;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ba-line::after {
    content: '↔';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: #fff;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Doctor Profile */
.doctor {
    padding: 100px 5vw;
    display: flex;
    align-items: center;
    gap: 5vw;
}

.doc-img {
    flex: 1;
    height: 500px;
    border-radius: 20px;
    background-image: url('mockup_dis_doktor_1781161525484.webp');
    background-size: cover;
    background-position: center;
}

.doc-info { flex: 1; }
.doc-info h2 { font-size: 2.5rem; margin-bottom: 10px; }
.doc-info h4 { color: var(--accent); margin-bottom: 20px; font-weight: 500; }
.doc-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* WhatsApp Float */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: 0.3s;
}
.wa-float:hover { transform: translateY(-5px); box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4); }

/* Footer */
footer { padding: 40px 5vw; text-align: center; border-top: 1px solid var(--border); }
footer p { color: var(--text-light); font-size: 14px; }

@media(max-width: 768px) {
    header { padding: 15px 5vw; }
    .logo { font-size: 20px; }
    .hero { flex-direction: column; padding-top: 100px; }
    .hero-text h1 { font-size: 11vw; }
    .hero-img { width: 100%; margin-top: 40px; height: 350px; min-height: 350px; background-position: center top; }
    .service-grid { grid-template-columns: 1fr; }
    .doctor { flex-direction: column-reverse; }
    .doc-img { width: 100%; height: 400px; }
    .menu { display: none; }
    .ba-container { height: 300px; }
    .wa-float { bottom: 20px; right: 20px; padding: 12px; }
    .wa-text { display: none; }
}
