/* Cabana Beach Bar — visual overrides on top of styles.css.
   Loaded after styles.css in includes/header.php. */

/* Remap Upon's dark-theme tokens to Cabana light-theme equivalents.
   This propagates through the calendar, guest stepper, seating toggle,
   inputs — anything that consumed Upon's var(--bg-card / --text / etc). */
:root {
    --bg:          #f6efe4;
    --bg-deep:     #faf6ee;
    --bg-card:     #faf6ee;
    --bg-elevated: #ffffff;
    --bg-input:    #ffffff;

    --text:           #2b1f14;
    --text-secondary: #6b5849;
    --text-muted:     #8b7b6e;

    --gold:        #ce9653;
    --gold-light:  #e1b482;
    --gold-dim:    #b78343;
    --gold-deep:   #7d5c3f;

    --border:      rgba(125, 92, 63, 0.12);
    --border-gold: rgba(206, 150, 83, 0.35);
    --radius:      10px;
    --radius-lg:   14px;
}

body {
    background: var(--sand);
    color: var(--ink);
    font-family: var(--font-body);
}

/* Hide Upon-era grain texture overlay (no longer needed) */
.grain { display: none !important; }

/* Remove Upon's dark page background on the booking page */
.reserve-page-bg {
    background: var(--sand);
}

/* Headings */
h1, h2, h3, h4,
.section-heading {
    font-family: var(--font-display);
    color: var(--brand-bronze);
    letter-spacing: 0.01em;
}

/* Booking card */
.booking-card {
    background: var(--sand-soft);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
    color: var(--ink);
}

/* Primary CTA */
.btn-next,
.btn-confirm {
    background: var(--brand-gold);
    color: #fff;
    border-radius: var(--radius-pill);
    border: 0;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-next:hover,
.btn-confirm:hover {
    background: var(--brand-gold-deep);
}

/* Back / secondary buttons */
.btn-back {
    background: transparent;
    color: var(--brand-bronze);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
}

/* Step indicator */
.step-dot { background: var(--line); }
.step-dot.active,
.step-dot.done { background: var(--brand-gold); }
.step-line { background: var(--line); }
.step-line.filled { background: var(--brand-gold); }

/* Time slot pills */
.time-btn {
    background: var(--sand-soft);
    border: 1px solid var(--line);
    color: var(--brand-bronze);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
}
.time-btn.selected,
.time-btn:active {
    background: var(--brand-gold);
    color: #fff;
    border-color: var(--brand-gold);
}
.time-btn:hover:not(.selected):not([disabled]) {
    background: #efe2c8;
}

/* Calendar */
.cal-day {
    color: var(--ink);
}
.cal-day.today {
    color: var(--brand-gold);
    font-weight: 600;
}
.cal-day.selected {
    background: var(--brand-gold);
    color: #fff;
    border-radius: var(--radius-pill);
}

/* Guest stepper */
.guest-btn {
    border: 1px solid var(--brand-bronze);
    color: var(--brand-gold);
    background: var(--sand-soft);
    border-radius: 50%;
}
.guest-btn:hover { background: var(--sand); }

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 8px;
    font-family: var(--font-body);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--brand-gold);
    outline: 2px solid rgba(206, 150, 83, 0.2);
}

/* Cabana header — pixel-matched to cabanabeachbarcy.com (Porto theme)
   Marketing site uses: transparent header with border-top:3px #ededed,
   nav in Open Sans 12px 700 uppercase, color #7d5c3f / hover #ce9653. */
.cab-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgb(255 255 255 / 0%);
    border-top: 3px solid #ededed;
}
/* Below the transparent header sits the booking section's sand bg.
   When the user scrolls the section content under it, a slight white
   backdrop keeps the nav legible. */
.cab-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: -1;
}
.cab-header__inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 100px;
}
.cab-header__logo {
    display: block;
    flex-shrink: 0;
    padding: 12px 0;
}
.cab-header__logo img {
    height: 76px;
    width: auto;
    display: block;
}

/* Mobile toggle (Porto's .mobile-toggle equivalent) */
.cab-header__toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 3px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    color: #7d5c3f;
}
.cab-header__toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform .2s, opacity .2s;
}
.cab-header__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cab-header__toggle.is-open span:nth-child(2) { opacity: 0; }
.cab-header__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Nav */
.cab-nav {
    display: flex;
    align-items: center;
    gap: 0;
}
.cab-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}
.cab-nav__item { display: flex; }
.cab-nav__link {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
    color: #7d5c3f;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 0;
    transition: color .15s, background-color .15s;
    white-space: nowrap;
    text-transform: uppercase;
}
.cab-nav__link:hover {
    color: #ce9653;
}
.cab-nav__link.is-active {
    background-color: #ce9653;
    color: #ffffff;
}
.cab-nav__link.is-active:hover {
    background-color: #b78343;
    color: #ffffff;
}

