/* ========================================
   Professor G's Guest House — Custom Styles
   ======================================== */

/* Reset & Base */
*, *::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-color: rgba(13, 148, 136, 0.2);
    color: inherit;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation-name: fadeUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll line animation */
@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ========================================
   Scroll Reveal
   ======================================== */

.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.section-reveal:nth-child(2) { transition-delay: 0.1s; }
.section-reveal:nth-child(3) { transition-delay: 0.2s; }
.section-reveal:nth-child(4) { transition-delay: 0.3s; }
.section-reveal:nth-child(5) { transition-delay: 0.4s; }
.section-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   Navigation
   ======================================== */

.nav-logo-text {
    transition: color 0.3s ease;
}

/* ========================================
   Form Styles
   ======================================== */

input[type="date"] {
    color-scheme: light;
}

select option {
    padding: 8px;
}

/* ========================================
   Focus Visible
   ======================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* ========================================
   Responsive Utilities
   ======================================== */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
