/* =============================================
   HOTEL KIRTHIKA PALACE – Refined Royal Green, Gold & Ivory Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600&display=swap');

:root {
    /* Refined Color Palette */
    --royal-green: #0f5132;
    --royal-green-dark: #071e12;
    --royal-green-light: #187147;
    
    --gold: #d4af37;
    --gold-light: #f3d56a;
    --gold-dark: #b5952f;
    
    --ivory: #fcfbf8;
    --ivory-dark: #f0eee5;
    --white: #ffffff;
    
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    
    /* Transitions & Shadows */
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-mid: 0.4s ease;
    
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(15, 81, 50, 0.1);
    --shadow-gold: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--ivory);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--royal-green-dark);
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: var(--transition-mid); }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 2px; }

/* ===== UTILITIES ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

.section-eyebrow {
    color: var(--gold-dark);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    line-height: 1.2;
}

.gold-text { color: var(--gold-dark); }
.green-bg { background-color: var(--royal-green-dark); color: var(--white); }
.green-bg .section-title { color: var(--white); }
.green-bg .section-eyebrow { color: var(--gold-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-mid);
    border: 2px solid transparent;
}

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

.btn-gold:hover {
    background-color: var(--royal-green-dark);
    color: var(--gold);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--royal-green-dark);
    transform: translateY(-3px);
}

/* ===== THEATRE INTRO CURTAIN ===== */
#intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background: var(--royal-green-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-valance {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--royal-green-dark);
    border-bottom: 2px solid var(--gold);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
    transition: transform 1.5s ease 2.5s;
}

.valance-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.curtain-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 5;
    background: repeating-linear-gradient(90deg, 
        var(--royal-green-dark) 0px, 
        var(--royal-green) 20px, 
        var(--royal-green-dark) 40px, 
        #05140b 45px, 
        var(--royal-green-dark) 50px);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
    transition: transform 3.2s cubic-bezier(0.77, 0, 0.18, 1);
}

.curtain-left { left: 0; border-right: 3px solid var(--gold); }
.curtain-right { right: 0; border-left: 3px solid var(--gold); }

#intro-screen.reveal .curtain-left { transform: translateX(-102%); }
#intro-screen.reveal .curtain-right { transform: translateX(102%); }
#intro-screen.reveal .intro-valance { transform: translateY(-100%); }

.intro-content { position: relative; z-index: 11; text-align: center; color: var(--gold); transition: opacity 1s ease; }
#intro-screen.reveal .intro-content { opacity: 0; }

.intro-logo { font-size: 5rem; margin-bottom: 1rem; animation: pulseGlow 2s infinite alternate; }
@keyframes pulseGlow {
    from { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); transform: scale(0.95); }
    to { filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.7)); transform: scale(1); }
}

.intro-title { font-size: clamp(2rem, 5vw, 4.5rem); letter-spacing: 10px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.intro-subtitle { font-size: 1rem; letter-spacing: 6px; text-transform: uppercase; color: var(--white); }

/* ===== MAIN SITE LAYOUT ===== */
#main-site { opacity: 0; transition: opacity 1.5s ease 1.5s; }
#main-site.visible { opacity: 1; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-mid);
    background: transparent;
}

.navbar.scrolled {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 2.2rem; color: var(--gold); }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.navbar.scrolled .logo-main { color: var(--royal-green-dark); }
.logo-sub { font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-link {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.navbar.scrolled .nav-link { color: var(--royal-green-dark); }

.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition-mid); }
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { display: block; width: 30px; height: 2px; background: var(--white); transition: var(--transition-mid); }
.navbar.scrolled .hamburger span { background: var(--royal-green-dark); }

/* ===== HERO SECTION (WITH CONSTRUCTION ANIMATION) ===== */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--royal-green-dark); }

/* The Palace Construction Animation */
@keyframes constructPalace {
    0% {
        opacity: 0;
        filter: sepia(1) hue-rotate(-20deg) contrast(1.5) blur(10px);
        transform: scale(1.1) translateY(50px);
    }
    50% {
        opacity: 0.5;
        filter: sepia(0.4) contrast(1.2) blur(2px);
    }
    100% {
        opacity: 1;
        filter: sepia(0) contrast(1) blur(0);
        transform: scale(1) translateY(0);
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=2000&q=80') center/cover;
    opacity: 0; /* Initial state before animation starts */
}

#main-site.visible .hero-bg {
    animation: constructPalace 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.5s; /* Start quickly as curtain opens */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 30, 18, 0.6), rgba(15, 81, 50, 0.3), rgba(7, 30, 18, 0.8));
    z-index: 1;
}

