/*
Theme Name: AvPro
Theme URI: https://avpro.at
Description: Custom WordPress theme for AvPro with Bootstrap 5 and Gutenberg support
Author: AvPro Team
Author URI: https://avpro.at
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avpro
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce, block-styles, wide-blocks

AvPro is a modern WordPress theme built with Bootstrap 5 and full Gutenberg support.
*/

:root {
    /* Primary Colors - Updated from draft.avpro.at */
    --avpro-primary: #005795;
    --avpro-primary-dark: #002a47;
    --avpro-secondary: #f9f9f9;
    --avpro-accent-red: #cc2b2b;

    /* Background Colors */
    --avpro-bg-light: #f2f2f7;
    --avpro-footer-bg: #e7e7e9;

    /* Text Colors */
    --avpro-text: #333333;
    --avpro-text-light: #666666;
    --avpro-text-muted: #999999;

    /* Border & Background */
    --avpro-border: #e5e5e5;
    --avpro-white: #ffffff;
    --avpro-black: #000000;

    /* Form Colors */
    --avpro-form-text: #005795;
    --avpro-form-bg: #ffffff;
    --avpro-form-border: #e5e5e5;

    /* Typography - Updated with Montserrat */
    --avpro-font-primary: Montserrat, Arial, Helvetica, sans-serif;
    --avpro-font-headings: Montserrat, Arial, Helvetica, sans-serif;
    --avpro-font-xs: 12px;
    --avpro-font-sm: 14px;
    --avpro-font-base: 17px;
    --avpro-font-md: 18px;
    --avpro-font-lg: 20px;
    --avpro-font-xl: 22px;
    --avpro-font-2xl: 28px;
    --avpro-line-height-base: 1.6;
    --avpro-line-height-heading: 1.2;
    --avpro-font-normal: 400;
    --avpro-font-medium: 500;
    --avpro-font-semibold: 600;
    --avpro-font-bold: 700;

    /* Spacing */
    --avpro-spacing-xs: 0.5rem;
    --avpro-spacing-sm: 1rem;
    --avpro-spacing-md: 1.5rem;
    --avpro-spacing-lg: 2rem;
    --avpro-spacing-xl: 3rem;
    --avpro-spacing-2xl: 4rem;

    /* Grid Spacing */
    --avpro-grid-gap: 1.92%;

    /* Border Radius - Signature Design from draft.avpro.at */
    --avpro-radius-full: 4px;
    --avpro-radius-xl: 40px;
    --avpro-radius-lg: 25px;
    --avpro-radius-md: 15px;
    --avpro-radius-sm: 5px;
    --avpro-radius-round: 100px;
    --avpro-radius: 8px;

    /* Shadows */
    --avpro-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --avpro-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --avpro-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --avpro-transition-fast: 0.2s ease;
    --avpro-transition-base: 0.3s ease;
    --avpro-transition-slow: 0.5s ease;

    /* Responsive Breakpoints */
    --avpro-breakpoint-sm: 640px;
    --avpro-breakpoint-md: 641px;
    --avpro-breakpoint-lg: 1025px;
    --avpro-breakpoint-xl: 1200px;
}

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

body {
    font-family: var(--avpro-font-primary);
    font-size: var(--avpro-font-base);
    line-height: var(--avpro-line-height-base);
    color: var(--avpro-text);
    background-color: var(--avpro-white);
}

/* Links */
a {
    color: var(--avpro-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--avpro-primary-dark);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--avpro-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--avpro-spacing-md);
}

/* Buttons - Pill-shaped (Signature Design) */
.btn-primary {
    background-color: var(--avpro-primary);
    border-color: var(--avpro-primary);
    border-radius: var(--avpro-radius-full);
    padding: 17px 40px;
    font-size: var(--avpro-font-lg);
    line-height: var(--avpro-line-height-base);
    font-weight: var(--avpro-font-normal);
    transition: var(--avpro-transition-base);
    border: none;
}

.btn-primary:hover {
    background-color: var(--avpro-primary-dark);
    border-color: var(--avpro-primary-dark);
}

.btn-secondary {
    background-color: var(--avpro-bg-light);
    border-color: var(--avpro-bg-light);
    color: var(--avpro-primary);
    border-radius: var(--avpro-radius-full);
    padding: 17px 40px;
    font-size: var(--avpro-font-lg);
    transition: var(--avpro-transition-base);
}

.btn-secondary:hover {
    background-color: var(--avpro-primary);
    color: var(--avpro-white);
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin-right: var(--avpro-spacing-md);
}

