/* =========================================
   1. VARIÁVEIS DE CORES E TIPOGRAFIA
   ========================================= */
:root {
    /* NOVA IDENTIDADE VISUAL: Dark & Gold */
    --primary-color: #141414;
    /* Preto/Cinza muito escuro */
    --primary-light: #1f1f1f;
    /* Fundo escuro um pouco mais claro para rodapé */
    --accent-color: #d4a345;
    /* Dourado principal da arte */
    --accent-hover: #b88a35;
    /* Dourado ligeiramente mais escuro para hover */
    --text-dark: #222222;
    --text-light: #555555;
    --bg-light: #f9f8f6;
    /* Off-white ligeiramente quente/creme */
    --bg-white: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   2. RESET E ESTILOS GLOBAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-highlight {
    color: var(--accent-color);
}

/* =========================================
   3. BOTÕES
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    /* Texto branco no botão dourado */
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--text-dark);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
    font-size: 1.05rem;
    padding: 15px;
}

/* =========================================
   4. COMPONENTES DO SITE (Topo ao Rodapé)
   ========================================= */

/* --- Header --- */
header {
    background-color: var(--bg-white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

nav .nav-links {
    display: flex;
    gap: 30px;
}

nav .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

nav .nav-links a:hover {
    color: var(--accent-color);
    /* Hover agora é dourado */
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://www.kamaris.com.br/hero.jpeg') center/cover no-repeat;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Novo overlay: Gradiente escuro e elegante para dar contraste ao texto branco e dourado */
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.badge {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- Sobre Nós --- */
.about {
    padding: 100px 0;
}

.about-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-card {
    background-color: var(--primary-color);
    /* Borda dourada sutil para dar acabamento premium */
    border-bottom: 4px solid var(--accent-color);
    color: #fff;
    padding: 50px 40px;
    border-radius: 8px;
    flex: 1;
    min-width: 300px;
}

.about-card h3 {
    color: #fff;
    font-size: 1.8rem;
}

.about-card .subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.about-card .divider {
    height: 1px;
    background-color: rgba(212, 163, 69, 0.3);
    /* Divisor com tom dourado translúcido */
    margin: 20px 0;
}

.about-card p {
    margin-bottom: 10px;
}

.about-text {
    flex: 2;
}

.section-subtitle {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* --- Serviços / Seguros --- */
.services {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.services-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 163, 69, 0.1);
    /* Sombra dourada super suave no hover */
}

.service-card .icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 163, 69, 0.15);
    /* Fundo do ícone dourado translúcido */
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
}

/* --- Secção de Formulário de Contacto --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.contact-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.contact-form-wrapper {
    flex: 1;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-row .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 163, 69, 0.2);
    /* Sombra dourada no foco do campo */
}

/* --- Footer --- */
footer {
    background-color: var(--primary-light);
    color: #fff;
    padding: 60px 0 20px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.5rem;
}

.footer-subtitle {
    font-size: 0.8rem;
    color: var(--accent-color);
    /* Subtítulo dourado no rodapé */
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-col h4 {
    color: var(--accent-color);
    /* Títulos em dourado no rodapé */
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-col ul li i {
    margin-top: 4px;
    color: var(--accent-color);
    /* Ícones dourados no rodapé */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* =========================================
   5. COMPONENTES FLUTUANTES (WhatsApp)
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
    animation: none;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================
   6. RESPONSIVIDADE (Media Queries)
   ========================================= */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container,
    .contact-container {
        flex-direction: column;
    }

    .contact-form-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {

    nav,
    .fale-conosco {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }
}