/* ==========================================================================
   PETFINDER - Pet Adoption Platform
   A warm, friendly, hopeful design for finding rescue pets
   ========================================================================== */

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
    /* Colors - Warm & Friendly */
    --color-primary: #EA580C;
    --color-primary-light: #FB923C;
    --color-primary-dark: #C2410C;
    --color-primary-50: #FFF7ED;
    --color-primary-100: #FFEDD5;
    --color-primary-200: #FED7AA;
    --color-primary-500: #F97316;
    --color-primary-600: #EA580C;
    --color-primary-700: #C2410C;

    --color-secondary: #22C55E;
    --color-secondary-light: #4ADE80;
    --color-secondary-dark: #16A34A;
    --color-secondary-50: #F0FDF4;
    --color-secondary-100: #DCFCE7;

    --color-accent: #8B5CF6;
    --color-accent-light: #A78BFA;

    /* Warm neutrals */
    --color-warm-50: #FDFCFB;
    --color-warm-100: #FAF8F5;
    --color-warm-200: #F5F0EB;
    --color-warm-300: #E8E0D8;
    --color-warm-400: #D4C8BC;
    --color-warm-500: #A69888;
    --color-warm-600: #7A6E60;
    --color-warm-700: #5C5147;
    --color-warm-800: #3D362F;
    --color-warm-900: #1F1B17;

    /* Semantic colors */
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;

    /* Background */
    --bg-primary: #FDFCFB;
    --bg-secondary: #FAF8F5;
    --bg-tertiary: #F5F0EB;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FDFCFB;

    /* Text */
    --text-primary: #1F1B17;
    --text-secondary: #5C5147;
    --text-tertiary: #7A6E60;
    --text-muted: #A69888;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border-light: #E8E0D8;
    --border-default: #D4C8BC;
    --border-dark: #A69888;

    /* Typography - Quicksand (friendly, rounded) */
    --font-primary: 'Quicksand', system-ui, -apple-system, sans-serif;
    --font-display: 'Quicksand', system-ui, -apple-system, sans-serif;

    /* Font sizes - Fluid typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2vw, 3rem);
    --text-5xl: clamp(2.75rem, 2rem + 3vw, 4rem);
    --text-6xl: clamp(3.5rem, 2.5rem + 4vw, 5rem);
    --text-hero: clamp(3rem, 2rem + 5vw, 6rem);

    /* Font weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Letter spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;

    /* Spacing - 8px base unit */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    --space-48: 12rem;

    /* Border radius - Friendly, rounded */
    --radius-none: 0;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.5rem;
    --radius-4xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Warm, soft */
    --shadow-xs: 0 1px 2px rgba(31, 27, 23, 0.04);
    --shadow-sm: 0 2px 4px rgba(31, 27, 23, 0.06);
    --shadow-md: 0 4px 8px rgba(31, 27, 23, 0.08);
    --shadow-lg: 0 8px 16px rgba(31, 27, 23, 0.1);
    --shadow-xl: 0 16px 32px rgba(31, 27, 23, 0.12);
    --shadow-2xl: 0 24px 48px rgba(31, 27, 23, 0.16);
    --shadow-inner: inset 0 2px 4px rgba(31, 27, 23, 0.06);

    /* Colored shadows */
    --shadow-primary: 0 8px 24px rgba(234, 88, 12, 0.25);
    --shadow-secondary: 0 8px 24px rgba(34, 197, 94, 0.25);
    --shadow-card: 0 4px 20px rgba(31, 27, 23, 0.08);
    --shadow-card-hover: 0 12px 40px rgba(31, 27, 23, 0.15);

    /* Glow effects */
    --glow-primary: 0 0 40px rgba(234, 88, 12, 0.3);
    --glow-secondary: 0 0 40px rgba(34, 197, 94, 0.3);

    /* Transitions */
    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;
    --duration-slowest: 800ms;

    /* Z-index scale */
    --z-negative: -1;
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-nav: 100;
    --z-modal: 200;
    --z-tooltip: 300;

    /* Container widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1440px;
}

/* ==========================================================================
   DARK MODE TOKENS
   ========================================================================== */

.dark,
[data-theme="dark"] {
    --bg-primary: #0F0D0B;
    --bg-secondary: #1A1714;
    --bg-tertiary: #252119;
    --bg-card: #1A1714;
    --bg-card-hover: #252119;

    --text-primary: #FAF8F5;
    --text-secondary: #D4C8BC;
    --text-tertiary: #A69888;
    --text-muted: #7A6E60;

    --border-light: #2D2822;
    --border-default: #3D362F;
    --border-dark: #5C5147;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--duration-slow) var(--ease-default),
                color var(--duration-slow) var(--ease-default);
}