.hero-content { position: relative; z-index: 10; text-align: center; color: var(--white); max-width: 900px; padding: 0 2rem; }
.hero-tagline { font-size: 1rem; letter-spacing: 8px; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(3rem, 8vw, 6.5rem); color: var(--white); margin-bottom: 2rem; line-height: 1.1; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ===== ABOUT SECTION ===== */
.about { background-color: var(--ivory); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid var(--white); }
.about-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.about-image:hover img { transform: scale(1.05); }

.about-text { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.about-features { display: flex; gap: 30px; margin-top: 2rem; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 2rem; }
.feature-item h4 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--gold-dark); margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--royal-green); font-weight: 600; }

/* ===== ROOMS & BOOKING ===== */
.rooms { background-color: var(--ivory-dark); }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.room-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-mid);
    border: 1px solid rgba(0,0,0,0.05);
}

.room-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.room-img-wrap { height: 250px; overflow: hidden; position: relative; }
.room-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.room-card:hover .room-img-wrap img { transform: scale(1.1); }

.room-badge { position: absolute; top: 15px; right: 15px; background: var(--gold); color: var(--royal-green-dark); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 5px 12px; border-radius: 2px; }
.room-content { padding: 2rem; }
.room-title { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--royal-green-dark); }
.room-price { font-size: 1.1rem; color: var(--gold-dark); font-weight: 700; margin-bottom: 1rem; }
.room-amenities { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.5rem; }
.room-amenities span { font-size: 0.75rem; color: var(--royal-green); font-weight: 500; background: rgba(15, 81, 50, 0.05); padding: 4px 10px; border-radius: 2px; border: 1px solid rgba(15, 81, 50, 0.1); }

/* ===== AMENITIES SECTION ===== */
.amenities { border-top: 5px solid var(--gold); border-bottom: 5px solid var(--gold); background: var(--ivory); }
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

.amenity-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-mid);
}

.amenity-card:hover { background: var(--white); border-color: var(--gold); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.amenity-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 1.5rem; }
.amenity-card h3 { color: var(--royal-green-dark); font-size: 1.3rem; margin-bottom: 1rem; font-weight: 700; }
.amenity-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== GALLERY ===== */
.gallery { background: var(--ivory); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-auto-rows: 250px; gap: 15px; }

.gallery-item { border-radius: 4px; overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-overlay { position: absolute; inset: 0; background: rgba(7, 30, 18, 0.8); display: flex; justify-content: center; align-items: center; opacity: 0; transition: var(--transition-mid); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--gold); font-size: 2rem; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--ivory-dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.testi-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--royal-green);
    text-align: center;
    transition: var(--transition-mid);
}

.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.testi-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1.5rem; letter-spacing: 2px; }
.testi-text { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-style: italic; color: var(--text-dark); margin-bottom: 2rem; line-height: 1.6; }
.testi-author h4 { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.2rem; color: var(--royal-green-dark); font-weight: 700; }
.testi-author p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq { background-color: var(--white); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); margin-bottom: 1rem; }

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--royal-green-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-mid);
}

.faq-question:hover { color: var(--gold-dark); }
.faq-icon { color: var(--gold); font-size: 1.2rem; transition: var(--transition-mid); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p { padding-bottom: 1.5rem; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact { background: var(--ivory); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info { background: var(--royal-green-dark); color: var(--white); padding: 4rem 3rem; }
.contact-info h3 { color: var(--gold); font-size: 2rem; margin-bottom: 2rem; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 1.5rem; }
.info-item i { color: var(--gold); font-size: 1.2rem; margin-top: 4px; }
.info-item p { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.9); }

.contact-form { padding: 4rem 3rem; background: var(--white); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 0.5rem; color: var(--royal-green-dark); }
.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--ivory-dark);
    color: var(--text-dark);
    transition: var(--transition-mid);
}

.form-control:focus { outline: none; border-color: var(--royal-green); background: var(--white); box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1); }
select.form-control option { background: var(--white); color: var(--text-dark); }

/* ===== FOOTER ===== */
.footer { background: var(--royal-green-dark); color: var(--white); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-brand .logo-main { font-size: 2rem; }
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: 1.5rem; font-size: 0.9rem; }
.footer h4 { color: var(--gold); font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }

.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 2px; color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.2); transition: var(--transition-mid); }
.social-links a:hover { background: var(--gold); color: var(--royal-green-dark); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ===== ANIMATIONS ===== */
.reveal-up { opacity: 0; transform: translateY(40px); transition: var(--transition-slow); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE / ACCESSIBILITY ===== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
        background: var(--royal-green-dark); flex-direction: column; justify-content: center;
        transition: var(--transition-mid);
    }
    .nav-links.active { left: 0; }
    .nav-link { font-size: 1.2rem; color: var(--white); }
    .hamburger { display: flex; z-index: 1001; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--white); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--white); }
    
    .hero-title { font-size: 2.8rem; }
    .section-padding { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-item.large, .gallery-item.wide { grid-column: span 1; grid-row: span 1; }
    
    .contact-info, .contact-form { padding: 3rem 2rem; }
}

@media (max-width: 480px) {
    .form-group-row { flex-direction: column; gap: 0 !important; }
}