/*
Theme Name: FlexiPress
Theme URI: https://example.com/flexipress
Author: Your Name
Author URI: https://example.com
Description: A lightweight, performance-focused WordPress theme designed for speed, flexibility, and extensibility. Perfect for blogs, business sites, and WooCommerce stores. Compatible with popular page builders including Elementor, Gutenberg, and Beaver Builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flexipress
Tags: blog, e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, custom-colors, custom-background, editor-style, rtl-language-support, accessibility-ready, wide-blocks

FlexiPress WordPress Theme, Copyright 2026
FlexiPress is distributed under the terms of the GNU GPL
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 CSS Variables
2.0 Reset & Base Styles
3.0 Typography
4.0 Layout
5.0 Components
6.0 Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 CSS Variables
--------------------------------------------------------------*/
:root {
    /* Colors */
    --color-primary: #0073aa;
    --color-secondary: #23282d;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-border: #e0e0e0;
    --color-link: #0073aa;
    --color-link-hover: #005177;

    /* Typography */
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-heading: var(--font-body);
    --font-size-base: 16px;
    --font-size-small: 0.875rem;
    --font-size-large: 1.125rem;
    --line-height-base: 1.6;
    --line-height-heading: 1.3;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Layout */
    --container-width: 1200px;
    --content-width: 800px;
    --sidebar-width: 300px;
    --gap: 2rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/*--------------------------------------------------------------
2.0 Reset & Base Styles
--------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
3.0 Typography
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-heading);
    margin: 0 0 var(--spacing-md);
    font-weight: 600;
    color: var(--color-secondary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 var(--spacing-md);
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--color-link-hover);
}

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/*--------------------------------------------------------------
4.0 Layout
--------------------------------------------------------------*/
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.content-area {
    width: 100%;
}

/* Sidebar Layout */
.has-sidebar .site-content {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--gap);
}

.has-sidebar.sidebar-left .site-content {
    grid-template-columns: var(--sidebar-width) 1fr;
}

/*--------------------------------------------------------------
5.0 Components
--------------------------------------------------------------*/

/* Buttons */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    color: #ffffff;
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--color-link-hover);
    color: #ffffff;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*--------------------------------------------------------------
6.0 Responsive
--------------------------------------------------------------*/
@media (max-width: 1024px) {
    :root {
        --container-width: 100%;
        --gap: 1.5rem;
    }

    .has-sidebar .site-content {
        grid-template-columns: 1fr;
    }

    .has-sidebar.sidebar-left .site-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-xxl: 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/*--------------------------------------------------------------
Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}