/* ==========================================================================
   Happiness Deluxe Hotel & Suites - Ultra Luxury Design System
   ========================================================================== */

:root {
    --purple-dark: #120524;
    --purple-main: #1a0b2e;
    --purple-light: #2D1B4E;
    --gold: #d4af37;
    --gold-light: #F4E5A3;
    --gold-dark: #aa8929;
    --text-light: #ffffff;
    --text-muted: #b3b3b3;
    --text-dark: #111111;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
    
    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.title-primary {
    font-size: clamp(3rem, 5vw, 5.5rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.title-secondary {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--purple-dark);
    margin-bottom: 2rem;
    position: relative;
}

.subtitle {
    font-family: var(--font-accent);
    color: var(--gold);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    display: block;
}

.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* Layout */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background-color: var(--purple-dark);
    color: var(--text-light);
}
.section-dark .title-secondary { color: var(--text-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--purple-dark);
}

.btn-gold:hover {
    background-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--purple-dark);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--purple-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 120px;
    margin-bottom: 30px;
    animation: pulse 2s infinite ease-in-out;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.loading-line {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loading-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%; width: 50%;
    background: var(--gold);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes loading {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-fast);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(18, 5, 36, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 5%;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.nav-brand img {
    width: 50px;
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.nav-brand span {
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--gold);
    transition: var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

.mobile-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Page Header (Inner pages) */
.page-header {
    height: 60vh;
    min-height: 400px;
    background-color: var(--purple-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Fine Cards (Rooms & Amenities) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.fine-card {
    background: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: var(--transition-slow);
    position: relative;
}

.fine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.fine-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-price-badge {
    position: absolute;
    bottom: 0; right: 0;
    background: var(--purple-dark);
    color: var(--gold);
    padding: 15px 25px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.card-content {
    padding: 40px;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card-amenities {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.card-amenities i {
    color: var(--gold);
    margin-right: 5px;
}

/* Scroll Reveals (JS will add .visible) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Footer */
.footer {
    background: var(--purple-dark);
    color: var(--text-light);
    padding: 100px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 400px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icons a {
    color: var(--gold);
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    color: var(--text-light);
    transform: translateY(-5px);
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--gold);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--gold);
    padding-left: 10px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Booking Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 5, 36, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px;
    position: relative;
    transform: translateY(50px);
    transition: var(--transition-slow);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 30px; right: 30px;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--purple-dark);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-light);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--gold);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 40px; right: 40px;
    z-index: 1500;
}

.chat-btn {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--purple-dark);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: var(--transition-fast);
}

.chat-btn:hover {
    transform: scale(1.1);
}

.chat-box {
    position: absolute;
    bottom: 90px; right: 0;
    width: 380px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--purple-dark);
    color: var(--text-light);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    height: 350px;
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 0.95rem;
}

.msg.bot {
    background: var(--bg-white);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg.user {
    background: var(--purple-dark);
    color: var(--text-light);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: var(--bg-white);
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-family: var(--font-body);
}

.chat-input button {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: var(--purple-dark);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-slow);
    }
    .nav-links.active { right: 0; }
    .mobile-toggle { display: block; z-index: 1001; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .title-primary { font-size: 2.5rem; }
    .title-secondary { font-size: 2rem; }
    .chat-box { width: 90vw; right: -20px; }
}
