/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors HSL */
    --background: 0 0% 100%;
    --foreground: 34 15% 13%;
    --card: 0 0% 100%;
    --card-foreground: 34 15% 13%;
    --popover: 0 0% 100%;
    --popover-foreground: 34 15% 13%;
    --primary: 37 30% 57%;
    --primary-foreground: 0 0% 98%;
    --primary-glow: 42 45% 70%;
    --secondary: 0 0% 96%;
    --secondary-foreground: 34 15% 13%;
    --muted: 42 30% 96%;
    --muted-foreground: 35 15% 46%;
    --accent: 42 45% 70%;
    --accent-foreground: 34 15% 13%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 98%;
    --border: 42 30% 91%;
    --input: 42 30% 91%;
    --ring: 37 30% 57%;
    --radius: 0.75rem;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--primary-glow) / 0.05));
    --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(var(--muted)));
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.3);
    --shadow-glow: 0 0 40px hsl(var(--primary-glow) / 0.4);
    --shadow-card: 0 4px 6px -1px hsl(var(--foreground) / 0.1);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.center {
    text-align: center;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 1rem;
}

.header .container {
    display: flex;
    justify-content: center;
}

.logo {
    height: 6rem;
    width: auto;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-desktop {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./images/hero-background.png');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.hero-bg-mobile {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./images/hero-background.png');
    background-size: cover;
    background-position: 60% 20%;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .hero-bg-desktop {
        display: block;
    }
    .hero-bg-mobile {
        display: none;
    }
}

.hero-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: -10px;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    padding: 1rem;
    padding-top: 5rem;
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 3rem;
        padding-top: 7rem;
        margin-left: 2rem;
        margin-right: auto;
        text-align: left;
        margin-top: -27px;
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 3.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 5vw, 3.75rem);
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: clamp(3rem, 5vw, 3.75rem);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    margin-top: 14rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    text-rendering: optimizeLegibility;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        margin-top: 1.5rem;
        margin-left: 0;
        margin-right: 0;
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        margin-bottom: 2rem;
    }
}

/* Button Styles */
.cta-button {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .cta-button {
        margin-top: 1.5rem;
    }
}

.cta-button:hover {
    background: hsl(var(--primary) / 0.9);
    box-shadow: 0 0 40px hsl(var(--primary-glow) / 0.6);
    transform: translateY(-2px);
}

/* Section Styles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: hsl(var(--foreground));
    line-height: 1.2;
}

.section-title.center {
    text-align: center;
}

/* Doctor Section */
.doctor-section {
    padding: 5rem 0;
    background: var(--gradient-subtle);
}

.doctor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .doctor-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.doctor-image-container {
    position: relative;
}

.doctor-image {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-elegant);
    object-fit: cover;
    display: block;
}

.doctor-badge {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-glow);
    font-weight: 600;
}

.doctor-achievements {
    margin-bottom: 2rem;
}

.achievement {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.check-icon {
    color: hsl(var(--primary));
    font-size: 1.25rem;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background: hsl(var(--background));
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: scale(1.05);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--card-foreground));
}

.benefit-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* Perfect Teeth Section */
.perfect-teeth-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom right, hsl(var(--primary) / 0.05), hsl(var(--secondary) / 0.1));
}

.subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 3rem;
}

.testimonial-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto 3rem;
}

@media (min-width: 768px) {
    .testimonial-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.testimonial-image:hover {
    box-shadow: var(--shadow-elegant);
    transform: scale(1.05);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.results-info {
    text-align: center;
}

.results-text {
    font-size: 1.125rem;
    color: hsl(var(--foreground) / 0.8);
    margin-bottom: 1.5rem;
}

.benefits-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-tag {
    background: hsl(var(--background) / 0.5);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Clinic Structure Section */
.clinic-structure-section {
    padding: 5rem 0;
    background: hsl(var(--background));
}

.structure-section {
    margin-bottom: 3rem;
}

.structure-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
    max-width: 4xl;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .structure-title {
        font-size: 1.875rem;
    }
}

.structure-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    text-align: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.structure-section {
    margin-bottom: 5rem;
}

.structure-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 6xl;
    margin-left: auto;
    margin-right: auto;
}

.structure-images img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    height: auto;
    object-fit: cover;
}

.structure-images img:hover {
    box-shadow: var(--shadow-elegant);
    transform: scale(1.02);
}

/* Location Section */
.location-section {
    padding: 5rem 0;
    background: hsl(var(--muted));
}

.location-text {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: hsl(var(--muted-foreground));
    max-width: 64rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: hsl(var(--background));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: scale(1.05);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: hsl(var(--card-foreground));
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-subtle);
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.cta-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-button {
    color: white;
    border: 1px solid white;
    background: transparent;
    padding: 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.contact-button:hover {
    background: white;
    color: hsl(var(--foreground));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 8rem;
    }
    
    .doctor-grid {
        text-align: center;
    }
    
    .benefits-tags {
        font-size: 0.75rem;
    }
    
    .contact-buttons {
        align-items: flex-start;
    }
}