/* 
   ====================================================
   ALL DENT CARE - DENTAL CLINIC
   Main Stylesheet
   ====================================================
*/

/* --- 1. Variables & Base Setup --- */
:root {
    /* Color Palette */
    --primary-blue: #1b4b8a;
    --primary-blue-dark: #123360;
    --primary-blue-light: #e8eff7;
    
    --accent-red: #e63946;
    --accent-red-dark: #c42733;
    --accent-red-light: #fcebeb;
    
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-light: #e9ecef;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 10px rgba(27, 75, 138, 0.05);
    --shadow-md: 0 10px 30px rgba(27, 75, 138, 0.08);
    --shadow-lg: 0 20px 40px rgba(27, 75, 138, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Border Radius */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

.text-accent {
    color: var(--accent-red);
}

.text-white {
    color: var(--bg-white) !important;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* --- Section Headers --- */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 75, 138, 0.2);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* --- Placeholders & Aspect Ratios --- */
.image-placeholder {
    background-color: var(--bg-light);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-heading);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.image-placeholder i {
    font-size: 3rem;
    color: #ced4da;
    margin-bottom: 10px;
}

.aspect-hero { aspect-ratio: 800 / 866; }
.aspect-about { aspect-ratio: 800 / 743; }
.aspect-doctor { aspect-ratio: 1 / 1; }
.aspect-map { aspect-ratio: 16 / 9; }

/* Real images will use this later */
.object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- 2. Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(233, 236, 239, 0.5);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 5px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .header-container {
    height: 70px;
}

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

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions-mobile {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-blue);
    cursor: pointer;
}


/* --- 3. Hero Section --- */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    overflow: hidden;
    background-color: var(--bg-white);
}

.hero-bg-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, rgba(27, 75, 138, 0.05) 50%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-blue-dark);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-area {
    position: relative;
}

.hero-image-area::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}


/* --- 4. About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    margin-top: 2.5rem;
    display: grid;
    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-red-light);
    color: var(--accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.875rem;
}


/* --- 5. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: transparent;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-heading);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}


/* --- 6. Main Dentist Section --- */
.doctor-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.doctor-name {
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.doctor-qualifications {
    font-size: 1.125rem;
    color: var(--accent-red);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.doctor-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.doctor-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.doctor-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.doctor-highlights i {
    color: var(--accent-red);
    font-size: 1.25rem;
}


/* --- 7. Why Choose Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-box-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-box-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* --- 8. Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    font-family: var(--font-heading);
    color: var(--primary-blue-light);
    line-height: 1;
    opacity: 0.5;
}

.stars {
    color: #ffb703;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.patient-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.patient-details h5 {
    margin-bottom: 2px;
    font-size: 1.125rem;
}

.patient-details span {
    color: var(--text-muted);
    font-size: 0.875rem;
}


/* --- 9. Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-info {
    padding: 60px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h5 {
    margin-bottom: 4px;
    font-size: 1.125rem;
}

.info-text p {
    color: var(--text-muted);
}


/* --- 10. Footer --- */
.footer {
    background-color: var(--primary-blue-dark);
    color: var(--bg-white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.social-links a:hover {
    background-color: var(--accent-red);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-red);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '›';
    margin-right: 8px;
    font-size: 1.2rem;
    color: var(--accent-red);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.footer-contact i {
    color: var(--accent-red);
    font-size: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}


/* --- 11. Animations (Reveal on Scroll) --- */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

.fade-up { transform: translateY(40px); }
.fade-left { transform: translateX(40px); }
.fade-right { transform: translateX(-40px); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* --- 12. Responsive Design --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-container { gap: 40px; }
    .about-container, .doctor-container { gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    
    .nav-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        transition: 0.4s ease-in-out;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar.active {
        left: 0;
    }
    
    .header.scrolled .navbar {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 24px;
        margin-bottom: 40px;
    }
    
    .nav-link {
        font-size: 1.25rem;
        display: block;
        width: 100%;
    }
    
    .nav-actions-mobile {
        display: block;
        width: 100%;
    }
    
    .nav-actions-mobile .btn {
        width: 100%;
    }

    .hero-container, .about-container, .doctor-container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-desc {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-image-area {
        order: -1;
    }
    
    .doctor-image-area {
        order: -1;
    }
    
    .doctor-highlights {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 40px 24px;
    }
    
    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.25rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .stat-number { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
