/* ========================================
   REKVIA BASE CSS
   Version 4.0.0 - BRICKS BUILDER
   Updated: February 2026
   Loaded on: ALL PAGES
   
   CHANGELOG v4.0.0:
   - Removed all Elementor/Astra/ShopEngine references
   - Added --rekvia-* variables for rekvia-woo.css compatibility
   - Removed element-level typography (h1-h6, p, a) — Bricks Theme Styles handles this
   - Removed universal reset (* { margin:0 }) — conflicts with Bricks
   - Fixed unclosed comment block (line 807-867 in v3.0.4)
   - Fixed orphan CSS (line 870 in v3.0.4)
   - Removed Font Awesome font-face override (Bricks uses own icon system)
   - Removed Georgia/Lato font-faces (not used in Bricks design system)
   ======================================== */

/* ========================================
   FONT FACE DECLARATIONS
   ======================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('/wp-content/uploads/fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('/wp-content/uploads/fonts/inter-latin-700-normal.woff2') format('woff2');
}

/* ========================================
   CSS VARIABLES - DESIGN TOKENS
   
   Two naming systems coexist:
   --color-*    = legacy (used by forms, footer, search)
   --rekvia-*   = new (used by rekvia-woo.css, Bricks templates)
   Both resolve to the same values.
   ======================================== */

:root {
    /* === LEGACY COLOR TOKENS (--color-*) === */
    --color-header-font: #333;
    --color-body-font: #666;
    --color-secondary-font: #999;
    --color-cart-button: #28a745;
    --color-cart-button-hover: #218838;
    --color-primary-button: #0066cc;
    --color-primary-button-hover: #0052a3;
    --color-secondary-button: #fff;
    --color-secondary-button-hover: #e6f2ff;
    --color-link: #0066cc;
    --color-link-hover: #004080;
    --color-link-visited: #0066cc;
    --color-primary-button-text: #fff;
    --color-white: #fff;
    --color-light-bg: #f8f9fa;
    --color-border: #e5e5e5;
    --color-accent: #0066cc;
    --color-success: #28a745;
    --color-dark: #1a1a1a;

    /* === BRICKS DESIGN SYSTEM (--rekvia-*) === */
    /* Brand */
    --rekvia-primary: #1a1a2e;
    --rekvia-accent: #2563eb;
    --rekvia-accent-hover: #1d4ed8;

    /* B2B Trust Colors */
    --rekvia-success: #16a34a;
    --rekvia-warning: #f59e0b;
    --rekvia-error: #dc2626;

    /* Surfaces */
    --rekvia-bg: #ffffff;
    --rekvia-bg-alt: #f8f9fa;
    --rekvia-bg-card: #ffffff;
    --rekvia-border: #e5e7eb;

    /* Text */
    --rekvia-text: #333333;
    --rekvia-text-light: #6b7280;
    --rekvia-text-heading: #1a1a2e;

    /* Stock Status */
    --rekvia-in-stock: #16a34a;
    --rekvia-low-stock: #f59e0b;
    --rekvia-out-of-stock: #dc2626;
    --rekvia-on-order: #2563eb;

    /* === TYPOGRAPHY - Font Families === */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* === TYPOGRAPHY - Static Font Sizes (REM) === */
    --font-size-xs: 0.75rem;       /* 12px */
    --font-size-sm: 0.875rem;      /* 14px */
    --font-size-base: 1rem;        /* 16px */
    --font-size-md: 1.0625rem;     /* 17px */
    --font-size-lg: 1.125rem;      /* 18px */
    --font-size-xl: 1.25rem;       /* 20px */
    --font-size-2xl: 1.5rem;       /* 24px */
    --font-size-3xl: 1.75rem;      /* 28px */
    --font-size-4xl: 2rem;         /* 32px */
    --font-size-5xl: 2.625rem;     /* 42px */
    --font-size-6xl: 3.5rem;       /* 56px */

    /* === FLUID TYPOGRAPHY - clamp() === */
    --font-fluid-hero: clamp(1.375rem, 3.5vw + 0.5rem, 3.5rem);
    --font-fluid-h1: clamp(1.75rem, 4vw + 0.5rem, 3.5rem);
    --font-fluid-h2: clamp(1.5rem, 3vw + 0.5rem, 2.625rem);
    --font-fluid-h3: clamp(1.125rem, 2vw + 0.25rem, 1.75rem);
    --font-fluid-h4: clamp(1rem, 1.5vw + 0.25rem, 1.25rem);
    --font-fluid-body: clamp(1rem, 0.5vw + 0.875rem, 1.0625rem);
    --font-fluid-small: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
    --font-fluid-subtitle: clamp(1rem, 2vw + 0.25rem, 1.5rem);
    --font-fluid-category: clamp(1.125rem, 2vw + 0.25rem, 1.5rem);
    --font-fluid-stat: clamp(2rem, 4vw + 0.5rem, 2.625rem);
    --font-fluid-icon-title: clamp(0.9375rem, 1vw + 0.5rem, 1.125rem);
    --font-fluid-icon-desc: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);

    /* === SPACING - Horizontal (PX) === */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 100px;

    /* === SPACING - Vertical (REM) === */
    --spacing-v-xs: 0.5rem;
    --spacing-v-sm: 1rem;
    --spacing-v-md: 1.5rem;
    --spacing-v-lg: 2.5rem;
    --spacing-v-xl: 3.75rem;
    --spacing-v-xxl: 6.25rem;

    /* === SHADOWS === */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* === BORDER RADIUS === */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* === TRANSITIONS === */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* ========================================
   MINIMAL BASE STYLES
   Bricks Theme Styles handles typography,
   headings, links, buttons. Only add what
   Bricks does NOT control.
   ======================================== */

