/* ============================================
   WINDOW CLEANING SANTA CRUZ - DESIGN SYSTEM
   Coastal Bold Theme
   ============================================ */

/* Google Fonts - DM Sans */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

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

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   COLOR PALETTE - COASTAL BOLD
   ============================================ */
:root {
    /* Primary Navy */
    --navy-900: #071526;
    --navy-800: #0A1E38;
    --navy-700: #0E3354;
    --navy-600: #1A4A6E;
    
    /* Coastal Blues */
    --pacific-600: #1E6A8A;
    --pacific-500: #2B7A9B;
    --pacific-400: #3D8DAE;
    --sky-400: #5BA4C4;
    --sky-300: #7DBAD4;
    --sky-200: #A5D1E5;
    
    /* Accent Golds */
    --gold-600: #CC8A00;
    --gold-500: #E5A917;
    --gold-400: #F5C94C;
    --gold-300: #F8D97A;
    --gold-200: #FCE9A8;
    
    /* Neutrals */
    --white: #FFFFFF;
    --sand-100: #FDFCFA;
    --sand-200: #F7F4EF;
    --sand-300: #EDE8E0;
    --seafoam-100: #F0F9FA;
    --seafoam-200: #E8F4F6;
    --seafoam-300: #D4EAED;
    
    /* Grays */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Semantic */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 24px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

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

/* Display / Hero Headlines */
.text-display {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Section Headlines */
h1, .text-h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h2, .text-h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h3, .text-h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
}

h4, .text-h4 {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.4;
}

h5, .text-h5 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Body Text */
.text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-base {
    font-size: 1rem;
    line-height: 1.6;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Section Label */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-500);
    margin-bottom: var(--space-md);
}

.section-label-light {
    color: var(--gold-400);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-sm {
    max-width: 900px;
}

.container-lg {
    max-width: 1440px;
}

/* Sections */
.section {
    padding: var(--space-4xl) 0;
}

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

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

/* Grid */
.grid {
    display: grid;
    gap: var(--space-lg);
}

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

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

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

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Primary Button - Gold */
.btn-primary {
    background: var(--gold-500);
    color: var(--navy-800);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button - Navy */
.btn-secondary {
    background: var(--navy-800);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--navy-700);
    transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    border: 2px solid var(--navy-800);
    color: var(--navy-800);
}

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

/* Ghost Button - For dark backgrounds */
.btn-ghost {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--navy-800);
}

/* Link Button */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0;
    color: var(--pacific-500);
    font-weight: 600;
    background: none;
}

.btn-link:hover {
    color: var(--pacific-600);
}

.btn-link::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.btn-link:hover::after {
    transform: translateX(4px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: var(--space-xl);
}

/* Photo Card (for services) */
.photo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.photo-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px);
}

.photo-card-image-wrap {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.photo-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.photo-card:hover .photo-card-image {
    transform: scale(1.05);
}

.photo-card-overlay {
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.photo-card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--gold-500);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

.photo-card-title {
    color: var(--navy-900);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-2xs);
}

.photo-card-link {
    color: var(--pacific-500);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    white-space: nowrap;
    transition: color var(--transition-base);
}

.photo-card:hover .photo-card-link {
    color: var(--gold-500);
}

.photo-card-link::after {
    content: '→';
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--pacific-500);
    box-shadow: 0 0 0 3px rgba(43, 122, 155, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 48px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
    background: var(--sand-200);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray-500);
}

.breadcrumb-list li + li::before {
    content: '›';
    color: var(--gray-400);
    font-size: 1.1em;
    line-height: 1;
}

.breadcrumb-list a {
    color: var(--pacific-500);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
    color: var(--pacific-600);
}

.breadcrumb-list [aria-current="page"] {
    color: var(--gray-700);
    font-weight: 600;
}

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

/* Background Colors */
.bg-white { background-color: var(--white); }
.bg-sand { background-color: var(--sand-200); }
.bg-seafoam { background-color: var(--seafoam-200); }
.bg-navy { background-color: var(--navy-800); }
.bg-navy-dark { background-color: var(--navy-900); }

/* Text Colors */
.text-white { color: var(--white); }
.text-navy { color: var(--navy-800); }
.text-gold { color: var(--gold-500); }
.text-gray { color: var(--gray-600); }
.text-muted { color: var(--gray-500); }

/* Spacing */
.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); }
.mt-3xl { margin-top: var(--space-3xl); }

.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); }
.mb-3xl { margin-bottom: var(--space-3xl); }

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

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Width */
.w-full { width: 100%; }
.max-w-prose { max-width: 65ch; }

/* ============================================
   PLACEHOLDER IMAGES (for development)
   ============================================ */
.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
    border: 3px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    color: var(--gray-600);
    min-height: 300px;
}

.placeholder-image.placeholder-hero {
    background: var(--navy-700);
    border-color: var(--navy-600);
    color: var(--white);
    min-height: 600px;
}

.placeholder-image.placeholder-service {
    background: var(--pacific-500);
    border-color: var(--pacific-600);
    color: var(--white);
    min-height: 250px;
}

.placeholder-image.placeholder-accent {
    background: var(--gold-400);
    border-color: var(--gold-500);
    color: var(--navy-800);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.placeholder-text {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.placeholder-hint {
    font-size: 0.875rem;
    opacity: 0.8;
}

.placeholder-size {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: var(--space-sm);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
}

.stagger-children.animated > *:nth-child(1) { animation: fadeIn 0.5s ease 0.1s forwards; }
.stagger-children.animated > *:nth-child(2) { animation: fadeIn 0.5s ease 0.2s forwards; }
.stagger-children.animated > *:nth-child(3) { animation: fadeIn 0.5s ease 0.3s forwards; }
.stagger-children.animated > *:nth-child(4) { animation: fadeIn 0.5s ease 0.4s forwards; }
.stagger-children.animated > *:nth-child(5) { animation: fadeIn 0.5s ease 0.5s forwards; }
.stagger-children.animated > *:nth-child(6) { animation: fadeIn 0.5s ease 0.6s forwards; }
.stagger-children.animated > *:nth-child(7) { animation: fadeIn 0.5s ease 0.7s forwards; }
.stagger-children.animated > *:nth-child(8) { animation: fadeIn 0.5s ease 0.8s forwards; }