.alignright {
    float: right;
    margin-left: var(--avpro-spacing-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--avpro-secondary);
    border-radius: var(--avpro-radius-sm);
    box-shadow: var(--avpro-shadow-md);
    clip: auto !important;
    color: var(--avpro-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================================================
   SLIDER FILTER COMPONENT
   ============================================================================ */

.cat-step-slider {
    position: relative;
    margin: 0 0 20px 0 !important;
    padding: 40px 20px 20px 20px;
}

.cat-slider-line {
    height: 5px;
    background-color: var(--avpro-border);
    position: relative;
    top: 0;
    width: 100%;
    border-radius: 3px;
}

.cat-slider-dot {
    position: absolute;
    top: 40px;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--avpro-primary);
    transform: translateY(-50%);
    cursor: grab;
    transition: left 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease,
        transform 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 87, 149, 0.3);
}

.cat-slider-dot:hover {
    background-color: var(--avpro-primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 87, 149, 0.4);
}

.cat-slider-dot:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(0.95);
}

.cat-slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    position: relative;
}

.cat-slider-labels .step-label {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: var(--avpro-text-muted);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--avpro-radius-sm);
    transition: all 0.3s ease;
    user-select: none;
}

.cat-slider-labels .step-label:hover {
    background-color: var(--avpro-secondary);
    color: var(--avpro-white);
}

.cat-slider-labels .step-label.active {
    background-color: var(--avpro-primary);
    color: var(--avpro-white);
    font-weight: 600;
}

/* Product filtering */
.fusion-layout-column.grayed-out,
.product.grayed-out,
li.product.grayed-out,
article.product.grayed-out {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
    filter: grayscale(50%);
}

/* Slider filter container in sidebar */
.avpro-slider-filter-container {
    margin-bottom: var(--avpro-spacing-lg);
}

.avpro-category-sidebar .avpro-slider-filter-container {
    width: 100%;
}

/* Hide product cat data (it's just for filtering) */
.product-cat-data {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .cat-step-slider {
        height: auto !important;
        padding: 0;
    }

    .cat-slider-line {
        display: none;
    }

    .cat-slider-dot {
        display: none;
    }

    .cat-slider-labels {
        flex-direction: column;
        gap: 5px;
        margin-top: 0;
    }

    .cat-slider-labels .step-label {
        width: 100%;
        text-align: left;
        padding: 10px 15px;
    }
}

/* ============================================================================
   FOOTER STYLES
   ============================================================================ */

/* Newsletter Section */
.newsletter-section {
    background-color: var(--avpro-primary);
}

.newsletter-section h3 {
    color: var(--avpro-white);
    font-weight: var(--avpro-font-semibold);
}

.newsletter-section .btn {
    border-radius: var(--avpro-radius-full);
    padding: 12px 30px;
    font-weight: var(--avpro-font-medium);
    transition: var(--avpro-transition-base);
}

.newsletter-section .btn:hover {
}

/* Main Footer */
.site-footer {
    background-color: var(--avpro-footer-bg);
    font-size: var(--avpro-font-base);
    line-height: var(--avpro-line-height-base);
}

.site-footer h3 {
    color: var(--avpro-primary);
    font-size: 17px;
    font-weight: var(--avpro-font-semibold);
    text-transform: capitalize;
    margin-bottom: 20px;
}

.site-footer p {
    color: var(--avpro-text);
    margin-bottom: 0.5rem;
}

/* Footer Navigation Links */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--avpro-text);
    text-decoration: none;
    transition: var(--avpro-transition-fast);
}

.footer-nav a:hover {
    color: var(--avpro-primary);
    padding-left: 5px;
}

/* Partner Logos */
.partner-logos img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
    transition: var(--avpro-transition-base);
}

.partner-logos img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Social Links */
.social-links a {
    background-color: var(--avpro-border);
    color: var(--avpro-primary);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--avpro-transition-base);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--avpro-black) !important;
}

/* Mobile responsive footer */
@media (max-width: 767px) {
    .newsletter-section {
        padding: 20px 0;
    }

    .site-footer {
        padding: 40px 0 20px;
    }

    .site-footer h3 {
        margin-bottom: 15px;
    }
}

/* ============================================================================
   CONTENT WIDTH & GUTENBERG ALIGNMENT
   ============================================================================ */
/*
 * NOTE: Content width and Gutenberg alignment styles have been moved to
 * assets/scss/components/_content-width.scss and compiled to assets/css/theme.css
 * See theme.scss for the source files.
 */
