/*
Theme Name: Flow Theme
Theme URI: https://autoflowbuild.com
Author: Autoflowbuild
Author URI: https://autoflowbuild.com
Description: Industrial Tech Noir theme for B2B automation agency
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flow-theme
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --color-black: #050505;
    --color-white: #FFFFFF;
    --color-gray-900: #0A0A0A;
    --color-gray-800: #1A1A1A;
    --color-gray-700: #2D2D2D;
    --color-gray-600: #4A4A4A;
    --color-gray-500: #6B7280;
    --color-gray-400: #9CA3AF;
    --color-gray-300: #D1D5DB;

    --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;

    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-black);
    color: var(--color-white);
}

::selection {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

/* ==========================================================================
   Grain Overlay
   ========================================================================== */

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Glassmorphism
   ========================================================================== */

.glass {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Logo Ticker Animation
   ========================================================================== */

.logo-ticker {
    animation: ticker 40s linear infinite;
}

.logo-ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

#site-header {
    transition: all 0.3s ease;
}

#site-header.scrolled .glass {
    background: rgba(5, 5, 5, 0.95);
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    color: var(--color-black);
    background-color: var(--color-white);
    border-radius: 9999px;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background-color: var(--color-gray-300);
    transform: scale(1.02);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    color: var(--color-white);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ==========================================================================
   Hide Astra Theme Elements (cleanup)
   ========================================================================== */

.ast-site-header-wrap,
.site-header-primary-section-left,
.site-header-primary-section-center,
.site-header-primary-section-right,
.ast-builder-header-row,
#ast-hf-menu-1,
.ast-hfb-header,
.astra-hfb-header,
.ast-primary-header-bar,
#astra-header-toggle,
.ast-header-break-point,
.ast-mobile-menu-wrap,
.ast-below-header-bar,
.ast-above-header-bar,
.site-branding,
.ast-site-identity,
[class*="astra-"],
[class*="ast-"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Ensure Flow Theme header shows */
#site-header,
#site-header * {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#site-header nav {
    display: flex !important;
}

#site-header .glass {
    display: block !important;
}
