/*
Theme Name: Al-Quraish Concrete Products
Theme URI: https://www.alquraishgroup.pk
Author: Al-Quraish Concrete Products Pvt. Ltd.
Author URI: https://www.alquraishgroup.pk
Description: Premium custom WordPress theme for Al-Quraish Concrete Products Pvt. Ltd. — Pakistan's pioneer in pre-cast and prestressed concrete manufacturing since 1988. Features custom admin panel, WooCommerce integration, and auto-populated company data.
Version: 1.0.0
Requires at least: 5.9
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: alquraish
Tags: custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* Brand Colors */
    --aq-primary: #0099CC;
    --aq-primary-dark: #007AA3;
    --aq-navy: #1A3A5C;
    --aq-steel: #5A6A7A;
    --aq-light-grey: #E8ECEF;
    --aq-off-white: #F5F7F9;
    --aq-white: #FFFFFF;
    --aq-charcoal: #2C3E50;
    --aq-accent: #00BCD4;
    --aq-dark-overlay: rgba(26, 58, 92, 0.78);

    /* Typography */
    --font-display: 'Barlow Condensed', 'Oswald', sans-serif;
    --font-body: 'Source Sans Pro', 'Nunito Sans', sans-serif;
    --font-accent: 'Barlow Condensed', sans-serif;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-hero: 0.6s ease-out;

    /* Layout */
    --container-max: 1200px;
    --container-wide: 1400px;
    --header-height: 80px;
    --header-height-scrolled: 64px;
    --border-radius: 4px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--aq-steel);
    background-color: var(--aq-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--aq-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--aq-accent);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--aq-charcoal);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--wide {
    max-width: var(--container-wide);
}

.section-padding {
    padding: var(--space-3xl) 0;
}

.section-padding--sm {
    padding: var(--space-xl) 0;
}

.text-center { text-align: center; }
.text-white { color: var(--aq-white); }
.text-primary { color: var(--aq-primary); }

.bg-white { background-color: var(--aq-white); }
.bg-light { background-color: var(--aq-light-grey); }
.bg-charcoal { background-color: var(--aq-charcoal); }
.bg-navy { background-color: var(--aq-navy); }
.bg-primary { background-color: var(--aq-primary); }

/* Section Header with blue accent bar */
.section-header {
    margin-bottom: var(--space-xl);
}

.section-header__bar {
    width: 50px;
    height: 4px;
    background: var(--aq-primary);
    margin-bottom: var(--space-sm);
    display: block;
}

.section-header--center .section-header__bar {
    margin-left: auto;
    margin-right: auto;
}

.section-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-xs);
}

.section-header__subtitle {
    font-size: 1.125rem;
    color: var(--aq-steel);
    max-width: 600px;
}

.section-header--center .section-header__subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
    gap: 0.5rem;
    min-height: 48px;
}

.btn--primary {
    background-color: var(--aq-primary);
    color: var(--aq-white);
    border-color: var(--aq-primary);
}

.btn--primary:hover {
    background-color: var(--aq-primary-dark);
    border-color: var(--aq-primary-dark);
    color: var(--aq-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn--outline {
    background-color: transparent;
    color: var(--aq-white);
    border-color: var(--aq-white);
}

.btn--outline:hover {
    background-color: var(--aq-white);
    color: var(--aq-navy);
}

.btn--outline-dark {
    background-color: transparent;
    color: var(--aq-navy);
    border-color: var(--aq-navy);
}

.btn--outline-dark:hover {
    background-color: var(--aq-navy);
    color: var(--aq-white);
}

.btn--white {
    background-color: var(--aq-white);
    color: var(--aq-charcoal);
    border-color: var(--aq-white);
}

.btn--white:hover {
    background-color: var(--aq-off-white);
    color: var(--aq-primary);
}

.btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    min-height: 40px;
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Screen reader only */
.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;
}

/* Lazy load */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-hero), transform var(--transition-hero);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
