/* ══════════════════════════════════════════
   Shamanic Practices — Custom Styles
   ══════════════════════════════════════════ */

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

/* ── Body defaults ── */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Header glassmorphism on scroll ── */
#main-header {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header.header-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ── Fade-in animations ── */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in-section:nth-child(2) { transition-delay: 0.1s; }
.fade-in-section:nth-child(3) { transition-delay: 0.2s; }
.fade-in-section:nth-child(4) { transition-delay: 0.3s; }
.fade-in-section:nth-child(5) { transition-delay: 0.4s; }

/* ── Heading font ── */
.font-heading {
    font-family: 'Playfair Display', serif;
}

/* ── Button hover lift ── */
a[data-scroll-to],
button[type="submit"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Gallery image hover ── */
.grid img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid img:hover {
    transform: scale(1.02);
}

/* ── Form focus states ── */
input:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5a7a6b;
}

/* ── Selection color ── */
::selection {
    background: rgba(107, 144, 128, 0.2);
    color: #2C3E35;
}

/* ── Image placeholder (gradient while loading) ── */
img {
    background: linear-gradient(135deg, #F5F3EF 0%, #e0ddd7 100%);
}

/* ── Mobile menu animation ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.15 !important;
    }
    h2 {
        font-size: 1.75rem !important;
    }
}

/* ── Loading spinner for form submit ── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}