::selection {
    background-color: var(--color-primary);
    color: white;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

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 {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

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

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
}

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

@media (min-width: 768px) {
    .section {
        padding: var(--space-24) 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: var(--space-32) 0;
    }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background: rgba(253, 252, 251, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--duration-base) var(--ease-default);
}

.dark .nav {
    background: rgba(15, 13, 11, 0.9);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 var(--space-6);
    max-width: var(--container-2xl);
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.nav-logo svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.nav-logo span {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-1);
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-default);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-50);
}

.dark .nav-link.active {
    background: rgba(234, 88, 12, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-cta {
    display: none;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-primary);
    transition: all var(--duration-base) var(--ease-default);
}

@media (min-width: 768px) {
    .nav-cta {
        display: inline-flex;
    }
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(234, 88, 12, 0.35);
    color: white;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
}

.theme-toggle:hover {
    background: var(--border-light);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

.dark .theme-toggle .sun-icon { display: block; }
.dark .theme-toggle .moon-icon { display: none; }

/* Mobile menu toggle */
.nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .nav-mobile-toggle {
        display: none;
    }
}

.nav-mobile-toggle span {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-fast) var(--ease-default);
}

.nav-mobile-toggle span::before,
.nav-mobile-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-fast) var(--ease-default);
}

.nav-mobile-toggle span::before { top: -8px; }
.nav-mobile-toggle span::after { bottom: -8px; }

.nav-mobile-toggle.active span {
    background: transparent;
}

.nav-mobile-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-mobile-toggle.active span::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-default);
    overflow-y: auto;
    z-index: var(--z-nav);
}

.nav-mobile.active {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .nav-mobile {
        display: none;
    }
}

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.nav-mobile-link {
    display: block;
    padding: var(--space-4);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    border-radius: var(--radius-xl);
    transition: all var(--duration-fast) var(--ease-default);
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: var(--color-primary);
    background: var(--color-primary-50);
}

.dark .nav-mobile-link:hover,
.dark .nav-mobile-link.active {
    background: rgba(234, 88, 12, 0.1);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        var(--bg-primary) 0%,
        var(--color-primary-50) 50%,
        var(--bg-primary) 100%);
    opacity: 0.7;
}

.dark .hero-bg-gradient {
    background: linear-gradient(180deg,
        var(--bg-primary) 0%,
        rgba(234, 88, 12, 0.1) 50%,
        var(--bg-primary) 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--border-light) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-paw-prints {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
}

.paw-print {
    position: absolute;
    width: 60px;
    height: 60px;
    color: var(--color-primary);
}

.paw-print:nth-child(1) { top: 10%; left: 5%; transform: rotate(-30deg); }
.paw-print:nth-child(2) { top: 25%; right: 10%; transform: rotate(15deg); }
.paw-print:nth-child(3) { top: 50%; left: 15%; transform: rotate(-15deg); }
.paw-print:nth-child(4) { top: 70%; right: 5%; transform: rotate(30deg); }
.paw-print:nth-child(5) { bottom: 15%; left: 10%; transform: rotate(-45deg); }

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-6);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--color-secondary);
}

.hero-badge-count {
    color: var(--color-primary);
    font-weight: var(--font-bold);
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: var(--font-bold);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: var(--tracking-tight);
}

.hero-title-highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: var(--leading-relaxed);
}

/* Hero Search */
.hero-search {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-3xl);
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 700px;
    margin: 0 auto var(--space-12);
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .hero-search {
        flex-direction: row;
        align-items: center;
        padding: var(--space-2);
    }
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-tertiary);
    border-radius: var(--radius-2xl);
}

.search-field svg {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.search-field select,
.search-field input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}

.search-field select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-divider {
    display: none;
    width: 1px;
    height: 32px;
    background: var(--border-light);
}

@media (min-width: 768px) {
    .search-divider {
        display: block;
    }
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border: none;
    border-radius: var(--radius-2xl);
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: all var(--duration-base) var(--ease-default);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(234, 88, 12, 0.4);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    max-width: 500px;
    margin: 0 auto var(--space-16);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-weight: var(--font-medium);
}

/* Featured Pets Carousel */
.featured-pets {
    margin-top: var(--space-8);
}

.featured-pets-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.featured-pets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .featured-pets-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   PET CARDS
   ========================================================================== */

.pet-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-spring);
    cursor: pointer;
}

.pet-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-200);
}

.pet-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.pet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-spring);
}

.pet-card:hover .pet-card-image img {
    transform: scale(1.08);
}

.pet-card-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-3);
    background: var(--color-secondary);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pet-card-badge.urgent {
    background: var(--color-error);
}

.pet-card-favorite {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-fast) var(--ease-default);
}

.pet-card-favorite:hover {
    transform: scale(1.1);
}

