/* ============================================
   Camp Stidwell — Custom Styles
   Bold editorial · Burgundy + Blush
   ============================================ */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #78281F;
    color: #FDF8F4;
}

/* ---- Section Labels ---- */
.section-label {
    position: relative;
    display: inline-block;
}

.section-label::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 1px;
    background-color: currentColor;
}

/* ---- Section Titles ---- */
.section-title {
    position: relative;
}

/* ---- Buttons ---- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(120, 40, 31, 0.3);
}

.btn-secondary {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(120, 40, 31, 0.15);
}

/* ---- Badges ---- */
.badge-accent {
    display: inline-block;
    background: linear-gradient(135deg, #78281F 0%, #c92720 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4em 1em;
    border-radius: 2px;
}

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

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

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

.mobile-nav-link {
    position: relative;
}

/* ---- Hero Animations ---- */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background-image: linear-gradient(
        to bottom,
        rgba(45, 13, 10, 0.55) 0%,
        rgba(45, 13, 10, 0.35) 50%,
        rgba(45, 13, 10, 0.7) 100%
    );
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-subtitle,
    .hero-headline,
    .hero-description,
    .hero-cta {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group img {
        transition: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    animation: fadeInUp 1s ease 2.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ---- Image Hover ---- */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Input Focus ---- */
input:focus,
textarea:focus {
    border-color: #ffd6c8 !important;
    box-shadow: 0 0 0 3px rgba(255, 214, 200, 0.15);
}

/* ---- Form Input Placeholder ---- */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Mobile Menu ---- */
#mobile-menu {
    pointer-events: auto;
}

/* ---- Navbar Scroll State ---- */
nav.scrolled {
    background: rgba(45, 13, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---- Divider Line ---- */
.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #78281F, #ffd6c8);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c92720;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .section-label::before {
        display: none;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-headline br {
        display: none;
    }
    
    .hero-headline {
        font-size: 2.25rem;
        line-height: 1.1;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2rem;
    }
}
