/* ============================================
   EVERGREEN COTTAGE — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    background-color: #fffdf7;
    color: #022c22;
}

/* ============================================
   GEOMETRIC ANIMATIONS
   ============================================ */

.geo-shape {
    animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-circle-2 {
    position: absolute;
    top: 60%;
    right: 8%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation-delay: -2s;
}

.shape-circle-3 {
    position: absolute;
    bottom: 15%;
    left: 15%;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(167, 243, 208, 0.15);
    border-radius: 50%;
    animation-delay: -4s;
}

.shape-square-1 {
    position: absolute;
    top: 25%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: rgba(52, 211, 153, 0.08);
    transform: rotate(45deg);
    animation-delay: -1s;
}

.shape-square-2 {
    position: absolute;
    bottom: 25%;
    right: 25%;
    width: 50px;
    height: 50px;
    background: rgba(110, 231, 183, 0.1);
    transform: rotate(30deg);
    animation-delay: -3s;
}

.shape-triangle-1 {
    position: absolute;
    top: 40%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(167, 243, 208, 0.08);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Dot Grid Pattern */
.dot-grid {
    background-image: radial-gradient(circle, rgba(167, 243, 208, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   Progressive enhancement — content visible without JS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* ============================================
   NAVBAR
   ============================================ */

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

#navbar.scrolled {
    background: rgba(255, 253, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(2, 44, 34, 0.08);
}

/* ============================================
   MOBILE MENU
   ============================================ */

#mobileMenu {
    background: rgba(255, 253, 247, 0.98);
    backdrop-filter: blur(20px);
}

#mobileMenu.open {
    transform: translateX(0);
}

.menu-line {
    display: block;
}

/* Hamburger animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
    margin-left: 0;
}

/* ============================================
   FORM STYLES
   ============================================ */

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(5) hue-rotate(115deg);
    cursor: pointer;
}

select option {
    background: #064e3b;
    color: #d1fae5;
}

/* ============================================
   FOCUS STYLES
   ============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   UTILITY
   ============================================ */

::selection {
    background: rgba(16, 185, 129, 0.2);
    color: #022c22;
}