.pet-card-favorite svg {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    transition: color var(--duration-fast) var(--ease-default);
}

.pet-card-favorite.active svg,
.pet-card-favorite:hover svg {
    color: var(--color-error);
    fill: var(--color-error);
}

.pet-card-content {
    padding: var(--space-4);
}

.pet-card-name {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.pet-card-breed {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
}

.pet-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.pet-card-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
}

.pet-card-tag svg {
    width: 12px;
    height: 12px;
}

.pet-card-location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-light);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.pet-card-location svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

/* Large pet card variant */
.pet-card-lg {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .pet-card-lg {
        grid-template-columns: 300px 1fr;
    }
}

.pet-card-lg .pet-card-image {
    aspect-ratio: 4/3;
}

@media (min-width: 768px) {
    .pet-card-lg .pet-card-image {
        aspect-ratio: 1;
    }
}

.pet-card-lg .pet-card-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.pet-card-lg .pet-card-name {
    font-size: var(--text-2xl);
}

.pet-card-lg .pet-card-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: var(--space-4) 0;
    flex: 1;
}

.pet-card-lg .pet-card-traits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.pet-card-lg .pet-trait {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-secondary-50);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-secondary-dark);
}

.dark .pet-card-lg .pet-trait {
    background: rgba(34, 197, 94, 0.1);
}

.pet-card-lg .pet-trait svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   SHELTER CARDS
   ========================================================================== */

.shelter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    transition: all var(--duration-base) var(--ease-spring);
}

.shelter-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-200);
}

.shelter-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.shelter-card-logo {
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shelter-card-logo svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.shelter-card-info {
    flex: 1;
}

.shelter-card-name {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.shelter-card-type {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.shelter-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-4);
}

.shelter-stat {
    text-align: center;
}

.shelter-stat-value {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

.shelter-stat-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.shelter-card-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.shelter-card-location svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.shelter-card-actions {
    display: flex;
    gap: var(--space-3);
}

/* ==========================================================================
   ADOPTION TIMELINE
   ========================================================================== */

.timeline {
    position: relative;
    padding-left: var(--space-12);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-8);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-12) + 10px);
    width: 24px;
    height: 24px;
    background: var(--bg-card);
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker.completed {
    background: var(--color-primary);
}

.timeline-marker.completed svg {
    width: 12px;
    height: 12px;
    color: white;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.timeline-step {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.timeline-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.timeline-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-default);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(234, 88, 12, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn-success {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    color: white;
    box-shadow: var(--shadow-secondary);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
    color: white;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    outline: none;
    transition: all var(--duration-fast) var(--ease-default);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}

.form-checkbox-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

/* ==========================================================================
   CARDS GRID
   ========================================================================== */

.cards-grid {
    display: grid;
    gap: var(--space-6);
}

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

@media (min-width: 768px) {
    .cards-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (min-width: 640px) {
    .cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

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

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-header.left {
    text-align: left;
    margin-left: 0;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary-50);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.dark .section-badge {
    background: rgba(234, 88, 12, 0.1);
}

.section-badge svg {
    width: 16px;
    height: 16px;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--duration-base) var(--ease-spring);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-200);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-primary-200) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
}

.dark .feature-card-icon {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.2) 0%, rgba(234, 88, 12, 0.1) 100%);
}

.feature-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.feature-card-icon.green {
    background: linear-gradient(135deg, var(--color-secondary-100) 0%, rgba(34, 197, 94, 0.2) 100%);
}

.dark .feature-card-icon.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
}

.feature-card-icon.green svg {
    color: var(--color-secondary);
}

.feature-card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.feature-card-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 30px 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    position: relative;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: white;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--font-medium);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    position: relative;
    transition: all var(--duration-base) var(--ease-spring);
}

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

.testimonial-quote {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    color: var(--color-primary-100);
}

.dark .testimonial-quote {
    color: rgba(234, 88, 12, 0.2);
}

.testimonial-content {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.testimonial-pet {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.testimonial-pet-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

/* ==========================================================================
   BLOG CARDS
   ========================================================================== */

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-spring);
}

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

.blog-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-spring);
}

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

.blog-card-category {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-3);
    background: var(--color-primary);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.blog-card-content {
    padding: var(--space-6);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
}

.blog-card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
    transition: color var(--duration-fast) var(--ease-default);
}

.blog-card:hover .blog-card-title {
    color: var(--color-primary);
}

.blog-card-excerpt {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: all var(--duration-fast) var(--ease-default);
}

.faq-item.active {
    border-color: var(--color-primary-200);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    transition: color var(--duration-fast) var(--ease-default);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform var(--duration-base) var(--ease-default);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-base) var(--ease-default);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-6) var(--space-6);
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    background: var(--bg-secondary);
    padding: var(--space-20) 0;
    text-align: center;
}

