/* CareFree Homes Custom CSS */

/* Grid ordering — missing from compiled Tailwind CSS.
   Used by content_image sections so admins can put the
   image on the left or right of the text. */
.order-1 { order: 1; }
.order-2 { order: 2; }

/* Gold Gradient Utility Classes */
.bg-gold-gradient {
    background: linear-gradient(135deg, #8B6914 0%, #C5A55A 25%, #D4B96E 50%, #C5A55A 75%, #8B6914 100%) !important;
}
.bg-gold-gradient-dark {
    background: linear-gradient(135deg, #6B5010 0%, #A48B48 25%, #B8A05A 50%, #A48B48 75%, #6B5010 100%) !important;
}
.hover\:bg-gold-gradient-dark:hover {
    background: linear-gradient(135deg, #6B5010 0%, #A48B48 25%, #B8A05A 50%, #A48B48 75%, #6B5010 100%) !important;
}
.nav-glass.gold-nav {
    background: linear-gradient(135deg, rgba(139,105,20,0.95), rgba(197,165,90,0.95), rgba(212,185,110,0.95), rgba(197,165,90,0.95), rgba(139,105,20,0.95)) !important;
    backdrop-filter: blur(20px);
}

/* CSS Custom Properties */
:root {
    /* Colors - CareFree Homes Palette */
    --color-primary: #1F3A5F;
    --color-primary-light: #2a4a73;
    --color-primary-hover: #16304E;
    --color-secondary: #6b7280;
    --color-accent: #C2A55F;
    --color-accent-red: #B23A3A;
    --color-accent-red-hover: #962F2F;
    --color-warm-sand: #E8DCC8;
    --color-stone-gray: #F4F5F7;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Typography */
    --font-display: 'Raleway', system-ui, sans-serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Borders */
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Typography */
.font-display {
    font-family: var(--font-display);
}

.font-body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    color: var(--color-gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

.subheading {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--color-accent);
}

.section-label {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-accent);
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

/* Navigation - Glassmorphism */
.nav-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dropdown-glass {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-link-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: var(--font-body);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    color: var(--color-gray-600);
    text-decoration: none;
}

.nav-link-modern:hover {
    color: var(--color-primary);
    background: rgba(31, 58, 95, 0.05);
}

.nav-link-modern.active {
    color: var(--color-primary);
    background: rgba(31, 58, 95, 0.08);
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-600);
    border-radius: 0.375rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: var(--color-gray-900);
    background-color: var(--color-gray-50);
}

/* Buttons */
.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
}

.btn-base::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-base:hover::after {
    transform: translateX(100%);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, #8B6914 0%, #C5A55A 25%, #D4B96E 50%, #C5A55A 75%, #8B6914 100%);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #C5A55A;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 105, 20, 0.35);
    background: linear-gradient(135deg, #6B5010 0%, #A48B48 25%, #B8A05A 50%, #A48B48 75%, #6B5010 100%);
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, #8B6914 0%, #C5A55A 25%, #D4B96E 50%, #C5A55A 75%, #8B6914 100%);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 105, 20, 0.35);
    background: linear-gradient(135deg, #6B5010 0%, #A48B48 25%, #B8A05A 50%, #A48B48 75%, #6B5010 100%);
}

.btn-primary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    background-color: white;
    border: 1px solid var(--color-gray-300);
    color: #1F3A5F;
}

.btn-primary-light:hover {
    background-color: var(--color-gray-50);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    background-color: transparent;
    color: #1F3A5F;
    border: 1px solid #1F3A5F;
    position: relative;
    overflow: hidden;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-secondary:hover::after {
    transform: translateX(100%);
}

.btn-secondary:hover {
    background-color: #1F3A5F;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    background-color: transparent;
    color: #1F3A5F;
    border: 1px solid #1F3A5F;
}

.btn-secondary-large:hover {
    background-color: #1F3A5F;
    color: #FFFFFF;
}

.btn-secondary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-secondary-light:hover {
    background-color: #FFFFFF;
    color: #1F3A5F;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: white;
    border: 1px solid transparent;
    background-color: #B23A3A;
    position: relative;
    overflow: hidden;
}

.btn-accent:hover {
    background-color: #962F2F;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    color: white;
    border: 1px solid transparent;
    background-color: #B23A3A;
}

.btn-accent-large:hover {
    background-color: #962F2F;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-light-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-secondary-light-large:hover {
    background-color: #FFFFFF;
    color: #1F3A5F;
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.375rem;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
    color: var(--color-gray-900);
}

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

.form-input:focus {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.375rem;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
    background-color: white;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.375rem;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
    resize: vertical;
    min-height: 120px;
}

/* Cards */
.community-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.community-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(194, 165, 95, 0.3);
}

.value-tile {
    transition: all 0.3s ease;
}

.value-tile:hover {
    transform: translateY(-4px);
}

/* Hero Sections */
.hero-section {
    position: relative;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
}

.hero-background {
    transition: transform 20s ease-out;
}

.hero-section:hover .hero-background {
    transform: scale(1.02);
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Prose Styling for Blog Content */
.prose {
    color: var(--color-gray-600);
    line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: var(--color-gray-900);
    font-family: var(--font-display);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.prose h2 {
    font-size: 1.875rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose h4 {
    font-size: 1.25rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose a {
    color: var(--color-gray-900);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: var(--color-gray-700);
}

.prose blockquote {
    border-left: 4px solid var(--color-gray-300);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--color-gray-700);
    margin: 1.5rem 0;
}

.prose ul,
.prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

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

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

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

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease-out;
    }
    
    .scroll-animate.in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High-End Luxury Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll-triggered luxury animations */
.luxury-animate {
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-animate.animate {
    opacity: 1;
}

.fade-up-luxury {
    transform: translateY(50px);
}

.fade-up-luxury.animate {
    transform: translateY(0);
}

.fade-left-luxury {
    transform: translateX(-40px);
}

.fade-left-luxury.animate {
    transform: translateX(0);
}

.fade-right-luxury {
    transform: translateX(40px);
}

.fade-right-luxury.animate {
    transform: translateX(0);
}

.scale-in-luxury {
    transform: scale(0.9);
}

.scale-in-luxury.animate {
    transform: scale(1);
}

/* Enhanced hover effects */
.luxury-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Sophisticated card effects */
.premium-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 3px 3px 0 0;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(194, 165, 95, 0.3);
}

.premium-card:hover::before {
    opacity: 1;
}

/* Parallax and smooth reveals */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Staggered animations */
.stagger-item {
    animation-fill-mode: both;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Elegant loading shimmer */
.luxury-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Smooth text reveal */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: textReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image zoom on scroll */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Sale Banner - Using Custom Graphic */
.sale-banner {
    position: absolute;
    top: 16px;
    left: -20px;
    width: 240px;
    height: 50px;
    background-image: url('/static/images/banner-red.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 32px;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Sale banner animation */
@keyframes bannerSlide {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sale-banner {
    animation: bannerSlide 0.6s ease-out 0.8s both;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        transform: translateX(100%);
    }
}

/* Gold accent divider */
.gold-divider {
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    border-radius: 2px;
}

.gold-divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #1F3A5F, #2a4a73);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.text-shadow-light {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-square {
    aspect-ratio: 1 / 1;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-secondary: #666666;
        --color-gray-600: #000000;
        --color-gray-700: #000000;
        --color-gray-800: #000000;
        --color-gray-900: #000000;
    }
    
    .btn-primary {
        border: 2px solid;
    }
    
    .btn-secondary {
        border: 2px solid;
    }
}

/* Reduced Motion Support */
@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;
    }
    
    .hero-background {
        transition: none;
    }
    
    .hero-section:hover .hero-background {
        transform: none;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: top 0.3s;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* Selection Styles */
::selection {
    background: var(--color-primary);
    color: white;
}

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

/* Hero Carousel Styles */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    transition: opacity 1000ms ease-in-out;
    opacity: 0;
}

.hero-slide.active {
    opacity: 1;
}

.carousel-indicator {
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicator.active {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.1);
}

/* Ensure carousel indicators are accessible */
.carousel-indicator:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Navigation hover effects */
nav a {
    transition: all 0.3s ease;
    transform: translateY(0);
}

nav a:hover {
    transform: translateY(-2px);
}

/* Loading animations */
.loading {
    opacity: 0.6;
    filter: blur(2px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Custom Toast Notifications */
.cf-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.cf-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 480px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
}

.cf-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.cf-toast.hiding {
    transform: translateX(120%);
    opacity: 0;
}

.cf-toast-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.cf-toast-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.cf-toast-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.cf-toast-info {
    background: #eff6ff;
    border: 1px solid var(--color-warm-sand);
    color: var(--color-primary);
}

.cf-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    margin-top: 1px;
}

.cf-toast-success .cf-toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.cf-toast-error .cf-toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.cf-toast-warning .cf-toast-icon {
    background: #fef3c7;
    color: #d97706;
}

.cf-toast-info .cf-toast-icon {
    background: var(--color-warm-sand);
    color: var(--color-primary);
}

.cf-toast-content {
    flex: 1;
}

.cf-toast-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.cf-toast-message {
    opacity: 0.85;
    white-space: pre-line;
}

.cf-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
    font-size: 18px;
    line-height: 1;
    color: inherit;
}

.cf-toast-close:hover {
    opacity: 1;
}

.cf-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
    transition: width linear;
}

.cf-toast-success .cf-toast-progress { background: #16a34a; }
.cf-toast-error .cf-toast-progress { background: #dc2626; }
.cf-toast-warning .cf-toast-progress { background: #d97706; }
.cf-toast-info .cf-toast-progress { background: var(--color-primary); }

/* Custom Confirm Dialog */
.cf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 58, 95, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cf-overlay.show {
    opacity: 1;
}

.cf-confirm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 99999;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    padding: 32px;
    max-width: 420px;
    width: 90%;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    font-family: var(--font-body);
}

.cf-confirm.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.cf-confirm-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--color-accent-red);
    font-size: 22px;
}

.cf-confirm-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 8px;
}

.cf-confirm-message {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.cf-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.cf-confirm-cancel {
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.cf-confirm-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.cf-confirm-ok {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: var(--color-accent-red);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.cf-confirm-ok:hover {
    background: var(--color-accent-red-hover);
}

/* Custom Form Validation */
.cf-field-error {
    display: none;
    font-size: 12px;
    color: var(--color-accent-red);
    margin-top: 4px;
    padding: 4px 8px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid var(--color-accent-red);
    font-family: var(--font-body);
    animation: cfSlideDown 0.25s ease;
}

.cf-field-error.visible {
    display: block;
}

@keyframes cfSlideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

input:invalid:not(:placeholder-shown) + .cf-field-error,
select:invalid:not(:placeholder-shown) + .cf-field-error {
    display: block;
}

.community-page-content {
    color: #374151;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
}
.community-page-content h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1F3A5F;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.community-page-content h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F3A5F;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.community-page-content p {
    margin-bottom: 1rem;
}
.community-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.community-page-content blockquote {
    border-left: 4px solid #C2A55F;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f9fafb;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}
.community-page-content ul,
.community-page-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.community-page-content li {
    margin-bottom: 0.5rem;
}
.community-page-content a {
    color: #C2A55F;
    text-decoration: underline;
}
.community-page-content a:hover {
    color: #8B6914;
}
.community-page-content iframe {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}
.prose-invert .community-page-content,
.community-page-content.prose-invert {
    color: #e5e7eb;
}
.prose-invert .community-page-content h2,
.community-page-content.prose-invert h2,
.prose-invert .community-page-content h3,
.community-page-content.prose-invert h3 {
    color: #ffffff;
}
.prose-invert .community-page-content a,
.community-page-content.prose-invert a {
    color: #C2A55F;
}
.prose-invert .community-page-content blockquote,
.community-page-content.prose-invert blockquote {
    background: rgba(255,255,255,0.05);
    border-left-color: #C2A55F;
    color: #d1d5db;
}

@media (max-width: 640px) {
    .btn-primary-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    .btn-secondary-large,
    .btn-secondary-light-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    nav#main-nav .max-w-7xl {
        height: 64px !important;
    }

    nav#main-nav img {
        height: 2.5rem !important;
    }

    footer .grid {
        gap: 2rem;
    }

    #notifier {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}
