/* ========================================
   ProDental Website - Comprehensive CSS
   Modern, Professional, Responsive Design
   ======================================== */

/* ========================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ======================================== */

:root {
    /* Color Palette - Professional Dental Theme */
    --primary-color: #0066cc;
    --secondary-color: #00a86b;
    --accent-color: #ff6b6b;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --border-color: #dfe6e9;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* ========================================
   2. CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   3. NAVIGATION BAR
   ======================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* ========================================
   4. HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
}

/* ========================================
   5. MAIN CONTENT & ARTICLE STYLES
   ======================================== */

main {
    padding: var(--spacing-xxl) var(--spacing-md);
    min-height: calc(100vh - 200px);
}

.blog-article {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 3px solid var(--primary-color);
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-content {
    line-height: 1.8;
}

.article-content p {
    margin-bottom: var(--spacing-lg);
    text-align: justify;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.article-content p:first-letter {
    font-weight: 600;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.article-content a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* ========================================
   6. ABOUT PAGE STYLES
   ======================================== */

.about-section {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-lg);
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.about-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.about-section p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 168, 107, 0.05) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.benefits-list {
    list-style: none;
    margin-top: var(--spacing-lg);
}

.benefits-list li {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: #ffffff;
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.benefits-list strong {
    color: var(--primary-color);
}

/* ========================================
   7. CONTACT PAGE STYLES
   ======================================== */

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.contact-info {
    padding: var(--spacing-lg);
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: 1.8rem;
}

.info-block {
    margin-bottom: var(--spacing-lg);
}

.info-block h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.info-block p {
    color: var(--text-dark);
    line-height: 1.8;
}

.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: 1.8rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.submit-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ========================================
   8. PRIVACY POLICY STYLES
   ======================================== */

.privacy-article {
    max-width: 900px;
    margin: 0 auto;
}

.policy-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.policy-section h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.policy-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.policy-section ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.policy-section li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    line-height: 1.8;
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
}

/* ========================================
   9. FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0a0a1a 100%);
    color: #ffffff;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    margin-top: var(--spacing-xxl);
}

.footer p {
    font-size: 0.95rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* ========================================
   10. RESPONSIVE DESIGN - TABLETS
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-md);
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    main {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* ========================================
   11. RESPONSIVE DESIGN - MOBILE
   ======================================== */

@media (max-width: 480px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-links {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }

    .nav-links a {
        padding: var(--spacing-sm);
        text-align: center;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-content p {
        font-size: 1rem;
    }

    .about-section {
        padding: var(--spacing-md);
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: var(--spacing-md);
    }

    .contact-info,
    .contact-form-section {
        padding: var(--spacing-md);
    }

    .policy-section {
        padding: var(--spacing-md);
    }

    .policy-section h2 {
        font-size: 1.3rem;
    }

    main {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* ========================================
   12. ACCESSIBILITY & UTILITIES
   ======================================== */

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Smooth scrolling support */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* ========================================
   13. ANIMATIONS & TRANSITIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-content p {
    animation: fadeIn 0.6s ease-in-out forwards;
}

.article-content p:nth-child(n) {
    animation-delay: calc(0.1s * var(--index, 1));
}

/* ========================================
   14. PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a2e;
        color: #e0e0e0;
    }

    .about-section,
    .contact-info,
    .policy-section {
        background-color: #2d2d44;
        border-color: #404060;
    }

    .article-content p,
    .about-section p,
    .info-block p,
    .policy-section p {
        color: #e0e0e0;
    }

    .article-header {
        border-bottom-color: #0066cc;
    }
}
