/* ========================================
   Esken Hall — Custom Styles
   ======================================== */

/* 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(212, 160, 23, 0.2);
    color: #102a43;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #d4a017;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e7b340;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Mobile Menu
   ======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d4a017;
    transition: width 0.3s ease;
}

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

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Card Hover Effects
   ======================================== */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* ========================================
   Button Focus States
   ======================================== */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ========================================
   Input Focus States
   ======================================== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

/* ========================================
   Smooth image loading
   ======================================== */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded,
img[data-loaded="true"] {
    opacity: 1;
}

/* ========================================
   Utility: Aspect ratio helpers
   ======================================== */
.ratio-16\/9 {
    aspect-ratio: 16 / 9;
}

.ratio-4\/3 {
    aspect-ratio: 4 / 3;
}

/* ========================================
   Print styles
   ======================================== */
@media print {
    nav, footer, #contact-form, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}
