/* =========================================================================
   GRUPO HP3 - SEGURANÇA E CFTV | Premium Landing Page Styles
   ========================================================================= */

/* --- CSS Variables --- */
:root {
    /* Colors based on the HP3 logo */
    --color-primary: #0da19c; /* Teal */
    --color-primary-dark: #097e7a;
    --color-secondary: #008643; /* Green CDI */
    --color-secondary-dark: #006b35;
    
    /* Dark Theme Backgrounds */
    --color-bg-base: #0f172a; /* Slate 900 */
    --color-bg-surface: #1e293b; /* Slate 800 */
    --color-bg-glass: rgba(30, 41, 59, 0.6);
    --color-border-glass: rgba(255, 255, 255, 0.08);

    /* Text */
    --color-text-main: #f8fafc; /* Slate 50 */
    --color-text-muted: #94a3b8; /* Slate 400 */

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(13, 161, 156, 0.3);
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight {
    color: var(--color-primary);
}

.highlight-green {
    color: var(--color-secondary);
}

.text-green {
    color: var(--color-secondary) !important;
}

.center {
    text-align: center;
}

/* --- Buttons --- */
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 161, 156, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 161, 156, 0.5);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.btn-green {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    box-shadow: 0 4px 15px rgba(0, 134, 67, 0.3);
}

.btn-green:hover {
    box-shadow: 0 8px 25px rgba(0, 134, 67, 0.5);
    background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary));
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--color-border-glass);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(13, 161, 156, 0.1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(13, 161, 156, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(13, 161, 156, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* --- Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    padding: 12px 0;
    background: var(--color-bg-glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border-glass);
    box-shadow: var(--shadow-soft);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    transition: var(--transition);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-main);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: zoomOut 20s ease-out infinite alternate;
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.0); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border-glass);
    color: var(--color-primary);
    backdrop-filter: blur(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* --- Core Sections --- */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 60px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- About Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--color-border-glass);
}

.experience-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-border-glass);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.experience-card .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.experience-card .text {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.check-list li i {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

/* --- Services Block --- */
/* We'll use a CSS pattern background for the services section */
.services {
    background: linear-gradient(to bottom, var(--color-bg-base), rgba(13, 161, 156, 0.03), var(--color-bg-base));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-glass);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Glow effect base */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 161, 156, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(13, 161, 156, 0.3);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 161, 156, 0.1);
    color: var(--color-primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* --- Why Us Section --- */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item .feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 134, 67, 0.1);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.why-us-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.why-us-image img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--color-border-glass);
}

.glass-float {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--color-bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-border-glass);
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-bg-surface), rgba(13, 161, 156, 0.05));
    border-top: 1px solid var(--color-border-glass);
    border-bottom: 1px solid var(--color-border-glass);
}

.cta-container {
    text-align: center;
    max-width: 800px;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-container p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* --- Footer --- */
.footer {
    padding: 80px 0 0;
    background: #080c13;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 20px;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    transition: var(--transition);
    border: 1px solid var(--color-border-glass);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

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

.footer-links ul li a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.footer-contact ul li i {
    color: var(--color-primary);
}

.footer-bottom {
    background: rgba(0,0,0,0.5);
    padding: 20px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

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

.floating-wa:hover {
    background: #1ebc5a;
    transform: scale(1.1);
    color: #fff;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Store Link --- */
.store-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    color: var(--color-primary) !important;
    transition: var(--transition);
}

.store-link:hover {
    background: rgba(13, 161, 156, 0.1);
    box-shadow: 0 0 10px rgba(13, 161, 156, 0.2);
}

.nav-links .store-link::after {
    display: none; /* remove underline effect for this specific button */
}

/* --- Responsive & Mobile --- */
@media (max-width: 992px) {
    .about-grid, .why-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image, .why-us-image {
        order: -1;
    }

    .experience-card {
        right: 20px;
        bottom: -20px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--color-bg-base);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 1001; /* Above header */
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid var(--color-border-glass);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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