.cta-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-3xl);
    padding: var(--space-16);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 30px 30px;
}

.cta-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: var(--space-4);
}

.cta-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-btn-white {
    padding: var(--space-4) var(--space-8);
    background: white;
    color: var(--color-primary);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-default);
}

.cta-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    color: var(--color-primary);
}

.cta-btn-outline {
    padding: var(--space-4) var(--space-8);
    background: transparent;
    color: white;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-default);
}

.cta-btn-outline:hover {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.footer-logo svg {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
}

.footer-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-default);
}

.footer-social-link:hover {
    background: var(--color-primary);
    color: white;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.footer-column h4 {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-5);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-default);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slowest) var(--ease-spring),
                transform var(--duration-slowest) var(--ease-spring);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all var(--duration-slowest) var(--ease-spring);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all var(--duration-slowest) var(--ease-spring);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--duration-slowest) var(--ease-spring);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* Continuous animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-gentle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-gentle {
    animation: pulse-gentle 3s ease-in-out infinite;
}

@keyframes wag {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.animate-wag {
    animation: wag 0.5s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-soft {
    animation: bounce-soft 2s ease-in-out infinite;
}

/* Heartbeat for favorite button */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

.animate-heartbeat {
    animation: heartbeat 0.8s ease-in-out;
}

/* Paw print walk animation */
@keyframes paw-walk {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

.paw-animate {
    animation: paw-walk 2s ease-in-out infinite;
}

/* ==========================================================================
   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;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.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(--space-4);
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--color-primary);
    color: white;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary-color { color: var(--color-secondary); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }

.hidden { display: none; }

@media (max-width: 767px) {
    .hidden-mobile { display: none; }
}

@media (min-width: 768px) {
    .hidden-desktop { display: none; }
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */

.page-header {
    padding: calc(72px + var(--space-16)) 0 var(--space-16);
    background: var(--bg-secondary);
    text-align: center;
}

.page-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-header-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-4);
}

.page-header-breadcrumb a {
    color: var(--text-tertiary);
}

.page-header-breadcrumb a:hover {
    color: var(--color-primary);
}

.page-header-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.page-header-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   FILTERS SIDEBAR
   ========================================================================== */

.filters-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    position: sticky;
    top: calc(72px + var(--space-6));
}

.filters-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filters-clear {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: var(--font-medium);
    cursor: pointer;
}

.filter-group {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-group-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
}

.filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.filter-option-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.filter-option-count {
    margin-left: auto;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
}

/* Quick filters (horizontal pills) */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.quick-filter {
    padding: var(--space-2) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
}

.quick-filter:hover,
.quick-filter.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ==========================================================================
   MAP PLACEHOLDER
   ========================================================================== */

.map-container {
    position: relative;
    height: 400px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.map-placeholder svg {
    width: 64px;
    height: 64px;
    color: var(--color-primary);
    opacity: 0.5;
}

.map-placeholder-text {
    font-size: var(--text-lg);
    color: var(--text-tertiary);
    font-weight: var(--font-medium);
}

/* ==========================================================================
   SUCCESS STORY CARDS
   ========================================================================== */

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-spring);
}

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

.story-card-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-1);
}

.story-card-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card-content {
    padding: var(--space-6);
}

.story-card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.story-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-4);
}

.story-card-excerpt {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   DONATE PAGE
   ========================================================================== */

.donate-options {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .donate-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

.donate-option {
    padding: var(--space-6);
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
}

.donate-option:hover,
.donate-option.active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-primary);
}

.donate-option-amount {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.donate-option-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.donate-impact {
    background: var(--color-secondary-50);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-top: var(--space-6);
}

.dark .donate-impact {
    background: rgba(34, 197, 94, 0.1);
}

.donate-impact-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-secondary-dark);
    margin-bottom: var(--space-4);
}

.donate-impact-list {
    list-style: none;
}

.donate-impact-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.donate-impact-list svg {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
}

/* ==========================================================================
   LOGIN/REGISTER FORMS
   ========================================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: var(--bg-secondary);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-8);
}

.auth-logo svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.auth-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-2);
}

.auth-subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
}

/* ==========================================================================
   VOLUNTEER PAGE
   ========================================================================== */

.volunteer-role-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    transition: all var(--duration-base) var(--ease-spring);
}

.volunteer-role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-200);
}

.volunteer-role-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-50);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
}

.dark .volunteer-role-icon {
    background: rgba(234, 88, 12, 0.1);
}

.volunteer-role-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.volunteer-role-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.volunteer-role-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
    flex: 1;
}

.volunteer-role-commitment {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.volunteer-role-commitment svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .nav,
    .footer,
    .theme-toggle,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
    }
}
