/*
Theme Name: Roxent - Dark
Theme URI:
Author: franse
Author URI:
Description:
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roxent-dark
Tags:
*/

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

/* ==========================================================================
   Global Selection
   ========================================================================== */
::selection {
    background: var(--wp--preset--color--primary);
    color: #ffffff;
}

/* ==========================================================================
   Block Editor Utility Classes
   Add these to the "Additional CSS class(es)" field on your blocks.
   ========================================================================== */

/* 1. Header: Glassmorphism effect */
.is-style-glass-header {
    background: color-mix(in srgb, var(--wp--preset--color--base) 78%, transparent) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--wp--preset--color--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* 2. Buttons: Hover states & Ghost variation */
.wp-block-button__link {
    transition: transform 0.12s, box-shadow 0.2s, background 0.2s, border-color 0.2s !important;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px -8px var(--wp--preset--color--primary);
}

.is-style-ghost-button .wp-block-button__link {
    background: transparent !important;
    color: var(--wp--preset--color--foreground) !important;
    border: 1px solid var(--wp--preset--color--border-strong) !important;
    box-shadow: none !important;
}

.is-style-ghost-button .wp-block-button__link:hover {
    border-color: var(--wp--preset--color--foreground) !important;
    transform: none; /* Ghost buttons don't lift in original design */
}

/* 3. Hero Background Glow */
/* Add this class to the outer Group Block wrapping your Hero section */
.is-style-hero-glow {
    position: relative;
    overflow: hidden;
}

.is-style-hero-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(900px 520px at 78% -10%, color-mix(in srgb, var(--wp--preset--color--primary) 26%, transparent), transparent 60%),
            radial-gradient(700px 600px at 8% 110%, color-mix(in srgb, var(--wp--preset--color--primary) 9%, transparent), transparent 55%);
    pointer-events: none;
    z-index: -1;
}

/* 4. Service / Feature Cards (Animated Top Border) */
/* Add this to a Group block inside your Grid/Columns */
.roxent-service-card {
    position: relative;
    transition: background 0.25s !important;
    overflow: hidden;
}

.roxent-service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--wp--preset--color--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.roxent-service-card:hover {
    background: var(--wp--preset--color--surface-alt) !important;
}

.roxent-service-card:hover::before {
    transform: scaleY(1);
}

/* 5. Audience Cards (Border and Y-lift on hover) */
.roxent-audience-card {
    transition: border-color 0.2s, transform 0.2s !important;
}

.roxent-audience-card:hover {
    border-color: var(--wp--preset--color--border-strong) !important;
    transform: translateY(-4px);
}

/* 6. CTA Band Gradient Background */
.is-style-gradient-cta {
    position: relative;
    background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--primary) 88%, #000), color-mix(in srgb, var(--wp--preset--color--primary) 55%, var(--wp--preset--color--surface))) !important;
    overflow: hidden;
}

.is-style-gradient-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(120% 120% at 80% 0%, #000, transparent 70%);
}

/* 7. Pulsing Dot Animation (For the "Fluke-sertifitseeritud" chip) */
.anim-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--wp--preset--color--success);
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(43,211,122,.6);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(43,211,122,.5); }
    70%  { box-shadow: 0 0 0 9px rgba(43,211,122,0); }
    100% { box-shadow: 0 0 0 0 rgba(43,211,122,0); }
}