/* Social share-links — pixel-matched to Porto .share-links */
.cab-nav__social {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    line-height: 1;
}
.cab-nav__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 28px;
    background-color: #ffffff;
    color: #333333;
    overflow: hidden;
    font-size: .8rem;
    transition: color .15s, background-color .15s;
}
.cab-nav__social a:hover {
    background-color: #ce9653;
    color: #ffffff;
}

/* Tablet — match Porto's 1169px and 991px breakpoints */
@media (max-width: 1169px) {
    .cab-nav__link { padding: 9px 14px; }
    .cab-header__inner { max-width: 960px; }
}

/* Mobile nav (Porto switches to mobile menu at <= 991px) */
@media (max-width: 991px) {
    .cab-header__toggle { display: flex; }
    .cab-header__inner { max-width: 100%; min-height: 92px; }
    .cab-header__logo img { height: 60px; }
    .cab-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid rgba(0,0,0,0.06);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 15px 16px;
        gap: 4px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform .2s, opacity .2s;
        box-shadow: 0 12px 24px -16px rgba(0,0,0,.15);
    }
    .cab-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .cab-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .cab-nav__item {
        border-bottom: 1px solid rgba(0,0,0,0.06);
        display: block;
    }
    .cab-nav__item:last-child { border-bottom: 0; }
    .cab-nav__link {
        display: block;
        padding: 12px 4px;
    }
    .cab-nav__link.is-active {
        background-color: transparent;
        color: #ce9653;
    }
    .cab-nav__social {
        padding: 12px 4px 0;
        margin: 0;
        justify-content: flex-start;
        gap: 6px;
    }
}

/* Cabana hero */
.cab-hero {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.cab-hero__inner {
    padding: 48px 10% 64px;
    max-width: 900px;
}
.cab-hero__tagline {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
    margin: 0;
    color: #fff;
}
.cab-hero__cue {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 22px;
    animation: cab-bounce 2.4s ease-in-out infinite;
}
@keyframes cab-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

/* Booking section */
.cab-book {
    padding: 96px 16px;
    background: var(--sand);
}
.cab-book__heading {
    text-align: center;
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brand-bronze);
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: 0.02em;
}
.cab-book__lede {
    text-align: center;
    color: var(--ink-soft);
    margin: 0 0 32px;
    font-family: var(--font-body);
}
.cab-book__card-wrap {
    max-width: 560px;
    margin: 0 auto;
}

/* Hours strip */
.cab-hours {
    padding: 32px 16px;
    background: var(--sand);
    border-top: 1px solid var(--line);
}
.cab-hours__row {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 48px;
}
.cab-hours__entry {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: var(--font-display);
}
.cab-hours__label {
    color: var(--brand-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
}
.cab-hours__times {
    color: var(--ink);
    font-weight: 400;
}

/* Cabana footer — pixel-matched to cabanabeachbarcy.com (#footer.footer-1)
   Background #1c2023 (marketing site's .footer-bottom bg),
   3 flex columns each flex:1, padding 10px 8px. */
.cab-footer {
    background-color: #1c2023;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.cab-footer__inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cab-footer__left,
.cab-footer__center,
.cab-footer__right {
    flex: 1;
    padding: 10px 8px;
}
.cab-footer__left {
    text-align: left;
    padding-left: 0;
}
.cab-footer__center { text-align: center; }
.cab-footer__right {
    text-align: right;
    padding-right: 0;
}
.cab-footer__left a {
    display: inline-block;
    line-height: 0;
}
.cab-footer__left img {
    height: 76px;
    width: auto;
    display: block;
    max-width: 100%;
}
.cab-footer__credit {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}
.cab-footer__credit a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}
.cab-footer__credit a:hover { color: #ce9653; }
.cab-footer__heart {
    color: #ce9653;
    font-style: normal;
    font-size: 14px;
    margin: 0 3px;
}

@media (max-width: 991px) {
    .cab-footer__inner {
        display: block;
        text-align: left;
    }
    .cab-footer__left,
    .cab-footer__center,
    .cab-footer__right {
        padding: 10px 0;
        text-align: left;
    }
    .cab-footer__left img { height: 56px; }
}
@media (max-width: 575px) {
    .cab-footer__right { display: none; }
    .cab-footer__left,
    .cab-footer__center {
        text-align: center;
    }
    .cab-footer__left a { display: inline-block; }
}

/* Mobile */
@media (max-width: 768px) {
    .cab-hero { min-height: 45vh; }
    .cab-hero__inner { padding: 32px 6% 48px; }
    .cab-book { padding: 64px 12px; }
}
