/* ==========================================================================
 * CARTAGO INSTALADORA - ESTILOS GLOBAIS
 * Cores Principais: Ouro (#D4AF37)
 * Fontes: League Spartan (Títulos) & Inter (Corpo)
 * ========================================================================== */

:root {
    /* Paleta Ouro */
    --gold-primary: #D4AF37;
    --gold-hover: #B89628;
    --gold-light: #F9F3DF;
    --gold-glow: rgba(212, 175, 55, 0.25);

    /* Fontes */
    --font-heading: 'League Spartan', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Modo Claro (Padrão) */
    --bg-main: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-header: rgba(255, 255, 255, 0.92);
    --text-main: #1A1D20;
    --text-muted: #6C757D;
    --border-color: #E9ECEF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Reset Básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* Tipografia */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

/* Header & Navegação */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

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

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 84px;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link.active {
    color: var(--gold-primary);
    background-color: var(--gold-glow);
}

/* Container de botões da Hero */
.hero-actions-wrapper {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

/* Conteúdo SPA */
.main-content {
    flex: 1;
}

.page-section {
    padding: 48px 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section {
    position: relative;
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.65),
                                      rgba(0, 0, 0, 0.65)
    ),
    url('../imagens/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    border-radius: 12px;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

.hero-section .badge {
    display: inline-block;
    margin: 0 auto 16px auto;
}

.hero-section .hero-desc {
    color: #e2e8f0;
}

.badge {
    display: inline-block;
    background-color: var(--gold-glow);
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--gold-primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Home Features */
.home-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Seções e Cards de Serviços */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-primary);
}

.service-img-wrapper {
    position: relative;
    height: 200px;
    background-color: var(--border-color);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: var(--gold-glow);
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.service-content {
    padding: 24px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Biblioteca Grid */
.biblioteca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pdf-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdf-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.pdf-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Contato */
.contact-card-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: var(--shadow-md);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 32px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--gold-glow);
    border-radius: 8px;
    padding: 8px;
}

.svg-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
}

.contact-item-text .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item-text .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsividade para Celulares */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .logo-link {
        justify-content: center;
        width: 100%;
    }

    .logo-img {
        margin: 0 auto;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-around;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}
