/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #2BB673; /* Verde Acolhedor */
    --color-secondary: #1C5A7A; /* Azul Técnico/Profissional (Escurecido p/ Contraste) */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #F8FAF9;
    --color-bg-alt: #EBF4F1; /* Novo fundo alternativo sutil */
    --color-white: #FFFFFF;
    
    --font-main: 'Montserrat', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 16px;
}

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

html {
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: transparent;
    position: relative;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/bg-puzzle.png');
    background-repeat: repeat;
    background-size: 400px;
    opacity: 0.15; /* Textura visível */
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* === TIPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-secondary);
    font-weight: 700;
    line-height: 1.2;
    /* Garante que headings nunca ultrapassem a viewport */
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }

/* === BOTÕES === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: #249961;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}
.btn-secondary:hover {
    background-color: #246a88;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === LAYOUT E SEÇÕES === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.section-title p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* === HEADER === */
header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
header.scrolled {
    box-shadow: var(--shadow-md);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s ease;
}
header.scrolled .nav-container {
    padding: 10px 0;
}
.header-logo {
    max-height: 80px;
    width: auto;
    transition: all 0.3s ease;
}
header.scrolled .header-logo {
    max-height: 50px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span {
    color: var(--color-primary);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--color-primary);
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, rgba(44,125,160,0.05) 0%, rgba(43,182,115,0.05) 100%);
    padding: 100px 0;
    text-align: center;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* === CARDS DE SERVIÇOS === */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.service-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
}
@media (max-width: 992px) {
    .service-card { width: calc(50% - 15px); }
}
@media (max-width: 768px) {
    .service-card { width: 100%; }
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-bottom-color: var(--color-primary);
}
.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}
.service-icon .lucide {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
    transition: var(--transition);
}
.service-card:hover .service-icon .lucide {
    color: var(--color-secondary);
    transform: scale(1.15);
}
.service-card h3 {
    margin-bottom: 15px;
}

/* === RODAPÉ === */
footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 20px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a:hover {
    color: var(--color-primary);
}
.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-contact-list li .lucide, .footer-contact-list li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.7);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* === ANIMAÇÕES DE ÍCONE (GLOBAIS) === */
.lucide {
    stroke-width: 1.5;
    transition: var(--transition);
}

.icon-hover-effect {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}
.icon-hover-effect .lucide {
    color: var(--color-primary);
}
.icon-hover-effect:hover .lucide {
    color: var(--color-secondary);
    transform: scale(1.15);
}
.icon-hover-effect:hover {
    color: var(--color-secondary);
}

/* === MENU MOBILE E RESPONSIVIDADE === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

.mobile-menu-btn .lucide {
    width: 28px;
    height: 28px;
}

/* Garante que nenhum elemento cause overflow horizontal */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    max-width: 100%;
}

@media (max-width: 768px) {
    /* === HEADER MOBILE === */
    .nav-container {
        padding: 12px 0;
        position: relative;
    }

    header.scrolled .nav-container {
        padding: 8px 0;
    }

    /* Logo visível e centralizado no mobile */
    .logo {
        flex: 1;
        min-width: 0; /* Evita que o logo expanda demais */
    }

    .logo a {
        display: flex;
        align-items: center;
    }

    .header-logo {
        max-height: 55px !important;
        width: auto;
        max-width: 160px;
    }

    header.scrolled .header-logo {
        max-height: 40px !important;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 25px;
        transition: 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links .btn-agendar {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    /* === TIPOGRAFIA MOBILE === */
    h1, h2, h3 {
        font-size: clamp(1.2rem, 5vw, 2.5rem);
    }
    .hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    section {
        padding: 60px 0;
    }

    /* === SEÇÕES MOBILE === */
    .container {
        padding: 0 16px;
    }

    /* === SERVIÇOS MOBILE === */
    .services-grid {
        gap: 20px;
    }

    /* === SOBRE MOBILE === */
    .about-section {
        gap: 30px;
    }

    /* Corrige colunas fixas que causam overflow */
    [style*="flex: 0 0"],
    [style*="flex:0 0"] {
        flex: 1 1 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* === FOOTER MOBILE === */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-col ul li {
        font-size: 0.95rem;
    }

    /* Whatsapp float menor no mobile */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
}

/* === BOTÃO FLUTUANTE WHATSAPP === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* === SOBRE O GABRIEL === */
.about-section {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-image {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--color-white);
}
.about-content {
    flex: 1.2;
}
.about-content ul {
    margin-top: 20px;
}
.about-content li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    background: var(--color-white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.about-content li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}
.about-content li i {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 992px) {
    .about-section {
        flex-direction: column;
    }
}

/* === TIMELINE (COMO FUNCIONA) === */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
    gap: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(44,125,160,0.1);
    z-index: 0;
}
.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.timeline-number {
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border: 3px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.timeline-step:hover .timeline-number {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: scale(1.1);
}
.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-secondary);
}
.timeline-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        gap: 40px;
    }
    .timeline::before {
        display: none;
    }
    .timeline-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
        background: var(--color-white);
        padding: 20px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
    }
    .timeline-number {
        margin: 0;
        flex-shrink: 0;
    }
}

/* === URGÊNCIA E TAGS === */
.urgency-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 69, 58, 0.1);
    color: #FF453A;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* === CHECK LIST (POR QUE ESCOLHER) === */
.check-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.check-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--color-secondary);
    transition: var(--transition);
}
.check-list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-primary);
}
.check-list-item i {
    color: var(--color-primary);
}
@media (max-width: 768px) {
    .check-list-grid {
        grid-template-columns: 1fr;
    }
}
