/* ═══════════════════════════════════════════
   Sunset Lodge — Custom Styles
   Palette: Burgundy + Blush + Warm Neutrals
   ═══════════════════════════════════════════ */

/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #b82846;
    color: #fff;
}

/* ── Utility: Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.07s; }
    .reveal:nth-child(3) { transition-delay: 0.14s; }
    .reveal:nth-child(4) { transition-delay: 0.21s; }
}

/* ── Section Tag ── */
.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b82846;
    background: linear-gradient(135deg, #fce7eb 0%, #fad0d9 100%);
    padding: 0.35em 0.9em;
    border-radius: 9999px;
    border: 1px solid #f5a5b8;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #b82846 0%, #931c36 100%);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 16px rgba(147, 28, 54, 0.25);
    font-family: 'Outfit', system-ui, sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(147, 28, 54, 0.35);
    background: linear-gradient(135deg, #dc4466 0%, #b82846 100%);
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #781930;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid #f5a5b8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Outfit', system-ui, sans-serif;
}

.btn-outline:hover {
    background: #fce7eb;
    border-color: #f5a5b8;
    transform: translateY(-2px);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fad0d9;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid rgba(250, 208, 217, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Outfit', system-ui, sans-serif;
}

.btn-outline-light:hover {
    background: rgba(250, 208, 217, 0.12);
    border-color: rgba(250, 208, 217, 0.6);
    transform: translateY(-2px);
}

/* ── Cards ── */
.card {
    background: #fff;
    border-radius: 1.375rem;
    padding: 1.25rem;
    box-shadow: 0 4px 24px rgba(147, 28, 54, 0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(245, 165, 184, 0.15);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 56px rgba(147, 28, 54, 0.14);
}

/* ── Feature Cards ── */
.feature-card {
    background: #fff;
    border-radius: 1.375rem;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(147, 28, 54, 0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(245, 165, 184, 0.12);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(147, 28, 54, 0.12);
    border-color: rgba(245, 165, 184, 0.3);
}

/* ── FAQ ── */
.faq-item {
    border: 1px solid rgba(245, 165, 184, 0.15);
}

.faq-content {
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-content.open {
    opacity: 1;
}

.faq-content p {
    line-height: 1.75;
}

/* ── Floating Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

/* ── Navbar ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b82846, #dc4466);
    border-radius: 9999px;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mobile-link {
    display: block;
    text-decoration: none;
}

/* ── Mobile menu animation ── */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f5;
}
::-webkit-scrollbar-thumb {
    background: #f5a5b8;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b82846;
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #b82846;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .animate-float {
        animation: none;
    }
}
