/*
Theme Name: AGFAS Catalog Theme
Theme URI: 
Author: Antigravity
Author URI: 
Description: A modern, clean WordPress theme for AGFAS, specializing in gas leak detectors and fire prevention products. Features a white, orange, and blue color scheme with WooCommerce and Quotation support.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agfas
Tags: custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce
*/

/* CSS Variables for Industrial Aesthetic */
:root {
    --brand-orange: #ff5500;
    --brand-dark: #121212;
    --brand-darker: #0a0a0a;
    --panel-bg: #1e1e1e;
    --panel-border: #333333;
    --text-main: #e0e0e0;
    --text-light: #9e9e9e;
    --metallic-gray: #424242;
    --alert-red: #d32f2f;
    --tech-blue: #00b0ff;
    --glow-orange: 0 0 10px rgba(255, 85, 0, 0.5);
    --shadow-solid: 4px 4px 0px rgba(0,0,0,0.5);
}

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

body {
    background-color: var(--brand-dark);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle grid background pattern */
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

h1, h2, h3, h4, .site-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1.1;
}

.mono { font-family: 'Share Tech Mono', monospace; }

a { text-decoration: none; transition: all 0.2s; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Nav Header - Solid, Rigid constructed look */
header.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--brand-darker);
    border-bottom: 2px solid var(--panel-border);
    padding: 0;
}

.header-top-bar {
    background: var(--brand-orange);
    height: 4px;
    width: 100%;
    /* Warning stripes pattern */
    background-image: repeating-linear-gradient(
        -45deg,
        var(--brand-orange),
        var(--brand-orange) 10px,
        #cc4400 10px,
        #cc4400 20px
    );
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-orange);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.site-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--brand-orange);
    border-radius: 2px;
    box-shadow: var(--glow-orange);
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active { 
    color: var(--brand-orange); 
    border-bottom: 2px solid var(--brand-orange);
}

.header-actions { display: flex; align-items: center; gap: 20px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--brand-orange);
    color: var(--brand-darker);
    border: 2px solid var(--brand-orange);
}

.btn-primary:hover {
    background: transparent;
    color: var(--brand-orange);
    box-shadow: inset 0 0 10px rgba(255, 85, 0, 0.2), var(--glow-orange);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--metallic-gray);
}

.btn-outline:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

/* Industrial Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #1e1e1e 0%, var(--brand-dark) 100%);
    border-bottom: 1px solid var(--panel-border);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23424242"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.system-status {
    position: absolute;
    top: 40px;
    left: 20px;
    padding: 10px 15px;
    background: var(--brand-darker);
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--text-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
    animation: blink 2s infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.hero-text h1 span {
    color: var(--brand-orange);
    display: block;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
    border-left: 3px solid var(--brand-orange);
    padding-left: 20px;
    background: rgba(0,0,0,0.2);
    padding-top: 10px;
    padding-bottom: 10px;
}

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

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hard technical Device Graphic */
.tech-device {
    width: 100%;
    left: 0%;
    aspect-ratio: 1.35;
    height: auto;
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-solid);
    overflow: visible;
}

/* Mock screws */
.screw { position: absolute; width: 12px; height: 12px; background: #2a2a2a; border-radius: 50%; border: 1px solid #111; box-shadow: inset 1px 1px 2px rgba(255,255,255,0.1); }
.tech-device .s-tl { top: 15px; left: 15px; } .tech-device .s-tr { top: 15px; right: 15px; }
.tech-device .s-bl { bottom: 15px; left: 15px; } .tech-device .s-br { bottom: 15px; right: 15px; }

.tech-sensor {
    width: 200px;
    height: 200px;
    border: 8px solid var(--brand-darker);
    border-radius: 50%;
    background: repeating-radial-gradient(
        #111,
        #111 10px,
        #1c1c1c 10px,
        #1c1c1c 20px
    );
    position: relative;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-sensor-core {
    width: 80px;
    height: 80px;
    background: var(--brand-dark);
    border-radius: 50%;
    border: 4px solid var(--metallic-gray);
    position: relative;
    z-index: 2;
}

.tech-sensor-core::after {
    content:'';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--brand-orange);
    border-radius: 50%;
    box-shadow: var(--glow-orange);
    animation: pulse-op 1.5s infinite alternate;
}

/* Sensor scanning ring */
.radar-line {
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,85,0,0) 0%, var(--brand-orange) 100%);
    top: 50%;
    left: 50%;
    transform-origin: 0% 0%;
    animation: scan 4s linear infinite;
    z-index: 1;
}

