/* ============================================
   SS Barras e Direção — Site Stylesheet
   ============================================ */

:root {
    --primary: #B71C1C;
    --primary-dark: #7F0000;
    --secondary: #0D0D0D;
    --dark: #1a1a1a;
    --darker: #111111;
    --accent: #FFC107;
    --accent-dark: #FF8F00;
    --metal: #78909C;
    --metal-light: #B0BEC5;
    --light: #e8e8e8;
    --white: #ffffff;
    --text: #f0f0f0;
    --text-dim: #aaaaaa;
    --card-bg: linear-gradient(180deg, #1a1a1a 0%, #0D0D0D 100%);
    --section-bg: #111111;
    --hero-overlay: rgba(13,13,13,0.92);
}

[data-theme="light"] {
    --primary: #B71C1C;
    --primary-dark: #7F0000;
    --secondary: #f5f5f5;
    --dark: #ffffff;
    --darker: #f0f0f0;
    --accent: #B71C1C;
    --accent-dark: #7F0000;
    --metal: #555555;
    --metal-light: #777777;
    --light: #e0e0e0;
    --white: #1a1a1a;
    --text: #222222;
    --text-dim: #555555;
    --card-bg: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    --section-bg: #f8f8f8;
    --hero-overlay: rgba(240,240,240,0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--darker);
    transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header */
header {
    background: linear-gradient(180deg, var(--secondary) 0%, var(--darker) 100%);
    color: var(--white);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
    border-bottom: 3px solid var(--primary);
    transition: background 0.4s ease;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo .gear {
    color: var(--accent);
    font-size: 2rem;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo span {
    color: var(--accent);
}

.btn-sistema {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-sistema:hover {
    background: var(--accent);
    color: var(--darker);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-top {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    font-family: 'Oswald', sans-serif;
}

.phone-top:hover {
    color: var(--accent);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    border-color: var(--accent);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--darker);
    transform: rotate(15deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.3s, transform 0.4s;
}

.theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Hero */
.hero {
    margin-top: 68px;
    background:
        linear-gradient(135deg, var(--hero-overlay) 0%, rgba(26,26,26,0.85) 50%, rgba(183,28,28,0.3) 100%),
        url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 25px 100px;
    text-align: center;
    position: relative;
    transition: background 0.4s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    position: relative;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.hero h1 span {
    color: var(--accent);
    display: block;
    font-size: 2.8rem;
}

.hero p {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 35px;
    color: var(--metal-light);
    position: relative;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
}

.badge {
    background: rgba(183,28,28,0.2);
    border: 2px solid var(--primary);
    padding: 10px 25px;
    border-radius: 2px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 18px 50px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 6px 25px rgba(183, 28, 28, 0.4);
    position: relative;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #5c0000 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(183, 28, 28, 0.6);
    border-color: var(--accent);
}

/* Sections */
.section {
    padding: 90px 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--metal-light);
    font-size: 1.15rem;
    margin-bottom: 60px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    border-color: rgba(183,28,28,0.3);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--primary);
    background: var(--darker);
}

.service-content {
    padding: 30px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-tag {
    display: inline-block;
    background: rgba(183,28,28,0.2);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    font-family: 'Oswald', sans-serif;
}

/* About */
.about-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.4s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.3rem;
    margin-bottom: 25px;
    color: var(--white);
}

.about-text h2 span {
    color: var(--primary);
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--accent);
}

.about-features {
    list-style: none;
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--metal-light);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.about-features li::before {
    content: "▸";
    color: var(--primary);
    font-weight: 800;
    font-size: 1.3rem;
}

.about-image-box {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 2px solid rgba(183,28,28,0.3);
}

.about-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(13,13,13,0.95) 0%, transparent 100%);
    padding: 40px 30px 30px;
    text-align: center;
}

.about-image-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.about-image-overlay .big-phone {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin: 8px 0;
    font-family: 'Oswald', sans-serif;
}

.about-image-overlay .big-phone:hover {
    color: var(--accent);
}

/* Contact Section */
.contact-section {
    background:
        linear-gradient(135deg, rgba(13,13,13,0.95) 0%, rgba(26,26,26,0.9) 100%),
        url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    border-top: 3px solid var(--primary);
    transition: background 0.4s ease;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-subtitle {
    color: var(--metal-light);
}

.contact-box {
    background: rgba(13,13,13,0.7);
    border: 2px solid var(--primary);
    border-radius: 4px;
    padding: 60px 40px;
    max-width: 650px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    position: relative;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: var(--accent);
}

.contact-box .label {
    font-size: 1.1rem;
    color: var(--metal-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
}

.contact-box .phone-big {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 20px 0;
    display: block;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: color 0.3s;
}

.contact-box .phone-big:hover {
    color: var(--white);
}

.contact-box .name {
    font-size: 1.4rem;
    margin-top: 10px;
    color: var(--white);
    font-family: 'Oswald', sans-serif;
}

.contact-box .company-name {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 5px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-box .btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: #ffffff;
    padding: 20px 50px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 30px;
    transition: all 0.3s;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.3);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid transparent;
}

.contact-box .btn-whatsapp-large:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
    border-color: var(--accent);
}

/* Footer */
footer {
    background: var(--darker);
    color: var(--metal);
    text-align: center;
    padding: 40px 25px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: background 0.4s ease;
}

footer strong {
    color: var(--white);
    font-family: 'Oswald', sans-serif;
}

footer .footer-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: #ffffff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 2rem;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
    animation: pulse 2.5s infinite;
    border: 3px solid var(--accent);
}

.whatsapp-float:hover {
    transform: scale(1.15);
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 25px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Industrial stripe decoration */
.stripe-bar {
    height: 6px;
    background: repeating-linear-gradient(
        45deg,
        var(--primary),
        var(--primary) 10px,
        var(--accent) 10px,
        var(--accent) 20px
    );
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero h1 span {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    .logo-group {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .nav-links {
        display: flex;
        gap: 12px;
    }
    .btn-sistema {
        padding: 8px 16px;
        border-radius: 40px;
        text-decoration: none;
        font-weight: 600;
        transition: 0.2s;
    }
    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .logo {
        font-size: 1.5rem;
    }
    .contact-box .phone-big {
        font-size: 2rem;
    }
    .contact-box {
        padding: 40px 20px;
    }
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 20px;
    }
    .section {
        padding: 60px 15px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}