@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-color: #0f172a;
    /* Navy Blue */
    --secondary-color: #0d9488;
    /* Teal */
    --accent-color: #f59e0b;
    /* Gold */
    --background-light: #f8fafc;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    /* Changed to Playfair for Premium feel */
    --font-body: 'Inter', sans-serif;

    --container-padding: 2rem;
    --max-width: 1200px;
    --radius: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    /* Tighter spacing for serif elegance */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--background-light);
}

.highlight {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #0f766e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    /* Header height */
    padding-bottom: 5rem;

    /* Subtle gradient background instead of heavy image for clean look */
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.feature-pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.pill {
    background: rgba(13, 148, 136, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-image-container {
    position: relative;
}

/* Use CSS placeholder for detailed mockup */
.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #cbd5e1;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-placeholder::before {
    content: 'Foto do Dr. Leonardo';
    /* Placeholder text */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #64748b;
    font-weight: 600;
}

.experience-badge {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 250px;
    border-left: 4px solid var(--secondary-color);
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--secondary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.learn-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 2rem 0 2rem 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Stats */
/* Stats Banner - Elegant Typography Redesign */
.stats-banner {
    background-color: #f8fafc;
    /* Light background ensures visibility */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 1rem;
    margin-top: 4rem;
    width: 100%;
    display: block;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat-item h3 {
    color: var(--primary-color);
    /* Dark Blue text */
    font-family: 'Playfair Display', serif;
    /* Elegant font */
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item p {
    color: var(--secondary-color);
    /* Teal highlight */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--radius);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.client-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    display: block;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content p {
    color: var(--text-light);
    padding-bottom: 1rem;
}

.faq-item.active .faq-content {
    max-height: 200px;
    /* Adjust as needed */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Contact / Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--secondary-color);
    font-weight: 400;
}

.footer h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {

    .hero-grid,
    .about-grid,
    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 6rem;
        text-align: center;
    }

    .hero-grid {
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .feature-pills {
        justify-content: center;
    }

    .nav-menu {
        display: none;
        /* Mobile menu implementation needed in JS */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .experience-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -1rem;
    }
}

/* Technology Section */
.tech-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tech-item:last-child {
    margin-bottom: 0;
}

.icon-box-sm {
    min-width: 50px;
    height: 50px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.tech-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tech-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.tech-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
    }

    h1 {
        font-size: 2rem !important;
        /* was 2.25rem */
    }

    h2 {
        font-size: 1.5rem;
        /* was 1.75rem */
    }

    .section-padding {
        padding: 3rem 0;
    }

    .hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-group .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    .experience-badge {
        position: relative;
        left: 0;
        transform: none;
        bottom: 0;
        margin: 2rem auto 0;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-shadow: var(--shadow-md);
    }

    .stats-banner {
        margin-top: 2rem;
        padding: 3rem 1rem;
        background: #f8fafc !important;
        /* Ensure light background matches */
    }

    .stat-item h3 {
        font-size: 2.5rem;
        /* Readable size on mobile */
    }

    .stats-grid {
        gap: 2.5rem;
        /* More breathing room for elegance */
        grid-template-columns: 1fr;
        /* Stack visually on very small screens if needed, but keeping 3col or 1col */
    }

    .tech-images-grid {
        grid-template-columns: 1fr;
        /* Stack images on mobile */
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Adjust video wrapper for mobile */
    .video-wrapper {
        border-width: 2px;
    }

    /* Mobile Menu Full Screen Touch */
    .nav-menu {
        padding: 2rem;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-cta {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
    }

    .nav-cta .btn {
        display: none;
        /* Hide header button on mobile to save space, rely on hero button */
    }

    /* Ensure hamburger is always visible on mobile */
    .hamburger {
        display: block;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .badge-number {
        font-size: 2rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}