/* ==========================================
   FLEXDENT DENTAL CLINIC
   STYLE.CSS
========================================== */

:root{
    --primary:#0B74B8;
    --primary-dark:#085D93;
    --primary-light:#EDF7FD;

    --text:#1F2937;
    --text-light:#6B7280;

    --white:#FFFFFF;
    --surface:#F8FBFD;
    --border:#E5E7EB;

    --shadow:
    0 10px 30px rgba(15,23,42,.08);

    --radius:18px;

    --container:
    min(1200px, calc(100% - 2rem));

    --transition:
    all .35s ease;
}

/* ======================
   RESET
====================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    color:var(--text);
    background:var(--white);
    overflow-x:hidden;
    line-height:1.7;
}

img{
    width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

button,
input,
textarea,
select{
    font:inherit;
}

.container{
    width:var(--container);
    margin:auto;
}

.section{
    padding:7rem 0;
}

/* ======================
   CURSOR
====================== */

.cursor{
    position:fixed;
    width:18px;
    height:18px;
    border-radius:50%;
    background:rgba(11,116,184,.15);
    pointer-events:none;
    z-index:9999;
    transform:translate(-50%,-50%);
    transition:
    width .2s ease,
    height .2s ease,
    background .2s ease;
}

@media(max-width:768px){
    .cursor{
        display:none;
    }
}

/* ======================
   HEADER
====================== */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(229,231,235,.7);
}

.nav-container{
    height:80px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    display:flex;
    flex-direction:column;
}

.logo span{
    font-size:1.4rem;
    font-weight:800;
    color:var(--primary);
}

.logo small{
    color:var(--text-light);
}

.nav-links{
    display:flex;
    gap:2rem;
}

.nav-links a{
    position:relative;
    font-weight:500;
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:var(--primary);
    transition:var(--transition);
}

.nav-links a:hover::after,
.nav-links a.current::after{
    width:100%;
}

.menu-toggle{
    display:none;
    border:none;
    background:none;
    cursor:pointer;
}

.menu-toggle span{
    display:block;
    width:24px;
    height:2px;
    background:var(--text);
    margin:5px 0;
}

/* ======================
   HERO
====================== */

.hero{
    height:100vh;
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
}

.slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    opacity:0;
    transform:scale(1.05);

    transition:
    opacity 1.4s ease,
    transform 6s ease;
}

.slide.active{
    opacity:1;
    transform:scale(1);
}

.hero-overlay{
    position:absolute;
    inset:0;
    z-index:1;

    background:
    linear-gradient(
        90deg,
        rgba(255,255,255,.85) 0%,
        rgba(255,255,255,.70) 25%,
        rgba(255,255,255,.30) 55%,
        rgba(255,255,255,.08) 80%,
        transparent 100%
    );
}

.hero-content{
    position:relative;
    z-index:3;
}

.hero-text{
    max-width:650px;
}

.hero-tag{
    display:inline-block;
    padding:.8rem 1.2rem;
    border-radius:999px;
    background:var(--primary-light);
    color:var(--primary);
    font-size:.9rem;
    font-weight:600;
    margin-bottom:1.5rem;
}

.hero h1{
    font-size:clamp(3rem,5vw,5rem);
    line-height:1.08;
    margin-bottom:1.5rem;
    max-width:700px;
}

.hero p{
    color:var(--text-light);
    max-width:600px;
    font-size:1.1rem;
}

.hero-actions{
    margin-top:2rem;
    display:flex;
    gap:1rem;
    flex-wrap:wrap;
}

.btn{
    padding:1rem 1.6rem;
    border-radius:12px;
    transition:var(--transition);
    font-weight:600;
}

.btn-primary{
    background:var(--primary);
    color:white;
}

.btn-primary:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

.btn-outline{
    border:1px solid var(--border);
    background:white;
}

.btn-outline:hover{
    border-color:var(--primary);
}

/* ======================
   TRUST BAR
====================== */

.trust-bar{
    background:var(--surface);
    padding:5rem 0;
}

.trust-grid{
    display:flex;
    gap:1.5rem;
    flex-wrap:wrap;
}

.trust-item{
    flex:1 1 300px;
    background:white;
    border-radius:var(--radius);
    padding:2rem;
    border:1px solid var(--border);
    transition:var(--transition);
}

.trust-item:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow);
}

.trust-item h3{
    margin-bottom:.5rem;
}

.trust-item p{
    color:var(--text-light);
}

/* ======================
   ABOUT
====================== */

.about-grid{
    display:flex;
    gap:4rem;
    align-items:center;
    flex-wrap:wrap;
}

.about-image{
    flex:1 1 450px;
}

.about-image img{
    border-radius:24px;
    box-shadow:var(--shadow);
}

.about-content{
    flex:1 1 450px;
}

.section-label{
    display:inline-block;
    margin-bottom:1rem;
    color:var(--primary);
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:.85rem;
}

.about-content h2{
    font-size:clamp(2rem,4vw,3rem);
    line-height:1.2;
    margin-bottom:1.2rem;
}

.about-content p{
    color:var(--text-light);
    margin-bottom:1rem;
}

/* ======================
   STATS
====================== */

.stats{
    background:var(--primary-light);
}

