/* ==================== FONTES E VARIÁVEIS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

:root {
    --header-height: 4.5rem;

    /* Cores */
    --primary-color: #007BFF; /* Azul primário */
    --primary-color-alt: #0056b3;
    --secondary-color: #4CAF50; /* Verde secundário sutil */
    --title-color: #333;
    --text-color: #555;
    --text-color-light: #888;
    --body-color: #FDFEFE;
    --container-color: #FFFFFF;

    /* Fontes e Tipografia */
    --body-font: 'Roboto', sans-serif;
    --title-font: 'Poppins', sans-serif;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3 {
    color: var(--title-color);
    font-family: var(--title-font);
    font-weight: 600;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== CLASSES REUTILIZÁVEIS ==================== */
.section {
    padding: 6rem 0 2rem;
}

.container {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.title {
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 3rem;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: var(--primary-color-alt);
}

/* ==================== HEADER E NAVEGAÇÃO ==================== */
#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: transparent;
    transition: background-color 0.4s, box-shadow 0.4s;
}

#header.scroll-header {
    background-color: var(--container-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.menu ul {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--title-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

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

.nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

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

/* ==================== HERO SECTION ==================== */
#home {
    padding: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('images/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==================== SOBRE ==================== */
#about .grid {
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
}

.about-image img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==================== EQUIPE ==================== */
.team-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
}

.team-card h3 {
    margin-bottom: 0.25rem;
    font-size: var(--h3-font-size);
}

.team-card h4 {
    font-size: var(--small-font-size);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ==================== SERVIÇOS ==================== */
.services-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: var(--container-color);
    padding: 2rem 1.5rem;
    border-radius: .5rem;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    transition: all .3s;
}

.service-item:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
}

.service-item:hover i, .service-item:hover h3 {
    color: white;
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color .3s;
}

.service-item h3 {
    font-size: 1.1rem;
    transition: color .3s;
}

/* ==================== PORTFÓLIO ==================== */
.portfolio-container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

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

.portfolio-case h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.portfolio-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.portfolio-images img {
    width: 45%;
    border-radius: .5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portfolio-images i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* ==================== DEPOIMENTOS ==================== */
.testimonials {
    background-color: #f8f9fa;
}

.testimonials-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: .5rem;
    border-left: 5px solid var(--primary-color);
}

.testimonial-card blockquote p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--title-color);
}


/* ==================== VÍDEO ==================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: .5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================== CONTATO ==================== */
#contact .grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    gap: 3rem;
    background-color: var(--container-color);
    padding: 3rem;
    border-radius: .5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-right: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-family: var(--body-font);
}

.contact-form textarea {
    resize: vertical;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--title-color);
    color: #eee;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    font-size: var(--small-font-size);
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #eee;
    font-size: var(--small-font-size);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links span {
    margin: 0 0.5rem;
}

/* ==================== SCROLL UP ==================== */
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background-color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 0.25rem;
    z-index: var(--z-tooltip);
    opacity: 0.8;
    transition: 0.4s;
}

.scrollup:hover {
    opacity: 1;
}

.scrollup i {
    font-size: 1.25rem;
    color: white;
}

.show-scroll {
    bottom: 3rem;
}

/* ==================== MEDIA QUERIES ==================== */
/* Para tablets */
@media screen and (max-width: 768px) {
    body {
        font-size: var(--normal-font-size);
    }
    .container {
        padding: 0 1rem;
    }
    .menu {
        position: fixed;
        background-color: var(--container-color);
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        box-shadow: -2px 0 4px rgba(0,0,0,0.15);
        padding: 6rem 2rem 0;
        transition: right .4s;
    }
    .menu.show-menu {
        right: 0;
    }
    .menu ul {
        flex-direction: column;
        gap: 2.5rem;
    }
    .toggle {
        display: block;
    }
    .icon-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    #home {
        height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    .hero-text h1 { font-size: 2.5rem; }
    #about .grid, #contact .grid { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 2rem; }
}

/* Para celulares */
@media screen and (max-width: 576px) {
    :root {
        --h1-font-size: 2rem;
        --h2-font-size: 1.5rem;
    }
    .hero-text h1 { font-size: 2.2rem; }
    .portfolio-container { grid-template-columns: 1fr; }
    .portfolio-images img { width: 40%; }
    #contact .grid { padding: 1.5rem; }
}