/* Pigs Fly and Co — Custom Styles */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #FF6B4A;
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #FF6B4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E85A3A;
}

/* Smooth focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 3px;
}

/* Subtle image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Mobile menu link transitions */
.mobile-link {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-link:hover {
    color: #FF6B4A;
    padding-left: 8px;
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Room card image container */
.room-card .overflow-hidden {
    position: relative;
}

.room-card .overflow-hidden::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
    pointer-events: none;
}

/* Button ripple effect */
.btn-coral::after,
.btn-outline-coral::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-coral:active::after,
.btn-outline-coral:active::after {
    width: 200px;
    height: 200px;
}

.btn-coral,
.btn-outline-coral {
    position: relative;
    overflow: hidden;
}

/* Decorative line animation on hover */
.section-divider {
    transition: width 0.5s ease;
}

.section-divider:hover {
    width: 100px;
}

/* Image parallax container */
.room-card img,
#about img,
#location img {
    will-change: transform;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .animate-bounce {
        animation: none;
    }
    .room-card:hover {
        transform: none;
    }
    .room-card:hover img {
        transform: none;
    }
    .btn-coral:hover,
    .btn-outline-coral:hover {
        transform: none;
    }
}

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

/* Small mobile */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
