/*
 Theme Name:   Beast Tactical Security
 Theme URI:    https://beasttactical.co.za
 Description:  Edgy corporate theme for Beast Tactical Security — built on Astra.
 Author:       Lookopen
 Author URI:   https://lookopen.com
 Template:     astra
 Version:      2.0.0
 Text Domain:  btsecurity
*/

/* ============================================
   BRAND DESIGN SYSTEM v2 — Edgy Corporate
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500&display=swap');

:root {
    --bt-primary: #080d16;
    --bt-secondary: #0e1726;
    --bt-surface: #141e30;
    --bt-surface-hover: #1a2740;
    --bt-accent: #a52525;
    --bt-accent-hover: #cc3333;
    --bt-accent-glow: rgba(165, 37, 37, 0.12);
    --bt-highlight: #7a8ea0;
    --bt-text: #e8ecf1;
    --bt-text-muted: #8494a7;
    --bt-border: rgba(122, 142, 160, 0.1);
    --bt-border-accent: rgba(165, 37, 37, 0.2);
    --bt-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bt-font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --bt-shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
    --bt-shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --bt-shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
    --bt-shadow-glow: 0 0 30px rgba(165, 37, 37, 0.08);
    --bt-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --bt-transition: 0.3s var(--bt-ease);
    --bt-radius: 8px;
    --bt-max-w: 1140px;
}

/* ============================================
   RESET WP TELLS — Kill the WordPress look
   ============================================ */

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .comment-respond,
.ast-separate-container .ast-comment-list li,
.ast-separate-container .ast-woocommerce-container,
.ast-separate-container.ast-right-sidebar #primary,
.ast-separate-container.ast-left-sidebar #primary {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.ast-separate-container #primary,
.ast-plain-container #primary {
    padding: 0 !important;
    margin: 0 auto !important;
}

#page,
#content,
.site-content,
.ast-container {
    background: transparent !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.ast-separate-container .site-main > .ast-row {
    padding: 0 !important;
}

.entry-header,
.page-header {
    display: none !important;
}

.ast-page-builder-template .site-content > .ast-container {
    max-width: 100% !important;
}

/* Kill Astra sidebar */
.ast-right-sidebar #secondary,
.ast-left-sidebar #secondary {
    display: none !important;
}

/* Full-width everything */
.site-content .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.entry-content > .wp-block-group {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ============================================
   BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bt-primary);
    color: var(--bt-text);
    font-family: var(--bt-font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--bt-accent);
    color: var(--bt-primary);
}

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

a:hover {
    color: var(--bt-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-family: var(--bt-font-body);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
    color: var(--bt-text-muted);
    line-height: 1.8;
}

/* ============================================
   HEADER & NAVIGATION — Glassmorphism
   ============================================ */

.site-header,
.ast-primary-header,
.ast-above-header,
.ast-main-header-wrap .main-header-bar {
    background: rgba(14, 23, 38, 0.92) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--bt-border) !important;
    box-shadow: none !important;
    transition: background var(--bt-transition);
    padding-right: 24px !important;
    overflow: visible !important;
}

/* Ensure nav items are never clipped */
.ast-primary-header .ast-builder-menu,
.ast-primary-header .main-header-menu,
.site-header-primary-section-right {
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
}

.main-header-menu .menu-item,
.ast-builder-menu .menu-item {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Space out nav menu items */
.main-header-menu .menu-item,
.ast-builder-menu .menu-item {
    margin: 0 4px;
}

.main-header-menu a,
.ast-header-menu a,
.main-navigation a,
.ast-builder-menu a {
    color: var(--bt-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    font-size: 0.72rem;
    transition: all var(--bt-transition);
    padding: 8px 14px !important;
    position: relative;
}

.main-header-menu a::after,
.ast-builder-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bt-accent);
    transition: width var(--bt-transition);
}

.main-header-menu a:hover::after,
.ast-builder-menu a:hover::after,
.main-header-menu .current-menu-item > a::after,
.ast-builder-menu .current-menu-item > a::after {
    width: 100%;
}

.main-header-menu a:hover,
.ast-builder-menu a:hover,
.main-header-menu .current-menu-item > a,
.ast-builder-menu .current-menu-item > a {
    color: var(--bt-text) !important;
}

.site-title a,
.ast-site-identity .site-title a {
    color: var(--bt-text) !important;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}

/* Hide default WP tagline */
.site-description {
    display: none !important;
}

/* ============================================
   BUTTONS — Edgy with glow
   ============================================ */

.wp-block-button__link,
.ast-button,
input[type="submit"],
.bt-cta-button {
    background: var(--bt-accent) !important;
    color: var(--bt-primary) !important;
    border: none !important;
    border-radius: var(--bt-radius);
    padding: 16px 40px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--bt-transition);
    box-shadow: 0 0 0 0 var(--bt-accent-glow);
    position: relative;
    overflow: hidden;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s var(--bt-ease);
}

.wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button__link:hover,
.ast-button:hover,
input[type="submit"]:hover,
.bt-cta-button:hover {
    background: var(--bt-accent-hover) !important;
    color: var(--bt-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(165, 37, 37, 0.3), var(--bt-shadow-glow);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 1px solid var(--bt-accent) !important;
    color: var(--bt-accent) !important;
    box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--bt-accent) !important;
    color: var(--bt-primary) !important;
}

/* ============================================
   SECTIONS — Full-bleed with geometric accents
   ============================================ */

.entry-content,
.page-content {
    color: var(--bt-text);
}

.bt-section-dark {
    background-color: var(--bt-primary);
    padding: 100px 40px;
    position: relative;
}

.bt-section-charcoal {
    background-color: var(--bt-secondary);
    padding: 100px 40px;
    position: relative;
}

/* Geometric corner accents on alternating sections */
.bt-section-charcoal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, var(--bt-accent), transparent);
    opacity: 0.3;
}

.bt-section-charcoal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 120px;
    background: linear-gradient(180deg, var(--bt-accent), transparent);
    opacity: 0.3;
}

/* Content width constraint within sections */
.bt-section-dark > *,
.bt-section-charcoal > * {
    max-width: var(--bt-max-w);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO — Cinematic
   ============================================ */

.bt-hero {
    background: var(--bt-primary);
    padding: 140px 40px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Radial glow behind hero */
.bt-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(165, 37, 37, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Subtle grid pattern */
.bt-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--bt-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--bt-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.bt-hero > * {
    position: relative;
    z-index: 1;
}

.bt-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    color: var(--bt-text);
    line-height: 1.05;
}

.bt-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--bt-text-muted);
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.9;
}

/* ============================================
   TRUST BAR — Monospaced tech feel
   ============================================ */

.bt-trust-bar {
    background: var(--bt-secondary);
    padding: 24px 40px;
    text-align: center;
    font-family: var(--bt-font-mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--bt-highlight);
    border-top: 1px solid var(--bt-border);
    border-bottom: 1px solid var(--bt-border);
    position: relative;
}

/* ============================================
   LISTS — Custom bullets
   ============================================ */

.entry-content ul {
    list-style: none;
    padding-left: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content ul li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: var(--bt-text-muted);
    line-height: 1.7;
    border-bottom: 1px solid var(--bt-border);
}

.entry-content ul li:last-child {
    border-bottom: none;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border: 2px solid var(--bt-accent);
    border-radius: 1px;
    transform: translateY(-50%) rotate(45deg);
}

.entry-content li strong {
    color: var(--bt-text);
    font-weight: 700;
}

/* ============================================
   FOOTER — Minimal
   ============================================ */

.site-footer,
.ast-footer-overlay,
.ast-small-footer,
.site-footer-primary-section,
.ast-builder-footer-grid-columns {
    background-color: var(--bt-primary) !important;
    color: var(--bt-text-muted);
    border-top: 1px solid var(--bt-border);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--bt-highlight);
    transition: color var(--bt-transition);
}

.site-footer a:hover {
    color: var(--bt-accent);
}

/* ============================================
   CONTACT FORM 7 — Sleek dark inputs
   ============================================ */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    background-color: var(--bt-surface);
    color: var(--bt-text);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    padding: 16px 20px;
    width: 100%;
    font-size: 0.92rem;
    font-family: var(--bt-font-body);
    transition: all var(--bt-transition);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: var(--bt-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--bt-accent-glow), var(--bt-shadow-glow);
    background-color: var(--bt-surface-hover);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--bt-highlight);
    opacity: 0.45;
}

.wpcf7 label {
    color: var(--bt-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    display: block;
    margin-bottom: 8px;
}

.wpcf7 .wpcf7-submit {
    margin-top: 16px;
    width: 100%;
}

.bt-form-row {
    margin-bottom: 24px;
}

/* ============================================
   ANIMATIONS — Fade-in on scroll
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bt-hero h1 {
    animation: fadeInUp 0.8s var(--bt-ease) both;
}

.bt-hero p {
    animation: fadeInUp 0.8s var(--bt-ease) 0.15s both;
}

.bt-hero .wp-block-buttons {
    animation: fadeInUp 0.8s var(--bt-ease) 0.3s both;
}

.bt-trust-bar {
    animation: fadeIn 0.6s var(--bt-ease) 0.5s both;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .bt-hero {
        padding: 100px 24px 80px;
    }

    .bt-section-dark,
    .bt-section-charcoal {
        padding: 70px 24px;
    }

    .bt-trust-bar {
        font-size: 0.62rem;
        letter-spacing: 0.12em;
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .bt-hero {
        padding: 80px 20px 60px;
    }

    .bt-section-dark,
    .bt-section-charcoal {
        padding: 50px 20px;
    }

    .wp-block-button__link,
    .bt-cta-button {
        padding: 14px 28px;
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
    }

    .bt-section-charcoal::before,
    .bt-section-charcoal::after {
        display: none;
    }
}
