/* ==========================================================================
   Miravel Coastal Resort — site styles
   Palette:  Deep ocean (#0d3b45), Sand (#e8dfd0), Coral accent (#d96a4d),
             Warm cream (#f7f3ec), Ink (#1a1a1a)
   Type:     Fraunces (display serif), Inter (body sans)
   ========================================================================== */

:root {
    --ocean:    #0d3b45;
    --ocean-2:  #12525e;
    --sand:     #e8dfd0;
    --sand-2:   #d8ccb7;
    --cream:    #f7f3ec;
    --coral:    #d96a4d;
    --ink:      #1a1a1a;
    --muted:    #6c6c6c;
    --hairline: rgba(26,26,26,.12);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

    --nav-h: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-h);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--ocean);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

p { color: #333; }

a { color: var(--ocean); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--coral); }

.text-muted-2 { color: var(--muted); }

/* ---------- Navbar ---------- */
.site-nav {
    background: rgba(247, 243, 236, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, padding .25s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.site-nav.scrolled {
    background: rgba(247, 243, 236, 0.98);
    border-bottom-color: var(--hairline);
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.navbar-brand { line-height: 1; display: flex; flex-direction: column; }
.brand-mark {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ocean);
    letter-spacing: .01em;
}
.brand-sub {
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2px;
}

.site-nav .nav-link {
    color: var(--ink);
    font-size: .92rem;
    font-weight: 400;
    padding: .5rem 1rem !important;
    position: relative;
}
.site-nav .nav-link.active,
.site-nav .nav-link:hover { color: var(--coral); }
.site-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 6px;
    height: 1px;
    background: var(--coral);
}

.btn-book {
    background: var(--ocean);
    color: #fff;
    border: 1px solid var(--ocean);
    padding: .55rem 1.3rem;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .02em;
    border-radius: 2px;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-book:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ---------- Buttons (utility) ---------- */
.btn-primary-ocean {
    background: var(--ocean);
    color: #fff;
    border: 1px solid var(--ocean);
    padding: .7rem 1.6rem;
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: .02em;
}
.btn-primary-ocean:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

.btn-outline-ocean {
    background: transparent;
    color: var(--ocean);
    border: 1px solid var(--ocean);
    padding: .7rem 1.6rem;
    border-radius: 2px;
    font-weight: 500;
}
.btn-outline-ocean:hover { background: var(--ocean); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: calc(92vh - var(--nav-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--nav-h));
    padding-top: var(--nav-h);
    color: #fff;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,59,69,.45) 0%, rgba(13,59,69,.65) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 3rem 0;
}
.hero h1 {
    color: #fff;
    font-weight: 400;
    font-size: clamp(2.8rem, 6vw, 5rem);
}
.hero-lede {
    font-size: 1.15rem;
    color: rgba(255,255,255,.9);
    margin: 1.25rem 0 2rem;
    max-width: 540px;
}
.hero .btn-primary-ocean {
    background: var(--coral);
    border-color: var(--coral);
}
.hero .btn-primary-ocean:hover { background: #fff; color: var(--ocean); border-color: #fff; }
.hero .btn-outline-ocean { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-outline-ocean:hover { background: #fff; color: var(--ocean); border-color: #fff; }

.page-header {
    background: var(--ocean);
    color: #fff;
    padding: 5rem 0 4rem;
    margin-top: calc(-1 * var(--nav-h));
    padding-top: calc(var(--nav-h) + 3rem);
}
.page-header h1 { color: #fff; font-weight: 400; }
.page-header p { color: rgba(255,255,255,.8); max-width: 620px; margin-top: 1rem; }

/* ---------- Sections ---------- */
section.section {
    padding: 6rem 0;
}
section.section-alt { background: var(--sand); }
section.section-dark { background: var(--ocean); color: #fff; }
section.section-dark h2,
section.section-dark h3 { color: #fff; }
section.section-dark p { color: rgba(255,255,255,.85); }

.section-eyebrow {
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: .8rem;
    display: inline-block;
}

/* ---------- Intro (home) ---------- */
.intro-figure {
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
}
.intro-stat {
    border-top: 1px solid var(--hairline);
    padding-top: 1rem;
}
.intro-stat .num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--ocean);
    display: block;
    line-height: 1;
}
.intro-stat .label {
    color: var(--muted);
    font-size: .85rem;
    margin-top: .35rem;
    display: block;
}

/* ---------- Room / feature cards ---------- */
.room-card {
    background: #fff;
    border: 1px solid var(--hairline);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(13,59,69,.25);
}
.room-card .room-image {
    aspect-ratio: 3 / 2;
    background-size: cover;
    background-position: center;
}
.room-card .room-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.room-card h3 { margin-bottom: .5rem; }
.room-card .room-meta {
    color: var(--muted);
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.room-card .room-price {
    font-family: var(--font-display);
    color: var(--ocean);
    font-size: 1.2rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.room-card .room-price small { color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Feature strip ---------- */
.feature {
    text-align: center;
    padding: 1.5rem 1rem;
}
.feature i {
    font-size: 2rem;
    color: var(--coral);
    display: inline-block;
    margin-bottom: 1rem;
}
.feature h4 {
    font-size: 1.05rem;
    color: var(--ocean);
    margin-bottom: .5rem;
}
.feature p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Layout patterns for a mixed grid */
.g-tall  { grid-column: span 6; aspect-ratio: 3 / 4; }
.g-wide  { grid-column: span 6; aspect-ratio: 3 / 2; }
.g-third { grid-column: span 4; aspect-ratio: 1 / 1; }
.g-half  { grid-column: span 6; aspect-ratio: 4 / 3; }

@media (max-width: 767px) {
    .g-tall, .g-wide, .g-third, .g-half { grid-column: span 12; aspect-ratio: 4 / 3; }
}

/* ---------- Dining / menu ---------- */
.menu-column h3 {
    font-size: 1.1rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--coral);
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--hairline);
}
.menu-item {
    padding: 1rem 0;
    border-bottom: 1px dashed var(--hairline);
}
.menu-item:last-child { border-bottom: none; }
.menu-item h4 {
    font-size: 1.1rem;
    color: var(--ocean);
    margin-bottom: .25rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.menu-item h4 .dots {
    flex: 1;
    border-bottom: 1px dotted var(--hairline);
    height: 0;
    margin-bottom: .35rem;
}
.menu-item p {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
}

/* ---------- Testimonial ---------- */
.quote {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--ocean);
    font-style: italic;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.quote-attr {
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-top: 1.5rem;
}

/* ---------- Contact ---------- */
.contact-info-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--hairline);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .label {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: .35rem;
}
.contact-info-item .value {
    font-family: var(--font-display);
    color: var(--ocean);
    font-size: 1.15rem;
}

.contact-form label {
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
}
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 0;
    border: 1px solid var(--hairline);
    background: transparent;
    padding: .7rem .9rem;
    font-size: .95rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgba(13,59,69,.1);
}

.alert-ocean {
    background: var(--sand);
    color: var(--ocean);
    border: 1px solid var(--sand-2);
    border-radius: 0;
    padding: 1rem 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ocean);
    color: rgba(255,255,255,.75);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}
.footer-brand {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: .35rem;
}
.footer-tag {
    color: rgba(255,255,255,.6);
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-heading {
    color: #fff;
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-list li { margin-bottom: .5rem; font-size: .92rem; }
.footer-list a { color: rgba(255,255,255,.75); }
.footer-list a:hover { color: var(--coral); }

.footer-meta { color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-rule { border-color: rgba(255,255,255,.12); margin: 2.5rem 0 1.5rem; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    margin-right: .5rem;
    transition: background .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--coral); border-color: var(--coral); }

.footer-form .form-control {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.2);
    color: #fff;
    border-radius: 0;
}
.footer-form .form-control::placeholder { color: rgba(255,255,255,.5); }
.footer-form .btn { border-radius: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: var(--ocean);
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    transition: background .2s ease, opacity .3s ease;
    opacity: .9;
}
.back-to-top:hover { background: var(--coral); opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(13,59,69,.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    color: #fff; font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
