/**
 * Washington Home Improvements - Global Design System
 * Brand: Professional, Direct, Solution-Focused
 * Motto: "We Build It Right, The First Time!"
 */

/* ========================================
   WORDPRESS DEFAULT OVERRIDES
   ======================================== */

/* Hide default WordPress/Hostinger site title everywhere */
.site-title,
.site-description,
h1.site-title,
p.site-title,
.entry-title.site-title {
    display: none !important;
}

/* Hide any auto-generated titles in the body */
body > h1:first-child,
body > .site-title:first-child {
    display: none !important;
}

/* ========================================
   CSS VARIABLES - BRAND SYSTEM
   ======================================== */

:root {
    /* Brand Colors */
    --color-yellow: #ff9100;           /* Primary yellow */
    --color-red: #880000;              /* Deep red */
    --color-grey: #36454f;             /* Charcoal grey */
    --color-off-white: #f9f7f2;        /* Off white background */
    --color-off-grey: #030b10;         /* Off grey (near black) */
    --color-white: #ffffff;
    --color-black: #000000;

    /* Semantic Colors */
    --color-primary: var(--color-yellow);
    --color-secondary: var(--color-red);
    --color-dark: var(--color-grey);
    --color-darker: var(--color-off-grey);
    --color-light: var(--color-off-white);

    /* Alpha Variations for Overlays */
    --yellow-alpha-10: rgba(255, 145, 0, 0.1);
    --yellow-alpha-20: rgba(255, 145, 0, 0.2);
    --yellow-alpha-50: rgba(255, 145, 0, 0.5);
    --yellow-alpha-90: rgba(255, 145, 0, 0.9);
    --red-alpha-10: rgba(136, 0, 0, 0.1);
    --red-alpha-20: rgba(136, 0, 0, 0.2);
    --red-alpha-80: rgba(136, 0, 0, 0.8);
    --grey-alpha-50: rgba(54, 69, 79, 0.5);
    --grey-alpha-80: rgba(54, 69, 79, 0.8);
    --grey-alpha-95: rgba(54, 69, 79, 0.95);
    --dark-alpha-70: rgba(3, 11, 16, 0.7);
    --dark-alpha-90: rgba(3, 11, 16, 0.9);

    /* Typography */
    --font-heading: 'Lemon Milk Extra Bold', 'Impact', 'Arial Black', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;

    /* Font Sizes (Mobile-First Fluid Typography) */
    --text-xs: clamp(0.75rem, 1vw, 0.875rem);           /* 12-14px */
    --text-sm: clamp(0.875rem, 1.2vw, 1rem);            /* 14-16px */
    --text-base: clamp(1rem, 1.5vw, 1.125rem);          /* 16-18px */
    --text-lg: clamp(1.125rem, 2vw, 1.5rem);            /* 18-24px */
    --text-xl: clamp(1.5rem, 2.5vw, 2rem);              /* 24-32px */
    --text-2xl: clamp(2rem, 4vw, 3rem);                 /* 32-48px */
    --text-3xl: clamp(2.5rem, 5vw, 4rem);               /* 40-64px */
    --text-4xl: clamp(3rem, 7vw, 5.5rem);               /* 48-88px */
    --text-5xl: clamp(3.5rem, 9vw, 7rem);               /* 56-112px */

    /* Spacing System (8px base) */
    --space-xs: 0.5rem;      /* 8px */
    --space-sm: 1rem;        /* 16px */
    --space-md: 1.5rem;      /* 24px */
    --space-lg: 2rem;        /* 32px */
    --space-xl: 3rem;        /* 48px */
    --space-2xl: 4rem;       /* 64px */
    --space-3xl: 6rem;       /* 96px */
    --space-4xl: 8rem;       /* 128px */
    --space-5xl: 10rem;      /* 160px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(3, 11, 16, 0.1);
    --shadow-md: 0 4px 16px rgba(3, 11, 16, 0.15);
    --shadow-lg: 0 8px 32px rgba(3, 11, 16, 0.2);
    --shadow-xl: 0 16px 48px rgba(3, 11, 16, 0.25);
    --shadow-2xl: 0 24px 64px rgba(3, 11, 16, 0.3);
    --shadow-yellow-glow: 0 0 30px rgba(255, 145, 0, 0.4);
    --shadow-red-glow: 0 0 30px rgba(136, 0, 0, 0.4);
    --shadow-inset: inset 0 2px 4px rgba(3, 11, 16, 0.1);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index Layers */
    --z-base: 1;
    --z-parallax-bg: 10;
    --z-parallax-mid: 20;
    --z-parallax-fg: 30;
    --z-content: 50;
    --z-sticky: 100;
    --z-dropdown: 200;
    --z-overlay: 400;
    --z-modal-backdrop: 500;
    --z-modal: 600;
    --z-header: 1000;
    --z-tooltip: 1100;

    /* Layout */
    --max-width-content: 1280px;
    --max-width-wide: 1440px;
    --max-width-text: 800px;
    --header-height: 80px;
    --header-height-mobile: 70px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-darker);
    background: var(--color-light);
    overflow-x: hidden;
}

main {
    min-height: 60vh;
}

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

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

a:hover {
    color: var(--color-red);
}

a:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 4px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-darker);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-md);
}

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

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

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

ul, ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
}

blockquote {
    border-left: 4px solid var(--color-yellow);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--color-grey);
}

/* Text Utilities */
.text-yellow { color: var(--color-yellow); }
.text-red { color: var(--color-red); }
.text-grey { color: var(--color-grey); }
.text-dark { color: var(--color-darker); }
.text-white { color: var(--color-white); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-bold { font-weight: 700; }

/* Background Utilities */
.bg-yellow { background: var(--color-yellow); }
.bg-red { background: var(--color-red); }
.bg-grey { background: var(--color-grey); }
.bg-dark { background: var(--color-darker); }
.bg-light { background: var(--color-light); }
.bg-white { background: var(--color-white); }

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    width: 100%;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

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

.section {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

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

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

.section-dark {
    background: var(--color-darker);
    color: var(--color-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--color-white);
}

.section-grey {
    background: var(--color-grey);
    color: var(--color-white);
}

.section-light {
    background: var(--color-light);
}

/* Section Titles */
.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-grey);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl) auto;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

/* Gap Utilities */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-gap { gap: var(--space-lg); }
.grid-gap-sm { gap: var(--space-sm); }
.grid-gap-md { gap: var(--space-md); }
.grid-gap-xl { gap: var(--space-xl); }

/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

/* Width Utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-full { max-width: 100%; }

/* Display Utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
    }

    html { font-size: 15px; }

    .container {
        padding: 0 var(--space-md);
    }

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

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

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .flex-col-mobile {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }

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

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

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 4px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-yellow);
    color: var(--color-darker);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
}

.skip-to-main:focus {
    left: var(--space-sm);
    top: var(--space-sm);
}

/* 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-width: 0;
}
