/**
 * custom-ux.css — Signify Dark Child Theme
 * Website Frontend Manager — noelindustriesllc.com
 *
 * All UX CSS overrides live here, organized by page/section.
 * Mobile-first: use min-width breakpoints.
 * Test at: 375px, 768px, 1280px.
 *
 * Avoid !important unless overriding Elementor inline styles (document when used).
 * Use Elementor CSS variables where possible: var(--e-global-color-primary), etc.
 */


/* ═══════════════════════════════════════════════════════════════
   GLOBAL / SITEWIDE
═══════════════════════════════════════════════════════════════ */

/* Global styles that apply across all pages go here */


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */

/* Header and nav menu styles go here */


/* ═══════════════════════════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════════════════════════ */

/* ── Hero: animated particle mesh + scroll effects ──────────────
   Applied: 2026-02-27
   Issues: HO-1 (no hero), HO-2 (brand H1 only), HO-3 (no CTA above fold), FP-5 (logo size)
   JS counterpart: hero-animation.js (enqueued via functions-ux.php)
─────────────────────────────────────────────────────────────── */

/* Hero container: full-height dark section */
.custom-header.header-media {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0d0f14;
    isolation: isolate; /* contain mix-blend-mode to this section */
}

/* Remove duplicate logo-as-CSS-background.
   Theme renders the header image twice: once as background-image on
   .wrapper::before, and again as an <img>. We keep the <img> and
   remove the background duplicate.
   !important required: overrides theme's own inline <style> block. */
.custom-header .wrapper::before {
    content: none !important;
}

/* Allow wrapper to fill hero height and center its content */
.custom-header .wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: inherit;
    padding: 2.5rem 1rem;
    position: relative;
    z-index: 2;
}

/* Canvas injected by hero-animation.js — sits behind all content */
#ni-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

/* Logo container chain */
.custom-header .custom-header-media,
#wp-custom-header,
.wp-custom-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo image: constrained size + screen blend.
   Logo is a black PNG with white lettering.
   mix-blend-mode: screen makes the black background transparent against
   the dark hero — white lettering floats directly over the canvas mesh.
   drop-shadow adds a subtle green glow that ties the logo into the
   teal-green accent particles surrounding it. */
.wp-custom-header img {
    max-width: clamp(180px, 38vw, 400px);
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen;
    transition: transform 0.08s linear, opacity 0.08s linear;
    will-change: transform, opacity;
}

/* Zero out the theme's built-in overlay — canvas handles atmosphere */
.custom-header-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Scroll fade-in: initial hidden state (hero-animation.js triggers .ni-visible) */
.ni-fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.ni-fade-in.ni-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger product columns: each card fades in slightly after the previous */
.wp-block-column:nth-child(2).ni-fade-in { transition-delay: 0.1s; }
.wp-block-column:nth-child(3).ni-fade-in { transition-delay: 0.2s; }
.wp-block-column:nth-child(4).ni-fade-in { transition-delay: 0.3s; }
.wp-block-column:nth-child(5).ni-fade-in { transition-delay: 0.4s; }
.wp-block-column:nth-child(6).ni-fade-in { transition-delay: 0.5s; }

/* ── Hero: tagline + CTA button ─────────────────────────────────────
   Applied: 2026-02-27 — Issue HO-3 (no CTA above fold)
   JS counterpart: hero-animation.js (section 1b + 1c)
   Font: Oswald 600 enqueued via functions-ux.php
─────────────────────────────────────────────────────────────── */

/* Tagline + CTA wrapper — injected below logo by JS */
.ni-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.75rem;
    text-align: center;
    position: relative;
    z-index: 2;
    will-change: opacity, transform;
    transition: opacity 0.08s linear, transform 0.08s linear;
}

/* Two-line industrial tagline — typed character by character */
.ni-hero-tagline {
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(1.35rem, 3.8vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(140, 168, 190, 0.92); /* steel/aluminum — matches neutral particles */
    line-height: 1.45;
    margin: 0;
    min-height: 3em; /* reserves space before text is typed — prevents layout shift */
}

/* Blinking cursor — teal-green accent, sharp digital blink */
.ni-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: rgba(72, 210, 130, 0.85);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: ni-blink 0.75s step-end infinite;
}
.ni-cursor--hidden { visibility: hidden; }
.ni-cursor--done   { animation: none; opacity: 0; transition: opacity 0.4s ease; }

@keyframes ni-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* CTA button — hidden until typewriter completes */
.ni-hero-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 2.2rem;
    background-color: rgba(72, 210, 130, 1);
    color: #0d0f14;
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px; /* barely rounded — industrial, not bubbly */
    border: 1px solid rgba(72, 210, 130, 0.6);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease,
                box-shadow 0.25s ease, background-color 0.2s ease;
    will-change: opacity, transform;
}
/* Reveal state — added by JS after typewriter completes */
.ni-hero-cta.ni-cta-reveal {
    opacity: 1;
    transform: translateY(0);
    animation: ni-cta-pulse 2.8s ease-in-out 0.6s infinite;
}
/* Subtle teal glow pulse — draws eye without being distracting */
@keyframes ni-cta-pulse {
    0%, 100% { box-shadow: 0 0 0   0px rgba(72, 210, 130, 0);    }
    50%       { box-shadow: 0 0 14px 4px rgba(72, 210, 130, 0.28); }
}
.ni-hero-cta:hover,
.ni-hero-cta:focus {
    background-color: rgba(90, 230, 148, 1);
    box-shadow: 0 0 20px 6px rgba(72, 210, 130, 0.45);
    text-decoration: none;
    outline: none;
}

@media (max-width: 768px) {
    .custom-header.header-media { min-height: 55vh; }
    .wp-custom-header img { max-width: clamp(150px, 65vw, 260px); }
    .ni-hero-text      { margin-top: 1.25rem; }
    .ni-hero-tagline   { font-size: clamp(1.1rem, 5.5vw, 1.5rem); letter-spacing: 0.08em; }
    .ni-hero-cta       { font-size: 0.85rem; padding: 0.65rem 1.8rem; margin-top: 1.2rem; }
}
@media (max-width: 480px) {
    .custom-header.header-media { min-height: 45vh; }
    .ni-hero-tagline   { font-size: clamp(1rem, 6vw, 1.35rem); }
    .ni-hero-cta       { padding: 0.6rem 1.5rem; letter-spacing: 0.10em; }
}


/* ═══════════════════════════════════════════════════════════════
   SHOP PAGE (WooCommerce archive)
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   PRODUCT PAGE (WooCommerce single product)
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   CART PAGE
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   MY ACCOUNT PAGE
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
