/* --- CSS Variables --- */
:root {
    --bg-color-main: #131313;
    --bg-color-darker: #0d0d0d;
    --bg-color-lighter: #1c1c1c;
    --bg-card: #151515;
    
    --color-text: #e0e0e0;
    --color-text-dim: #a0a0a0;
    --color-gold: #c9a84c;
    --color-gold-light: #e6cb7a;
    --color-gold-dark: #a88736;
    
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --header-height: 90px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color-main);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-title.centered {
    text-align: center;
    margin-bottom: 0.5rem;
}

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

/* --- Header / Navbar --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(13, 13, 13, 0.98);
    height: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.logo {
    max-height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-gold);
    color: var(--bg-color-main);
}

.btn-icon:hover {
    background-color: var(--color-gold-light);
    transform: scale(1.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--color-gold);
}

.contact-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

/* --- Hero Section --- */
.hero {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #1f1f1f 0%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}

/* Background elements imitating network/tech connections */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.5;
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    height: 100%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.guards-img {
    max-height: 65vh;
    object-fit: contain;
    /* Blend mode since the original image has a white background.
       If it's transparent, we don't need this, but we'll use a mask filter just in case */
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

.hero-content {
    flex: 1;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 300;
    max-width: 80%;
}

/* --- Sobre Nós --- */
.sobre-nos {
    padding: 80px 0;
    background-color: var(--bg-color-main);
}

.sobre-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.sobre-content {
    flex: 1;
}

.sobre-content p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.sobre-image-wrapper {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.sobre-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
}

.sobre-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.sobre-image-wrapper:hover .sobre-img {
    transform: scale(1.05);
}

/* --- Parallax Divisor --- */
.parallax-section {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,13,13,0.9), rgba(13,13,13,0.6));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
}

.parallax-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    z-index: 10;
}

/* --- Serviços --- */
.servicos {
    padding: 100px 0;
    background-color: var(--bg-color-darker);
}

.grid-servicos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-servico-novo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0.8) 40%, rgba(13, 13, 13, 0.2) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 30px 25px;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.card-title {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.35rem;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
}

.saiba-mais {
    display: inline-block;
    color: var(--color-gold-light);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.saiba-mais::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.card-servico-novo:hover .card-bg {
    transform: scale(1.1);
}

.card-servico-novo:hover .card-overlay {
    background: linear-gradient(to top, rgba(13, 13, 13, 1) 15%, rgba(13, 13, 13, 0.9) 50%, rgba(13, 13, 13, 0.4) 100%);
}

.card-servico-novo:hover .saiba-mais::after {
    width: 100%;
}

/* --- Diferenciais --- */
.diferenciais {
    padding: 60px 0;
    background-color: #080808;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.container-diferenciais {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.diferencial-item {
    padding: 20px;
}

.diferencial-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 2px solid var(--color-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    transition: var(--transition);
}

.diferencial-item:hover .diferencial-icon {
    background-color: rgba(201, 168, 76, 0.1);
    transform: scale(1.1);
}

.diferencial-title {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.diferencial-desc {
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

/* --- Contato --- */
.contato {
    padding: 100px 0;
    background-color: var(--bg-color-main);
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 20px;
}

.card-contato {
    background: transparent;
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
    cursor: pointer;
}

.card-contato:hover {
    background: rgba(201, 168, 76, 0.05);
    transform: translateY(-5px);
}

.card-contato-icon {
    color: var(--color-gold);
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-contato-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.card-contato-info {
    font-size: 1.1rem;
    color: var(--color-text);
}

.map-mock {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e5d8c8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Map lines pattern to simulate roads */
.map-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.8) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,255,255,0.8) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: -10px -10px;
    opacity: 0.5;
}

.map-marker {
    position: absolute;
    z-index: 2;
    transform: translateY(-20px);
}

.map-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 3;
    max-width: 250px;
}

.map-info strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.map-info span {
    color: #666;
    font-size: 0.8rem;
    display: block;
}

/* --- Footer --- */
.footer {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0 40px;
    text-align: center;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,13,13,0.95) 0%, rgba(20, 16, 5, 0.90) 100%);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    max-width: 250px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.footer-title {
    color: var(--color-gold);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--color-gold);
    color: #111;
    border-radius: 8px;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    padding-top: 20px;
}

.copyright strong {
    color: var(--color-gold);
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Páginas de Segmentos (Sub-páginas) --- */
.segment-hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-color-main);
    position: relative;
}

.segment-container {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.segment-content {
    flex: 1;
}

.segment-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1.2;
    margin-bottom: 20px;
}

.segment-desc {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.niche-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.niche-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.niche-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.niche-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.niche-desc {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25d366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-whatsapp:hover {
    background-color: #20b858;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    fill: currentColor;
}

.segment-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 16px;
}

.segment-image-bg {
    position: absolute;
    inset: -20px;
    border-radius: 16px;
    border: 2px solid var(--color-gold);
    z-index: 1;
    opacity: 0.5;
}

.segment-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@media (max-width: 992px) {
    .segment-container {
        flex-direction: column;
    }
    .segment-image-wrapper {
        margin-top: 40px;
        width: 100%;
    }
    .segment-image-bg {
        display: none;
    }
}

@media (max-width: 768px) {
    .niche-grid {
        grid-template-columns: 1fr;
    }
    .segment-title {
        font-size: 2.2rem;
    }
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content {
        padding: 0;
        margin-bottom: 40px;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-image {
        max-height: 50vh;
    }
    
    .grid-servicos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sobre-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* In a real app, add a hamburger menu */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .grid-servicos {
        grid-template-columns: 1fr;
    }
    
    .container-diferenciais {
        grid-template-columns: 1fr;
    }
    
    .contato-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .map-mock {
        height: 300px;
    }
}
