/* ==========================================================================
   Illinois Laundry Broker - Main Stylesheet
   Mobile-First Responsive Design
   Version: 2.0.0 — Visual Polish & Premium Enhancements
   ========================================================================== */

/* ==========================================================================
   CSS RESET & NORMALIZE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-text-heading);
}

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
    /* Primary Colors */
    --color-primary: #007BFF;
    --color-primary-dark: #0056b3;
    --color-primary-light: #4da3ff;
    --color-primary-gradient: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    
    /* Accent Colors */
    --color-accent: #28A745;
    --color-accent-dark: #1e7e34;
    --color-accent-light: #48c764;
    --color-accent-gradient: linear-gradient(135deg, #28A745 0%, #1e7e34 100%);
    
    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-gray-100: #F8F9FA;
    --color-gray-200: #E9ECEF;
    --color-gray-300: #DEE2E6;
    --color-gray-400: #CED4DA;
    --color-gray-500: #ADB5BD;
    --color-gray-600: #6C757D;
    --color-gray-700: #495057;
    --color-gray-800: #343A40;
    --color-gray-900: #212529;
    --color-black: #000000;
    
    /* Semantic Colors */
    --color-text: #2d3436;
    --color-text-heading: #1a1a2e;
    --color-text-light: #636e72;
    --color-text-inverse: var(--color-white);
    --color-background: var(--color-white);
    --color-background-alt: #f8f9fa;
    --color-border: #e9ecef;
    --color-error: #DC3545;
    --color-success: var(--color-accent);
    --color-warning: #FFC107;
    --color-info: #17A2B8;
    
    /* Typography */
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes (Mobile-First) */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 1.875rem;  /* 30px */
    --font-size-3xl: 2.25rem;   /* 36px */
    --font-size-4xl: 3rem;      /* 48px */
    --font-size-5xl: 3.75rem;   /* 60px */
    
    /* Line Heights */
    --line-height-base: 1.7;
    --line-height-tight: 1.25;
    --line-height-loose: 1.85;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    --space-4xl: 6rem;     /* 96px */
    --space-5xl: 5rem;     /* 80px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 12px 35px rgba(0, 0, 0, 0.15);
    --shadow-btn: 0 4px 14px rgba(0, 123, 255, 0.35);
    --shadow-btn-accent: 0 4px 14px rgba(40, 167, 69, 0.35);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
    
    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    
    /* Header Height */
    --header-height: 70px;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
    font-weight: 600;
}

.skip-link:focus {
    top: var(--space-md);
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Focus Styles */
:focus {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* 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;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.015em;
}

h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

h4 {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

h5 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

h6 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-base);
}

.text-small {
    font-size: var(--font-size-sm);
}

.text-large {
    font-size: var(--font-size-lg);
}

.text-light {
    font-weight: 300;
}

.text-semibold {
    font-weight: 600;
}

.text-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-text-light);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: 300;
    line-height: var(--line-height-loose);
    color: var(--color-text-light);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.section--alt {
    background-color: var(--color-background-alt);
}

.section--white {
    background-color: var(--color-white);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section__header h2 {
    margin-bottom: var(--space-sm);
}

.section__header p {
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    line-height: var(--line-height-loose);
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.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);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    z-index: var(--z-fixed);
    transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.header--scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: opacity var(--transition-fast);
}

.header__logo:hover {
    opacity: 0.85;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

.header__logo-text span {
    color: var(--color-accent);
}

/* Mobile Navigation */
.nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    padding: var(--space-lg);
    overflow-y: auto;
}

.nav.is-active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.nav__item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-md);
}

.nav__link {
    display: block;
    padding: var(--space-sm) 0;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav__link:hover,
.nav__link:focus {
    color: var(--color-primary);
}

.nav__link--active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Desktop active page indicator */
.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-full);
    display: none;
}

/* Dropdown Menu */
.nav__dropdown {
    position: relative;
}

.nav__dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-sm) 0;
    font-weight: 500;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    min-height: 44px;
    transition: color var(--transition-fast);
}

.nav__dropdown-toggle:hover,
.nav__dropdown-toggle:focus {
    color: var(--color-primary);
}

.nav__dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: var(--space-sm);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform var(--transition-fast);
}

.nav__dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.nav__dropdown-menu {
    display: none;
    padding-left: var(--space-md);
    margin-top: var(--space-sm);
}

.nav__dropdown-menu.is-open {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.nav__dropdown-menu a {
    display: block;
    padding: var(--space-xs) 0;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav__dropdown-menu a:hover,
.nav__dropdown-menu a:focus {
    color: var(--color-primary);
    padding-left: var(--space-xs);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
}

.menu-toggle__bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Header CTA Button */
.header__cta {
    display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
    background: linear-gradient(135deg, #007BFF 0%, #0046a5 50%, #003380 100%);
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-white);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero__subtitle {
    font-size: var(--font-size-md);
    font-weight: 300;
    margin-bottom: var(--space-xl);
    opacity: 0.92;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-loose);
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    min-height: 44px;
}

.btn--primary {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    border: 2px solid transparent;
    box-shadow: var(--shadow-btn);
}

.btn--primary:hover,
.btn--primary:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.45);
}

