/* ===================================================
   STYLE.CSS - SITE LORENA GONÇALVES (VERSÃO 8.0 ESTÁVEL)
   =================================================== */

/* Fontes Butler (para Logo) */
@font-face {
    font-family: 'Butler';
    src: url('../fonts/Butler_Regular.woff2') format('woff2'),
         url('../fonts/Butler_Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Butler';
    src: url('../fonts/Butler_Bold.woff2') format('woff2'),
         url('../fonts/Butler_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


html {
    scroll-behavior: smooth;
}

/* ===== GERAL E VARIÁVEIS DE COR ===== */
:root {
    --primary-color: #E09F61;
    --dark-color: #222222;
    --light-gray: #f9f9f9;
    --white-color: #ffffff;
    --text-color: #333;
    --shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--white-color);
    overflow-x: hidden;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    z-index: 9999;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    opacity: 1;
    visibility: visible;
    display: flex; 
    align-items: center;
    justify-content: center;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

#preloader-content {
    text-align: center;
}

.preloader-icon {
    font-size: 2.5rem; 
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}


#preloader-logo {
    font-family: 'Raleway', sans-serif; 
    font-size: 1.8rem; 
    font-weight: 700;
    color: var(--white-color);
    display: block;
    margin-bottom: 5px; 
}

#preloader-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #ccc; 
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px; 
}

#loading-bar-wrapper {
    height: 2px;
    max-width: 250px; 
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 auto; 
    overflow: hidden;
}

#loading-bar {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    animation: load 2s ease-out forwards;
}

@keyframes load {
    from { width: 0%; }
    to { width: 100%; }
}
/* Fim do Preloader */


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

.content-section {
    padding: 100px 0;
}

h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--primary-color);
}

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


/* ===== CABEÇALHO / NAVBAR (FLUTUANTE) ===== */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 30px 0;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease;
    background-color: transparent; 
}


.navbar.scrolled {
    background: var(--white-color);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.navbar.scrolled .logo {
    color: var(--dark-color);
}
.navbar.scrolled nav ul li a {
    color: var(--dark-color);
}
.navbar.scrolled nav ul li a:hover {
    color: var(--primary-color);
}
.navbar.scrolled nav ul li a::after {
    background: var(--primary-color);
}
.navbar.scrolled nav ul li.whatsapp-icon a {
    color: var(--dark-color);
}
.navbar.scrolled nav ul li.whatsapp-icon a:hover {
    color: var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-family: 'Raleway', sans-serif; 
    font-size: 1.3rem; 
    font-weight: 700;
    color: var(--white-color);
    text-decoration: none;
    z-index: 1001; 
    transition: color 0.3s ease;
}


.navbar nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}
.navbar nav ul li {
    margin-left: 30px;
}
.navbar nav ul li a {
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    color: var(--white-color);
    font-weight: 400; 
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed) ease;
}
.navbar nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--white-color);
    transition: width var(--transition-speed) ease;
}
.navbar nav ul li a:hover::after {
    width: 100%;
}
.navbar nav ul li.whatsapp-icon a {
    font-size: 1.2rem; 
    padding-bottom: 0; 
}
.navbar nav ul li.whatsapp-icon a:hover {
    color: var(--primary-color); 
}
.navbar nav ul li.whatsapp-icon a::after {
    display: none; 
}


/* --- Menu Hambúrguer --- */
.hamburger-menu {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px; 
}
.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white-color);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.navbar.scrolled .hamburger-menu span {
    background: var(--dark-color);
}
/* --- FIM --- */


/* ===== SEÇÃO HERO (TELA CHEIA) ===== */
.hero {
    height: 100vh;
    min-height: 650px;
    background: url('images/hero-bg.png') no-repeat center 70%/cover;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Hero da página de Parcerias */
.hero#parcerias-hero {
    background: url('images/parcerias-bg.png') no-repeat center center/cover;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.hero h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 3.2rem; 
    font-weight: 700;
    line-height: 1.3; 
    margin-bottom: 15px;
    /* MUDANÇA: 'text-transform: lowercase;' REMOVIDO */
    letter-spacing: 1px; 
}
.hero p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Botão "Ghost" */
.hero .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent; 
    color: var(--white-color); 
    border: 2px solid var(--white-color); 
    padding: 12px 30px; 
    font-size: 0.9rem; 
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Animação "Slide-up" */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay escalonado para os cards */
.service-card.fade-in-section:nth-child(2),
.project-card-dynamic.fade-in-section:nth-child(2) {
    transition-delay: 0.2s;
}
.service-card.fade-in-section:nth-child(3),
.project-card-dynamic.fade-in-section:nth-child(3) {
    transition-delay: 0.4s;
}


/* ===== SEÇÃO SOBRE ===== */
.about {
    background: var(--white-color);
    position: relative;
    z-index: 5;
}
.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    gap: 60px;
    align-items: start; 
}
.about-text {
    grid-column: 1 / 2; 
    grid-row: 1 / 2; 
}
.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}
.about-text p {
    margin-bottom: 20px;
}
.about-image {
    grid-column: 2 / 3; 
    grid-row: 1 / 3; 
    text-align: center;
    align-self: center; 
}
.about-image img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid var(--primary-color);
    box-shadow: var(--shadow);
}
.about-button {
    grid-column: 1 / 2; 
    grid-row: 2 / 3; 
    justify-self: start; 
    margin-top: -20px; 
}


