/* ==========================================
   OPALPIN LODGE & SPA - STYLES
   ========================================== */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

/* === BASE === */
body {
    font-family: 'Lato', sans-serif;
    background-color: #FFFFFF;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* === ANIMATIONS === */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.2s; }
.delay-200 { animation-delay: 0.4s; }
.delay-300 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ZOOM HOVER EFFECT === */
.zoom-hover {
    overflow: hidden;
    border-radius: 0.5rem;
}

.zoom-hover img {
    transition: transform 0.7s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom-hover:hover img {
    transform: scale(1.05);
}

/* === FORCED SHADOWS === */
#infos {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.icon-circle {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 
                0 4px 6px -4px rgba(0, 0, 0, 0.15) !important;
}

/* === PRELOADER === */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: #1c1917; /* stone-900 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease-out;
}

.preloader-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
}

.preloader-spinner {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader-logo {
    width: 10rem;
    position: relative;
    z-index: 10;
}

.preloader-text {
    color: #a8a29e; /* stone-400 */
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 2rem;
    font-weight: 300;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(28, 25, 23, 0.7), 
        rgba(28, 25, 23, 0.3), 
        rgba(28, 25, 23, 0.5));
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.hero-logo {
    margin-bottom: 1.5rem;
    width: 12rem;
    filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

@media (min-width: 768px) {
    .hero-logo { width: 16rem; }
}

.hero-logo img {
    width: 100%;
    filter: brightness(1.1);
}

.hero-title {
    color: white;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    font-variant-numeric: lining-nums;
}

@media (min-width: 768px) {
    .hero-title { font-size: 1.875rem; }
}

/* === BUTTONS === */
.btn-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .btn-container { flex-direction: row; }
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-airbnb {
    background: linear-gradient(to right, #ef4444, #ec4899);
    color: white;
    font-weight: 700;
}

.btn-airbnb:hover {
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3);
}

.btn-instagram {
    background: linear-gradient(to right, #9333ea, #db2777);
    color: white;
}

.btn-instagram:hover {
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.3);
}

.btn-email {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-email:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 1s infinite;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* === INFO SECTION === */
.info-section {
    padding: 4rem 1rem;
    position: relative;
    z-index: 20;
    border-radius: 1.5rem 1.5rem 0 0;
    margin-top: -1.5rem;
    background-color: #FFFFFF;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 
                0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .info-grid { grid-template-columns: repeat(4, 1fr); }
}

.info-item {
    padding: 1rem;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
}

.info-item:hover {
    background-color: #fafaf9; /* stone-50 */
}

.icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.75rem;
    background-color: #f5f5f4; /* stone-100 */
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #44403c; /* stone-700 */
}

/* === SEASONS SECTION === */
.seasons-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.season-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.75rem;
    height: 20rem;
}

.season-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.season-card:hover img {
    transform: scale(1.1);
}

.season-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.season-card:hover .season-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.season-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: white;
}

.season-content h3 {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.season-content p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* === LOVE ROOM SECTION === */
.loveroom-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, #1c1917, #44403c, #1c1917);
    background: linear-gradient(to bottom right, 
        rgb(76, 5, 25), 
        #1c1917, 
        rgb(76, 5, 25));
    color: white;
}

.loveroom-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.loveroom-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.loveroom-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fecdd3; /* rose-200 */
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    backdrop-filter: blur(4px);
    margin-bottom: 1rem;
}

.loveroom-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

@media (min-width: 768px) {
    .loveroom-title { font-size: 3rem; }
}

.loveroom-title span {
    background: linear-gradient(to right, #fecdd3, #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}

.loveroom-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(254, 205, 211, 0.3);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    border-radius: 9999px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.loveroom-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(254, 205, 211, 0.5);
    box-shadow: 0 0 20px rgba(255, 200, 200, 0.2);
}

.loveroom-btn svg {
    color: #fda4af; /* rose-300 */
    transition: transform 0.3s ease;
}

.loveroom-btn:hover svg {
    transform: scale(1.1);
}

.loveroom-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.loveroom-images img {
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    transition: transform 0.5s ease;
}

.loveroom-images img:first-child {
    transform: rotate(2deg);
}

.loveroom-images img:first-child:hover {
    transform: rotate(0);
}

.loveroom-images img:last-child {
    transform: rotate(-2deg) translateY(2rem);
}

.loveroom-images img:last-child:hover {
    transform: rotate(0) translateY(2rem);
}

/* === VISIT SECTION === */
.visit-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.visit-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e7e5e4; /* stone-200 */
    padding-bottom: 1rem;
}

.room-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .room-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.room-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .room-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.room-card {
    position: relative;
    height: 500px;
}

.room-card-tall {
    height: 600px;
}

.room-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.125rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .room-label {
        opacity: 0;
    }
    .zoom-hover:hover .room-label {
        opacity: 1;
    }
}

/* === FOOTER === */
.footer {
    background-color: #1c1917; /* stone-900 */
    color: #a8a29e; /* stone-400 */
    padding: 3rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer-logo {
    width: 5rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1rem;
}

.footer-links a {
    color: #a8a29e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    opacity: 0.3;
}

/* === UTILITIES === */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-lg {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.text-stone-400 { color: #a8a29e; }
.text-stone-500 { color: #78716c; }
.text-stone-600 { color: #57534e; }
.text-stone-800 { color: #292524; }

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.overflow-hidden { overflow: hidden; }

.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a8a29e;
}

.section-title {
    font-size: 1.875rem;
    margin-top: 0.5rem;
    font-family: 'Playfair Display', serif;
}

@media (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
}

.section-divider {
    width: 6rem;
    height: 0.25rem;
    background-color: #d6d3d1; /* stone-300 */
    margin: 1.5rem auto 0;
}
