/* Author: Jaxon Smith | Semester Project - Luxury Hotel */

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fafafa;
}

/* Background image on at least one page */
.home-background {
    background-image: linear-gradient(
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.5)
        ),
        url("images/pool.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.home-background main,
.home-background header,
.home-background footer {
    background: rgba(255, 255, 255, 0.9);
}

/* Optional separate background for amenities page */
.amenities-background {
    background-image: url("images/spa.jpg");
    background-size: cover;
    background-attachment: fixed;
}
.amenities-background main,
.amenities-background header,
.amenities-background footer {
    background: rgba(255, 255, 255, 0.95);
}

/* Header & Navigation */
header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.logo-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-title {
    font-size: 1.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.45);
}

.greeting-text {
    font-size: 0.95rem;
    color: #555;
}

nav {
    margin-top: 0.75rem;
}

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

.main-nav a {
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    color: #333;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: linear-gradient(135deg, #c59d5f, #daba7b);
    color: #fff;
}

/* Main layout */
main {
    max-width: 1100px;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem 1rem;
}

/* Hero section */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-figure img {
    width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.hero-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #444;
}

.hero-text h2 {
    font-size: 1.7rem;
    margin-bottom: 0.75rem;
}

.hero-text p {
    margin-bottom: 0.75rem;
}

/* Highlight box for daily offer (JS-filled) */
.highlight-box {
    border-left: 4px solid #c59d5f;
    padding: 0.75rem 1rem;
    background: #fff9ef;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
}

/* Cards */
.cards-section {
    margin-top: 2rem;
}

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

.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
    margin-bottom: 0.5rem;
    color: #804000;
}

/* Page intro */
.page-intro {
    margin-bottom: 1.5rem;
}

/* Image row on rooms page */
.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rounded-image {
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

/* Table styling */
.table-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.room-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.room-table th,
.room-table td {
    border: 1px solid #ddd;
    padding: 0.6rem;
    text-align: left;
}

.room-table thead {
    background: #f5e6c8;
}

.room-table tbody tr:nth-child(even) {
    background: #f9f5ed;
}

/* Amenities grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.amenity {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.amenity img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

/* Extra info block */
.extra-info {
    background: #fff;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Forms */
.form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.form-row label {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

/* Buttons */
.primary-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #c59d5f, #8c5a25);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    filter: brightness(1.05);
}

/* Thank you page */
.thankyou-section {
    max-width: 720px;
    margin: 2rem auto;
    text-align: center;
}

.thankyou-section h2 {
    margin-bottom: 1rem;
}

/* Notes */
.note-text {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.4rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.2rem 0 1.5rem;
    border-top: 1px solid #ddd;
    background: #f8f3e7;
    margin-top: 2rem;
}

/* Simple responsiveness */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

    header {
        padding: 1rem;
    }

    main {
        margin-top: 1rem;
    }
}
