/*
 * 1. GLOBAL RESET & UTILITIES
 * Defines color palette, fonts, and basic structural resets.
 */
:root {
    --color-primary: #8B4513; /* Dark Brown */
    --color-secondary: #FFD700; /* Gold */
    --color-light: #FDFDFD; /* Cream/Off-White */
    --color-dark: #333333;
    --font-heading: 'Lora', serif;
    --font-body: 'Poppins', sans-serif;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius-lg: 12px;
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-secondary);
}

/* Container for content centering and padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling and Fade-In Animation */
.section-light {
    background-color: #f8f8f8;
}

section {
    padding: 80px 0;
    opacity: 0; /* Hidden initially for fade-in animation */
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    opacity: 1 !important;
    transform: none !important;
}

.hero {
    opacity: 1 !important;
    transform: none !important;
}

.text-center {
    text-align: center;
}

.section-heading {
    margin-bottom: 50px;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 10px;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/*
 * 2. BUTTON STYLING (Glowing Effect)
 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-soft);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    border: 2px solid var(--color-secondary);
}

.btn-primary:hover {
    background-color: #f7b700;
    /* Soft glow on hover */
    box-shadow: 0 0 5px var(--color-secondary),
                0 0 20px rgba(255, 215, 0, 0.5),
                0 0 40px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn-secondary:hover {
    background-color: #6d3511;
    box-shadow: 0 0 5px var(--color-primary);
    transform: translateY(-2px);
}

/*
 * 3. HEADER & NAVIGATION
 */

 #spot {
    color:gold;
    font-size: 2.5em;
    font-weight: bold;
 }
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 15px 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    background-image:  url(img/spot-hotel\ \(15\).jpg);
}

/* Sticky Nav Effect */
.header.sticky {
    background-color: rgba(253, 253, 253, 0.95);
    box-shadow: var(--shadow-soft);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    /* Logo sizing handled in inline HTML, but keeping structure */
    transition: opacity var(--transition-speed);
}
.logo img:hover {
    opacity: 0.8;
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    font-weight: 600;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
    color: var(--color-primary);
}

/* Nav Underline hover effect */
.nav-menu ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed) ease-in-out;
}

.nav-menu ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--color-primary);
}

/*
 * 4. HERO SECTION
 */
#home {
    scroll-margin-top: 90px;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light);
    padding-top: 90px;
    box-sizing: border-box;
    opacity: 1 !important;
    transform: none !important;
    /* Updated background with reliable fallback color */
    background: var(--color-primary) url('img/spot-hotel\ \(15\).jpg') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Dark Overlay for text contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 300;
    color: var(--color-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .btn-primary {
    padding: 15px 40px;
    font-size: 1.2em;
    box-shadow: 0 0 15px var(--color-secondary),
                0 0 30px rgba(255, 215, 0, 0.7);
}

/*
 * 5. CONTENT SECTIONS (Highlights, About, Services)
 */

 .highlights {
     background: var(--color-primary) url('img/spot-hotel\ \(11\).jpg') no-repeat center center/cover;
     background-image: url(img/spot-hotel\ \(11\).jpg);
 }
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-card {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--color-primary);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.highlight-card i {
    font-size: 3em;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-images img {
    width: 100%;
    height: auto; /* Adjusted to fit the imported image */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

/* Services Grid */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background-color: var(--color-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-speed);
    border-left: 5px solid var(--color-secondary);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-right: 20px;
    min-width: 50px;
}

/*
 * 6. GALLERY PAGE & LIGHTBOX
 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Tighter grid for more images */
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    border-radius: var(--border-radius-lg);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover, .lightbox-close:focus {
    color: var(--color-secondary);
}

/*
 * 7. CONTACT & BOOKING FORMS
 */
.form-grid-booking {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-grid-contact {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-card {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.contact-info-card h3 {
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item i {
    font-size: 1.2em;
    margin-right: 15px;
    color: var(--color-secondary);
}

.info-item a {
    color: var(--color-light);
}

/* General Form Styling */
.form-card {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Custom Message Box */
.message-box {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}
.message-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.message-box.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
}
.message-box:not(.hidden) {
    height: auto;
    padding: 15px;
}


/* Map Embed */
.map-embed {
    height: 400px;
    margin-top: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/*
 * 8. FOOTER
 */
.footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    padding: 0 15px;
}

.footer-col h4 {
    font-size: 1.2em;
    color: var(--color-secondary);
    margin-bottom: 15px;
    position: relative;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--color-light);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--color-secondary);
}

.social-links a {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--color-secondary);
    transition: transform 0.3s;
}
.social-links a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.powered-by {
    color: var(--color-secondary);
    font-weight: 600;
    margin-top: 10px !important;
    font-size: 0.95em;
}

/*
 * 9. FLOATING UTILITIES (WhatsApp & Back-to-Top)
 */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--color-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 900;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/*
 * 10. RESPONSIVE DESIGN (Mobile Adjustments)
 */
@media (max-width: 992px) {
    /* Mobile Menu Display Logic */
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(253, 253, 253, 0.98);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transition: height 0.3s ease;
        overflow: hidden;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu ul li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
    }

    /* Layout adjustments */
    .hero-content h1 {
        font-size: 3em;
    }

    .about-grid, .form-grid-contact {
        grid-template-columns: 1fr;
    }

    .about-content {
        order: 2;
    }
    
    .about-images {
        order: 1; /* Move image above content on mobile */
        margin-bottom: 30px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-col {
        margin-bottom: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .highlight-card {
        padding: 20px;
    }
}