/* Focus styles for accessibility (Bricks doesn't set these) */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: 2.5em;
    left: -9999px;
    z-index: 999999999;
    text-decoration: underline;
}

.skip-link:focus {
    position: absolute;
    top: 7px;
    left: 6px;
    right: auto;
    z-index: 100000;
    display: block;
    padding: 15px 23px 14px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    line-height: normal;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.6s ease-out 0.4s backwards;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.6s ease-out 0.6s backwards;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-primary { color: var(--color-accent); }
.text-secondary { color: var(--color-body-font); }
.bg-light { background-color: var(--color-light-bg); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .brx-header,
    .brx-footer,
    .bricks-button {
        display: none;
    }

    body {
        background-color: #fff;
        color: #000;
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }
}

/* ========================================
   WPFORMS NEWSLETTER BUTTON
   ======================================== */

.wpforms-submit.signup-button {
    background-color: var(--color-primary-button);
    color: #fff;
    fill: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: var(--transition-base);
}

.wpforms-submit.signup-button:hover {
    background-color: var(--color-primary-button-hover);
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
}

.wpforms-submit.signup-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.12);
}

.wpforms-field-email input[type="email"] {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 15px;
    border: 2px solid var(--color-border);
    border-radius: 14px;
    transition: var(--transition-base);
}

.wpforms-field-email input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary-button);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ========================================
   WPFORMS CONFIRMATION MESSAGE
   ======================================== */

.wpforms-confirmation-container {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 24px 30px;
    border-radius: 12px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    animation: slideIn 0.4s ease-out;
    width: 100%;
    max-width: 520px;
}

.wpforms-confirmation-container p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: #166534;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.wpforms-confirmation-container p::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #22c55e;
    color: #fff;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .wpforms-confirmation-container {
        padding: 20px 20px;
        margin: 16px auto;
        max-width: 100%;
    }

    .wpforms-confirmation-container p {
        font-size: 15px;
    }

    .wpforms-confirmation-container p::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
        line-height: 20px;
        margin-right: 10px;
    }
}

@media (min-width: 600px) and (max-width: 767px) {
    .wpforms-confirmation-container {
        max-width: 480px;
    }
}

@media (max-width: 359px) {
    .wpforms-confirmation-container {
        padding: 16px 16px;
        margin: 12px auto;
        border-radius: 8px;
    }
}

/* ========================================
   HEADER SEARCH FIELD (FiboSearch/DGWT)
   ======================================== */

.dgwt-wcas-sf-wrapp {
    max-width: 600px;
    width: 100%;
}

.dgwt-wcas-search-input,
#dgwt-wcas-search-input-2 {
    width: 100%;
    min-width: 400px;
    padding: 12px 48px 12px 20px;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.dgwt-wcas-search-input:focus,
#dgwt-wcas-search-input-2:focus {
    outline: none;
    border-color: var(--color-primary-button);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.dgwt-wcas-search-submit {
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.dgwt-wcas-search-submit:hover .dgwt-wcas-ico-magnifier {
    fill: var(--color-primary-button);
}

.dgwt-wcas-ico-magnifier {
    fill: var(--color-secondary-font);
    transition: var(--transition-base);
}

.dgwt-wcas-search-input::placeholder {
    color: var(--color-secondary-font);
    opacity: 0.7;
}

@media (max-width: 884px) {
    .dgwt-wcas-search-input,
    #dgwt-wcas-search-input-2 {
        min-width: 300px;
    }
}

@media (max-width: 767px) {
    .dgwt-wcas-sf-wrapp {
        max-width: 100%;
    }

    .dgwt-wcas-search-input,
    #dgwt-wcas-search-input-2 {
        min-width: 250px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 359px) {
    .dgwt-wcas-search-input,
    #dgwt-wcas-search-input-2 {
        min-width: 180px;
        padding: 8px 36px 8px 14px;
        font-size: 15px;
    }
}

/* ========================================
   JETSEARCH CUSTOMIZATION
   ======================================== */

.jet-ajax-search__item-content {
    display: none;
}

.jet-ajax-search__item {
    padding: 12px 16px;
}

.jet-ajax-search__item-title {
    margin-bottom: 4px;
}

.jet-ajax-search__item-price {
    margin-top: 0;
}

/* ========================================
   END OF REKVIA BASE CSS (Bricks)
   ======================================== */