.btn--primary:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn--secondary:active {
    transform: translateY(0) scale(0.99);
}

.btn--accent {
    background: var(--color-accent-gradient);
    color: var(--color-white);
    border: 2px solid transparent;
    box-shadow: var(--shadow-btn-accent);
}

.btn--accent:hover,
.btn--accent:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.45);
}

.btn--accent:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover,
.btn--outline:focus {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    border-color: transparent;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-btn);
}

.btn--outline:active {
    transform: translateY(0) scale(0.99);
}

.btn--large {
    padding: 16px 40px;
    font-size: var(--font-size-md);
}

.btn--small {
    padding: 8px 20px;
    font-size: var(--font-size-sm);
}

.btn--block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--color-gray-200);
}

.card__content {
    padding: var(--space-xl);
}

.card__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.card__text {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-base);
}

.card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* Service Card */
.service-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    border-radius: 12px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.service-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: var(--font-size-2xl);
    transition: transform var(--transition-smooth);
}

.service-card:hover .service-card__icon {
    transform: scale(1.08);
}

.service-card__title {
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.service-card__text {
    color: var(--color-text-light);
    line-height: var(--line-height-base);
}

/* City Card */
.city-card {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-radius: 12px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.city-card__content {
    flex: 1;
}

.city-card__title {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.city-card__count {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-lg);
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.form-label--required::after {
    content: ' *';
    color: var(--color-error);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px var(--space-md);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
    min-height: 44px;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: var(--color-gray-400);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
    background-color: var(--color-white);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-500);
    font-weight: 300;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C757D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-input--error,
.form-textarea--error {
    border-color: var(--color-error);
}

.form-input--error:focus,
.form-textarea--error:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12);
}

.form-error {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-error);
    font-weight: 500;
}

