/*
Theme Name: Avozova
Theme URI: https://ashkt.store/avozova
Author: ASH KT Themes
Author URI: https://ashkt.com
Description: Avozova is a lightweight, responsive WordPress theme with a drag-and-drop header and footer builder. By ASH KT Themes, A Brand of ASH KT GLOBAL.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avozova
Tags: blog, custom-colors, custom-logo, custom-menu, flexible-header, footer-widgets, one-column, two-columns, right-sidebar, threaded-comments, translation-ready
*/

/*
Avozova, Copyright (c) 2026 ASH KT GLOBAL.
Avozova is distributed under the terms of the GNU GPL.
*/


/* =========================================================
 * AVOZOVA - style.css (MASTER)
 * ---------------------------------------------------------
 * FILE ORDER (top to bottom):
 *   1. :root Variables
 *   2. Global Reset & Box Sizing
 *   3. HTML Document
 *   4. Body - Global Page Base
 *   5. Global Media - Images
 *   6. Global Headings
 *   7. Global Links
 *   8. Accessibility, Reduced Motion & WordPress Core Classes
 *   9. Site Wrapper & Content Container
 *  10. Header Layout
 *  11. Header Elements -> header-elements.css
 *  12. Shared Elements -> header-elements.css
 *  13. Main Content
 *  14. Footer Layout
 *  15. Footer Elements -> footer-elements.css
 *  16. Responsive
 * ========================================================= */


/* =========================================================
 * 1. :root VARIABLES
 * ========================================================= */

