:root {
    --primary: #4A90E2; /* Azul Suave */
    --secondary: #6FCF97; /* Verde Pastel */
    --bg: #F9FBFF;
    --text: #333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Quicksand', sans-serif; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }
.logo span { color: var(--secondary); }

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { 
    text-decoration: none; 
    color: var(--text); 
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    /* Overlay escuro para destacar o texto + Imagem local */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../images/banner.png') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero h1 span { color: var(--secondary); }

.hero h1 {
    font-size: 3.5rem; /* Mantém o tamanho atual ou ajuste conforme preferir */
    margin-bottom: 1.5rem;
    line-height: 1.1; /* Este valor reduz o espaço entre as linhas (o padrão é ~1.5) */
    font-weight: 700;
}

/* Ajuste fino para telas menores (Mobile) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2; /* Um pouco mais de espaço no mobile para não embolar */
    }
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 2rem;
    transition: transform 0.3s ease;
}
.btn-primary:hover { transform: scale(1.05); }

/* Services */
.services { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--primary);
}

/* Contact Section Styling */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide em duas colunas */
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.info-item i {
    color: var(--secondary);
    width: 24px;
}

/* Formulário */
/* Contact Section - Agora com fundo verde */
.contact {
    padding: 100px 0;
    background-color: var(--secondary); /* Fundo verde padrão */
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Reutilizando o estilo de título do "Sobre" */
.section-title-white {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: 'Quicksand', sans-serif;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--white);
}

.info-item i {
    color: var(--white); /* Ícones brancos para contrastar com o verde */
    width: 24px;
}

/* Formulário com ajuste de contraste */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white); /* Fundo branco para o form "saltar" da página */
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

#contact-form input, 
#contact-form textarea {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    background-color: #f8f9fa;
    transition: var(--transition);
}

/* Botão do formulário agora em Azul para destacar no fundo verde */
#contact-form .btn-primary {
    background-color: var(--primary);
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

#contact-form .btn-primary:hover {
    background-color: #357ABD;
    transform: translateY(-3px);
}

/* Responsividade */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .info-item {
        justify-content: center;
    }
}

/* Botão WhatsApp Flutuante */
.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: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsividade para Contato */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Empilha no tablet/mobile */
        gap: 2rem;
    }
    
    .contact-info {
        text-align: center;
    }

    .info-item {
        justify-content: center;
    }
}

.service-card i { color: var(--primary); margin-bottom: 1.5rem; width: 48px; height: 48px; }

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.client-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--secondary);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.client-name {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.pet-info {
    font-size: 0.9rem;
    color: #888;
}

/* Controls */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 110%;
    left: -5%;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-controls button {
    background: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: auto;
    color: var(--primary);
    transition: var(--transition);
}

.carousel-controls button:hover {
    background: var(--primary);
    color: var(--white);
}

.carousel-indicators {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary);
    width: 25px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel-controls { display: none; } /* Esconde setas no mobile para focar nos pontos */
}

/* About Section */
/* --- Seções com Fundo de Imagem (Sobre e Contato) --- */
.about, .contact {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(rgba(111, 207, 151, 0.9), rgba(111, 207, 151, 0.9)), 
                url('../images/fundo1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden; /* Evita quebra de layout */
}

/* Ajuste das Grids para garantir que fiquem acima do fundo */
.about-wrapper, .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-wrapper {
    align-items: start;
}

/* Títulos das Seções com Fundo */
.section-title-white {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'Quicksand', sans-serif;
    color: var(--white);
}

/* --- Ajustes Específicos do Formulário para Contraste --- */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white); /* Card branco para destacar do fundo */
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Ajuste dos itens de informação para garantir que os ícones fiquem brancos */
.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--white);
}

.info-item i {
    color: var(--white) !important;
}

/* Responsividade Unificada */
@media (max-width: 992px) {
    .about-wrapper, .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .stats, .info-item {
        justify-content: center;
    }

    .about-image {
        order: -1;
    }
}

/* --- Ajuste Definitivo dos Stats (Contadores) --- */
.stats {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens pulem para a linha de baixo se não houver espaço */
    gap: 1.5rem;    /* Espaçamento uniforme entre os itens */
    margin-top: 3rem;
    width: 100%;    /* Garante que não ultrapasse o container pai */
    padding: 0;
    justify-content: flex-start; /* Alinha à esquerda no desktop */
}

