/* 
   Hotel Kalzug Premium CSS System
   Phase 4 - Design System Implementation
*/

/* --- 1. CSS VARIABLES (DESIGN SYSTEM) --- */
:root {
    /* Color Palette */
    --color-primary: #0F172A; /* Deep Navy */
    --color-secondary: #D4A017; /* Luxury Gold */
    --color-accent: #F97316; /* Warm Orange */
    --color-bg-main: #FAFAFA;
    --color-bg-light: #F3F4F6;
    --color-white: #FFFFFF;
    --color-text-dark: #111827;
    --color-text-muted: #4B5563;
    --color-border: #E5E7EB;
    --color-success: #10B981;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.3s ease-in-out;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* --- 2. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 3. UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-secondary); } /* Using gold as primary accent in text */
.text-orange { color: var(--color-accent); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }

.bg-primary { background-color: var(--color-primary); }
.bg-light { background-color: var(--color-bg-light); }
.bg-white { background-color: var(--color-white); }
.bg-accent { background-color: var(--color-secondary); }

.font-poppins { font-family: var(--font-heading); }
.font-bold { font-weight: 700; }

.w-full { width: 100%; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

/* Spacing Helpers */
.py-40 { padding-top: 40px; padding-bottom: 40px; }
.py-60 { padding-top: 60px; padding-bottom: 60px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }
.pt-100 { padding-top: 100px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }

/* Flex & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
.gap-40 { gap: 40px; }
.gap-50 { gap: 50px; }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-layout-room { grid-template-columns: 2fr 1fr; }

/* Borders & Shadows */
.rounded { border-radius: 4px; }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 50%; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.border { border: 1px solid var(--color-border); }
.border-b { border-bottom: 1px solid var(--color-border); }
.border-t-4 { border-top: 4px solid; }
.border-l-4 { border-left: 4px solid; }
.border-primary { border-color: var(--color-primary); }
.border-accent { border-color: var(--color-secondary); }
.border-white { border: 1px solid rgba(255,255,255,0.3); }

/* --- 4. BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition-smooth);
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}
.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}
.btn-accent {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: bold;
}
.btn-accent:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 5. HEADER & NAV --- */
.top-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-contact a, .top-trust span {
    margin-right: 20px;
    color: var(--color-white);
}
.top-contact a:hover {
    color: var(--color-secondary);
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    font-size: 2rem;
    color: var(--color-secondary);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.logo-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-list {
    display: flex;
    gap: 20px;
}
.nav-link {
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
}
.nav-link:hover {
    color: var(--color-secondary);
}
.has-dropdown {
    position: relative;
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 100;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-dark);
    border-bottom: 1px solid var(--color-border);
}
.dropdown li a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-secondary);
}

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

/* --- 6. HERO SECTIONS --- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: url('/assets/images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--color-white);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.9));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-heading {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--color-white);
}
.hero-subheading {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 300;
}
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.page-hero {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* --- 7. COMPONENTS --- */
/* Trust Bar */
.trust-bar {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    box-shadow: 0 4px 6px -4px rgba(0,0,0,0.05);
}
.trust-bar-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.trust-item {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Feature/Amenity Card */
.feature-card, .amenity-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}
.feature-card:hover, .amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.feature-title, .amenity-title {
    margin-bottom: 10px;
}

/* Room Card Premium */
.room-card-premium {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}
.room-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.room-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.room-card-premium:hover .room-img {
    transform: scale(1.05);
}
.room-price-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.room-card-body {
    padding: 25px;
}
.room-card-title {
    margin-bottom: 15px;
    font-size: 1.25rem;
}
.room-card-features {
    margin-bottom: 20px;
}
.room-card-features li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.room-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.quote-mark {
    font-size: 2rem;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 30px;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    transition: border-color 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

/* --- 8. FOOTER --- */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    display: inline-block;
}
.footer-desc {
    color: #9CA3AF;
    margin-bottom: 20px;
}
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition-smooth);
}
.footer-socials a:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}
.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-white);
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #9CA3AF; }
.footer-links a:hover { color: var(--color-secondary); padding-left: 5px; }
.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #9CA3AF;
}
.footer-bottom {
    background-color: #0B1120;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #9CA3AF;
}
.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.legal-links a { color: #9CA3AF; }
.legal-links a:hover { color: var(--color-secondary); }
.divider { margin: 0 10px; opacity: 0.3; }

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}
.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.float-btn:hover { transform: scale(1.1); }
.whatsapp-btn { background-color: #25D366; }
.call-btn { background-color: var(--color-primary); }
.mobile-only { display: none; }

/* --- 9. RESPONSIVE DESIGN (MOBILE FIRST ADAPTATIONS) --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-heading { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    .grid-layout-room { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .room-sidebar { order: -1; } /* Bring booking form to top on mobile */
    .mobile-only { display: flex; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    
    .top-bar { display: none; } /* Hide top bar on mobile for cleaner look */
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: 0.4s;
    }
    .main-nav.active { left: 0; }
    .nav-list { flex-direction: column; width: 100%; }
    .mobile-toggle { display: block; }
    
    .hero-heading { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    
    .room-card-footer { flex-direction: column; }
    .room-card-footer .btn { width: 100%; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-flex { flex-direction: column; text-align: center; }
    .trust-bar-flex { justify-content: center; }
}