:root {

    /* =====================================================
 * 1. Brand Colors & Semantic Mapping
 * ===================================================== */

--avozova-color-bg: #EEF3F7;
--avozova-color-surface: #F8FAFC;
--avozova-color-header: #D9E3EB;
--avozova-color-footer: #D9E3EB;
--avozova-color-border: #D3DEE8;
--avozova-color-border-hover: #D2DDE7;
--avozova-color-header-border: #D2DDE7;

--avozova-color-heading: #1F2937;
--avozova-color-text: #475569;
--avozova-color-link: #3B82F6;
--avozova-color-link-hover: #2563EB;

--avozova-color-primary: #B87333;
--avozova-color-gold: #B89B5E;
--avozova-color-white: #FFFFFF;

--avozova-color-on-accent: var(--avozova-color-white);
--avozova-color-toast-bg: var(--avozova-color-heading);
--avozova-color-toast-text: var(--avozova-color-white);
--avozova-color-transparent: transparent;
--avozova-color-overlay: rgba(31, 41, 55, 0.55);


    /* =====================================================
     * 2. Typography - 10-Tier Ascending Scale
     * ===================================================== */

    --avozova-font-size-1: 11px;
    --avozova-font-size-2: 13px;
    --avozova-font-size-3: 14px;
    --avozova-font-size-4: 16px;
    --avozova-font-size-5: 18px;
    --avozova-font-size-6: 20px;
    --avozova-font-size-7: 24px;
    --avozova-font-size-8: 28px;
    --avozova-font-size-9: 32px;
    --avozova-font-size-10: 40px;


    /* =====================================================
     * 3. Widths - 10-Tier Descending Scale
     *    (for grid / columns only)
     * ===================================================== */

    --avozova-width-1: 100%;
    --avozova-width-2: 75%;
    --avozova-width-3: 50%;
    --avozova-width-4: 33.333%;
    --avozova-width-5: 25%;
    --avozova-width-6: 20%;
    --avozova-width-7: 16.666%;
    --avozova-width-8: 12.5%;
    --avozova-width-9: 10%;
    --avozova-width-10: 5%;


    /* =====================================================
     * 4. Heights - 10-Tier Ascending Scale
     * ===================================================== */

    --avozova-height-1: 36px;
    --avozova-height-2: 46px;
    --avozova-height-3: 54px;
    --avozova-height-4: 72px;
    --avozova-height-5: 110px;
    --avozova-height-6: 140px;
    --avozova-height-7: 180px;
    --avozova-height-8: 240px;
    --avozova-height-9: 320px;
    --avozova-height-10: 400px;


    /* =====================================================
     * 5. Spacing & Padding - 10-Tier Ascending Scale
     * ===================================================== */

    --avozova-space-1: 4px;
    --avozova-space-2: 8px;
    --avozova-space-3: 16px;
    --avozova-space-4: 24px;
    --avozova-space-5: 32px;
    --avozova-space-6: 40px;
    --avozova-space-7: 48px;
    --avozova-space-8: 64px;
    --avozova-space-9: 80px;
    --avozova-space-10: 96px;


    /* =====================================================
     * 6. Border Radius
     *    radius-1 to 5 are kept as they were for older code
     *    (radius-5 = fully round). New values 6 to 10 are in ascending order.
     * ===================================================== */

    --avozova-radius-1: 2px;
    --avozova-radius-2: 4px;
    --avozova-radius-3: 8px;
    --avozova-radius-4: 12px;
    --avozova-radius-5: 9999px;
    --avozova-radius-6: 14px;
    --avozova-radius-7: 16px;
    --avozova-radius-8: 20px;
    --avozova-radius-9: 24px;
    --avozova-radius-10: 32px;
    --avozova-radius-full: 9999px;


    /* =====================================================
     * 7. Shadows & Elevation System (1 to 10, rising elevation)
     * ===================================================== */

    --avozova-shadow: 0 12px 35px rgba(31, 41, 55, 0.10);
    --avozova-shadow-1: 0 1px 2px rgba(31, 41, 55, 0.05);
    --avozova-shadow-2: 0 2px 4px rgba(31, 41, 55, 0.08);
    --avozova-shadow-3: 0 6px 20px rgba(31, 41, 55, 0.12);
    --avozova-shadow-4: 0 14px 40px rgba(31, 41, 55, 0.15);
    --avozova-shadow-5: 0 20px 60px rgba(31, 41, 55, 0.20);
    --avozova-shadow-6: 0 24px 70px rgba(31, 41, 55, 0.22);
    --avozova-shadow-7: 0 28px 80px rgba(31, 41, 55, 0.24);
    --avozova-shadow-8: 0 32px 90px rgba(31, 41, 55, 0.26);
    --avozova-shadow-9: 0 36px 100px rgba(31, 41, 55, 0.28);
    --avozova-shadow-10: 0 40px 120px rgba(31, 41, 55, 0.30);


    /* =====================================================
     * 8. Layout & Container System
     * ===================================================== */

    --avozova-container-width: 1200px;
    --avozova-container-spacing: 24px;
    --avozova-layout-gap: 32px;
    --avozova-section-spacing: 48px;
    --avozova-header-offset: 68px;


    /* =====================================================
     * 9. Sidebar System
     *    (one set shared by Top / Right / Bottom)
     * ===================================================== */

    --avozova-widget-gap: var(--avozova-space-4);
    --avozova-row-gap: var(--avozova-space-5);
    --avozova-widget-padding: var(--avozova-space-4);
    --avozova-widget-radius: var(--avozova-radius-4);
    --avozova-sidebar-section-spacing: var(--avozova-space-5);
    --avozova-sidebar-width: 320px;
    --avozova-sidebar-width-tablet: 280px;


    /* =====================================================
     * 10. Font Families & Weights
     * ===================================================== */

    --avozova-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --avozova-font-heading: var(--avozova-font-body);
    --avozova-font-weight-normal: 400;
    --avozova-font-weight-medium: 500;
    --avozova-font-weight-semibold: 600;
    --avozova-font-weight-bold: 700;


    /* =====================================================
     * 11. Line Heights
     * ===================================================== */

    --avozova-line-height-1: 1.2;
    --avozova-line-height-2: 1.3;
    --avozova-line-height-3: 1.5;
    --avozova-line-height-4: 1.7;
    --avozova-line-height-5: 1.9;


    /* =====================================================
     * 12. Status Colors
     * ===================================================== */

    --avozova-color-success: #16A34A;
    --avozova-color-error: #DC2626;
    --avozova-color-warning: #D97706;
    --avozova-color-info: #0284C7;


    /* =====================================================
     * 13. Form & Input
     * ===================================================== */

    --avozova-input-bg: var(--avozova-color-white);
    --avozova-input-border: var(--avozova-color-border);
    --avozova-input-border-hover: var(--avozova-color-border-hover);
    --avozova-input-focus: var(--avozova-color-primary);
    --avozova-input-radius: var(--avozova-radius-2);
    --avozova-input-height: var(--avozova-height-2);


    /* =====================================================
     * 14. Z-index Scale
     * ===================================================== */

    --avozova-z-1: 10;
    --avozova-z-2: 100;
    --avozova-z-header: 1000;
    --avozova-z-dropdown: 1100;
    --avozova-z-modal: 1200;


    /* =====================================================
     * 15. Motion
     * ===================================================== */

    --avozova-transition-fast: 0.15s ease;
    --avozova-transition: 0.3s ease;
    --avozova-transition-slow: 0.5s ease;

        /* =====================================================
     * 16. Control Sizes
     *     Used by the shared toggle (front end). The same values
     *     are mirrored in avozova-customizer.css for the Customizer.
     * ===================================================== */

    --avozova-square-size: 25px;
    --avozova-icon-size: 14px;
}


