/* ============================================
   Little St Simons Island — Custom Styles
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(26, 60, 42, 0.2);
    color: #1a3c2a;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
#mobile-menu {
    box-shadow: inset 0 -1px 0 rgba(26, 60, 42, 0.1);
}

.mobile-link {
    position: relative;
}

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

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #faf8f4, transparent);
    pointer-events: none;
    z-index: 1;
}

/* Floating Stat Cards */
.stat-card {
    animation: float-card-1 6s ease-in-out infinite;
    transform-origin: center;
}

.stat-card-stat {
    animation: float-card-2 6s ease-in-out infinite;
    transform-origin: center;
}

.stat-card-stat2 {
    animation: float-card-1 6s ease-in-out infinite;
    animation-delay: -2s;
    transform-origin: center;
}

.stat-card-stat3 {
    animation: float-card-2 6s ease-in-out infinite;
    animation-delay: -4s;
    transform-origin: center;
}

@keyframes float-card-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-card-2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
}

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* When JS is active, add hidden state then animate in */
.js-enabled .reveal-up {
    opacity: 0;
    transform: translateY(32px);
}

.js-enabled .reveal-left {
    opacity: 0;
    transform: translateX(-32px);
}

.js-enabled .reveal-right {
    opacity: 0;
    transform: translateX(32px);
}

.js-enabled .reveal-up.revealed,
.js-enabled .reveal-left.revealed,
.js-enabled .reveal-right.revealed {
    opacity: 1;
    transform: none;
}

/* ============================================
   Buttons & Interactive Elements
   ============================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3d7a41;
    outline-offset: 2px;
}

/* ============================================
   Form Styles
   ============================================ */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(90deg);
    cursor: pointer;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a3c2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============================================
   Image Hover Effects
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8bb88e;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    #hero::after {
        height: 60px;
    }

    .stat-card,
    .stat-card-stat,
    .stat-card-stat2,
    .stat-card-stat3 {
        animation: none !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #mobile-menu-btn,
    #contact-form,
    #form-success {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        color: black !important;
        text-decoration: underline;
    }
}
