/* ==========================================================
   Guestavelo Casino Hotel - Stylesheet
   Palette: deep emerald, ivory, champagne gold
   ========================================================== */

:root {
    --emerald: #0f3d33;
    --emerald-dark: #092822;
    --emerald-light: #1b5a4b;
    --gold: #c9a45c;
    --gold-light: #e2c98a;
    --ivory: #f7f3ea;
    --sand: #ede6d6;
    --ink: #1d1d1b;
    --muted: #6b6a63;
    --white: #ffffff;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Helvetica, Arial, sans-serif;
    --shadow: 0 12px 40px rgba(9, 40, 34, 0.14);
    --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--emerald); text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, 100% - 2rem); margin: 0 auto; }

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.lead { font-size: 1.15rem; max-width: 640px; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head p:last-child { color: var(--muted); }

section { padding: 6rem 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--sans);
}
.btn-primary { background: var(--gold); color: var(--emerald-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: var(--white); color: var(--emerald-dark); }
.btn-small { padding: 0.6rem 1.3rem; font-size: 0.72rem; background: var(--emerald); color: var(--white); }
.btn-small:hover { background: var(--emerald-light); }
.btn:disabled { opacity: 0.8; cursor: default; transform: none; }
.link { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.link:hover { color: var(--emerald); }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.4rem 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar.scrolled { background: var(--emerald-dark); padding: 0.85rem 0; box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

.logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: 0.22em;
    color: var(--white);
}
.logo span { color: var(--gold); }

.nav-menu { display: flex; gap: 1.8rem; align-items: center; }
.nav-menu a {
    color: rgba(255,255,255,0.88);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}
.nav-menu a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-menu .nav-cta { border: 1px solid var(--gold); color: var(--gold); padding: 0.5rem 1.1rem; }
.nav-menu .nav-cta:hover { background: var(--gold); color: var(--emerald-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201,164,92,0.25), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(27,90,75,0.6), transparent 55%),
        linear-gradient(180deg, #0b332b 0%, #092822 60%, #06201b 100%);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 28px),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 28px);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(9,40,34,0.55), rgba(9,40,34,0.15) 50%, rgba(9,40,34,0.75));
}
.hero-content { position: relative; z-index: 2; padding: 8rem 1.5rem 6rem; max-width: 860px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); margin-bottom: 1.5rem; }
.hero .lead { margin: 0 auto 2.5rem; color: rgba(255,255,255,0.85); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    color: var(--gold); font-size: 1.5rem; z-index: 2;
    animation: bob 2s infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Booking bar ---------- */
.booking { padding: 0; position: relative; z-index: 5; margin-top: -3.5rem; }
.booking-form {
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 1.25rem;
    align-items: end;
    border-top: 3px solid var(--gold);
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
    padding: 0.75rem 0.9rem;
    border: 1px solid #d8d2c2;
    border-radius: 3px;
    background: var(--white);
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

/* ---------- Highlights ---------- */
.highlights { padding: 5rem 0 4rem; }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.highlight-icon { display: block; font-size: 2rem; color: var(--gold); margin-bottom: 0.8rem; }
.highlight h3 { font-size: 1.2rem; }
.highlight p { color: var(--muted); font-size: 0.95rem; }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-media {
    min-height: 480px;
    border-radius: var(--radius);
    background:
        linear-gradient(160deg, rgba(201,164,92,0.35), transparent 45%),
        linear-gradient(20deg, #0f3d33, #1b5a4b 60%, #2b7a66);
    box-shadow: var(--shadow);
    position: relative;
}
.about-media::after {
    content: "";
    position: absolute; inset: 18px;
    border: 1px solid rgba(226,201,138,0.5);
    border-radius: 3px;
}
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.about-facts li { font-size: 0.9rem; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 1rem; }
.about-facts strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--emerald); }

/* ---------- Rooms ---------- */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.room-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(9,40,34,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-image { height: 240px; }
.room-1 { background: linear-gradient(135deg, #d9cdb3, #b9a98a 60%, #8f7f62); }
.room-2 { background: linear-gradient(135deg, #a9c3bb, #5d8c7f 60%, #2e5a4e); }
.room-3 { background: linear-gradient(135deg, #e2c98a, #b89248 55%, #0f3d33); }
.room-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.room-meta { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.room-body > p:not(.room-meta) { color: var(--muted); font-size: 0.95rem; flex: 1; }
.room-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--sand); padding-top: 1rem; }
.price { font-size: 0.85rem; color: var(--muted); }
.price strong { font-family: var(--serif); font-size: 1.3rem; color: var(--emerald); }

/* ---------- Casino ---------- */
.casino {
    position: relative;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 30%, rgba(201,164,92,0.22), transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(201,164,92,0.12), transparent 40%),
        var(--emerald-dark);
    overflow: hidden;
}
.casino::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 22px 22px;
}
.casino-content { position: relative; text-align: center; }
.casino-content .lead { margin: 0 auto 3rem; color: rgba(255,255,255,0.8); }
.casino-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: left; }
.casino-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(226,201,138,0.3);
    padding: 2rem 1.6rem;
    border-radius: var(--radius);
    transition: background 0.3s, border-color 0.3s;
}
.casino-item:hover { background: rgba(255,255,255,0.09); border-color: var(--gold); }
.casino-item h3 { color: var(--gold-light); font-size: 1.25rem; }
.casino-item p { color: rgba(255,255,255,0.78); font-size: 0.93rem; margin: 0; }
.casino-note { margin-top: 3rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.casino-note p { margin: 0; }

/* ---------- Dining ---------- */
.dining { background: var(--white); }
.dining-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.dining-card { background: var(--ivory); border-radius: var(--radius); overflow: hidden; }
.dining-image { height: 220px; }
.dining-1 { background: linear-gradient(140deg, #2d6a7a, #1b4a56 55%, #0f3d33); }
.dining-2 { background: linear-gradient(140deg, #e7d4a8, #c9a45c 55%, #8a6a30); }
.dining-3 { background: linear-gradient(140deg, #1b5a4b, #0f3d33 55%, #092822); }
.dining-body { padding: 1.6rem; }
.tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.dining-body > p:not(.tag) { color: var(--muted); font-size: 0.95rem; }
.hours { font-size: 0.8rem; color: var(--emerald); font-style: italic; }

/* ---------- Spa ---------- */
.spa { background: var(--sand); }
.spa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.spa-media {
    min-height: 460px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 50% 100%, rgba(255,255,255,0.35), transparent 55%),
        linear-gradient(180deg, #8fc1c6 0%, #4e9aa3 50%, #1f6b72 100%);
    box-shadow: var(--shadow);
}
.checklist { margin: 1.5rem 0 2rem; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: 0.6rem; color: var(--ink); }
.checklist li::before { content: "\2726"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Events ---------- */
.events-list { display: flex; flex-direction: column; gap: 1rem; max-width: 900px; margin: 0 auto; }
.event {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: var(--white);
    padding: 1.4rem 1.8rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
    box-shadow: 0 4px 18px rgba(9,40,34,0.06);
}
.event-date { text-align: center; font-family: var(--serif); color: var(--emerald); }
.event-date .day { display: block; font-size: 2.2rem; line-height: 1; }
.event-date .month { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.event-info h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.event-info p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.events-venues { text-align: center; max-width: 720px; margin: 3rem auto 0; color: var(--muted); }
.events-venues a { color: var(--gold); text-decoration: underline; }

/* ---------- Offers ---------- */
.offers { background: var(--white); }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.offer-card {
    position: relative;
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 2.4rem 2rem;
    background: var(--ivory);
    transition: transform 0.3s, box-shadow 0.3s;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer-card.featured { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.offer-card.featured p { color: rgba(255,255,255,0.8); }
.offer-card.featured .offer-value, .offer-card.featured .link { color: var(--gold-light); }
.offer-value { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin-bottom: 0.75rem; }
.offer-card > p:not(.offer-value) { color: var(--muted); font-size: 0.95rem; }
.badge {
    position: absolute; top: -12px; left: 2rem;
    background: var(--gold); color: var(--emerald-dark);
    font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
    padding: 0.35rem 0.9rem; border-radius: 2px;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--sand); padding: 5rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.testimonials blockquote { text-align: center; }
.testimonials blockquote p { font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--emerald); }
.testimonials cite { font-style: normal; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact-list li { margin-bottom: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.contact-list strong { color: var(--ink); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-list a { color: var(--emerald); }
.contact-form { background: var(--ivory); padding: 2.5rem; border-radius: var(--radius); display: flex; flex-direction: column; gap: 1.2rem; border-top: 3px solid var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.footer { background: var(--emerald-dark); color: rgba(255,255,255,0.75); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; }
.footer-col h4 { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--sans); }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .small { color: rgba(255,255,255,0.5); }

/* ---------- Legal pages ---------- */
.legal { background: var(--ivory); padding: 9rem 0 5rem; min-height: 80vh; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: 2.6rem; margin-bottom: 0.5rem; color: var(--emerald); }
.legal .updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 0.8rem; color: var(--emerald); }
.legal ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { text-decoration: underline; }
body.page-legal .navbar { background: var(--emerald-dark); padding: 0.85rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .highlights-grid, .casino-grid { grid-template-columns: repeat(2, 1fr); }
    .rooms-grid, .dining-grid, .offers-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .booking-form { grid-template-columns: 1fr 1fr; }
    .booking-form .btn { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 4.5rem 0; }
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(320px, 85vw);
        background: var(--emerald-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.4rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -8px 0 30px rgba(0,0,0,0.3);
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-toggle { position: relative; z-index: 101; }
    .about-grid, .spa-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .spa-media { order: -1; min-height: 280px; }
    .about-media { min-height: 300px; }
    .rooms-grid, .dining-grid, .offers-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .event { grid-template-columns: 70px 1fr; }
    .event .btn { grid-column: 2; justify-self: start; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
    .highlights-grid, .casino-grid, .booking-form, .footer-grid { grid-template-columns: 1fr; }
    .booking-form .btn { grid-column: span 1; }
    .booking { margin-top: -2rem; }
    .hero-content { padding-top: 7rem; }
}
