/*
Theme Name: V Luxe Dental Atelier
Theme URI: 
Author: DeepMind
Author URI: 
Description: Custom WordPress theme for V Luxe Dental Atelier.
Version: 1.0
*/
:root {
    --primary: #B99657;
    --bg-main: #F7F4EF;
    --bg-alt: #ffffff;
    --accent-blue: #DCE9E4;
    --accent-pink: #F0E5D1;
    --accent-grey: #e2e8f0;
    --text-main: #2F3A38;
    --text-muted: #5c6b68;
    
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    padding: 0;
    line-height: 1.6;
}

/* Wrapping everything in a main container like the mockup */
body::before {
    display: none;
}

.navbar, section, footer {
    max-width: 1500px;
    margin: 0 auto;
    background: var(--bg-main);
}

/* Typography */
h1, h2, h3, h4, .logo span, .section-tag {
    font-family: var(--font-heading);
}

h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 16px;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--accent-grey);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

/* Buttons */
button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    outline: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #9a7b45;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #9a7b45;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    justify-self: end;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-main);
}

/* Header */
.mobile-menu-btn, .close-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--primary);
    cursor: pointer;
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 24px 40px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    justify-self: start;
}

.clinic-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    justify-self: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    display: flex;
    gap: 24px;
    padding: 100px 40px 140px;
    border-radius: 0;
    margin-bottom: 24px;
    max-width: 100%;
    margin: 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 244, 239, 0.4);
    z-index: 1;
    border-radius: 0;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-text-block h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 16px;
}

.highlight-gold {
    color: var(--primary);
}