/* =========================================================
 * 2. GLOBAL RESET & BOX SIZING
 *
 * Applies consistent box-sizing behavior to all HTML
 * elements and their pseudo-elements across the website.
 * ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
 * 3. HTML DOCUMENT
 *
 * Defines the global behavior of the HTML document,
 * including smooth scrolling.
 * ========================================================= */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


/* =========================================================
 * 4. BODY — GLOBAL PAGE BASE
 *
 * Defines the default background, text color, typography,
 * spacing, and visual behavior of the entire page body.
 * ========================================================= */

body {

    /* Background & Text Colors */

    background-color: var(--avozova-color-bg);
    color: var(--avozova-color-text);


    /* Typography */

    font-family: var(--avozova-font-body);

    font-size: var(--avozova-font-size-4);
    line-height: var(--avozova-line-height-4);
    overflow-wrap: break-word;


    /* Spacing */

    margin: 0;
    padding: 0;


    /* Font Rendering */

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;


    /* Visual Transitions */

    transition:
        background-color var(--avozova-transition),
        color var(--avozova-transition);
}


/* =========================================================
 * 5. GLOBAL MEDIA — IMAGES
 *
 * Controls the default display behavior and responsive
 * sizing of images across the website.
 * ========================================================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

video {
    max-width: 100%;
    height: auto;
}

iframe,
embed,
object {
    max-width: 100%;
}


/* =========================================================
 * 6. GLOBAL HEADINGS — DEFAULT HEADING STYLES
 *
 * Defines the default text color, font family and line height
 * for all heading elements (H1 to H6) across the website.
 * ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--avozova-color-heading);
    font-family: var(--avozova-font-heading);
    line-height: var(--avozova-line-height-2);
}


/* =========================================================
 * 7. GLOBAL LINKS — DEFAULT LINK STYLES
 *
 * Defines the default color and text decoration for links
 * across the website, including their hover state.
 * ========================================================= */

a {
    color: var(--avozova-color-primary);
    text-decoration: none;
}


/* Link Hover State */

a:hover {
    color: var(--avozova-color-gold);
}


/* =========================================================
 * 8. ACCESSIBILITY, REDUCED MOTION & WordPress CORE CLASSES
 *
 * Provides visible keyboard focus indicators, respects the
 * user's operating system motion preferences, and styles the
 * classes WordPress core and the theme review expect
 * (screen reader text, alignment, captions, sticky posts).
 * ========================================================= */


/* 8.1. KEYBOARD FOCUS INDICATORS */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--avozova-color-primary);
    outline-offset: 2px;
}


