/* Faith Haven — Custom Styles */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    font-family: 'Nunito', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Serif font for headings */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Gold gradient text */
.gold-gradient-text {
    background: linear-gradient(135deg, #f4d98a, #d49a0a, #b07806);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card shadows */
.card-shadow {
    box-shadow: 0 4px 24px rgba(10, 31, 61, 0.08);
}

.card-shadow-lg {
    box-shadow: 0 8px 40px rgba(10, 31, 61, 0.12);
}

/* Navbar blur */
.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Scroll reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #d49a0a, #b07806);
    color: #0a1f3d;
    font-weight: 700;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 154, 10, 0.35);
}

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

/* Secondary button */
.btn-secondary {
    border: 2px solid #f4d98a;
    color: #f4d98a;
    font-weight: 700;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #f4d98a;
    color: #0a1f3d;
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f4d98a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
    max-height: 400px;
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0a1f3d 0%, #1a3f6b 40%, #2d5a87 70%, #d49a0a 100%);
}

/* Active nav link highlight */
.nav-link.active {
    color: #f4d98a;
}

.nav-link.active::after {
    width: 100%;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e8eef5, #d5e1ed);
    background-size: 200% 200%;
    animation: shimmer 1.5s ease-in-out infinite;
}

img.loaded {
    animation: none;
    background: none;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f4d98a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(212, 154, 10, 0.25);
    color: #0a1f3d;
}

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

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

::-webkit-scrollbar-thumb {
    background: #a8bdd4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7b98bb;
}

/* Ensure form inputs are accessible */
input, textarea, select {
    font-family: 'Nunito', sans-serif;
    border-radius: 12px;
    border: 2px solid #d5e1ed;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #0a1f3d;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #d49a0a;
    box-shadow: 0 0 0 3px rgba(212, 154, 10, 0.15);
}

input::placeholder, textarea::placeholder {
    color: #a8bdd4;
}
