/* Features Section */
.features {
    background-color: #f5f7fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.feat.unit {
    background: var(--white);
    padding: 0;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.03) 0%, rgba(26, 54, 93, 0.03) 100%);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 30px;
    position: relative;
}

.contact-info {
    padding: 40px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    padding: 15px;
    border-radius: 8px;
}

.contact-item:hover {
    background-color: rgba(41, 128, 185, 0.05);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
    min-width: 24px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-item p, .contact-item a {
    color: #555;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.6;
    margin: 0;
}

.contact-item a {
    color: var(--secondary-color);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Map */
.map {
    width: 100%;
    height: 400px;
    margin-top: -80px;
    position: relative;
    z-index: 1;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 10px 10px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 5px 0;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 5px 0;
}

.footer-contact i {
    margin-right: 10px;
    color: white;
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.developer-credit {
    margin-top: 5px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.developer-credit a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.developer-credit a:hover {
    color: white;
    text-decoration: underline;
}

.developer-credit .fa-heart {
    color: #ff4d4d;
    margin: 0 3px;
    font-size: 0.9em;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Instagram Button */
.instagram-btn {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite 0.5s;
    text-decoration: none;
}

.instagram-btn:hover {
    transform: scale(1.1);
    color: white;
    animation: none;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
    animation: none;
}

@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);
    }
}

/* Navigation Button */
.btn-results {
    background-color: var(--primary-color);
    color: white !important;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 5px 10px !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-results:hover {
    background-color: #1a4b8c;
    border-color: #1a4b8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 180px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 991px) {
    /* Menu Button */
    .menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    /* Navigation */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }
    
    .nav ul li {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav ul li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .nav-button {
        margin: 20px 0 0 !important;
        padding: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-button .btn-results {
        display: block;
        width: 100%;
        padding: 12px;
        margin: 10px 0;
    }
    
    /* Overlay when menu is open */
    .menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-open::before {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .nav-button .btn {
        display: block;
        width: 100%;
        padding: 10px;
        text-align: center;
    }
    .container {
        max-width: 720px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px;
    }
    
    .contact-item {
        padding: 12px;
    }
    
    /* Mobile styles */
    @media (max-width: 767px) {
        .contact-info,
        .contact-form {
            padding: 25px 20px;
        }
        
        .contact-item {
            flex-direction: column;
            text-align: center;
            align-items: center;
            padding: 15px 10px;
        }
        
        .contact-item i {
            margin: 0 0 10px 0;
        }
        
        .social-links {
            justify-content: center;
        }
        
        .contact-form .form-group {
            margin-bottom: 15px;
        }
        
        .contact-form button[type="submit"] {
            width: 100%;
            padding: 12px;
        }

        .footer-contact p {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 15px;
            display: flex
        ;
            align-items: center;
            justify-content: center;
        }
    }
    
    .map {
        margin-top: 0;
        height: 350px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav.active {
        transform: translateY(0);
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }
    
    .nav ul li {
        margin: 10px 0;
    }
    
    .menu-btn {
        display: block;
    }
    
    .menu-btn.active i::before {
        content: '\f00d';
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3,
    .footer-contact h3,
    .footer-social h3 {
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about-grid,
    .units-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .instagram-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 85px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 140px;
        right: 20px;
    }
}

/* Base Styles */
:root {
    --primary-color: #3065AF;
    --secondary-color: #582669;
    --accent-color: #582669;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}
.btn-results::after {

    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color:transparent !important;
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav ul li a:hover,
.nav ul li a.active {
    color: var(--secondary-color);
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

.menu-btn {
    display: none; /* Hidden by default */
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    animation: fadeInDown 1s ease;
    z-index: 1001;
    position: relative;
}

/* Show menu button only on mobile */
@media (max-width: 991px) {
    .menu-btn {
        display: block;
    }
}

/* PNCQ Certification */
.pncq-certification {
    background-color: white;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.pncq-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    flex-direction: column;
}

.pncq-logo {
    flex-shrink: 0;
}

.pncq-logo-img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.pncq-text h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.pncq-text p {
    color: #4a5568;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pncq-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 0 20px;
    }
    
    .pncq-logo {
        margin-bottom: 15px;
    }
    
    .pncq-text h2 {
        font-size: 1.5rem;
    }
    
    .pncq-text p {
        font-size: 1rem;
    }
}

/* Privacy Policy Content */
.privacy-content {
    line-height: 1.8;
}

.privacy-content p {
    margin: 0 0 0rem 0;
}

.privacy-content h3 {
    margin: 1.2rem 0 0.6rem;
    color: var(--primary-color);
}

.privacy-content ul,
.privacy-content ol {
    margin: 0 0 1.2rem 1.2rem;
}

.privacy-content li {
    margin-bottom: 0.4rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../img/bg-servico.png') no-repeat center/cover;
    color: var(--white);
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.9s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    background-color: #ffffff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.03) 0%, rgba(26, 54, 93, 0.03) 100%);
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding-right: 40px;
}

.section-header {
    margin-bottom: 40px;
    text-align: left;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px 0 25px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-text {
    font-size: 0.95rem;
    color: #666;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(41, 128, 185, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text {
        padding-right: 0;
        text-align: center;
    }
    
    .section-header {
        text-align: center;
    }
    
    .divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 40px auto 0;
    }
}

@media (max-width: 767px) {
    .about {
        padding: 70px 0;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .feature-icon {
        margin-bottom: 15px;
    }

    .history-image img {
        max-width: 100% !important;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
}

@media (max-width: 575px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    
}

/* History Section */
.history {
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.history .container {
    position: relative;
    z-index: 1;
}

.history-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 30px 25px 60px;
    position: relative;
}

.history-card h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.history-image {
    text-align: center;
    margin: 10px auto 20px;
}

.history-image img {
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.history-summary {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    text-align: center;
    margin: 10px auto 0;
    max-width: 900px;
}

.history-more {
    margin-top: 16px;
    color: #555;
    line-height: 1.8;
}

.history-more p { margin-bottom: 12px; }

.history-toggle {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--secondary-color);
    color: #fff;
    font-size: 1.4rem;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.history-toggle:hover { 
    transform: translateX(-50%) translateY(-2px); 
    background: var(--primary-color);
    box-shadow: 0 12px 24px rgba(0,0,0,0.14);
}

.history-toggle.expanded { background: var(--primary-color); }

@media (max-width: 767px) {
    .history-card { padding: 20px 16px 60px; }
    .history-card h2 { font-size: 1.6rem; }
    .history-summary { font-size: 1rem; }
}

/* Units Section */
.units {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.units::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l-5.334 5.333L44.96 0h-5.333l5.334 5.333L40.627 10.667h-5.334l5.334-5.334L35.294 0h-5.333l5.333 5.333L30.627 10.667h-5.334l5.334-5.334L25.294 0h-5.333l5.333 5.333L20.627 10.667h-5.334l5.334-5.334L15.294 0H10.96l5.333 5.333L10.96 10.667H5.627l5.333-5.334L5.627 0H0v60h60V0h-5.373zM0 0v5.333h5.333L0 0zm0 10.667v5.333h10.667l-5.334-5.333H0zm0 10.666v5.334h16l-5.334-5.334H0zm0 10.667v5.333h21.333l-5.333-5.333H0zm0 10.666v5.334h26.667l-5.334-5.334H0zM32 48v-5.333h-5.333L32 48zm0-10.666v-5.334H16l5.333 5.334H32zm0-10.667v-5.333H10.667l5.333 5.333H32zm0-10.667V10.667H5.333L10.667 16H32z' fill='%23e2e8f0' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.units .container {
    position: relative;
    z-index: 1;
}

.units .section-header {
    position: relative;
    z-index: 2;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.unit {
    background-color: white;
    border-radius: 12px;
    padding: 0;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 92, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.unit-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    position: relative;
    min-height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.unit-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25px;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.unit:hover .unit-header::after {
    width: 60px;
}

.unit h3 {
    font-size: 1.3rem;
    margin: 0;
    color: white;
    font-weight: 600;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
}

.unit-address {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    flex-grow: 1;
    background-color: white;
}

.unit-address p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.unit-address p i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: 1rem;
    min-width: 16px;
    text-align: center;
    opacity: 0.9;
}

.unit-contact {
    padding: 15px 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.unit-contact a {
    display: flex;
    align-items: center;
    color: #475569;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.unit-contact a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.unit-contact a:hover {
    transform: translateX(3px);
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.unit-contact a:hover::before {
    width: 5px;
}

.unit-contact a i {
    margin-right: 12px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Coming Soon Units */
.unit.coming-soon {
    opacity: 0.85;
    position: relative;
}

.unit.coming-soon::after {
    content: 'Em Breve';
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: var(--secondary-color) !important;
    color: white;
    padding: 3px 30px;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.unit.coming-soon .unit-header {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.unit.coming-soon .unit-contact {
    background-color: #f8fafc;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .units-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .units-grid {
        grid-template-columns: 1fr;
    }
    
    .unit {
        margin: 0 10px;
        width: calc(100% - 20px);
    }
}

.unit-contact a[href^="tel:"]:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
    border-left: 3px solid var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.unit-contact a[href*="whatsapp"] {
    color: #25d366;
    font-weight: 500;
    border-left: 3px solid #25d366;
    background-color: rgba(37, 211, 102, 0.05);
}

.unit-contact a[href*="whatsapp"]:hover {
    transform: translateX(5px);
}

.unit-contact a[href*="whatsapp"] i {
    color: #25d366;
    font-size: 1.25rem;
    margin-right: 10px;
}

.unit-contact a.map-link {
    color: #582669;
    font-weight: 500;
    margin-top: 5px;
    justify-content: flex-start;
    background: white;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.2s ease;
    border-left: var(--secondary-color);
    background-color: rgba(231, 76, 60, 0.05);
}

.unit-contact a.map-link i {
    color: var(--secondary-color);
    font-size: 1.15rem;
    margin-right: 10px;
    position: relative;
    top: -1px;
}

.unit-contact a.map-link:hover {
    background: rgba(231, 76, 60, 0.08);
    transform: translateX(3px);
}

.unit.coming-soon {
    opacity: 0.7;
    position: relative;
    overflow: hidden;
    border: 2px dashed #e0e0e0;
    background: repeating-linear-gradient(
        45deg,
        #f9f9f9,
        #f9f9f9 10px,
        #f0f0f0 10px,
        #f0f0f0 20px
    );
}

.unit.coming-soon .unit-header {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.unit.coming-soon .unit-address,
.unit.coming-soon .unit-contact {
    background: transparent;
}

.unit.coming-soon::after {
    content: 'Em breve';
    position: absolute;
    top: 10px;
    right: -30px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Specialties Section */
.specialties {
    background-color: var(--white);
}

.tabs {
    margin-top: 50px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 10px 25px;
    background-color: var(--light-color);
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.tab-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.service-item {
    background-color: var(--light-color);
    padding: 25px 15px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    bottom: 50px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav ul li a:hover,
.nav ul li a.active {
    color: var(--secondary-color);
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}


/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(41, 128, 185, 0.9) 100%), 
                url('../img/bg_laboratorio.png') no-repeat center/cover;
    color: var(--white);
    text-align: center;
    position: relative;
    padding: 80px 20px 100px;
    overflow: hidden;
    animation: gradientBG 15s ease infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.4rem;
    margin: 0 auto 40px;
    max-width: 700px;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.3s both;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero .btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero .btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.hero .btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
}

.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.scroll-down {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 2;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-down:hover {
    opacity: 1;
}

.scroll-down i {
    display: block;
    font-size: 1.5rem;
    margin-top: 5px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