/* 8.2. REDUCED MOTION SUPPORT */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* 8.3. SCREEN READER TEXT */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.screen-reader-text:focus {
    background-color: var(--avozova-color-surface);
    box-shadow: var(--avozova-shadow-3);
    clip: auto;
    clip-path: none;
    color: var(--avozova-color-heading);
    display: block;
    font-size: var(--avozova-font-size-3);
    font-weight: var(--avozova-font-weight-bold);
    height: auto;
    left: var(--avozova-space-2);
    line-height: normal;
    padding: var(--avozova-space-3) var(--avozova-space-4);
    text-decoration: none;
    top: var(--avozova-space-2);
    width: auto;
    z-index: var(--avozova-z-modal);
}


/* 8.4. CONTENT ALIGNMENT (editor image and block alignment) */

.alignleft {
    float: left;
    margin: 0 var(--avozova-space-4) var(--avozova-space-3) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--avozova-space-3) var(--avozova-space-4);
}

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


/* 8.5. CAPTIONS & GALLERIES */

.wp-caption {
    max-width: 100%;
    margin-bottom: var(--avozova-space-3);
}

.wp-caption-text,
.gallery-caption {
    font-size: var(--avozova-font-size-2);
    line-height: var(--avozova-line-height-3);
    text-align: center;
}


/* 8.6. STICKY POSTS & POST AUTHOR COMMENTS
 *
 * Intentionally minimal. The classes exist so that the theme
 * review finds them; Customizer options can style them later. */

.sticky,
.bypostauthor {
    position: relative;
}


/* =========================================================
 * 9. SITE WRAPPER & CONTENT CONTAINER
 *
 * Defines the main website wrapper and the core content
 * container used to structure the frontend layout.
 * ========================================================= */


/* 9.1. SITE WRAPPER */

.avozova-site-wrapper {
    display: flow-root;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--avozova-color-transparent);
}


/* 9.2. CONTENT CONTAINER
 *
 * Container layout presets (Default, Normal, Full, Fluid,
 * and Narrow) are controlled by inc/dynamic-css/container.php.
 * These declarations provide the default fallback behavior.
 *
 * The max-width adds the side padding to the container width,
 * so the content area is exactly --avozova-container-width wide,
 * the same as the header and footer content.
 */

.avozova-container {
    width: 100%;
    max-width: calc(var(--avozova-container-width) + (var(--avozova-container-spacing) * 2));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--avozova-container-spacing);
    padding-right: var(--avozova-container-spacing);
}


/* =========================================================
 * 10. HEADER LAYOUT
 *
 * Defines the main header structure, including its
 * wrapper, container, rows, heights, borders, spacing,
 * columns, alignment, and controls.
 * ========================================================= */


/* ---------------------------------------------------------
 * 10.1. HEADER BASE
 *
 * Controls the overall header position, stacking order,
 * width, spacing, and background.
 * --------------------------------------------------------- */

.avozova-header {
    position: relative;
    z-index: var(--avozova-z-header);
    width: 100%;
    margin-bottom: var(--avozova-space-5);
    background: var(--avozova-color-header);
}


/* ---------------------------------------------------------
 * 10.2. HEADER CONTAINER
 *
 * Controls the header content width, horizontal alignment,
 * flex behavior, and internal spacing.
 * --------------------------------------------------------- */

.avozova-header-container {
    width: min(
        var(--avozova-container-width),
        calc(100% - (var(--avozova-container-spacing) * 2))
    );
    margin: 0 auto;

    flex: 0 1 auto;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: var(--avozova-space-4);
}


/* ---------------------------------------------------------
 * 10.3. HEADER ROWS
 *
 * Defines the shared layout and background behavior
 * of all header rows.
 * --------------------------------------------------------- */

.avozova-header-row {
    width: 100%;
    background: var(--avozova-color-header);

    display: flex;
    align-items: center;
}


/* ---------------------------------------------------------
 * 10.4. HEADER ROW HEIGHTS
 *
 * Defines the minimum height of the above, primary,
 * and below header rows using their respective variables.
 * --------------------------------------------------------- */

