/* CSS Reset & Variables */
:root {
    --bg-color: #0c0f1a;
    --bg-surface: #141b2d;
    --bg-surface-hover: #1c263f;
    --primary-color: #00d2ff;
    --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --secondary-color: #f97316;
    /* Orange for action/electric */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --blue-glow: rgba(0, 210, 255, 0.15);

    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.mt-xl {
    margin-top: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.sm-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px var(--blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    width: 100%;
    margin-top: 1.5rem;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(0, 210, 255, 0.05);
    color: var(--primary-color);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 210, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(12, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.logo span {
    color: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.1) 0%, rgba(12, 15, 26, 1) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 210, 255, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-inline: auto;
}

.hero p strong {
    color: #fff;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.category {
    margin-bottom: 3rem;
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

#hidraulica.category {
    background: linear-gradient(rgba(20, 27, 45, 0.9), rgba(20, 27, 45, 0.9)), url('bg_hidraulica.png?v=3');
    background-size: cover;
    background-position: center;
}

#shortcut-hidraulica {
    background: linear-gradient(rgba(12, 15, 26, 0.8), rgba(12, 15, 26, 0.8)), url('bg_hidraulica.png?v=3');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

#shortcut-hidraulica:hover {
    background: linear-gradient(rgba(12, 15, 26, 0.6), rgba(12, 15, 26, 0.6)), url('bg_hidraulica.png?v=3');
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0.5;
}

.category:last-child::before {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.category-icon.blue {
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary-color);
}

.category-icon.yellow {
    background: rgba(245, 175, 25, 0.1);
    color: var(--secondary-color);
}

.category-header h3 {
    font-size: 1.8rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(12, 15, 26, 0.5);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
    border-color: rgba(0, 210, 255, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

#card-desentupimento {
    background: linear-gradient(rgba(12, 15, 26, 0.85), rgba(12, 15, 26, 0.85)), url('bg_desentupimento.png?v=2');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

#card-desentupimento:hover {
    background: linear-gradient(rgba(12, 15, 26, 0.6), rgba(12, 15, 26, 0.6)), url('bg_desentupimento.png?v=2');
    background-size: cover;
    background-position: center;
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-5px);
}

/* Guarantee Section */
.guarantee {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(20, 27, 45, 0.5) 100%);
}

.guarantee-box {
    background: var(--primary-gradient);
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.guarantee-box::after {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.guarantee-icon {
    font-size: 6rem;
    color: #fff;
    flex-shrink: 0;
}

.guarantee-text {
    flex-grow: 1;
    color: #fff;
}

.guarantee-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guarantee-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.guarantee-action .btn {
    background: #fff;
    color: #0c0f1a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.guarantee-action .btn:hover {
    background: #f8fafc;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #0a0c14;
    padding: 4rem 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-bottom {
    background: #06080e;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .guarantee-box {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
        gap: 2rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        /* In a real app, add a hamburger menu */
    }

    .hero-actions {
        flex-direction: column;
    }

    .category {
        padding: 2rem 1.5rem;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
    }
}

#card-vazamento {
    background: linear-gradient(rgba(12, 15, 26, 0.85), rgba(12, 15, 26, 0.85)), url('bg_vazamento.png?v=4');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

#card-vazamento:hover {
    background: linear-gradient(rgba(12, 15, 26, 0.6), rgba(12, 15, 26, 0.6)), url('bg_vazamento.png?v=4');
    background-size: cover;
    background-position: center;
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-5px);
}

#eletrica.category {
    background: linear-gradient(rgba(20, 27, 45, 0.9), rgba(20, 27, 45, 0.9)), url('bg_eletrica_atalho.png?v=5');
    background-size: cover;
    background-position: center;
}

#shortcut-eletrica {
    background: linear-gradient(rgba(12, 15, 26, 0.8), rgba(12, 15, 26, 0.8)), url('bg_eletrica_atalho.png?v=5');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

#shortcut-eletrica:hover {
    background: linear-gradient(rgba(12, 15, 26, 0.6), rgba(12, 15, 26, 0.6)), url('bg_eletrica_atalho.png?v=5');
    border-color: var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}

#card-tomadas {
    background: linear-gradient(rgba(12, 15, 26, 0.85), rgba(12, 15, 26, 0.85)), url('bg_eletrica_tomadas.png?v=5');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

#card-tomadas:hover {
    background: linear-gradient(rgba(12, 15, 26, 0.6), rgba(12, 15, 26, 0.6)), url('bg_eletrica_tomadas.png?v=5');
    background-size: cover;
    background-position: center;
    border-color: rgba(245, 175, 25, 0.3);
    transform: translateY(-5px);
}

#card-fiacao {
    background: linear-gradient(rgba(12, 15, 26, 0.85), rgba(12, 15, 26, 0.85)), url('bg_fiacao.jpg?v=6');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

#card-fiacao:hover {
    background: linear-gradient(rgba(12, 15, 26, 0.6), rgba(12, 15, 26, 0.6)), url('bg_fiacao.jpg?v=6');
    background-size: cover;
    background-position: center;
    border-color: rgba(245, 175, 25, 0.3);
    transform: translateY(-5px);
}

#card-iluminacao {
    background: linear-gradient(rgba(12, 15, 26, 0.85), rgba(12, 15, 26, 0.85)), url('bg_iluminacao.jpg?v=6');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

#card-iluminacao:hover {
    background: linear-gradient(rgba(12, 15, 26, 0.6), rgba(12, 15, 26, 0.6)), url('bg_iluminacao.jpg?v=6');
    background-size: cover;
    background-position: center;
    border-color: rgba(245, 175, 25, 0.3);
    transform: translateY(-5px);
}

#card-quadro {
    background: linear-gradient(rgba(12, 15, 26, 0.85), rgba(12, 15, 26, 0.85)), url('bg_quadro.jpg?v=6');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

#card-quadro:hover {
    background: linear-gradient(rgba(12, 15, 26, 0.6), rgba(12, 15, 26, 0.6)), url('bg_quadro.jpg?v=6');
    background-size: cover;
    background-position: center;
    border-color: rgba(245, 175, 25, 0.3);
    transform: translateY(-5px);
}