/*
Theme Name: Aretiv Pro
Description: Professional SEO and Digital Marketing Agency WordPress Theme. Modern, responsive design optimized for conversion and performance. Features custom post types, advanced customizer options, and comprehensive SEO integration.
Author: Aretiv Team
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aretiv-pro
Domain Path: /languages
Tags: business, seo, marketing, responsive, custom-post-types, block-editor-styles, wide-blocks, accessibility-ready

Aretiv Pro WordPress Theme
Copyright (C) 2024 Aretiv Team

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see https://www.gnu.org/licenses/gpl-2.0.html.
*/

/**
 * ARETIV PRO THEME STYLES
 * =====================
 * 
 * This file contains the base styles for the Aretiv Pro theme.
 * The main styling is handled through separate CSS files in the assets directory.
 * This file serves as the theme identifier and contains critical above-the-fold styles.
 */

/* ==========================================================================
   THEME IDENTIFICATION AND BASIC RESET
   ========================================================================== */

/**
 * CSS Custom Properties (CSS Variables)
 * These variables define the core design system values that can be customized
 * through the WordPress Customizer and are used throughout the theme.
 */
:root {
    /* Color System */
    --color-primary: #DC2626;        /* Primary brand color - Deep Red */
    --color-secondary: #EF4444;      /* Secondary accent color - Light Red */
    
    /* Gradient System */
    --gradient-primary: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%);
    --gradient-secondary: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
    --gradient-accent: linear-gradient(135deg, #F87171 0%, #EF4444 50%, #DC2626 100%);
    --gradient-subtle: linear-gradient(135deg, #FEE2E2 0%, #FECACA 50%, #FCA5A5 100%);
    --gradient-reverse: linear-gradient(315deg, #DC2626 0%, #EF4444 50%, #F87171 100%);
    --gradient-hero: linear-gradient(135deg, #7F1D1D 0%, #991B1B 20%, #B91C1C 40%, #DC2626 60%, #EF4444 80%, #F87171 100%);
    --gradient-rainbow: linear-gradient(90deg, #DC2626 0%, #EF4444 25%, #F87171 50%, #FCA5A5 75%, #FEE2E2 100%);
    --color-text: #ffffff;           /* Main text color */
    --color-text-light: #666666;     /* Light text color */
    --color-background: #3b3b3b;      /* Background color */
    --color-surface: #f8f9fa;        /* Surface/card background */
    --color-border: #e9ecef;         /* Border color */
    --color-success: #28a745;        /* Success color */
    --color-warning: #ffc107;        /* Warning color */
    --color-error: #dc3545;          /* Error color */
    
    /* Typography System */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Cardo', Georgia, serif;
    --font-size-xs: 0.75rem;         /* 12px */
    --font-size-sm: 0.875rem;        /* 14px */
    --font-size-base: 1rem;          /* 16px */
    --font-size-lg: 1.125rem;        /* 18px */
    --font-size-xl: 1.25rem;         /* 20px */
    --font-size-2xl: 1.5rem;         /* 24px */
    --font-size-3xl: 1.875rem;       /* 30px */
    --font-size-4xl: 2.25rem;        /* 36px */
    --font-size-5xl: 3rem;           /* 48px */
    
    /* Spacing System */
    --spacing-xs: 0.25rem;           /* 4px */
    --spacing-sm: 0.5rem;            /* 8px */
    --spacing-md: 1rem;              /* 16px */
    --spacing-lg: 1.5rem;            /* 24px */
    --spacing-xl: 2rem;              /* 32px */
    --spacing-2xl: 3rem;             /* 48px */
    --spacing-3xl: 4rem;             /* 64px */
    --spacing-4xl: 6rem;             /* 96px */
    
    /* Layout System */
    --container-max-width: 1200px;
    --container-padding: var(--spacing-md);
    --grid-gap: var(--spacing-lg);
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;     /* 4px */
    --border-radius-md: 0.5rem;      /* 8px */
    --border-radius-lg: 1rem;        /* 16px */
    --border-radius-full: 9999px;    /* Fully rounded */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/**
 * Modern CSS Reset
 * Provides a consistent starting point across browsers
 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/**
 * Typography Base Styles
 * Establishes consistent typography hierarchy
 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

/**
 * Link Styles
 * Consistent link styling with accessibility considerations
 */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-secondary);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/**
 * Button Base Styles
 * Foundation for all button components
 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: calc(0.667em + 2px) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-full);
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    user-select: none;
}

.btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/**
 * Container System
 * Responsive container for consistent content width
 */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/**
 * Accessibility Utilities
 * Screen reader only content and focus management
 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: var(--spacing-sm);
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/**
 * Skip Link for Accessibility
 * Allows keyboard users to skip navigation
 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-text);
    color: var(--color-background);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
    outline: 2px solid var(--color-background);
}

/**
 * Critical Above-the-fold Styles
 * These styles prevent layout shift during initial page load
 */
.site-header {
    position: relative;
    z-index: var(--z-sticky);
}

.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/**
 * Loading State Styles
 * Prevents flash of unstyled content
 */
.loading {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.loaded {
    opacity: 1;
}

/**
 * Print Styles
 * Optimized styles for printing
 */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .no-print {
        display: none !important;
    }
}