/* ============================================
   Thrifty Treasures — Custom Styles
   Classic & Elegant | Charcoal + Coral
   ============================================ */

:root {
    --charcoal-dark: #2C2C2C;
    --charcoal-mid: #3A3A3A;
    --coral: #E87461;
    --coral-dark: #D4604E;
    --coral-light: #F09080;
    --stone-50: #FAFAF8;
    --stone-100: #F5F5F0;
    --stone-200: #E8E8E0;
    --stone-300: #D4D4CC;
    --stone-400: #A8A89E;
    --stone-500: #787870;
    --stone-600: #52524A;
    --stone-700: #3A3A34;
    --stone-800: #262620;
    --font-playfair: 'Playfair Display', Georgia, serif;
    --font-lato: 'Lato', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-lato);
    color: var(--charcoal-dark);
    background-color: var(--stone-50);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.font-playfair { font-family: var(--font-playfair); }
.font-lato { font-family: var(--font-lato); }

/* Section Labels */
.section-label {
    font-family: var(--font-lato);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--coral);
}

/* Section Titles */
.section-title {
    font-family: var(--font-playfair);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--charcoal-dark);
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(44, 44, 44, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .font-playfair,
#navbar.scrolled .nav-link,
#navbar.scrolled .scroll-indicator {
    color: #ffffff;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(44, 44, 44, 0.65) 0%,
        rgba(44, 44, 44, 0.45) 40%,
        rgba(44, 44, 44, 0.55) 70%,
        rgba(44, 44, 44, 0.85) 100%
    );
}

/* Scroll Indicator */
.scroll-indicator {
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Hero Reveal Animations */
.hero-reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.2s; }
.hero-reveal:nth-child(2) { animation-delay: 0.4s; }
.hero-reveal:nth-child(3) { animation-delay: 0.6s; }
.hero-reveal:nth-child(4) { animation-delay: 0.8s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered delays for feature cards */
.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4) { transition-delay: 0.2s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    cursor: pointer;
}

.feature-card img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover img {
    transform: scale(1.05);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   Form Styles
   ============================================ */
input:focus, textarea:focus {
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: var(--stone-400);
}

/* ============================================
   Utility & Spacing
   ============================================ */
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

@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-up, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: var(--coral);
    color: #ffffff;
}
