/* Custom styles that complement Tailwind */

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #c8a84e;
    color: #0a1628;
}

/* Smooth focus for accessibility */
:focus-visible {
    outline: 2px solid #c8a84e;
    outline-offset: 2px;
}

/* Mobile menu link styles */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Nav link hover effect */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c8a84e;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Image lazy load fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .room-card:hover {
        transform: none;
    }
    .img-zoom:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuOverlay, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
    .hero-split {
        min-height: auto;
        page-break-inside: avoid;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
    }
    .hero-img-container {
        display: none;
    }
    section {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .hero-split {
        grid-template-columns: 1fr 1fr;
    }
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(200, 168, 78, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
