/* Global Variables */
:root {
    --primary-color: #387C85; /* Teal from Logo */
    --primary-light: #2A6066; /* Darker Teal */
    --accent-color: #64B5C0; /* Lighter Teal */
    --text-dark: #1e293b; /* Slate 800 */
    --text-light: #64748b; /* Slate 500 */
    --bg-light: #f8fafc; /* Slate 50 */
    --bg-white: #ffffff;
    --bg-dark: #0f172a; /* Slate 900 */
    --gradient: linear-gradient(135deg, #387C85 0%, #64B5C0 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden; /* Critical for mobile */
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }
.content-center { text-align: center; }

/* Typography Helpers */
.text-gradient {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Header & Nav */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text {
    font-size: 1.1rem;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    color: var(--primary-color);
}

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

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.nav-link.btn-primary {
    color: white;
    padding: 10px 25px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    /* Background Image with White/Transparent Overlay */
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7)), url('images/clinicadental.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 1; /* Ensure content is above background */
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 500;
}

/* Enhanced Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(56, 124, 133, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 124, 133, 0.4);
}

.btn-outline {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 15px; /* Increased margin */
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(56, 124, 133, 0.2);
}

/* About Section adjustments for better flow */
.image-box {
    background-color: transparent; /* Remove background for real images */
    border: none;
    box-shadow: var(--shadow-lg); /* Add shadow to images */
    border-radius: 20px;
    overflow: hidden;
}
/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.features-list {
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--primary-color);
}

.image-box {
    background-color: #e2e8f0;
    border-radius: 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}

.image-box i {
    font-size: 4rem;
    margin-bottom: 10px;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

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

/* Technology Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

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

.tech-item h3 {
    margin: 15px 0 10px;
    color: var(--text-dark);
}

.image-box.small {
    height: 250px;
    margin-bottom: 20px;
}

/* Clinical Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

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

.image-box.medium {
    height: 300px;
    width: 100%;
}

.case-item h3 {
    margin-top: 20px;
    color: var(--primary-color);
}

/* Contact & Footer */
.bg-dark {
    background-color: var(--bg-dark);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info .subtitle {
    color: var(--accent-color);
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 40px;
    color: #94a3b8;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
}

.info-item p {
    color: #cbd5e1;
}

.logo-img {
    max-height: 70px;
    width: auto;
    display: block;
}

/* Header Button Correction */
.nav-link.btn-primary {
    color: white;
    padding: 12px 30px !important;
    border-radius: 50px !important; /* Force rounded corners */
    display: inline-block;
    line-height: normal;
}

.real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.image-box {
    background-color: transparent; /* Remove background for real images */
    border: none;
}
/* Ensure borders/radius are kept on the image itself or wrapper if needed */
.image-box.small, .image-box.medium {
    overflow: hidden; /* Ensure rounded corners on images */
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

/* ... existing social buttons ... */

.float-btn.tiktok {
    background-color: #000000;
}

.btn-social {
    display: block;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-social.whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-social.whatsapp:hover {
    background-color: #128C7E;
}

.btn-social.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.btn-social.instagram:hover {
    opacity: 0.9;
}

.btn-social.tiktok {
    background-color: #000000;
    color: white;
}

.btn-social.tiktok:hover {
    background-color: #333333;
}

.map-container iframe {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.footer {
    background: #020617;
    color: #64748b;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn.whatsapp {
    background-color: #25D366;
}

.float-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98); /* Less transparent on mobile */
        flex-direction: column;
        padding: 40px 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition);
        gap: 20px;
    }

    .nav-list.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
        color: var(--primary-color);
    }

    .hero h1 {
        font-size: 2.2rem; /* Smaller font on mobile */
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* .about-grid empty rule removed */

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%; /* Full width buttons on mobile */
        margin-left: 0;
        display: block;
        box-sizing: border-box;
    }

    .btn-outline {
        margin-left: 0;
    }

    .section {
        padding: 60px 0; /* Reduced padding */
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    /* Mobile Logo adjustment */
    .logo-img {
        max-height: 50px; /* Reduce logo size on mobile */
    }
    
    .logo {
        font-size: 1.2rem; /* Reduce font size */
        gap: 8px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }

    /* FAQ Mobile */
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }

    /* Floating Buttons Mobile Optimization */
    .floating-buttons {
        bottom: 20px;
        right: 15px;
        gap: 10px;
    }

    .float-btn {
        width: 45px; /* Smaller size */
        height: 45px;
        font-size: 1.2rem;
        opacity: 0.7; /* Semi-transparent to see content behind */
        transition: opacity 0.3s, transform 0.3s;
    }

    .float-btn:hover, .float-btn:active {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* --- Advanced Features Styles --- */

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Micro-interactions: Image Hover Zoom */
.image-box {
    overflow: hidden; /* Ensure image stays inside border */
}

.real-image {
    transition: transform 0.5s ease;
}

.image-box:hover .real-image {
    transform: scale(1.05); /* Subtle zoom */
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8fafc;
}

.faq-answer p {
    padding: 20px 25px;
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    border-top: 1px solid #e2e8f0;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Approximate max height */
}

