/*
Theme Name: Perfect Guest House
Author: You
Description: Custom theme built from scratch for Perfect Guest House.
Version: 1.0
*/

:root {
    --primary-gold: #000000;
    --dark-navy: #14274A;
    --font-main: sans-serif;
}

body { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header Layout --- */
.site-header { 
    position: fixed; /* Changed to fixed so it scrolls with you */
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000; 
    padding-top: 0; 
    transition: all 0.4s ease; /* Makes the color swap smooth */
}

/* --- Sticky Scrolled State --- */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9); /* Low opacity white */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Soft shadow */
    backdrop-filter: blur(5px); /* Adds a premium glassy blur effect */
}

/* Change link/icon colors to Dark Navy when the white background appears */
.site-header.scrolled .primary-navigation a,
.site-header.scrolled .header-socials a,
.site-header.scrolled .menu-toggle {
    color: var(--dark-navy);
}

/* Make the separator line dark */
.site-header.scrolled .header-socials {
    border-left: 1px solid rgba(20, 39, 74, 0.3);
}
.header-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }

.menu-toggle { display: none; } /* Hidden on desktop */

.logo-container {
    background-color: transparent; /* Changed from black to transparent */
    padding: 10px 20px; /* Slimmed down the padding */
    border-radius: 0; /* Removed the curve */
    box-shadow: none; /* Removed the shadow so it floats cleanly */
}
.logo-container img { max-width: 120px; height: auto; display: block; }

