/*
Theme Name: TCW Security
Theme URI: https://tcwsecurity.com
Author: Antigravity
Description: High-performance, pixel-perfect security theme.
Version: 1.2.0
text-domain: tcw-security
*/

:root {
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-red: #E63946;
    --accent-red-hover: #D62828;
    --border-color: #1a1a1a;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;

    --container-max: 1280px;
    --container-padding: 24px;

    --spacing-xl: 120px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center {
    text-align: center;
}

.text-red {
    color: var(--accent-red) !important;
}

.d-flex {
    display: flex;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    margin: 2rem auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(0, 0, 0, 0.9);
    /* Slightly darker */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand i {
    color: #fff;
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #ccc;
}

.desktop-nav a:hover {
    color: var(--accent-red);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
}

/* Hero */
#hero.hero {
    min-height: 100vh;
    width: 100%;
    padding-top: 140px;
    /* More padding */
    padding-bottom: 80px;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000 70%);
    /* Lighter center */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    /* Fallback */
    font-size: clamp(3rem, 6vw, 6rem);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-tag {
    font-size: 1.5rem;
    /* Fallback */
    font-size: clamp(1.2rem, 3vw, 2rem);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.hero-icon-small {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

/* Fallback for Grid failure */
@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
    .services-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .card {
        width: 30%;
        margin: 1%;
    }
}

.card {
    background: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.card:hover {
    border-color: var(--accent-red);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.card h3 {
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card ul {
    width: 100%;
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid #222;
    margin-top: 20px;
}

.card li {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.card li i {
    color: var(--accent-red);
    margin-right: 10px;
}

/* Stats */
.stats {
    padding: 80px 0;
    background: #050505;
}

.trusted-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
}

.trust-item {
    text-align: center;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--accent-red);
    display: block;
    margin-bottom: 15px;
}

.status-box {
    background: #000;
    border: 1px solid #222;
    padding: 50px;
}

.status-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 40px;
}

/* Changed to Flex for safety */
.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-red);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
    margin-top: 5px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testi-card {
    background: #080808;
    padding: 40px;
    border-left: 4px solid var(--accent-red);
}

/* Footer */
.footer {
    padding: 80px 0 0;
    background: #020202;
    border-top: 1px solid #111;
}

.emergency-cta {
    background: #000;
    border: 1px solid #222;
    padding: 60px;
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
    border-bottom: 1px solid #111;
}

.footer-info {
    display: flex;
    gap: 40px;
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-grid {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .desktop-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        padding-top: 100px;
        text-align: center;
        transition: 0.3s;
    }

    .desktop-nav.active {
        right: 0;
    }

    .desktop-nav ul {
        flex-direction: column;
        gap: 30px;
    }

    .desktop-nav a {
        font-size: 1.5rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .trusted-row {
        flex-direction: column;
        gap: 40px;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}