/* Design System */
:root {
    --ember: #E25822;
    --ember-dark: #c45124;
    --charcoal: #111;
    --cream: #f4f4f4;
}

body {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    color: var(--charcoal);
    background-color: white;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
}

.ember { color: var(--ember); }
.ember-dark { color: var(--ember-dark); }
.ember-bg { background-color: var(--ember); }
.ember-bg-subtle { background-color: var(--ember-dark); }
.ember-border { border-color: var(--ember); }

/* Common Containers */
.premium-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
}

.premium-card:hover {
    transform: translateY(-8px);
    border-color: var(--ember);
    box-shadow: 0 15px 30px rgba(226, 88, 34, 0.1);
}

/* Hero Styles */
.hero-gradient {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Ensure parallax works on most mobile browsers */
@media (max-width: 768px) {
    .hero-gradient {
        background-attachment: fixed !important;
    }
}

/* Gallery Carousel */
#gallery-carousel div {
    flex-shrink: 0;
    width: 100%;
}

.gallery-dot.active {
    background-color: var(--ember);
    width: 2rem;
}

.gallery-dot {
    transition: all 0.3s ease;
}

.grid-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}

/* Faith Statements */
.faith-statement {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-left: 4px solid var(--ember);
    padding: 2rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.faith-statement:hover {
    transform: translateX(10px);
}

/* Background Gradients */
.bg-dark-gradient {
    background: linear-gradient(135deg, #0f0f0f 0%, #2a2a2a 100%);
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 88, 34, 0.1) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

/* Portrait Fix */
.portrait-crop {
    object-position: center top !important;
}

.object-cover {
    object-fit: cover !important;
}

/* Global Responsive Refinements */
@media (max-width: 640px) {
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
    .container { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .py-24 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-down {
    animation: slide-down 0.4s ease-out forwards;
}

img {
    max-width: 100%;
    height: auto;
}