.avozova-header-row-above {
    min-height: var(--avozova-above-height, var(--avozova-height-2));
}

.avozova-header-row-primary {
    min-height: var(--avozova-main-height, var(--avozova-height-4));
}

.avozova-header-row-below {
    min-height: var(--avozova-below-height, var(--avozova-height-1));
}


/* ---------------------------------------------------------
 * 10.5. HEADER ROW BORDERS
 *
 * Defines the default bottom border for all header rows.
 * Footer rows use the same rule (see 14.5).
 * --------------------------------------------------------- */

.avozova-header-row {
    border-bottom: 1px solid var(--avozova-color-border);
}


/* ---------------------------------------------------------
 * 10.6. HEADER ROW CONTAINER SPACING
 *
 * Controls the vertical padding inside the header
 * container for all three header rows.
 *
 * Layout presets are controlled by
 * inc/dynamic-css/container.php.
 * --------------------------------------------------------- */

.avozova-header-row-above .avozova-header-container,
.avozova-header-row-primary .avozova-header-container,
.avozova-header-row-below .avozova-header-container {
    padding: var(--avozova-space-2) 0;
}


/* ---------------------------------------------------------
 * 10.7. HEADER COLUMNS
 *
 * Defines the flexible column structure and alignment
 * inside each header row.
 * --------------------------------------------------------- */

.avozova-header-column {
    flex: 1 1 0;
    min-width: 0;

    display: flex;
    align-items: center;

    gap: var(--avozova-space-3);
}


/* ---------------------------------------------------------
 * 10.8. HEADER COLUMN ALIGNMENT
 *
 * Controls the horizontal alignment of left, center,
 * and right header columns.
 * --------------------------------------------------------- */

.avozova-header-left {
    justify-content: flex-start;
}

.avozova-header-center {
    justify-content: center;
}

.avozova-header-right {
    justify-content: flex-end;
}


/* ---------------------------------------------------------
 * 10.9. HEADER CONTROLS
 *
 * Defines the flex layout and spacing of header controls
 * while preventing them from shrinking.
 * --------------------------------------------------------- */

.avozova-header-controls {
    display: flex;
    align-items: center;
    gap: var(--avozova-space-2);
    flex-shrink: 0;
}


/* =========================================================
 * 11. HEADER ELEMENTS
 * ---------------------------------------------------------
 * Site Title, Navigation and Search CSS is maintained
 * separately in header-elements.css.
 * ========================================================= */


/* =========================================================
 * 12. SHARED ELEMENTS
 * ---------------------------------------------------------
 * Button, Button 2 and Social Icons CSS is maintained
 * separately in header-elements.css.
 * ========================================================= */


/* =========================================================
 * 13. MAIN CONTENT
 * ========================================================= */


/* Content + Sidebar Layout
 *
 * The right sidebar width comes from --avozova-sidebar-width in :root.
 * On tablet, the Responsive section applies --avozova-sidebar-width-tablet.
 */

.avozova-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--avozova-sidebar-width);
    gap: var(--avozova-layout-gap);
    align-items: start;
    width: 100%;
}


/* Shared Cards & Boxes */

.avozova-content-box,
article,
.avozova-card {
    background: var(--avozova-color-surface);
    border: 1px solid var(--avozova-color-border);
    box-shadow: var(--avozova-shadow);
    padding: var(--avozova-space-4);
}


/* The space between sidebar widgets is not set here.
 * The gap between the widgets of the Top / Right / Bottom sidebar comes
 * from the gap (--avozova-widget-gap) of each sidebar container
 * (in the theme's sidebar.css and the Pro plugin's top-bottom-sidebar.css). */


/* =========================================================
 * 14. FOOTER LAYOUT
 *
 * Defines the complete footer structure, including its
 * wrapper, container, rows, heights, borders, spacing,
 * columns, alignment, and controls.
 * ========================================================= */


