/* ========================================
   ECFS Landing Page Custom Styles
   Ekantik Capital Advisors LLC
   ======================================== */

/* CSS Variables for Brand Colors */
:root {
    --navy-950: #0a0e1a;
    --navy-900: #0f1629;
    --navy-800: #1a2235;
    --gold-400: #f5c563;
    --gold-500: #f0b940;
    --gold-600: #d9a42e;
}

/* Base Styles */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', Georgia, serif;
}

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

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

::-webkit-scrollbar-track {
    background: var(--navy-950);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5c563 0%, #d9a42e 100%);
    color: var(--navy-950);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 197, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 197, 99, 0.4);
    background: linear-gradient(135deg, #ffd480 0%, #f0b940 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #f5c563;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: 2px solid #f5c563;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(245, 197, 99, 0.1);
    border-color: #ffd480;
    color: #ffd480;
    transform: translateY(-2px);
}

/* Header Scroll Effect */
#header.scrolled {
    background: rgba(15, 22, 41, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 500px;
    opacity: 1;
}

/* FAQ Accordion */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

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

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(245, 197, 99, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #6b7280;
}

/* Form Message Styles */
#form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

#form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(245, 197, 99, 0.3);
    border-radius: 50%;
    border-top-color: #f5c563;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #f5c563 0%, #ffd480 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Border Colors */
.border-gold-500\/20 {
    border-color: rgba(240, 185, 64, 0.2);
}

.border-gold-500\/30 {
    border-color: rgba(240, 185, 64, 0.3);
}

.border-gold-400\/50 {
    border-color: rgba(245, 197, 99, 0.5);
}

/* Backdrop Blur Enhancement */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hover Effects for Cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 197, 99, 0.2);
}

/* Timeline Connector Line */
.timeline-line {
    position: relative;
}

.timeline-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #f5c563, #d9a42e);
    transform: translateX(-50%);
}

/* Number Badge Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 197, 99, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 197, 99, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    #contact,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
}

/* Accessibility: Focus Visible */
*:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
}

/* Custom Navy Colors for Tailwind */
.bg-navy-950 {
    background-color: var(--navy-950);
}

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

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

.text-gold-400 {
    color: var(--gold-400);
}

.text-gold-500 {
    color: var(--gold-500);
}

.text-gold-600 {
    color: var(--gold-600);
}

/* Gradient Backgrounds */
.bg-gold-gradient {
    background: linear-gradient(135deg, #f5c563 0%, #d9a42e 100%);
}

/* Box Shadow Utilities */
.shadow-gold {
    box-shadow: 0 10px 30px rgba(245, 197, 99, 0.2);
}

.shadow-gold-lg {
    box-shadow: 0 20px 50px rgba(245, 197, 99, 0.3);
}

/* Text Shadow for Better Readability */
.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Calculator Result Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-result {
    animation: slideIn 0.3s ease-out;
}

/* Loading State for Form */
.form-loading {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.checkmark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmark 0.5s ease-out forwards;
}

/* Utility: Hidden but accessible for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Link Hover Effects */
a {
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--gold-400);
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-500), transparent);
    margin: 4rem 0;
}

/* Hero Background Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

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

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .border-gold-500\/20,
    .border-gold-500\/30 {
        border-color: var(--gold-400);
        border-width: 2px;
    }
}

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

/* Dark Mode Already Default - No Need for Toggle */

/* Custom Number Input Styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 40px;
}

/* Selection Color */
::selection {
    background-color: var(--gold-400);
    color: var(--navy-950);
}

::-moz-selection {
    background-color: var(--gold-400);
    color: var(--navy-950);
}