.primary-navigation { margin-left: auto; }
.primary-navigation ul { list-style: none; display: flex; gap: 40px; }
.primary-navigation a { color: #ffffff; text-decoration: none; font-size: 16px; font-weight: 500; transition: color 0.3s ease; }
.primary-navigation a:hover { color: var(--primary-gold); text-decoration: underline; text-underline-offset: 5px; }

.header-socials { display: flex; gap: 20px; border-left: 1px solid rgba(255, 255, 255, 0.3); padding-left: 30px; margin-left: 30px; }
.header-socials a { color: #ffffff; font-size: 18px; transition: color 0.3s ease; }
.header-socials a:hover { color: var(--primary-gold); }

/* --- Hero Section --- */
.hero-section { position: relative; height: 100vh; min-height: 600px; background-image: url('https://perfectguesthouse.co.in/wp-content/uploads/2026/03/perfect-guest-house-hero.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: #ffffff; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(20, 39, 74, 0.6); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding-top: 80px; }
.hero-content h2 { font-size: 20px; letter-spacing: 6px; margin-bottom: 10px; font-weight: 400; }
.hero-content h1.hero-title { font-size: 70px; font-family: 'Georgia', serif; letter-spacing: 8px; margin-bottom: 20px; text-transform: uppercase; }
.hero-content p { font-size: 22px; margin-bottom: 40px; font-weight: 300; }

/* --- Global Buttons & Scroll --- */
.btn-primary { display: inline-block; background-color: var(--primary-gold); color: #ffffff; padding: 15px 40px; font-size: 16px; font-weight: bold; text-decoration: none; border-radius: 4px; text-transform: uppercase; transition: background 0.3s ease; }
.btn-primary:hover { background-color: #333333; }
.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; color: #ffffff; text-align: center; font-size: 14px; letter-spacing: 2px; }
.scroll-arrow { font-size: 24px; line-height: 1; margin-top: 5px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* --- Homepage Info Section --- */
.info-section { padding: 80px 0; background-color: #ffffff; color: var(--dark-navy); }
.section-subtitle { text-align: center; font-size: 24px; font-weight: 400; margin-bottom: 80px; }
.info-row { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.info-text { flex: 1; padding-left: 30px; border-left: 2px solid var(--dark-navy); }
.info-text h2 { font-family: 'Georgia', serif; font-size: 40px; margin-bottom: 20px; color: var(--dark-navy); }
.info-text p { font-size: 18px; line-height: 1.6; margin-bottom: 30px; color: #333333; }
.info-image { flex: 1; }
.info-image img { width: 100%; height: auto; display: block; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-gold { display: inline-block; background-color: var(--primary-gold); color: #ffffff; padding: 12px 35px; font-size: 14px; font-weight: bold; text-decoration: none; border-radius: 4px; text-transform: uppercase; transition: background 0.3s ease; }
.btn-gold:hover { background-color: #333333; }

/* --- Inner Page Intro --- */
.page-intro { text-align: center; padding: 80px 0 50px; background-color: #ffffff; }
.page-title { font-family: 'Georgia', serif; font-size: 36px; color: var(--dark-navy); margin-bottom: 20px; letter-spacing: 2px; }
.page-desc { font-size: 16px; color: #555555; line-height: 1.8; max-width: 900px; margin: 0 auto; }

/* --- Rooms Cards --- */
.rooms-list { background-color: #ffffff; padding-bottom: 80px; }
.room-card { border: 1px solid #e0e0e0; margin-bottom: 60px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.room-image img { width: 100%; height: 400px; object-fit: cover; display: block; }
.room-name-bar { background-color: var(--dark-navy); color: #ffffff; text-align: center; padding: 20px; }
.room-name-bar h3 { font-family: 'Georgia', serif; font-size: 24px; letter-spacing: 3px; margin: 0; }
.room-action-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background-color: #ffffff; }
.view-details-link { color: #333333; text-decoration: none; font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 10px; transition: color 0.3s; }
.view-details-link:hover { color: var(--primary-gold); }
.btn-price { background-color: var(--primary-gold); color: #ffffff; text-decoration: none; padding: 12px 25px; font-weight: bold; font-size: 16px; border-radius: 4px; transition: background 0.3s; }
.btn-price:hover { background-color: #333333; }

/* --- Facilities Section --- */
.facilities-list { background-color: #ffffff; padding-bottom: 120px; }
.facility-card { position: relative; margin-bottom: 80px; }
.facility-card img { width: 100%; height: 500px; object-fit: cover; display: block; }
.facility-label { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%); background-color: #ffffff; color: var(--dark-navy); font-family: 'Georgia', serif; font-size: 20px; font-weight: bold; padding: 15px 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: center; min-width: 300px; }

/* --- Contact Page --- */
.contact-section { padding: 100px 0; background-color: #ffffff; }
.contact-container { display: flex; gap: 60px; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 300px; }
.contact-info h2 { font-family: 'Georgia', serif; font-size: 36px; color: var(--dark-navy); margin-bottom: 20px; }
.contact-info > p { font-size: 16px; color: #555555; line-height: 1.8; margin-bottom: 40px; }
.info-block { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.info-block i { font-size: 24px; color: var(--primary-gold); margin-top: 5px; }
.info-block h4 { font-size: 18px; color: var(--dark-navy); margin-bottom: 5px; }
.info-block p { font-size: 16px; color: #555; }
.contact-form-wrapper { flex: 1; min-width: 300px; background-color: #f9f9f9; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; font-family: var(--font-main); outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-gold); }
.map-section { width: 100%; line-height: 0; }

/* --- Testimonials Section --- */
.testimonials-section { text-align: center; padding: 80px 0; background-color: #ffffff; }
.testimonials-title { font-family: 'Georgia', serif; font-size: 36px; color: var(--dark-navy); margin-bottom: 30px; }
.testimonial-quote { font-size: 20px; color: #333333; margin-bottom: 15px; }
.testimonial-author { font-size: 16px; color: #666666; margin-bottom: 30px; }
.testimonial-controls { display: flex; justify-content: center; gap: 15px; }
.testi-btn { background-color: var(--primary-gold); color: #ffffff; border: none; width: 40px; height: 40px; font-size: 16px; cursor: pointer; border-radius: 4px; transition: background 0.3s; }
.testi-btn:hover { background-color: #333333; }

/* --- Footer Section --- */

/* ==========================================================
   FOOTER SECTION
========================================================== */
.site-footer {
    background-color: var(--dark-navy);
    color: #ffffff;
    padding: 70px 0 50px;
    position: relative;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* The top center triangle accent */
.site-footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 25px solid var(--dark-navy);
}

.footer-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

/* 1. Footer Nav Links */
.footer-nav-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}
.footer-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}
.footer-nav-links a:hover {
    color: var(--primary-gold);
}

/* 2. Footer Social Links */
.footer-social-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.footer-social-links li {
    list-style: none !important;
}
.footer-social-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}
.footer-social-links a:hover {
    opacity: 0.7;
}

/* Official Brand Colors for Icons */
.brand-fb { color: #1877F2; font-size: 18px; }
.brand-ig { color: #E4405F; font-size: 18px; }
.brand-yt { color: #FF0000; font-size: 18px; }
.brand-in { color: #0A66C2; font-size: 18px; }
.brand-tw { color: #1DA1F2; font-size: 18px; }
.brand-pin { color: #BD081C; font-size: 18px; }

/* 3. Brand & Contact Info */
.footer-brand-info h2 {
    font-family: 'Georgia', serif;
    font-size: 30px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #ffffff;
}
.footer-brand-info p {
    font-size: 15px;
    color: #d1d5db;
    margin-bottom: 12px;
    line-height: 1.6;
}


.newsletter-form { display: flex; margin-top: 15px; }
.newsletter-form input { padding: 10px 15px; border: 1px solid var(--primary-gold); background: transparent; color: #fff; outline: none; border-radius: 4px 0 0 4px; width: 100%; max-width: 200px; }
.newsletter-form input::placeholder { color: #999; }
.btn-ok { background-color: var(--primary-gold); color: #ffffff; border: none; padding: 10px 20px; font-weight: bold; cursor: pointer; border-radius: 0 4px 4px 0; transition: background 0.3s; }
.btn-ok:hover { background-color: #333333; }

/* --- Hero Slider --- */
.hero-slider-section { 
    position: relative; 
    height: 100vh; 
    min-height: 600px; 
    overflow: hidden; 
}
.hero-slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    transition: opacity 1s ease-in-out; /* Creates the smooth fade effect */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #ffffff; 
    z-index: 0; 
}
.hero-slide.active { 
    opacity: 1; 
    z-index: 2; 
}
.slide-arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.4); 
    color: #fff; 
    border: none; 
    width: 50px; 
    height: 50px; 
    font-size: 20px; 
    cursor: pointer; 
    z-index: 10; 
    border-radius: 50%; 
    transition: background 0.3s; 
}
.slide-arrow:hover { 
    background: var(--primary-gold); 
    color: #ffffff; 
}
.prev-arrow { left: 30px; }
.next-arrow { right: 30px; }

/* Add this small fix to your existing mobile queries at the very bottom */
@media (max-width: 768px) {
    .prev-arrow { left: 10px; width: 40px; height: 40px; font-size: 16px; }
    .next-arrow { right: 10px; width: 40px; height: 40px; font-size: 16px; }
}
/* =======================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ======================================================= */

@media (max-width: 992px) {
    .hero-content h1.hero-title { font-size: 50px; }
    .info-row { flex-direction: column; text-align: center; gap: 30px; }
    .info-text { border-left: none; padding-left: 0; }
    .facility-card img { height: 400px; }
}

@media (max-width: 768px) {
    /* Mobile Header Magic: Hamburger Left, Logo Center, Socials Right */
    .header-container { align-items: center; padding-top: 10px; position: relative; }
    
    .menu-toggle { display: block; order: 1; background: none; border: none; color: #ffffff; font-size: 26px; cursor: pointer; padding: 5px; }
    
    .logo-container { order: 2; padding: 10px 15px; border-radius: 0 0 10px 10px; }
    .logo-container img { max-width: 70px; } /* Scales logo to fit beautifully on mobile */
    
    .header-socials { order: 3; border-left: none; padding-left: 0; margin-left: 0; gap: 12px; }
    .header-socials a { font-size: 18px; }

    /* The Dropdown Menu */
    .primary-navigation { 
        order: 4; 
        width: 100%; 
        display: none; /* Hidden by default */
        background-color: rgba(20, 39, 74, 0.98); 
        margin-top: 15px; 
        padding: 20px; 
        border-radius: 8px; 
    }
    .primary-navigation.active { display: block; } /* Shows when hamburger clicked */
    .primary-navigation ul { flex-direction: column; align-items: flex-start; gap: 20px; }

    /* Mobile Typography & Spacing */
    .hero-content { padding-top: 140px; }
    .hero-content h1.hero-title { font-size: 36px; letter-spacing: 3px; }
    .hero-content p { font-size: 16px; }
    .section-subtitle, .page-title { font-size: 24px; margin-bottom: 30px; }
    
    /* Mobile Content Stacking */
    .room-image img { height: 250px; }
    .room-action-bar { flex-direction: column; gap: 20px; text-align: center; }
    .facility-card img { height: 300px; }
    .facility-label { min-width: 80%; font-size: 16px; padding: 12px 20px; }
    .contact-section { padding: 50px 0; }
    .contact-container { flex-direction: column; gap: 40px; }
    .contact-form-wrapper { padding: 25px; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; }
    .footer-col { margin-bottom: 20px; }
    .newsletter-form { justify-content: center; }
}

/* ==========================================================
   HEADER LAYOUT FIXES (Logo & Mobile Menu)
========================================================== */

/* 1. Remove the black background from the logo (Desktop & Mobile) */
.site-branding,
.site-branding a,
.custom-logo-link,
.custom-logo {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* 2. Mobile-Specific Header Layout */
@media (max-width: 992px) {
    /* Hide social icons on mobile */
    .header-socials {
        display: none !important;
    }
    
    /* Force the header to spread elements to the edges */
    .site-header .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 20px !important; /* Adjust padding so it's not touching the screen edge */
    }

    /* Put Logo on the Left */
    .site-branding {
        order: 1 !important;
        margin: 0 !important;
        position: relative !important;
        left: 0 !important;
        transform: none !important;
    }

    /* Put Hamburger Menu on the Right */
    .menu-toggle {
        order: 2 !important;
        position: relative !important;
        right: 0 !important;
        left: auto !important;
        margin: 0 !important;
    }
}

/* ==========================================================
   SEAMLESS BOOKING BAR (Horizontal)
========================================================== */
.seamless-booking-section {
    position: relative;
    z-index: 10;
    margin-top: 140px; /* Pulls it up over the slider */
    margin-bottom: 80px;
}

.booking-text {
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); /* Helps text pop against background */
}
.booking-text p {
    font-size: 16px;
    margin: 0 0 5px 0;
}
.booking-text h2 {
    font-size: 32px;
    font-family: var(--font-main);
    font-weight: bold;
    margin: 0;
}

.seamless-booking-form {
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.booking-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.booking-field label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.booking-field input,
.booking-field select {
    height: 55px;
    border: 2px solid #F2C94C; /* Yellow border from screenshot */
    border-right: none; /* Merges the boxes together */
    padding: 0 15px;
    font-size: 16px;
    font-family: var(--font-main);
    outline: none;
    background-color: #ffffff;
    color: #333333;
    border-radius: 0;
}

/* Round the very first input's left corners */
.booking-field:first-child input {
    border-radius: 4px 0 0 4px;
}

/* The Booking Button */
.seamless-booking-form button {
    height: 55px;
    background-color: #17B3B3; /* Teal color from screenshot */
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    padding: 0 40px;
    cursor: pointer;
    border-radius: 0 4px 4px 0; /* Rounds the right side */
    transition: background 0.3s ease;
}

.seamless-booking-form button:hover {
    background-color: #128f8f;
}

/* ==========================================================
   MOBILE SEAMLESS BOOKING OVERRIDE
========================================================== */
@media (max-width: 768px) {
    .seamless-booking-section {
        margin-top: -60px; /* Pulls it up slightly over the image */
        padding: 0 15px;
        position: relative;
        z-index: 20;
    }
    
    /* Give the whole form a dark premium box on mobile */
    .seamless-booking-section .container {
        background-color: var(--dark-navy); 
        padding: 30px 20px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }
    
    /* Force text to be white and centered */
    .booking-text {
        text-align: center;
        margin-bottom: 20px;
    }
    .booking-text p,
    .booking-text h2,
    .booking-field label {
        color: #ffffff !important; 
    }
    .booking-text h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    /* Stack the fields neatly */
    .seamless-booking-form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        width: 100%;
    }
    
    .booking-field {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Give every field full yellow borders and rounded corners */
    .booking-field input,
    .booking-field select {
        width: 100%;
        height: 50px;
        border: 2px solid #F2C94C !important; 
        border-radius: 6px !important;
        background-color: #ffffff;
        box-sizing: border-box;
    }
    
    /* Make the button full width */
    .seamless-booking-form button {
        width: 100%;
        height: 55px;
        border-radius: 6px !important;
        margin-top: 10px;
        font-size: 18px;
    }
}