.hero-text-block p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-actions .btn-primary {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.hero-actions .btn-primary:hover {
    background: #9a7b45;
}

.btn-play {
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-play i {
    font-size: 2.5rem;
    color: var(--text-main);
}

.btn-play:hover {
    color: var(--primary);
}

/* Features Widget */
.hero-features-widget {
    position: absolute;
    bottom: 24px;
    left: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 24px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    z-index: 10;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.25rem;
}

.feature-item span {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-main);
    font-weight: 500;
}

.feature-divider {
    width: 1px;
    height: 40px;
    background: var(--accent-grey);
}

.hero-image-wrapper {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* General Section Styles */
section:not(.hero) {
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

/* About Section */
.about-header {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.about-title {
    flex: 1;
}

.about-title h2 {
    margin-bottom: 24px;
}

.about-desc {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-alt);
    padding: 32px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-card.highlight-card {
    background: var(--accent-blue);
}

.feature-card.highlight-card h3,
.feature-card.highlight-card p {
    color: var(--primary);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.highlight-card .feature-icon {
    background: white;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.875rem;
}

/* Services Section */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.services-desc {
    max-width: 400px;
}

.services-desc p {
    margin-bottom: 24px;
}

.services-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 24px;
    scrollbar-width: none; /* Firefox */
}

.services-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.service-card {
    min-width: 320px;
    background: var(--bg-alt);
    padding: 32px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 24px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blue-bg { background: var(--accent-blue); color: white; }
.pink-bg { background: var(--accent-pink); color: white; }
.grey-bg { background: var(--accent-grey); color: white; }

.service-list {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--accent-grey);
    padding: 12px 24px;
    border-radius: 100px;
    align-self: flex-start;
    transition: var(--transition);
}

.explore-link:hover {
    background: var(--primary);
    color: white;
}

/* Doctors Section */
.doctors-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.doctors-desc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    max-width: 300px;
    text-align: right;
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #9a7b45;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.carousel-controls {
    display: flex;
    gap: 12px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--accent-blue);
}

.doctors-tabs {
    display: flex;
    gap: 12px;
}

.tab {
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-weight: 500;
}

.tab.active {
    background: var(--accent-blue);
    color: var(--primary);
}

.swipe-hint {
    display: none;
}

.doctors-grid {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 24px;
    padding-bottom: 32px;
    padding-top: 16px;
    margin-right: -40px; /* offset the section padding for edge bleeding */
    padding-right: 40px;
    scroll-behavior: smooth;
}

.doctors-grid::-webkit-scrollbar {
    display: none;
}

.doctors-grid .doctor-card {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
}

.doctor-card {
    transition: var(--transition);
    cursor: pointer;
}

.doctor-card:hover {
    transform: translateY(-12px);
}

.doctor-card .doctor-img {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.doctor-card:hover .doctor-img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.08);
}

.doctor-card p {
    font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.testimonials-desc {
    max-width: 400px;
}

.testimonials-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 24px;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 400px;
    background: var(--bg-alt);
    padding: 32px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: var(--transition);
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #F59E0B;
    font-size: 0.875rem;
    margin-top: 4px;
}

.rating span {
    color: var(--text-main);
    font-weight: 600;
    margin-left: 4px;
}

.testimonial-card p {
    margin-bottom: 16px;
}

/* Footer */
.footer {
    padding: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid, .doctors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .hero { flex-direction: column; }
    .hero-image-wrapper { height: 400px; }
    .about-header { flex-direction: column; gap: 24px; }
}

@media (max-width: 768px) {
    body { padding: 16px; }
    
    .navbar { 
        display: flex;
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        padding: 20px; 
    }
    
    .navbar .btn-outline {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo {
        flex: 1;
        justify-content: center;
    }
    
    .nav-links { 
        position: fixed;
        top: 0;
        left: -100%;
        width: 80vw;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column; 
        justify-content: flex-start;
        align-items: flex-start;
        gap: 32px;
        padding: 80px 40px;
        z-index: 1000;
        transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 20px 0 40px rgba(0,0,0,0.1);
    }
    
    .nav-links.open {
        left: 0;
    }
    
    .close-menu-btn {
        display: block;
        position: absolute;
        top: 24px;
        right: 24px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero { 
        padding: 80px 20px 100px;
        flex-direction: column;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .hero-features-widget {
        position: static;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 16px;
        margin-top: -24px;
        margin-bottom: 24px;
    }
    
    .feature-divider {
        width: 100%;
        height: 1px;
    }

    section:not(.hero) { 
        padding: 40px 20px; 
        margin-bottom: 16px;
    }
    
    .features-grid { grid-template-columns: 1fr; }
    
    .services-header, .doctors-header, .testimonials-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 24px; 
    }
    
    .services-desc, .doctors-desc, .testimonials-desc { 
        align-items: flex-start; 
        text-align: left; 
        max-width: 100%;
    }
    
    .doctors-tabs {
        flex-wrap: wrap;
    }
    
    /* Fix horizontal scrolling cards for mobile */
    .service-card {
        width: 85vw;
        min-width: 85vw;
        padding: 24px;
        flex-shrink: 0;
    }
    
    .testimonial-card {
        width: 85vw;
        min-width: 85vw;
        padding: 24px;
        flex-shrink: 0;
    }
    
    .swipe-hint {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.875rem;
        color: var(--text-muted);
        margin-bottom: 16px;
        animation: pulseSwipe 2s infinite;
    }
    
    @keyframes pulseSwipe {
        0% { transform: translateX(0); opacity: 0.7; }
        50% { transform: translateX(5px); opacity: 1; }
        100% { transform: translateX(0); opacity: 0.7; }
    }
    
    .doctors-grid {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }
    
    .doctors-grid::-webkit-scrollbar {
        display: none;
    }
    
    .doctors-grid .doctor-card {
        width: 75vw;
        min-width: 75vw;
        flex-shrink: 0;
    }

    .testimonials-slider, .services-slider, .doctors-grid {
        margin-right: -20px; 
        padding-right: 20px; 
        gap: 16px;
        padding-top: 16px;
        padding-bottom: 32px; /* Prevent shadow clipping */
        display: flex;
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .hero-image-wrapper { height: 240px; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .carousel-controls { display: none; }
}
