/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
    --background: 200 30% 98%;
    --foreground: 200 25% 15%;
    --card: 0 0% 100%;
    --card-foreground: 200 25% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 200 25% 15%;
    --primary: 210 55% 45%;
    --primary-foreground: 0 0% 100%;
    --secondary: 210 50% 92%;
    --secondary-foreground: 210 50% 20%;
    --muted: 200 20% 94%;
    --muted-foreground: 200 15% 45%;
    --accent: 25 85% 60%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;
    --border: 200 20% 90%;
    --input: 200 20% 90%;
    --ring: 210 55% 45%;
    --radius: 0.75rem;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Navbar Styles
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsl(var(--background) / 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid hsl(var(--border));
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand .brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.nav-links-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: hsl(var(--foreground));
}

.menu-icon {
    width: 24px;
    height: 24px;
}

.nav-links-mobile {
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    gap: 1rem;
}

.nav-links-mobile.active {
    display: flex;
}

.nav-link-mobile {
    display: block;
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: hsl(var(--primary));
}

@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-links-mobile {
        display: none !important;
    }
}

/* ============================================
   Button Styles
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: inherit;
}

.btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--primary) / 0.9);
    color: hsl(var(--accent-foreground));
}

.btn-lg {
    height: 44px;
    padding: 0 2rem;
    font-size: 1.125rem;
}

.btn-rounded {
    border-radius: 9999px;
    padding: 1px 10px;
}

.btn-full {
    width: 100%;
}

.btn-flex {
    flex: 1;
}

.icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(
        to right,
        hsl(var(--background) / 0.95),
        hsl(var(--background) / 0.7)
    ), url('src/assets/hero-dental-professional.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-primary {
    color: hsl(var(--primary));
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 6rem 0;
    background-color: hsl(var(--muted) / 0.3);
}

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

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

.section-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
}

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

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

.service-card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border) / 0.5);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.service-card .service-icon {
    display: inline-block;
    padding: 0.75rem;
    background-color: hsl(var(--secondary));
    border-radius: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    color: hsl(var(--foreground));
}

.service-card:hover .service-icon {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

.service-card {
    padding: 2rem;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-choose-us {
    padding: 6rem 0;
    background: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--primary) / 0.9));
    color: hsl(var(--primary-foreground));
}

.section-title-light {
    color: hsl(var(--primary-foreground));
}

.section-description-light {
    color: hsl(var(--primary-foreground) / 0.9);
}

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

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

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

.feature-item {
    text-align: center;
}

.feature-icon {
    display: inline-block;
    padding: 1rem;
    background-color: hsl(var(--primary-foreground) / 0.1);
    border-radius: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    opacity: 0.9;
    line-height: 1.75;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 6rem 0;
}

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

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

.contact-form-card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
    border-color: hsl(var(--ring));
}

.form-input {
    height: 48px;
}

.form-textarea {
    min-height: 128px;
    resize: none;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .form-buttons {
        flex-direction: row;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    padding: 0.75rem;
    background-color: hsl(var(--secondary));
    border-radius: 0.75rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

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

.info-text-bold {
    font-weight: 500;
    color: hsl(var(--foreground));
    display: block;
    margin-top: 0.25rem;
}

.info-link {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: hsl(var(--primary));
}

.info-link-underline {
    font-size: 0.875rem;
    text-decoration: underline;
}

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

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

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

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    opacity: 0.9;
    line-height: 1.75;
}

.footer-heading {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.9;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem;
    background-color: hsl(var(--primary-foreground) / 0.1);
    border-radius: 0.5rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    background-color: hsl(var(--primary-foreground) / 0.2);
}

.footer-bottom {
    border-top: 1px solid hsl(var(--primary-foreground) / 0.2);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.9;
}

/* ============================================
   Floating WhatsApp Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-delayed {
    0%, 20% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 0.6s ease-out;
}

.fade-in-delayed {
    animation: fade-in-delayed 0.8s ease-out;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

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

.mb-8 {
    margin-bottom: 2rem;
}

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