.stats-grid{
    display:flex;
    gap:1.5rem;
    flex-wrap:wrap;
}

.stat-card{
    flex:1;
    min-width:250px;
    background:white;
    text-align:center;
    padding:2.5rem;
    border-radius:var(--radius);
}

.stat-card h3{
    color:var(--primary);
    font-size:3rem;
}

.stat-card p{
    color:var(--text-light);
}

/* ======================
   SECTION HEADINGS
====================== */

.section-heading{
    text-align:center;
    margin-bottom:3rem;
}

.section-heading h2{
    font-size:clamp(2rem,4vw,3rem);
}

/* ======================
   SERVICES
====================== */

.services-grid{
    display:flex;
    flex-wrap:wrap;
    gap:1.5rem;
}

.service-card{
    flex:1 1 260px;
    padding:2rem;
    border-radius:var(--radius);
    border:1px solid var(--border);
    transition:var(--transition);
    background:white;
}

.service-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow);
}

.service-card h3{
    margin-bottom:.7rem;
}

.service-card p{
    color:var(--text-light);
    margin-bottom:1rem;
}

.service-card span{
    color:var(--primary);
    font-weight:700;
}

/* ======================
   WHY US
====================== */

.why{
    background:var(--surface);
}

.why-grid{
    display:flex;
    gap:1.5rem;
    flex-wrap:wrap;
}

.why-card{
    flex:1 1 300px;
    background:white;
    padding:2rem;
    border-radius:var(--radius);
    border:1px solid var(--border);
}

.why-card h3{
    margin-bottom:.7rem;
}

.why-card p{
    color:var(--text-light);
}

/* ======================
   TESTIMONIALS
====================== */

.testimonial-slider{
    max-width:800px;
    margin:auto;
}

.testimonial{
    display:none;
    text-align:center;
    background:white;
    border:1px solid var(--border);
    padding:3rem;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.testimonial.active{
    display:block;
    animation:fade .8s ease;
}

.testimonial p{
    font-size:1.1rem;
    margin-bottom:1rem;
}

.testimonial h4{
    color:var(--primary);
}

/* ======================
   APPOINTMENT
====================== */

.appointment{
    background:var(--surface);
}

.appointment-form{
    max-width:750px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:1rem;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea{
    padding:1rem;
    border-radius:12px;
    border:1px solid var(--border);
    outline:none;
    transition:var(--transition);
}

.appointment-form textarea{
    resize:vertical;
    min-height:150px;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus{
    border-color:var(--primary);
}

.appointment-form button{
    border:none;
    background:var(--primary);
    color:white;
    padding:1rem;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
}

.appointment-form button:hover{
    background:var(--primary-dark);
}

/* ======================
   CONTACT
====================== */

.contact-grid{
    display:flex;
    gap:2rem;
    align-items:center;
    flex-wrap:wrap;
}

.contact-info{
    flex:1;
}

.contact-info h2{
    margin-bottom:1rem;
}

.contact-info p{
    margin-bottom:.8rem;
    color:var(--text-light);
}

.map{
    flex:1;
}

.map iframe{
    width:100%;
    height:420px;
    border:none;
    border-radius:24px;
}

/* ======================
   FOOTER
====================== */

.footer{
    padding:3rem 0;
    text-align:center;
    border-top:1px solid var(--border);
    background:#F9FBFD;
}

.footer h3{
    color:var(--primary);
    margin-bottom:1rem;
}

.footer p{
    max-width:650px;
    margin:0 auto 1rem;
    color:var(--text-light);
}

/* ======================
   WHATSAPP
====================== */

.whatsapp{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:1000;

    padding:1rem 1.4rem;
    border-radius:999px;

    background:var(--primary);
    color:white;

    font-weight:600;

    box-shadow:var(--shadow);

    transition:var(--transition);
}

.whatsapp:hover{
    transform:translateY(-4px);
}

/* ======================
   REVEAL
====================== */

.reveal{
    opacity:0;
    transform:translateY(35px);
    transition:
    opacity .8s ease,
    transform .8s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* ======================
   ANIMATION
====================== */

@keyframes fade{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ======================
   MOBILE
====================== */

@media(max-width:900px){

    .nav-links{
        position:fixed;
        top:80px;
        right:-100%;
        width:280px;
        height:calc(100vh - 80px);

        background:white;

        flex-direction:column;
        padding:2rem;

        transition:.4s ease;

        border-left:1px solid var(--border);
    }

    .nav-links.active{
        right:0;
    }

    .menu-toggle{
        display:block;
    }

    .hero{
        min-height:100vh;
    }

    .hero-overlay{
        background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.90) 0%,
            rgba(255,255,255,.72) 40%,
            rgba(255,255,255,.25) 100%
        );
    }

    .hero h1{
        font-size:2.8rem;
    }

    .about-grid,
    .contact-grid{
        flex-direction:column;
    }
}

@media(max-width:600px){

    .section{
        padding:5rem 0;
    }

    .hero-actions{
        flex-direction:column;
    }

    .btn{
        width:100%;
        text-align:center;
    }

    .testimonial{
        padding:2rem;
    }

    .whatsapp{
        right:15px;
        bottom:15px;
    }
}