/* Cores do site */
:root {
    --verde-salvia: rgb(156, 175, 136);
    --marrom-terra: rgb(169, 132, 121);
    --beige-creme: rgb(254, 251, 234);
    --branco: #ffffff;
    --preto: #333333;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--preto);
    background-color: var(--beige-creme);
}

/* Header */
header {
    background-color: var(--verde-salvia);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

/* Navegação */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--marrom-terra);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--branco);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main content */
main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.page-title {
    color: var(--marrom-terra);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.content-section {
    background-color: var(--branco);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: var(--verde-salvia);
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Botões */
.btn {
    display: inline-block;
    background-color: var(--marrom-terra);
    color: var(--branco);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--verde-salvia);
    transform: translateY(-2px);
}

/* Grid de serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--beige-creme);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--verde-salvia);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: var(--marrom-terra);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card p {
    text-align: justify;
    margin-bottom: 0.5rem;
}

.service-card ul {
    margin-top: 1rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    color: var(--preto);
}

/* Formulário de contato */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--marrom-terra);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--verde-salvia);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--branco);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--marrom-terra);
    box-shadow: 0 0 0 3px rgba(169, 132, 121, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* SEO e Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Melhorias de foco para acessibilidade */
a:focus,
button:focus {
    outline: 2px solid var(--marrom-terra);
    outline-offset: 2px;
}

/* Skip link para acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--marrom-terra);
    color: var(--branco);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Ícone flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.whatsapp-float:focus {
    outline: 3px solid var(--marrom-terra);
    outline-offset: 2px;
}

/* Animação de pulso para chamar atenção */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tooltip para o WhatsApp */
.whatsapp-float::before {
    content: "Fale conosco no WhatsApp";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--preto);
    color: var(--branco);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--preto);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsividade para o WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float::before {
        display: none; /* Remove tooltip no mobile */
    }
    
    .whatsapp-float::after {
        display: none; /* Remove seta no mobile */
    }
}

/* Footer */
footer {
    background-color: var(--marrom-terra);
    color: var(--branco);
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

/* Responsividade */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
    }
    
    nav {
        width: 100%;
        order: 3;
    }
    
    nav ul {
        flex-direction: column;
        display: none;
        background-color: var(--verde-salvia);
        padding: 1rem;
        border-radius: 5px;
        margin-top: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin-bottom: 0.5rem;
    }
    
    nav ul li:last-child {
        margin-bottom: 0;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .contact-form {
        padding: 0;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 16px; /* Previne zoom no iOS */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .logo {
        height: 40px;
    }
    
    header {
        padding: 0.8rem 0;
    }
    
    main {
        padding: 1.5rem 0;
    }
}
