/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;500&display=swap');

/* CSS Variables for easy theme management */
:root {
    --primary-font: 'Playfair Display', serif;
    --secondary-font: 'Poppins', sans-serif;
    --primary-color: #0a2351; /* Deep Blue */
    --secondary-color: #c5a47e; /* Gold */
    --text-color: #333;
    --bg-color: #fdfdfd;
    --light-gray: #f4f4f4;
    --white: #ffffff;
}

/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--secondary-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--primary-font);
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section-subtitle a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #b38e64;
    transform: translateY(-3px);
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

/* Style for scrolled header and static pages (added by JS) */
.header.scrolled,
.header.static-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Specific padding for scrolled state */
.header.scrolled {
    padding: 15px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--primary-font);
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Change logo color when header is scrolled or on a non-hero page */
.header.scrolled .nav-logo,
.header.static-header .nav-logo {
    color: var(--primary-color);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    .nav-menu {
        display: none;
    }
    .nav-menu.show-menu {
        display: block;
    }
}

/* Hide hamburger by default */
#nav-toggle {
    display: none;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    #nav-toggle {
        display: block;
        cursor: pointer;
    }
    #nav-menu {
        display: none;
    }
    #nav-menu.show-menu {
        display: block;
    }
}

.nav-close {
    display: none;
}

@media (max-width: 768px) {
    .nav-close {
        display: block;
    }
}

/* Change nav link color when header is scrolled or on a non-hero page */
.header.scrolled .nav-link,
.header.static-header .nav-link {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}


.nav-link:hover::after,
.nav-link.active::after{
    width: 100%;
}

/* Hero Section (Home Page) */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/11.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: var(--primary-font);
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Page Header (For sub-pages) */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-family: var(--primary-font);
    font-size: 3.5rem;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h3 {
    font-family: var(--primary-font);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Rooms Section */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.room-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.room-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.room-card-content {
    padding: 25px;
}

.room-card-title {
    font-family: var(--primary-font);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.room-card-features {
    list-style: none;
    margin-bottom: 20px;
    color: #555;
}

.room-card-features li {
    margin-bottom: 5px;
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    text-align: center;
}

.facility-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.facility-item:hover {
    transform: translateY(-5px);
}

.facility-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.facility-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0;
}

/* Amenities List Section */
.amenities-section {
    padding: 80px 0;
}

.amenities-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.amenity-category {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.amenity-category h4 {
    font-family: var(--primary-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.amenity-category ul {
    list-style: none;
}

.amenity-category li {
    margin-bottom: 12px;
    color: #555;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Detailed Features Section */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-section:last-child {
    margin-bottom: 0;
}

/* Alternating layout for visual interest */
.feature-section:nth-child(even) .feature-image {
    order: 2;
}

.feature-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-content h3 {
    font-family: var(--primary-font);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--secondary-font);
    font-size: 1rem;
    background-color: var(--white);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    font-family: var(--primary-font);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-about p {
    color: #ccc;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: #ccc;
}
.footer-contact a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a416a;
    font-size: 0.9rem;
    color: #aaa;
}

/* Animation on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.4rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .about-container, .feature-section {
        grid-template-columns: 1fr;
    }
    .feature-section:nth-child(even) .feature-image {
        order: 0; /* Reset order for stacked layout */
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none; /* Simple hide for demo, can be replaced with hamburger menu */
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section {
        padding: 60px 0;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
    .form-group-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile nav menu styles */
@media (max-width: 768px) {
    #nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80vw;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 30px 30px 30px;
        z-index: 2000;
    }
    #nav-menu.show-menu {
        display: flex;
    }
    .nav-list {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        display: flex;
    }
    .nav-link {
        color: var(--primary-color);
        font-size: 1.2rem;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    #nav-close {
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 2rem;
        color: var(--primary-color);
        cursor: pointer;
        display: block;
    }
}

/*Alert for contact page*/
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
