/* ===================================
   GRAND SAPPHIRE HOTEL - Custom CSS
   Luxury Boutique Hotel Theme
   =================================== */

/* ---------- Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #333;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    white-space: pre-wrap;
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

::selection {
    background-color: #b8860b;
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f0;
}
::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(184, 134, 11, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* ---------- Animation Classes ---------- */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Delay classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #152c4a 50%, #0d1f35 100%);
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(184, 134, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(184, 134, 11, 0.1) 0%, transparent 50%);
    z-index: 2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8860b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* ---------- Gold Divider ---------- */
.gold-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b8860b, transparent);
    margin: 1rem auto;
}

.gold-divider-left {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #b8860b, transparent);
    margin: 1rem 0;
}

/* ---------- Section Title ---------- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-title h2 {
        font-size: 3rem;
    }
}

/* ---------- Room Cards ---------- */
.room-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.15);
}

.room-card .room-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.room-card .room-image img,
.room-card .room-image .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.room-card:hover .room-image img,
.room-card:hover .room-image .placeholder-img {
    transform: scale(1.08);
}

.room-card .room-price {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(184, 134, 11, 0.95);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* ---------- Service Cards ---------- */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b8860b, #d4a017);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 58, 95, 0.1);
    border-color: transparent;
}

.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #faf8f0, #f0ece0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
    background: linear-gradient(135deg, #1e3a5f, #2a4f7f);
    transform: scale(1.1);
}

.service-card .icon-wrapper i {
    font-size: 1.5rem;
    color: #b8860b;
    transition: color 0.4s ease;
}

.service-card:hover .icon-wrapper i {
    color: #fff;
}

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item img,
.gallery-item .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.gallery-item:hover img,
.gallery-item:hover .placeholder-img {
    transform: scale(1.1);
}

/* ---------- Filter Buttons ---------- */
.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    background: transparent;
    color: #666;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1e3a5f;
    color: #fff;
    border-color: #1e3a5f;
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.testimonial-card::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: #b8860b;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

/* ---------- Placeholder Images ---------- */
.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #b8860b;
    position: relative;
}

.placeholder-img.room-std { background: linear-gradient(135deg, #d4c5a0, #e8dcc8); }
.placeholder-img.room-dlx { background: linear-gradient(135deg, #c4b896, #d8ccb0); }
.placeholder-img.room-suite { background: linear-gradient(135deg, #a89870, #c4b896); }
.placeholder-img.room-king { background: linear-gradient(135deg, #8b7a50, #a89870); }
.placeholder-img.room-pent { background: linear-gradient(135deg, #6b5a30, #8b7a50); }
.placeholder-img.room-honey { background: linear-gradient(135deg, #c4a0a0, #d8b8b8); }

.placeholder-img.gallery-rooms { background: linear-gradient(135deg, #bfcdd9, #d4dfe8); }
.placeholder-img.gallery-restaurant { background: linear-gradient(135deg, #d9c4bf, #e8d8d4); }
.placeholder-img.gallery-spa { background: linear-gradient(135deg, #bfd9c4, #d4e8d8); }
.placeholder-img.gallery-general { background: linear-gradient(135deg, #d9d4bf, #e8e0d4); }

/* ---------- Form Styles ---------- */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #152c4a 100%);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8860b' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    position: relative;
}

.page-hero .breadcrumb {
    position: relative;
    margin-top: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.page-hero .breadcrumb a {
    color: #b8860b;
    text-decoration: none;
    transition: color 0.3s;
}

.page-hero .breadcrumb a:hover {
    color: #d4a017;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 10rem 0 5rem;
    }
    .page-hero h1 {
        font-size: 3.5rem;
    }
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #152c4a 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(184, 134, 11, 0.15) 0%, transparent 60%);
}

/* ---------- Star Rating ---------- */
.stars {
    color: #b8860b;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* ---------- Badge ---------- */
.badge-gold {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #b8860b, #d4a017);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 100vh;
    }
}

/* ---------- Scroll Reveal Init ---------- */
.reveal, .reveal-left, .reveal-right {
    will-change: transform, opacity;
}

/* ---------- Lightbox (Gallery) ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    color: #b8860b;
}

/* ---------- Luxury Line Effect ---------- */
.luxury-line {
    position: relative;
}

.luxury-line::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #b8860b;
    transition: width 0.4s ease;
}

.luxury-line:hover::after {
    width: 100%;
}
