/* ===== Ship Bottom Short Stay — Custom Styles ===== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4A0E18;
}

/* Selection */
::selection {
    background: #6B1D2A;
    color: #F5E6E0;
}

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

#navbar.scrolled {
    background: rgba(253, 248, 246, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(107, 29, 42, 0.08);
}

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

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

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

input::placeholder,
textarea::placeholder {
    color: #EDCFC4;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 1;
}

.mobile-link:hover {
    opacity: 0.7;
}

/* ===== Button Hover Effects ===== */
a[href="#contact"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

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

/* ===== Testimonial Cards ===== */
.reveal {
    opacity: 1;
    transform: translateY(24px);
}

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

/* Staggered delays for cards */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.24s; }

/* ===== Section Transitions ===== */
section {
    position: relative;
}

/* ===== Smooth anchor offset ===== */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .lg\:col-span-2 {
        grid-column: span 2;
    }
    
    /* Reduce scroll margin on mobile */
    section[id] {
        scroll-margin-top: 60px;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, #contactForm, button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