.data-overlay {
    position: absolute;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--brand-orange);
    padding: 15px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--brand-orange);
    font-size: 12px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 110px;
    aspect-ratio: 1.25;
}

.data-1 { top: 20%; right: -30px; }
.data-2 { bottom: 10%; left: -20px; color: var(--tech-blue); border-color: var(--tech-blue); }
.data-value { font-size: 20px; font-weight: bold; margin-top: 5px;}

/* Trust Stats - LED Display Style */
.stats-stripe {
    background: var(--brand-darker);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 0;
    display: flex;
    overflow: hidden;
}

.stat-block {
    flex: 1;
    padding: 30px;
    text-align: center;
    border-right: 1px solid #222;
}

.stat-block:last-child { border-right: none; }

.stat-block h4 {
    color: var(--brand-orange);
    font-size: 48px;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 15px rgba(255,85,0,0.3);
    margin-bottom: 5px;
}

.stat-block p {
    color: var(--metallic-gray);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hardware Catalog Header */
.hardware-grid-section {
    padding: 100px 0;
    background: var(--brand-dark);
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    border-bottom: 2px solid var(--panel-border);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h2 {
    font-size: 42px;
    color: #fff;
    margin: 0;
}

.section-header h2::before {
    content: '///';
    color: var(--brand-orange);
    margin-right: 15px;
}

.catalog-stats {
    text-align: right;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-light);
    font-size: 14px;
}

/* Rugged Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 20px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 3px;
    background: var(--brand-orange);
    transition: width 0.3s;
}

.product-card:hover {
    border-color: #555;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
    transform: translate(-3px, -3px);
}

.product-card:hover::before { width: 100%; }

.product-badge {
    background: #2a2a2a;
    color: var(--brand-orange);
    padding: 4px 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    border: 1px solid #444;
    display: inline-block;
    margin-bottom: 15px;
    align-self: flex-start;
}

.card-image-box {
    background: #111;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #222;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    background-image: repeating-linear-gradient(45deg, #111, #111 5px, #141414 5px, #141414 10px);
}

.mock-hardware-icon {
    font-size: 70px;
    filter: grayscale(100%) contrast(150%);
    transition: filter 0.3s;
    position: relative;
    z-index: 2;
}

.product-card:hover .mock-hardware-icon { filter: grayscale(0%); }

.product-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.product-card h3 a {
    color: inherit;
    text-decoration: none;
}
.product-card h3 a:hover {
    color: var(--brand-orange);
}

.product-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--metallic-gray);
    padding-top: 15px;
}

.price {
    font-family: 'Share Tech Mono', monospace;
    font-size: 22px;
    color: #fff;
}

.price del { color: var(--metallic-gray); font-size: 16px; margin-right: 5px; }
.price ins { text-decoration: none; }

.btn-action {
    background: transparent;
    color: var(--brand-orange);
    border: 1px solid var(--brand-orange);
    padding: 8px 15px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.btn-action:hover {
    background: var(--brand-orange);
    color: var(--brand-darker);
}

/* Alert Call to Action */
.cta-container {
    margin: 60px auto 100px;
    border: 2px solid var(--brand-orange);
    background: linear-gradient(135deg, #1e1e1e, #111);
    position: relative;
    overflow: hidden;
}

.warning-tape-top {
    width: 100%; height: 10px;
    background: repeating-linear-gradient(-45deg, var(--brand-orange), var(--brand-orange) 10px, #cc4400 10px, #cc4400 20px);
}

.cta-content {
    padding: 60px 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 { font-size: 40px; margin-bottom: 15px; color: #fff; }
.cta-content p { color: #aaa; max-width: 600px; margin: 0 auto 30px; font-size: 16px; }

/* Industrial Footer */
footer.site-footer {
    background: var(--brand-darker);
    border-top: 4px solid var(--metallic-gray);
    padding: 60px 0 20px;
    font-family: 'Roboto', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-block h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.footer-block p, .footer-block li a { color: var(--text-light); font-size: 14px; }
.footer-block ul { list-style: none; padding: 0; margin: 0; }
.footer-block li { margin-bottom: 10px; }
.footer-block li a:hover { color: var(--brand-orange); }

.legal-bar {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #666;
}

/* Animations */
@keyframes scan { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.3; } }
@keyframes pulse-op { from { opacity: 0.5; } to { opacity: 1; } }

@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    nav ul { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
