/* ============================================
   CRIFER — Estilos compartilhados
   Usado por index.html e Historia.html
   (header, navegação, footer, botão WhatsApp)
   ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(128, 0, 0, 0.95);
    padding: 15px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 10px 5%;
    background-color: rgba(128, 0, 0, 1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    transition: height 0.3s ease;
}

header.scrolled .logo img {
    height: 40px;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 15px;
    transition: color 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    color: #ffcccc;
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ffcccc;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 80%;
}

.orcamento {
    background: linear-gradient(135deg, #a83232 0%, #cc3939 100%);
    color: rgb(255, 255, 255);
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 50, 50, 0.4);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.orcamento:hover {
    background: linear-gradient(135deg, #cc3939 0%, #e64a4a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 50, 50, 0.6);
}

/* Menu hamburguer para responsividade */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

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

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

/* FOOTER */
footer {
    width: 100%;
    background: linear-gradient(135deg, #800000 0%, #8B0000 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 1;
    min-width: 220px;
}

.footer-logo img {
    width: 190px;
    height: auto;
    max-height: 95px;
    margin-bottom: 12px;
    object-fit: contain;
}

.footer-logo p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #f1f1f1;
    font-size: 0.92rem;
}

.social-container {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 10px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #800000;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background-color: #f8f8f8;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.footer-links,
.contact-info,
.central {
    flex: 1;
    min-width: 180px;
    padding: 0 8px;
}

.footer-links h3,
.contact-info h3,
.central h3 {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.15rem;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h3::after,
.contact-info h3::after,
.central h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.contact-info a,
.central a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.8;
    display: inline-block;
}

.footer-links ul li a:hover,
.contact-info a:hover,
.central a:hover {
    color: #ffcccc !important;
    padding-left: 5px;
}

.contact-info p,
.central p {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-bottom {
    padding: 18px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: 12px;
}

.footer-bottom p {
    margin: 0;
    color: #f1f1f1;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999999;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
    }
}

/* Responsividade — header/nav/footer */
@media (max-width: 992px) {
    nav ul li {
        margin: 0 20px;
    }

    .footer-content {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(128, 0, 0, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 0 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 18px;
    }

    .orcamento {
        padding: 8px 20px;
        font-size: 14px;
    }

    footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-logo,
    .footer-links,
    .contact-info,
    .central {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .footer-links h3,
    .contact-info h3,
    .central h3 {
        text-align: center;
    }

    .footer-links h3::after,
    .contact-info h3::after,
    .central h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-container {
        justify-content: center;
    }

    .whatsapp-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }

    .footer-logo img {
        width: 150px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}