.stat-item {
    flex: 1;         /* Faz os itens crescerem igualmente */
    min-width: 140px; /* Largura mínima para não esmagar o texto */
    margin: 0;       /* Zeramos margens laterais fixas para usar o gap */
}

.stat-item h3 {
    font-size: 2.2rem;
    font-family: 'Quicksand', sans-serif;
    margin-bottom: 0.3rem;
    color: var(--white);
}

.stat-item p {
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* --- Ajuste para Telas Pequenas (Mobile) --- */
@media (max-width: 768px) {
    .stats {
        justify-content: center; /* Centraliza os números no mobile */
        gap: 2rem 1rem;         /* Aumenta o espaço vertical e diminui o horizontal */
        margin-top: 2rem;
    }

    .stat-item {
        flex: 0 1 calc(50% - 1rem); /* No mobile, coloca dois itens por linha */
        text-align: center;
    }
}

@media (max-width: 400px) {
    .stat-item {
        flex: 1 1 100%; /* Em telas muito pequenas (iPhone SE), um item por linha */
    }
}

/* Imagem da Seção Sobre */
.about-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 30px;
    box-shadow: 15px 15px 0px rgba(255, 255, 255, 0.2);
    display: block;
    margin: 0 auto;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Media Query Específica para Ajuste Mobile */
@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr; /* Empilha o conteúdo no mobile */
        text-align: center;
        gap: 3rem;
    }

    .about-image {
        order: -1; /* Coloca a imagem no topo no modo mobile */
        margin-bottom: 1rem;
    }

    .stats {
        justify-content: center; /* Centraliza os números no mobile */
        gap: 1.5rem;
    }

    .section-title-white {
        font-size: 2rem; /* Reduz levemente o título em telas menores */
    }
}

@media (max-width: 480px) {
    .stats {
        flex-direction: column; /* Em celulares muito pequenos, empilha os números */
        gap: 1rem;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 3rem;
    color: #777;
}

.portfolio-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item {
    min-width: calc(33.333% - 14px); /* 3 itens por vez no desktop */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Controls (Estilo idêntico aos Testimonials) */
.portfolio-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 110%;
    left: -5%;
    transform: translateY(-50%);
    pointer-events: none;
}

.portfolio-controls button {
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: auto;
    color: var(--primary);
    transition: var(--transition);
}

.portfolio-controls button:hover {
    background: var(--primary);
    color: var(--white);
}

/* Responsividade Portfólio */
@media (max-width: 992px) {
    .portfolio-item { min-width: calc(50% - 10px); } /* 2 itens no tablet */
}

@media (max-width: 600px) {
    .portfolio-item { min-width: 100%; } /* 1 item no mobile */
    .portfolio-controls { width: 100%; left: 0; padding: 0 10px; }
}

/* --- Footer Styling (Fundo Branco) --- */
.footer {
    background-color: var(--white); /* Fundo branco conforme solicitado */
    color: #333; /* Texto escuro para leitura sobre o branco */
    padding: 30px 0 20px;
    border-top: 1px solid #eee; /* Linha sutil para separar da seção anterior */
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 500;
    color: #777;
}

.dev-credits {
    font-size: 0.95rem;
    color: #444;
}

.designer-name {
    font-size: 0.85rem;
    color: #888;
}

/* Efeito de Hover no Link HRLM Sites */
.dev-link {
    color: var(--primary); /* Azul principal para o link */
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: var(--transition);
}

.dev-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary); /* Linha verde ao passar o mouse */
    transition: width 0.3s ease;
}

.dev-link:hover {
    color: var(--secondary); /* Muda para verde no hover */
}

.dev-link:hover::after {
    width: 100%;
}

/* Miniatura da Logo HRLM */
.miniature-logo {
    width: 50px; /* Miniatura discreta */
    height: auto;
    margin-top: 5px;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.miniature-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* --- Ajuste Header Responsivo --- */
@media (max-width: 768px) {
    nav {
        position: relative;
        justify-content: space-between;
        height: 70px; /* Altura fixa para alinhar itens */
    }

    .nav-links {
        display: none; /* Esconde os links por padrão no mobile */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* Classe que o JS vai ativar */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Faz o botão hambúrguer aparecer e ficar visível */
    .menu-toggle {
        display: block; /* Garante que o container do ícone apareça */
        cursor: pointer;
        color: var(--primary);
        z-index: 1001;
    }

    .menu-toggle svg {
        width: 32px;
        height: 32px;
    }
}

/* Garante que o menu-toggle seja escondido no Desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}