@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary: #4A90E2; /* A vibrant blue */
    --secondary: #50C878; /* A calming green */
    --accent: #FF6B6B; /* A warm red for highlights/errors */
    --bg: #F8F8F8; /* Light background */
    --surface: #FFFFFF; /* White for cards/containers */
    --text: #333333; /* Dark grey for main text */
    --muted: #666666; /* Lighter grey for secondary text */
    --radius: 8px; /* Border radius for elements */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft shadow */
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* General Resets & Body Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.section-padded {
    padding: 4rem 0;
}

.section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.bg-surface {
    background-color: var(--surface);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--surface);
}

.btn-primary:hover {
    background-color: #3a7bd5; /* Darker primary */
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--muted);
    color: var(--surface);
}

.btn-secondary:hover {
    background-color: #555555; /* Darker muted */
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--surface);
}

.btn-accent:hover {
    background-color: #e65a5a; /* Darker accent */
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: scale(0.97);
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Cards */
.card {
    background-color: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Header */
.main-header {
    background-color: var(--surface);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav .nav-link {
    color: var(--text);
    font-weight: 400;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://picsum.photos/seed/luxury-hotel-room/1920/1080') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    color: var(--surface);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Featured Rooms (Index Page) */
.featured-rooms .room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-rooms .room-card {
    background-color: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-rooms .room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.featured-rooms .room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.featured-rooms .card-content {
    padding: 1.5rem;
}

.featured-rooms .card-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.featured-rooms .card-content p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.featured-rooms .card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* About Preview (Index Page) */
.about-preview .grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-preview .about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-preview .about-text h2 {
    margin-top: 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary);
    color: var(--surface);
    padding: 5rem 0;
}

.cta-section h2 {
    color: var(--surface);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

/* Footer */
.main-footer {
    background-color: var(--text);
    color: var(--surface);
    padding: 3rem 0 1rem;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section ul {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--surface);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: var(--accent);
}

.error-message {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
}

.success-message {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
    font-weight: 700;
}

/* About Page Specific */
.about-section {
    margin-bottom: 4rem;
    align-items: center;
}

.about-section.reverse-cols {
    grid-template-areas: "text image"; /* Default for larger screens */
}

.about-section.reverse-cols .about-image { grid-area: image; }
.about-section.reverse-cols .about-text { grid-area: text; }

.about-section .about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.amenities-section {
    padding: 3rem;
    margin-top: 4rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.amenity-item {
    text-align: center;
}

.amenity-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.amenity-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.amenity-item p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Contact Page Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.contact-info a {
    color: var(--text);
    font-weight: 400;
}

.contact-info a:hover {
    color: var(--primary);
}

.contact-form-container {
    padding: 2rem;
}

.contact-form-container h3 {
    margin-bottom: 1.5rem;
}

/* Payment Success Page */
.success-card {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    text-align: center;
}

.success-card .section-title {
    color: var(--secondary);
}

.success-card #booking-details-summary p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.success-card #booking-details-summary strong {
    color: var(--text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .main-nav .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        box-shadow: var(--shadow);
        padding: 1rem 0;
        border-top: 1px solid #eee;
    }

    .main-nav .nav-list.active {
        display: flex;
    }

    .main-nav .nav-list li {
        text-align: center;
        width: 100%;
    }

    .main-nav .nav-link {
        display: block;
        padding: 0.8rem 0;
        width: 100%;
    }

    .main-nav .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .main-nav .nav-link:hover::after,
    .main-nav .nav-link.active::after {
        width: 50%;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-content p {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .about-preview .grid-2-cols,
    .about-section.grid-2-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-section.reverse-cols {
        grid-template-areas: unset; /* Reset for mobile */
    }

    .about-section.reverse-cols .about-image, .about-section.reverse-cols .about-text {
        grid-area: unset;
    }

    .about-preview .about-image img,
    .about-section .about-image img {
        height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        padding-left: 0;
    }

    .social-links {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .section-padded {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 1.5rem;
    }

    .featured-rooms .room-grid {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .amenity-item img {
        width: 60px;
        height: 60px;
    }

    .amenity-item h4 {
        font-size: 1rem;
    }

    .success-card {
        margin: 2rem auto;
        padding: 2rem 1rem;
    }
}
