/* ============================================
   Castle Horgan — Custom Styles
   Premium Dark Luxury · Terracotta + Sand
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: #08070A;
    color: #F5EDE4;
    font-family: 'Montserrat', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background-color: #B5634A;
    color: #F5EDE4;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0E0D10;
}
::-webkit-scrollbar-thumb {
    background: #3D3B42;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B5634A;
}

/* --- Animations --- */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    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);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Navigation --- */
#nav {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#nav.scrolled {
    background: rgba(8, 7, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(61, 59, 66, 0.3);
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* --- Menu Button --- */
.menu-line-1 {
    transform-origin: center;
}
.menu-line-2 {
    transform-origin: center;
}
.menu-line-3 {
    transform-origin: center;
}

#menu-btn.active .menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-btn.active .menu-line-2 {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active .menu-line-3 {
    transform: rotate(-45deg) translate(3px, -3px);
}

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

select option {
    background: #1F1D24;
    color: #F5EDE4;
}

/* --- Image Hover --- */
img {
    display: block;
    max-width: 100%;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #C8956C;
    outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 span {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 4rem;
    }
}

/* --- Print --- */
@media print {
    #nav, #mobile-menu, .animate-scroll-indicator {
        display: none !important;
    }

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