:root {
    --verde-escuro: #2A4B26;
    --verde-medio: #3A6B35;
    --verde-claro: #4A7B45;
    --off-white: #F5F5F0;
    --cinza-claro: #EDEDE5;
    --branco: #FFFFFF;
    --texto: #1F1F1F;
    --texto-claro: #4A4A4A;
    --sombra: rgba(42, 75, 38, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--off-white);
    color: var(--texto);
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--verde-escuro);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header.scrolled {
    background-color: rgba(42, 75, 38, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--branco);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--cinza-claro);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--branco);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--branco);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--branco);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(42, 75, 38, 0.75), rgba(42, 75, 38, 0.85)), url('/img/fachada-fort-madeiras-feira-de-santana.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--branco);
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--cinza-claro);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--verde-medio);
    color: var(--branco);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--branco);
}

.cta-button:hover {
    background-color: var(--branco);
    color: var(--verde-escuro);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.section-title {
    text-align: center;
    font-size: 2.4rem;
    color: var(--verde-escuro);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--texto-claro);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Categorias */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.categoria-card {
    background-color: var(--branco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--sombra);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categoria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(42, 75, 38, 0.2);
}

.categoria-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.categoria-card h3 {
    padding: 1.2rem;
    text-align: center;
    color: var(--verde-escuro);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Sobre */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-imagem img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--sombra);
    display: block;
}

.sobre-texto h2 {
    font-size: 2.2rem;
    color: var(--verde-escuro);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.sobre-texto p {
    color: var(--texto-claro);
    margin-bottom: 1rem;
    text-align: justify;
}

.sobre-texto strong {
    color: var(--verde-medio);
}

/* Contato */
.contato-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contato-card {
    background-color: var(--branco);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px var(--sombra);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--texto);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.contato-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(42, 75, 38, 0.2);
}

.contato-icon {
    width: 55px;
    height: 55px;
    background-color: var(--verde-escuro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--branco);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contato-card h3 {
    color: var(--verde-escuro);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contato-card p {
    color: var(--texto-claro);
    font-size: 0.95rem;
    word-break: break-word;
}

.mapa-container {
    grid-column: 1 / -1;
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--sombra);
    background-color: var(--branco);
}

.mapa-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

/* Footer */
footer {
    background-color: var(--verde-escuro);
    color: var(--off-white);
    padding: 3rem 2rem 1rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-col h3 {
    color: var(--branco);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-col p,
.footer-col a {
    color: var(--cinza-claro);
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--branco);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--cinza-claro);
    font-size: 0.9rem;
}

/* Fortinho Mascote */
.fortinho-botao {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 70px;
    height: 70px;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(42, 75, 38, 0.3);
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    background-color: var(--branco);
    border: 3px solid var(--verde-medio);
}

.fortinho-botao:hover,
.fortinho-botao:active {
    transform: scale(1.1);
}

.fortinho-botao img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fortinho-tooltip {
    position: fixed;
    bottom: 105px;
    right: 25px;
    z-index: 998;
    background-color: var(--verde-escuro);
    color: var(--branco);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.fortinho-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo 768px */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--verde-escuro);
        transition: right 0.3s ease;
        padding-top: 5rem;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 2rem;
    }

    nav a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav a::after {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .section-title {
        font-size: 1.9rem;
    }

    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contato-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .fortinho-botao {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .fortinho-tooltip {
        bottom: 90px;
        right: 20px;
    }
}

/* Responsivo 480px */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

    .cta-button {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .categorias-grid,
    .contato-grid {
        grid-template-columns: 1fr;
    }

    .categoria-card img {
        height: 180px;
    }

    .contato-card {
        padding: 1.5rem;
    }

    .mapa-container iframe {
        height: 280px;
    }

    .fortinho-botao {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
}

/* Ajustes de 2026-12 */
html { scroll-padding-top: 72px; }
.hero { max-width: none; }
.hero .hero-chamada { font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 1rem; }
.hero-info { margin: 1.5rem 0 0; }
.hero .hero-info { font-size: 1rem; margin-bottom: 0; }
.categoria-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.categoria-card h3 { padding-bottom: 0.4rem; }
.categoria-card p { padding: 0 1.2rem; text-align: center; color: var(--texto-claro); font-size: 0.95rem; }
.categoria-card .saiba-mais { margin-top: auto; padding: 0.8rem 1.2rem 1.2rem; color: var(--verde-medio); font-weight: 600; text-align: center; text-decoration: underline; }
.contato-card { padding-left: 1rem; padding-right: 1rem; }
.contato-card p { font-size: 0.9rem; overflow-wrap: anywhere; word-break: normal; }
.duvidas { max-width: 860px; }
.duvidas h3 { color: var(--verde-escuro); font-size: 1.15rem; margin: 1.6rem 0 0.3rem; }
.duvidas p { color: var(--texto-claro); }
.duvidas a, .texto a:not(.cta-button) { color: var(--verde-medio); }
.trilha { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem 0; font-size: 0.9rem; color: var(--texto-claro); }
.trilha a { color: var(--verde-medio); }
.produto { padding-top: 1.5rem; }
.produto h1 { color: var(--verde-escuro); font-size: 2.4rem; line-height: 1.2; margin-bottom: 1rem; }
.produto-topo { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.produto-topo img { width: 100%; height: 380px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 25px var(--sombra); display: block; }
.produto-topo p { color: var(--texto-claro); margin-bottom: 1.2rem; font-size: 1.08rem; }
.texto { max-width: 860px; padding-top: 0; padding-bottom: 3rem; }
.texto h2 { color: var(--verde-escuro); font-size: 1.6rem; margin: 2rem 0 0.6rem; line-height: 1.3; }
.texto p, .texto li { color: var(--texto-claro); margin-bottom: 0.7rem; }
.texto ul { padding-left: 1.3rem; }
.chamada { background: var(--branco); border-radius: 12px; box-shadow: 0 4px 15px var(--sombra); padding: 2rem; margin-top: 2.5rem; text-align: center; }
.chamada h2 { margin-top: 0; }
.outros { padding-top: 0; }
.outros .categorias-grid { grid-template-columns: repeat(3, 1fr); }
.footer-links { list-style: none; }
.footer-grid { grid-template-columns: repeat(4, 1fr); }
a:focus-visible, button:focus-visible { outline: 3px solid #E0A72E; outline-offset: 3px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .produto-topo { grid-template-columns: 1fr; gap: 1.5rem; }
    .produto-topo img { height: 260px; }
    .produto h1 { font-size: 1.8rem; }
    .trilha { padding: 5.5rem 1rem 0; }
    .outros .categorias-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
