/* Custom CSS for Eligible Chamber Website */

/* CSS Variables for Premium Color Scheme */
:root {
    --navy: #1e3a5f;
    --navy-dark: #152a45;
    --navy-light: #2a4d73;
    --terracotta: #c85d44;
    --terracotta-dark: #a84a35;
    --terracotta-light: #d67a65;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
}

/* Tailwind Custom Colors */
.text-navy {
    color: var(--navy);
}

.bg-navy {
    background-color: var(--navy);
}

.bg-navy-dark {
    background-color: var(--navy-dark);
}

.hover\:bg-navy-dark:hover {
    background-color: var(--navy-dark);
}

.text-terracotta {
    color: var(--terracotta);
}

.bg-terracotta {
    background-color: var(--terracotta);
}

.bg-terracotta-dark {
    background-color: var(--terracotta-dark);
}

.hover\:bg-terracotta-dark:hover {
    background-color: var(--terracotta-dark);
}

/* Typography Enhancements */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

h1, h2, h3 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Typing Animation */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.typing-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    font-weight: 300;
    margin-left: 2px;
}

/* Section Transitions */
section {
    transition: all 0.3s ease;
}

/* Form Styling Refinements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

input[type="text"].border-red-500,
input[type="email"].border-red-500,
input[type="tel"].border-red-500,
input[type="number"].border-red-500,
textarea.border-red-500 {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* File Input Styling */
input[type="file"] {
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    cursor: pointer;
}

/* Button Hover Effects */
button,
a.bg-navy,
a.bg-terracotta {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover,
a.bg-navy:hover,
a.bg-terracotta:hover {
    transform: translateY(-2px);
}

button:active,
a.bg-navy:active,
a.bg-terracotta:active {
    transform: translateY(0);
}

/* Card Hover Effects */
.bg-white.shadow-lg {
    transition: all 0.3s ease;
}

.bg-white.shadow-lg:hover {
    transform: translateY(-4px);
}

/* Image Preview Styling */
#imagePreview img {
    transition: all 0.3s ease;
}

#imagePreview img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Loading State */
#submitLoading {
    display: inline-block;
}

#submitLoading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Premium Spacing */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

/* Custom Scrollbar (Optional - for webkit browsers) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-dark);
}

/* Header Navigation Styles */
header {
    transition: all 0.3s ease;
}

header nav a {
    position: relative;
}

header nav a:not(.bg-terracotta):hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--navy);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Hero Section Enhancements */
#hero {
    padding-top: 4rem; /* Account for fixed header */
    /* Unsplash image - romantic couple */
    /* 
     * To change the image:
     * 1. Visit unsplash.com and search for "couple in love" or similar
     * 2. Click on an image, then click "Download" or right-click and "Copy image address"
     * 3. Replace the URL below with your chosen image URL
     * 
     * Other free stock photo sources:
     * - Pexels (pexels.com) - Similar to Unsplash, free high-quality photos
     * - Pixabay (pixabay.com) - Free stock photos and vectors
     * - Pexels direct URL format: https://images.pexels.com/photos/[id]/pexels-photo-[id].jpeg?auto=compress&cs=tinysrgb&w=1920
     */
    background-image: url('https://images.unsplash.com/photo-1518568814500-bf0f8d125f46?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Overlay for text readability */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.75) 0%, rgba(200, 93, 68, 0.65) 100%);
    z-index: 0;
}

#hero > div {
    position: relative;
    z-index: 10;
}

/* Responsive background attachment */
@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Form Section Enhancements */
#form {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

/* Message Animations */
#formMessage {
    animation: fadeInUp 0.4s ease-out;
}

/* Investment Section Background */
#investment {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 50%, #f8fafc 100%);
    position: relative;
}

#investment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(30, 58, 95, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(200, 93, 68, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

#investment > div {
    position: relative;
    z-index: 1;
}

/* Print Styles */
@media print {
    .bg-navy,
    .bg-terracotta {
        background-color: #000 !important;
        color: #fff !important;
    }
}