.form-help {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* Contact Form */
.contact-form {
    background-color: var(--color-white);
    padding: var(--space-xl) var(--space-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form__title {
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: #1a1a2e;
    color: var(--color-gray-300);
    padding-top: var(--space-3xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.footer__section {
    margin-bottom: var(--space-lg);
}

.footer__title {
    color: var(--color-white);
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-full);
}

.footer__text {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-base);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    color: var(--color-gray-400);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    padding: 2px 0;
}

.footer__link:hover,
.footer__link:focus {
    color: var(--color-white);
    padding-left: var(--space-xs);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer__contact-icon {
    color: var(--color-primary-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: var(--color-gray-400);
    transition: all var(--transition-smooth);
}

.footer__social-link:hover,
.footer__social-link:focus {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
    text-align: center;
}

.footer__copyright {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.footer__legal {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
}

.footer__legal a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer__legal a:hover,
.footer__legal a:focus {
    color: var(--color-white);
}

.powered-by {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin-top: 1rem;
    text-align: center;
}

.powered-by a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.powered-by a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* ==========================================================================
   BLOG COMPONENTS
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.blog-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--color-gray-200);
}

.blog-card__content {
    flex: 1;
    padding: var(--space-xl);
    background-color: var(--color-white);
    border: none;
    border-top: none;
}

.blog-card__category {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-primary-gradient);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.blog-card__title {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.blog-card__title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.blog-card__title a:hover,
.blog-card__title a:focus {
    color: var(--color-primary);
}

.blog-card__excerpt {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-base);
}

.blog-card__date {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
    font-weight: 500;
}

/* Blog Search */
.blog-search {
    margin-bottom: var(--space-xl);
}

.blog-search__form {
    display: flex;
    gap: var(--space-sm);
}

.blog-search__input {
    flex: 1;
}

/* ==========================================================================
   CITIES PAGE COMPONENTS
   ========================================================================== */

.cities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.city-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all var(--transition-smooth);
    min-height: 44px;
}

.city-list-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.city-list-item__name {
    font-weight: 600;
}

.city-list-item__count {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ==========================================================================
   PAGE HEADERS
   ========================================================================== */

.page-header {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
    background: linear-gradient(135deg, #007BFF 0%, #0046a5 50%, #003380 100%);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    pointer-events: none;
}

.page-header__title {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    font-weight: 700;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out;
}

.page-header__subtitle {
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: var(--line-height-loose);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    font-size: var(--font-size-sm);
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.breadcrumb__item:not(:last-child)::after {
    content: '/';
    color: var(--color-gray-500);
}

.breadcrumb__link {
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.breadcrumb__link:hover,
.breadcrumb__link:focus {
    color: var(--color-primary);
}

.breadcrumb__current {
    color: var(--color-text);
    font-weight: 500;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Margin Top */
.mt-0 { margin-top: 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); }
.mt-2xl { margin-top: var(--space-2xl); }

/* Margin Bottom */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.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); }

/* Padding Top */
.pt-0 { padding-top: 0; }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pt-2xl { padding-top: var(--space-2xl); }

/* Padding Bottom */
.pb-0 { padding-bottom: 0; }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }
.pb-2xl { padding-bottom: var(--space-2xl); }

/* Display */
.hidden { display: none !important; }
.visible { display: block !important; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* Border Radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* ==========================================================================
   SCROLL-TRIGGERED ANIMATIONS (CSS-only via intersection observer classes)
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.animate-fade-in.is-visible {
    opacity: 1;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   LAZY LOADING
   ========================================================================== */

img[data-src] {
    opacity: 0;
    transition: opacity var(--transition-base);
}

img.loaded {
    opacity: 1;
}

/* ==========================================================================
   MEDIA QUERIES - TABLET (768px+)
   ========================================================================== */

@media screen and (min-width: 768px) {
    /* Typography */
    h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2 {
        font-size: var(--font-size-2xl);
    }
    
    h3 {
        font-size: var(--font-size-xl);
    }
    
    /* Hero */
    .hero {
        padding-top: calc(var(--header-height) + var(--space-3xl));
        padding-bottom: var(--space-4xl);
    }
    
    .hero__title {
        font-size: var(--font-size-3xl);
    }
    
    .hero__subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero__cta {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Navigation */
    .nav {
        display: flex;
        position: static;
        background: transparent;
        padding: 0;
        overflow: visible;
    }
    
    .nav__list {
        flex-direction: row;
        align-items: center;
        gap: var(--space-lg);
    }
    
    .nav__item {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .nav__link {
        padding: var(--space-xs) var(--space-sm);
        min-height: auto;
    }
    
    /* Active page indicator visible on desktop */
    .nav__link--active::after {
        display: block;
    }
    
    /* Dropdown - Desktop */
    .nav__dropdown {
        position: relative;
    }
    
    .nav__dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        padding: var(--space-sm) 0;
        margin-top: 0;
        background-color: var(--color-white);
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        z-index: var(--z-dropdown);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .nav__dropdown-menu.is-open {
        animation: fadeInDown 0.2s ease;
    }
    
    .nav__dropdown-menu a {
        padding: var(--space-sm) var(--space-md);
        min-height: auto;
        border-radius: 0;
    }
    
    .nav__dropdown-menu a:hover,
    .nav__dropdown-menu a:focus {
        background-color: var(--color-gray-100);
        padding-left: var(--space-lg);
    }
    
    .nav__dropdown:hover .nav__dropdown-menu,
    .nav__dropdown:focus-within .nav__dropdown-menu {
        display: block;
    }
    
    /* Menu Toggle */
    .menu-toggle {
        display: none;
    }
    
    /* Header CTA */
    .header__cta {
        display: block;
    }
    
    /* Grids */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Section */
    .section {
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-3xl);
    }
    
    /* Contact Form */
    .contact-form {
        padding: var(--space-2xl);
    }
    
    /* Page Header */
    .page-header {
        padding-top: calc(var(--header-height) + var(--space-2xl));
        padding-bottom: var(--space-2xl);
    }
}

/* ==========================================================================
   MEDIA QUERIES - DESKTOP (1024px+)
   ========================================================================== */

@media screen and (min-width: 1024px) {
    /* Typography */
    h1 {
        font-size: var(--font-size-4xl);
    }
    
    h2 {
        font-size: var(--font-size-3xl);
    }
    
    /* Hero */
    .hero__title {
        font-size: var(--font-size-4xl);
        line-height: 1.1;
    }
    
    .hero__subtitle {
        font-size: var(--font-size-lg);
        max-width: 700px;
    }
    
    /* Grids */
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Section */
    .section {
        padding-top: var(--space-5xl);
        padding-bottom: var(--space-5xl);
    }
    
    /* Container */
    .container {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }
    
    /* Contact Form */
    .contact-form {
        padding: var(--space-3xl);
    }
    
    /* Page Header */
    .page-header {
        padding-top: calc(var(--header-height) + var(--space-3xl));
        padding-bottom: var(--space-3xl);
    }
}

/* ==========================================================================
   MEDIA QUERIES - LARGE DESKTOP (1280px+)
   ========================================================================== */

@media screen and (min-width: 1280px) {
    .cities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero__title {
        font-size: var(--font-size-5xl);
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
    
    img {
        page-break-inside: avoid;
    }
    
    @page {
        margin: 0.5cm;
    }
    
    .header,
    .footer,
    .nav {
        display: none !important;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@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;
    }
    
    .animate-on-scroll,
    .animate-fade-in,
    .animate-slide-left {
        opacity: 1;
        transform: none;
    }
    
    .hero__content,
    .hero__cta,
    .page-header__title,
    .page-header__subtitle {
        animation: none;
        opacity: 1;
    }
}