/* Nova Seção de Serviços */
.services {
    background: var(--light-gray);
    position: relative;
    z-index: 5;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}
.service-card {
    background: var(--white-color);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-card h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.service-card p {
    font-size: 0.9rem;
}


/* Seção Projetos com Grid Dinâmico */
.projects {
    background: var(--white-color);
    position: relative;
    z-index: 5;
}
.project-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.project-card-dynamic {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.project-card-dynamic:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.project-card-dynamic img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.project-card-dynamic .card-content {
    padding: 25px;
}
.project-card-dynamic h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 5px;
}
.project-card-dynamic p {
    font-size: 0.9rem;
}

.project-card-dynamic.large {
    grid-column: span 2;
}
.project-card-dynamic.large img {
    height: 450px;
}


/* ===== SEÇÃO DEPOIMENTOS ===== */
.testimonials {
    background: var(--light-gray);
    position: relative;
    z-index: 5;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.testimonial-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-card p {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}
.testimonial-card .profile {
    display: flex;
    align-items: center;
}
.testimonial-card .profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}
.testimonial-card .profile h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Seção CTA (Página Parcerias) */
.cta-section {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 5;
}
.cta-section h2 {
    font-family: 'Raleway', sans-serif;
    color: var(--white-color);
    margin-bottom: 20px;
}
.cta-section p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: #ccc;
}
.cta-section .btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}


/* ===== RODAPÉ ===== */
.footer {
    background: var(--dark-color);
    color: #ccc;
    padding: 60px 0 0 0;
    position: relative;
    z-index: 5;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}
.footer-col h4 {
    font-family: 'Raleway', sans-serif;
    color: var(--white-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 5px; 
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color var(--transition-speed) ease;
}
.footer-col ul li a:hover {
    color: var(--primary-color);
}
.footer-col p a {
    color: #ccc;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
.footer-col p a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid #444;
    margin-top: 30px;
}
.footer-bottom p {
    font-size: 0.9rem;
}


/* ===================================================
   MEDIA QUERIES PARA RESPONSIVIDADE (MOBILE)
   =================================================== */

@media (max-width: 768px) {

    /* --- Geral --- */
    .content-section {
        padding: 60px 0;
    }
    h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    /* --- Logo Inicial no Mobile --- */
    .preloader-icon {
        font-size: 2.2rem; 
    }
    #preloader-logo {
        font-size: 1.5rem; 
    }
    #preloader-subtitle {
        font-size: 0.8rem;
    }
    #loading-bar-wrapper {
        max-width: 200px;
    }


    /* --- Navegação (Hambúrguer) --- */
    .hamburger-menu {
        display: flex;
    }
    .navbar nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white-color);
        transform: translateX(-100%); 
        transition: transform 0.4s ease-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .navbar nav.active {
        transform: translateX(0);
    }
    .navbar nav ul {
        flex-direction: column;
        padding: 0;
    }
    .navbar nav ul li {
        margin-left: 0;
        width: 100%;
    }
    .navbar nav ul li a {
        color: var(--dark-color) !important;
        display: block;
        padding: 20px 0;
        text-align: center;
        width: 100%;
        font-size: 1.2rem;
    }
    .navbar nav ul li a::after {
        display: none;
    }
    .navbar.scrolled nav ul li a {
        color: var(--dark-color) !important;
    }
    .navbar nav ul li.whatsapp-icon a {
        font-size: 1.5rem;
        padding: 15px 0;
    }

    /* --- Hero --- */
    .hero {
        height: 90vh;
    }
    .hero-content {
        max-width: 90%;
    }
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* --- Sobre (Layout Mobile) --- */
    .about-container {
        grid-template-columns: 1fr; /* Coluna única */
        gap: 40px;
    }
    .about-text {
        grid-column: 1;
        grid-row: 1; /* 1. Texto */
    }
    .about-text h2 {
        text-align: center;
    }
    .about-image {
        grid-column: 1;
        grid-row: 2; /* 2. Imagem */
    }
    .about-image img {
        width: 280px;
        height: 280px;
    }
    .about-button {
        grid-column: 1;
        grid-row: 3; /* 3. Botão */
        justify-self: center; /* Centraliza o botão */
        margin-top: 0; /* Reseta a margem do desktop */
    }


    /* --- Serviços --- */
    .services-grid {
        grid-template-columns: 1fr; /* Coluna única no mobile */
    }

    /* --- Projetos (Grid Dinâmico) --- */
    .project-grid-dynamic {
        grid-template-columns: 1fr;
    }
    .project-card-dynamic.large {
        grid-column: span 1;
    }
    .project-card-dynamic.large img {
        height: 300px;
    }
    .project-card-dynamic img {
        height: 250px;
    }


    /* --- Seção CTA --- */
    .cta-section {
        padding: 60px 20px;
    }
    .cta-section p {
        font-size: 1rem;
    }


    /* --- Depoimentos --- */
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* --- Rodapé --- */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}