/* ===================================================================
   DR NASHWAN DENTAL CENTER - PROFESSIONAL ENTERPRISE STYLESHEET v2.0
=================================================================== */

/* 1. CORE DESIGN VARIABLES & CORE RESET */
:root {
    --primary: #2c3e50;       /* كحلي رصين للموثوقية الطبية */
    --secondary: #00b894;     /* أخضر طبي ماسي للنقاء والشفاء */
    --accent: #d4af37;        /* لمسة ذهبية ملكية ناعمة تعكس الفخامة */
    --dark: #1a252f;          /* لون داكن جداً للنصوص الرئيسية والعناوين */
    --light: #f8f9fa;         /* خلفيات رمادية خفيفة جداً لراحة العين */
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. NAVIGATION HEADER SYSTEM */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-area h1 {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
}

.logo-area p {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: var(--secondary);
    background-color: var(--light);
}

/* 3. PREMIUM HERO BANNER */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

.hero p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 4. EXECUTIVE BUTTONS SYSTEM */
.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-primary:hover {
    background-color: #00a383;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* 5. SECTIONS & SCANNABLE GRIDS */
.section {
    padding: 80px 0;
}

.light-section {
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* GRID LAYOUTS FOR MEDICAL REPUTATION */
.services-grid, .specialties-grid, .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1max));
    gap: 30px;
}

/* 6. CARDS AESTHETICS (UI/UX LUXURY) */
.service-card, .specialty-card, .article-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: block;
}

.service-card:hover, .specialty-card:hover, .article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 184, 148, 0.2);
}

.service-card h3, .specialty-card h3, .article-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p, .specialty-card p, .article-card p {
    color: #636e72;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 7. FAQ STRUCTURE FOR GOOGLE FEATURED SNIPPETS */
.faq-item {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--secondary);
}

.faq-item h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.faq-item p {
    color: #55595c;
    font-size: 0.95rem;
}

/* 8. LANDING PAGES CONVERSION BOXES */
.landing-cta-box {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-hover);
    margin-top: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* 9. FLOATING WHATSAPP BUTTON WITH INTERACTION */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #20ba5a;
}

/* 10. REVEAL ENGINE & PERFORMANCE SYSTEM */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* 11. FOOTER BRANDING ACCENTS */
.footer {
    background-color: var(--dark);
    color: #a0aab2;
    padding: 30px 0;
    border-top: 3px solid var(--accent);
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 12. RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .services-grid, .specialties-grid, .articles-grid {
        grid-template-columns: 1fr;
    }
}