/* ---------------------------------------------------------
 * 14.1. FOOTER BASE
 *
 * Controls the overall footer position, width, spacing,
 * background, and default text color.
 * --------------------------------------------------------- */

.avozova-footer {
    position: relative;
    width: 100%;
    margin-top: var(--avozova-space-5);
    background-color: var(--avozova-color-footer);
    color: var(--avozova-color-text);
}


/* ---------------------------------------------------------
 * 14.2. FOOTER CONTAINER
 *
 * Controls the footer content width, horizontal alignment,
 * flex behavior, and internal spacing.
 * --------------------------------------------------------- */

.avozova-footer-container {
    width: min(
        var(--avozova-container-width),
        calc(100% - (var(--avozova-container-spacing) * 2))
    );
    margin: 0 auto;

    flex: 0 1 auto;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: var(--avozova-space-4);
}


/* ---------------------------------------------------------
 * 14.3. FOOTER ROWS
 *
 * Defines the shared layout and background behavior
 * of all footer rows.
 * --------------------------------------------------------- */

.avozova-footer-row {
    width: 100%;

    display: flex;
    align-items: stretch;

    background-color: var(--avozova-color-footer);
}


/* ---------------------------------------------------------
 * 14.4. FOOTER ROW HEIGHTS
 *
 * Footer row heights are provided by the footer renderer
 * through inline min-height styles.
 * --------------------------------------------------------- */


/* ---------------------------------------------------------
 * 14.5. FOOTER ROW BORDERS
 *
 * Defines the default top border for all footer rows.
 * Mirror of the header rows' bottom border (see 10.5):
 * same width, style and color, only the side differs.
 * --------------------------------------------------------- */

.avozova-footer-row {
    border-top: 1px solid var(--avozova-color-border);
}


/* ---------------------------------------------------------
 * 14.6. FOOTER ROW CONTAINER SPACING
 *
 * Controls the vertical padding inside the footer
 * container across all three footer rows.
 * --------------------------------------------------------- */

.avozova-footer-row-above .avozova-footer-container,
.avozova-footer-row-primary .avozova-footer-container,
.avozova-footer-row-below .avozova-footer-container {
    padding: var(--avozova-space-2) 0;
}


/* ---------------------------------------------------------
 * 14.7. FOOTER COLUMNS
 *
 * Defines the flexible column structure and alignment
 * inside each footer row.
 * --------------------------------------------------------- */

.avozova-footer-column {
    flex: 1 1 0;
    min-width: 0;

    display: flex;
    align-items: center;

    gap: var(--avozova-space-3);
}


/* ---------------------------------------------------------
 * 14.8. FOOTER COLUMN ALIGNMENT
 *
 * Controls the horizontal alignment of left, center,
 * and right footer columns.
 * --------------------------------------------------------- */

.avozova-footer-left {
    justify-content: flex-start;
}

.avozova-footer-center {
    justify-content: center;
}

.avozova-footer-right {
    justify-content: flex-end;
}


/* ---------------------------------------------------------
 * 14.9. FOOTER CONTROLS
 *
 * Defines the flex layout and spacing of controls
 * inside the right footer column.
 * --------------------------------------------------------- */

.avozova-footer-controls {
    display: flex;
    align-items: center;
    gap: var(--avozova-space-3);
    min-width: 0;
}


/* Device Visibility
 *
 * .avozova-hide-desktop / -tablet / -mobile are used by the header rows,
 * the footer rows and by single elements. They are one shared utility:
 * the rules are written once per device in the Responsive section, so
 * that "Hide on Desktop" works only on desktop and not on tablet / mobile.
 * No other CSS file repeats them.
 *
 * The CSS of the Footer Elements (site title, menu, HTML, copyright,
 * widget area, button, social) is in footer-elements.css.
 */


/* =========================================================
 * 15. FOOTER ELEMENTS
 * ---------------------------------------------------------
 * Footer element styles are maintained separately
 * in footer-elements.css.
 * ========================================================= */


