/* Custom styles for Boody-Johnson House */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #0a1628;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b865;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a2d4d 0%, #233b63 100%);
    min-height: 100px;
}

/* Gold accent underline for headings */
.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c9a84c, #e0c87e);
}

/* Room card image container */
.room-card .aspect-\[4\/3\] {
    position: relative;
    overflow: hidden;
}

/* Subtle pattern for cream sections */
.bg-cream-50 {
    background-color: #faf8f4;
    background-image: radial-gradient(circle at 1px 1px, rgba(10,22,40,0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Mobile link padding */
.mobile-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Ensure hero content is always visible */
#hero h1,
#hero p,
#hero .inline-flex,
#hero .relative.z-10 > div > div {
    opacity: 1 !important;
    transform: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .room-card {
        transition: none;
    }
    .room-card:hover {
        transform: none;
    }
    img {
        transition: none;
    }
    img:hover {
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .gold-line {
        width: 40px;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .room-card {
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
}
