/* ============================================
   Kats Bed and Breakfast — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(4, 120, 87, 0.15);
    color: #065f46;
}

/* ============================================
   Navigation
   ============================================ */
.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-logo-sub {
    transition: color 0.4s ease;
}

/* Transparent nav (over hero) */
nav.bg-transparent .nav-logo-text {
    color: #047857;
}

nav.bg-transparent .nav-logo-sub {
    color: rgba(6, 95, 70, 0.7);
}

nav.bg-transparent .nav-link {
    color: rgba(6, 95, 70, 0.85);
}

/* Solid nav (after scroll) */
nav.bg-solid {
    background: rgba(253, 248, 240, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

nav.bg-solid .nav-logo-text {
    color: #047857;
}

nav.bg-solid .nav-logo-sub {
    color: rgba(6, 95, 70, 0.7);
}

nav.bg-solid .nav-link {
    color: #78716c;
}

nav.bg-solid .nav-link:hover {
    color: #047857;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    background: rgba(253, 248, 240, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    color: #047857;
    transform: translateX(4px);
}

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

#menu-toggle.active .menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    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-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    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-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    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-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Bounce Animation (scroll indicator)
   ============================================ */
@keyframes bounce-slow {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 8px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus,
select:focus {
    border-color: #047857 !important;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23047857' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

/* ============================================
   Date Input Styling
   ============================================ */
input[type="date"] {
    color: #57534e;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.4;
    cursor: pointer;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

@media (min-width: 768px) {
    /* Subtle parallax-like effect for hero */
    .hero-img {
        will-change: transform;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