/* =========================================================
 * 16. RESPONSIVE
 *
 * All media queries are arranged from larger to smaller
 * breakpoints.
 *
 * Breakpoints (the same values are used by the dynamic CSS files):
 * Desktop >= 1025px, Tablet 769px - 1024px, Mobile <= 768px.
 *
 * Internal order: Header -> Main -> Footer.
 *
 * NOTE:
 * Header Elements responsive rules are maintained in
 * header-elements.css.
 *
 * Footer Elements responsive rules are maintained in
 * footer-elements.css.
 * ========================================================= */


/* ---------- >= 1025px (Desktop) ---------- */

@media (min-width: 1025px) {

    .avozova-hide-desktop {
        display: none !important;
    }
}


/* ---------- 769px - 1024px (Tablet) ---------- */

@media (min-width: 769px) and (max-width: 1024px) {

    .avozova-hide-tablet {
        display: none !important;
    }
}


/* ---------- <= 1024px (Tablet: content + sidebar) ---------- */

@media (max-width: 1024px) {

    .avozova-main-layout {
        --avozova-sidebar-width: var(--avozova-sidebar-width-tablet);
        gap: var(--avozova-space-4);
    }
}


/* ---------- <= 768px (Mobile) ---------- */

@media screen and (max-width: 768px) {

    /* ----- Header + Footer shared container ----- */

    .avozova-header-container,
    .avozova-footer-container {
        width: min(calc(100% - var(--avozova-space-4)), 700px);
    }

    .avozova-main-header .avozova-header-container {
        min-height: var(--avozova-header-offset);
    }


    /* ----- Header ----- */

    .avozova-header-row-above .avozova-header-container,
    .avozova-header-row-primary .avozova-header-container,
    .avozova-header-row-below .avozova-header-container {
        flex-wrap: wrap !important;
        row-gap: var(--avozova-space-2) !important;
        column-gap: var(--avozova-space-3) !important;
    }

    .avozova-header-row-above .avozova-header-column,
    .avozova-header-row-primary .avozova-header-column,
    .avozova-header-row-below .avozova-header-column {
        flex: 0 1 auto !important;
        width: auto !important;
    }

    .avozova-header-left {
        justify-content: flex-start !important;
    }

    .avozova-header-center {
        justify-content: center !important;
    }

    .avozova-header-right {
        justify-content: flex-end !important;
    }

    .avozova-header-center:empty {
        display: none !important;
    }

    .avozova-header-row-above .avozova-header-container,
    .avozova-header-row-below .avozova-header-container {
        justify-content: space-between !important;
    }

    .avozova-header-controls {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: var(--avozova-space-2) !important;
    }


    /* ----- Main -----
     * The gap comes from the 1024px block; here only a single column.
     *
     * FIX: minmax(0, 1fr) instead of 1fr, so the column can shrink
     * to the screen width and nothing overflows on the right side. */

    .avozova-main-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .avozova-main-layout > * {
        min-width: 0;
        max-width: 100%;
    }


    /* ----- Footer ----- */

    .avozova-footer-row-above .avozova-footer-container,
    .avozova-footer-row-primary .avozova-footer-container,
    .avozova-footer-row-below .avozova-footer-container {
        flex-wrap: wrap !important;
        row-gap: var(--avozova-space-2) !important;
        column-gap: var(--avozova-space-3) !important;
    }

    .avozova-footer-row-above .avozova-footer-column,
    .avozova-footer-row-primary .avozova-footer-column,
    .avozova-footer-row-below .avozova-footer-column {
        flex: 0 1 auto !important;
        width: auto !important;
    }

    .avozova-footer-left {
        justify-content: flex-start !important;
    }

    .avozova-footer-center {
        justify-content: center !important;
    }

    .avozova-footer-right {
        justify-content: flex-end !important;
    }

    .avozova-footer-center:empty {
        display: none !important;
    }

    .avozova-footer-controls {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: var(--avozova-space-3) !important;
    }

    .avozova-hide-mobile {
        display: none !important;
    }
}