/* =========================================================
   Variables
========================================================= */
:root {
    --cream: #efd8cc;
    --warm-white: #fff7f1;
    --nude: #b27c65;
    --rose: #e8cbbd;
    --maddie-brown: #a97761;
    --deep-brown: #7a4f3f;
    --espresso: #3a241c;
    --gold: #c9ad4f;
    --soft-gold: #f3df9d;

    --shadow-soft: 0 22px 55px rgba(58, 36, 28, 0.14);
    --shadow-strong: 0 38px 90px rgba(58, 36, 28, 0.28);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --page-pad: clamp(18px, 5vw, 44px);
}

/* =========================================================
   Base / Reset
========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream);
    color: var(--espresso);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
    font: inherit;
}

.hidden {
    display: none !important;
}

/* =========================================================
   Shared / Utility
========================================================= */
.message {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--rose);
    color: var(--deep-brown);
    font-weight: 800;
}

.error-message {
    background: #9f4c3f;
    color: white;
}

.empty-text {
    color: #73554a;
    font-weight: 700;
    text-align: center;
}

.calendar-section,
.service-page,
.contact-page,
.gallery-page,
.owner-body,
.about-page,
.reviews-section {
    background:
        radial-gradient(circle at 85% 15%, rgba(201, 173, 79, 0.2), transparent 30%),
        linear-gradient(135deg, #efd8cc, #b27c65);
}


/* =========================================================
   Modal / QR Modal
========================================================= */
.modal-overlay,
.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(36, 23, 18, 0.68);
    backdrop-filter: blur(10px);
}

.qr-modal {
    z-index: 300;
}

.modal-overlay.open,
.qr-modal.open {
    display: flex;
}

.modal-card,
.qr-card {
    position: relative;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    border-radius: 36px;
    background: var(--cream);
    box-shadow: var(--shadow-strong);
}

.modal-card {
    -webkit-overflow-scrolling: touch;
}

.qr-card {
    width: min(430px, 100%);
    text-align: center;
}

.modal-close,
.qr-close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: 0;
    background: none;
    font-size: 38px;
    cursor: pointer;
    color: var(--deep-brown);
}

.modal-card h2,
.qr-card h2 {
    margin: 0 0 10px;
    font-family: Georgia, serif;
    font-size: 52px;
    font-weight: 400;
    color: var(--deep-brown);
}

#selected-date-text,
#owner-selected-slot-text {
    margin-bottom: 24px;
    color: #73554a;
    font-weight: 800;
}

.modal-card form p,
.contact-form p {
    margin: 0 0 16px;
}

.modal-card label,
.owner-login-card label,
.owner-booking-card label,
.contact-form label {
    display: block;
    margin-bottom: 8px;
}

.booking-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}

.booking-actions:has(button[hidden]) {
    grid-template-columns: 1fr;
}

.booking-actions button:not([hidden]) {
    justify-self: center;
    max-width: 520px;
}

.booking-actions small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.78;
    letter-spacing: 0;
    text-transform: none;
}

.pay-now-btn {
    background: var(--gold) !important;
    color: var(--espresso) !important;
}

/* =========================================================
   Messages
========================================================= */
.messages {
    margin-bottom: 18px;
}

.messages p {
    padding: 13px 15px;
    border-radius: 12px;
    font-weight: 600;
    margin: 0 0 12px;
}

.messages .success {
    background: #eaf7ed;
    color: #256d3b;
    border: 1px solid #bfe5c8;
}

.messages .error {
    background: #fdecec;
    color: #9f2d2d;
    border: 1px solid #f5bcbc;
}

/* =========================================================
   SEO Intro
========================================================= */
.seo-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px 28px;
    text-align: center;
}

.seo-intro h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.seo-intro p {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================================
   Responsive: Tablet
========================================================= */
@media (max-width: 1100px) {
    .contact-layout {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .contact-card {
        height: auto;
    }
}

@media (max-width: 1050px) {
    .main-nav {
        gap: 18px;
    }

    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-panel {
        padding: 32px;
    }
}

@media (max-width: 900px) {
    .reviews-scroll {
        grid-auto-columns: calc((100% - 22px) / 2);
    }

    .hero-split.five-panels {
        gap: 12px;
        padding: 12px;
    }

    .hero-split.five-panels .hero-panel {
        flex: 0 0 82vw;
        min-width: 82vw;
        min-height: 430px;
        padding: 22px;
        border-radius: 28px;
    }

    .hero-split.five-panels .hero-panel::after {
        inset: 12px;
        border-radius: 22px;
    }

    .hero-split.five-panels .panel-text {
        max-width: 92%;
    }

    .hero-split.five-panels .panel-text span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-bottom: 12px;
        border-radius: 50%;
        background: rgba(255, 247, 241, 0.88);
        color: var(--deep-brown);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    }

    .hero-split.five-panels .panel-text h1 {
        font-size: clamp(44px, 14vw, 64px);
        line-height: 0.9;
    }

    .hero-split.five-panels .panel-text p {
        display: block;
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.45;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .social-links {
        margin-top: 12px;
    }

    .main-nav.open {
        max-height: 90vh;
        overflow-y: auto;
        padding-bottom: 24px;
    }

    .main-nav .owner-link {
        margin-bottom: 12px;
    }

    .contact-videos-card .video-box {
        aspect-ratio: 9 / 16;
        max-height: 78vh;
    }

    .contact-videos-card video#contact-video-player {
        object-fit: contain;
    }
}

/* =========================================================
   Responsive: Mobile
========================================================= */
@media (max-width: 760px) {
    :root {
        --page-pad: 18px;
    }

    body {
        background: linear-gradient(180deg, var(--cream), #f4dfd5);
    }

    .site-header {
        position: sticky;
        top: 0;
        min-height: auto;
        display: grid;
        grid-template-columns: 46px 1fr 46px;
        align-items: center;
        padding: 10px 14px;
        gap: 8px;
        flex-direction: column;
        border-radius: 0 0 22px 22px;
    }

    .logo-wrap {
        display: contents;
        justify-content: center;
    }

    .logo-wrap img {
        grid-column: 1;
        height: 34px;
        width: 34px;
        object-fit: cover;
        border-radius: 50%;
        justify-self: center;
        margin: 0 auto;
    }

    .logo-text {
        grid-column: 2;
        text-align: center;
        font-size: 17px;
        line-height: 1.05;
        white-space: normal;
    }

    .mobile-menu-btn {
        grid-column: 3;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 0;
        background: transparent;
        display: grid;
        place-items: center;
        cursor: pointer;
        justify-self: center;
        transform: translateY(-4px);
    }

    .mobile-menu-btn::before {
        content: "⌄";
        color: var(--deep-brown);
        font-size: 30px;
        line-height: 1;
        font-family: Georgia, serif;
        transition: transform 0.3s ease;
    }

    .mobile-menu-btn span {
        display: none;
    }

    .mobile-menu-btn.open::before {
        transform: rotate(180deg);
    }

    .main-nav {
        grid-column: 1 / -1;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 0;
        text-align: center;
        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            transform 0.35s ease,
            padding 0.35s ease;
    }

    .main-nav.open {
        max-height: 520px;
        opacity: 1;
        transform: translateY(0);
        padding: 12px 0 8px;
    }

    .main-nav a,
    .site-header .main-nav .owner-link,
    .site-header .main-nav .nav-button {
        width: 100%;
        min-height: 42px;
        display: grid;
        place-items: center;
        padding: 10px 14px !important;
        border-radius: 999px;
        background: rgba(255, 253, 251, 0.84) !important;
        border: 1px solid rgba(173, 122, 99, 0.18) !important;
        color: var(--espresso) !important;
        font-size: 11px;
        letter-spacing: 1px;
        text-align: center;
        opacity: 1;
    }

    .site-header .main-nav .nav-button {
        background: var(--espresso) !important;
        color: var(--cream) !important;
    }

    .site-header .main-nav .owner-link {
        grid-column: auto;
    }

.hero-split,
.hero-split.five-panels {
    display: flex;
    width: 100%;
    max-width: 100vw;
    gap: 10px;
    padding: 10px;
    min-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    background: var(--espresso);
}

.hero-panel,
.hero-split.five-panels .hero-panel {
    width: 100%;
    min-width: 0;
    min-height: 170px;
    padding: 16px;
    border-radius: 22px;
    align-items: flex-end;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    background-position: center;
}

    .hero-panel:hover,
    .calendar-day:hover {
        transform: none;
    }

    .hero-panel:hover {
        border-radius: 22px;
    }

    .hero-panel::after {
        inset: 7px;
        border-radius: 16px;
    }

    .panel-text span {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .panel-text h2 {
        font-size: 18px;
        line-height: 1;
    }

    .panel-text p {
        display: none;
    }

    .calendar-section {
        padding: 32px 10px;
    }

    .calendar-intro {
        margin-bottom: 14px;
    }

    .calendar-intro span {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .calendar-intro h2,
    .service-page h2,
    .contact-heading h2,
    .gallery-page-heading h2 {
        font-size: 38px;
    }

    .calendar-intro p {
        font-size: 14px;
        line-height: 1.35;
        margin: 8px 0 0;
    }

    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 7px;
    }

    .calendar-day {
        min-height: 76px;
        padding: 7px;
        border-radius: 15px;
        box-shadow: 0 8px 18px rgba(104, 66, 53, 0.1);
    }

    .calendar-day span {
        font-size: 8.5px;
        letter-spacing: 0.5px;
    }

    .calendar-day strong {
        margin: 2px 0 0;
        font-size: 25px;
        line-height: 1;
    }

    .calendar-day small {
        font-size: 9px;
    }

    .calendar-day em {
        margin-top: 5px;
        padding: 4px 5px;
        font-size: 8px;
        line-height: 1;
        letter-spacing: 0;
    }

    .modal-overlay,
    .qr-modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-card,
    .qr-card {
        width: 100%;
        max-height: 92vh;
        border-radius: 30px 30px 0 0;
        padding: 30px 18px calc(24px + env(safe-area-inset-bottom));
    }

    .modal-close,
    .qr-close {
        top: 12px;
        right: 16px;
        font-size: 34px;
    }

    .modal-card h2,
    .qr-card h2 {
        padding-right: 44px;
        font-size: 42px;
        line-height: 0.95;
    }

    .booking-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .booking-actions button {
        min-height: 66px;
    }

    .service-page,
    .contact-page,
    .gallery-page {
        padding: 34px 14px 46px;
    }

    .service-heading {
        margin-bottom: 20px;
    }

    .service-grid {
        gap: 10px;
    }

    .service-card {
        width: 100%;
        padding: 16px;
        border-radius: 18px;
    }

    .service-card h3 {
        font-size: 23px;
        margin-bottom: 6px;
    }

    .service-card p {
        margin: 6px 0;
        font-size: 14px;
    }

    .service-card strong {
        font-size: 20px;
        margin-top: 8px;
    }

    .service-book-btn {
        margin-top: 12px;
        padding: 9px 13px;
        font-size: 10px;
    }

    .gallery-section {
        margin-top: 36px;
    }

    .gallery-page-heading {
        margin-bottom: 30px;
    }

    .gallery-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        gap: 14px;
        margin-top: 18px;
    }

    .gallery-grid img,
    .gallery-placeholder,
    .gallery-page-grid img {
        height: 240px;
    }

    .gallery-grid img:nth-child(2),
    .gallery-grid img:nth-child(5),
    .gallery-placeholder:nth-child(2),
    .gallery-placeholder:nth-child(5) {
        transform: none;
    }

    .gallery-category {
        margin-bottom: 42px;
    }

    .contact-layout {
        gap: 14px;
    }

    .contact-card {
        padding: 20px;
        border-radius: 22px;
    }

    .contact-card h3 {
        font-size: 28px;
    }

    .map-box iframe {
        height: 280px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-box video {
        max-height: 420px;
    }

    .fake-checkout {
        grid-template-columns: 1fr;
        min-height: 100svh;
    }

    .fake-checkout-left {
        padding: 34px 20px;
        border-right: 0;
        border-bottom: 1px solid #ddd;
        border-radius: 0 0 30px 30px;
    }

    .payment-summary {
        margin-top: 34px;
    }

    .payment-summary h2 {
        font-size: 46px;
    }

    .fake-checkout-right {
        max-width: none;
        padding: 32px 20px 44px;
    }

    .fake-row {
        gap: 10px;
    }

    .fake-row input:first-child,
    .fake-row input:last-child {
        border-radius: 8px;
        border-left: 1px solid #d8dee4;
    }

    .owner-site-header {
        min-height: 56px;
        padding: 7px 12px;
    }

    .owner-logo img {
        height: 36px;
    }

    .owner-top-nav .owner-logout-link {
        width: 34px;
        height: 34px;
        padding: 0 !important;
    }

    .logout-icon svg {
        width: 18px;
        height: 18px;
    }

    .owner-header {
        display: block;
        padding: 28px 18px 18px;
        justify-content: center;
        text-align: center;
    }

    .owner-header h1 {
        font-size: 38px;
        line-height: 1;
    }

    .owner-header-actions {
        margin-top: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .owner-header a {
        text-align: center;
        padding: 13px 14px;
    }

    .owner-sticky-nav {
        top: 56px;
        justify-content: flex-start;
        padding: 10px 14px;
        gap: 8px;
        scroll-snap-type: x mandatory;
    }

    .owner-sticky-nav button {
        scroll-snap-align: start;
        padding: 11px 14px;
        font-size: 12px;
    }

    .owner-dashboard {
        padding: 16px 14px 52px;
    }

    .dashboard-group {
        margin-top: 18px;
        padding: 16px;
        border-radius: 24px;
    }

    .group-toggle h2,
    .dashboard-group h2 {
        font-size: 36px;
    }

    .owner-booking-card {
        border-radius: 22px;
    }

    .owner-booking-card summary {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .owner-booking-card summary strong {
        font-size: 26px;
    }

    .owner-booking-card summary span {
        font-size: 14px;
        line-height: 1.45;
    }

    .status-pill {
        width: fit-content;
    }

    .owner-booking-card[open] .booking-details,
    .owner-booking-card[open] form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .booking-details,
    .reschedule-fields {
        grid-template-columns: 1fr;
    }

    .booking-details {
        gap: 10px;
    }

    .owner-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .owner-actions button,
    .owner-actions a {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
    }

    .owner-login-card {
        width: calc(100% - 28px);
        margin: 28px auto;
        padding: 28px 20px;
        border-radius: 28px;
    }

    .owner-login-card h1 {
        font-size: 40px;
    }

    .qr-summary strong {
        font-size: 44px;
    }

    .fake-qr {
        width: min(230px, 76vw);
        height: min(230px, 76vw);
    }

    .terminal-body {
        padding: 14px;
        align-items: flex-start;
    }

    .phone-frame {
        width: 100%;
        min-height: calc(100svh - 28px);
        border-radius: 42px;
        padding: 12px;
    }

    .terminal-screen {
        min-height: calc(100svh - 86px);
        padding: 24px 18px;
        border-radius: 32px;
    }

    .terminal-screen h1 {
        font-size: 42px;
    }

    .tap-card strong {
        font-size: 46px;
    }

    .tap-circle {
        width: 170px;
        height: 170px;
    }

    .owner-calendar-heading,
    .calendar-week-controls {
        display: grid;
        text-align: center;
    }

    .calendar-week-controls {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
    }

    .calendar-week-controls a {
        padding: 9px 10px;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
    }

    .calendar-week-controls strong {
        font-size: 13px;
        line-height: 1.2;
        text-align: center;
    }

    .owner-calendar-panel {
        padding: 12px;
        border-radius: 20px;
    }

    .owner-calendar-scroll {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .owner-week-calendar {
        min-width: 900px;
        overflow: visible;
    }

    .owner-week-header,
    .owner-week-body {
        min-width: 900px;
        grid-template-columns: 76px repeat(7, minmax(110px, 1fr));
    }

    .owner-time-header-cell {
        min-height: 58px;
    }

    .owner-day-header {
        min-height: 58px;
        padding: 6px 4px;
        text-align: center;
    }

    .owner-day-header span {
        font-size: 9px;
    }

    .owner-day-header strong {
        font-size: 18px;
    }

    .owner-day-header small {
        font-size: 9px;
    }

    .owner-time-column,
    .owner-day-column {
        grid-template-rows: repeat(var(--calendar-total-rows, 132), 8px);
    }

    .owner-time-label {
        font-size: 10px;
        padding-right: 4px;
    }

    .owner-calendar-slot {
        height: 8px;
        min-height: 8px;
    }

    .owner-calendar-booking {
        width: calc(100% - 18px);
        margin: 2px auto;
        padding: 6px 28px 6px 8px;
        border-radius: 14px;
        min-height: 38px;
        cursor: pointer;
    }

    .owner-calendar-booking > strong,
    .owner-calendar-booking > span {
        font-size: 10px;
    }

    .owner-calendar-booking > small {
        font-size: 9px;
    }

    .delete-calendar-booking {
        top: 50%;
        right: 5px;
        transform: translateY(-50%);
        width: 19px;
        height: 19px;
        font-size: 14px;
        z-index: 20;
    }

    .calendar-tooltip {
        width: 220px;
        left: 0;
        bottom: calc(100% + 8px);
        transform: none;
    }

    .owner-calendar-booking.mobile-open {
        z-index: 120;
        overflow: visible;
    }

    .owner-calendar-booking.mobile-open .calendar-tooltip {
        display: block;
    }

    .calendar-legend {
        justify-content: center;
    }

    .about-page {
        padding: 34px 14px 46px;
    }

    .about-card {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 22px;
        border-radius: 28px;
    }

    .about-image-wrap img {
        height: 360px;
    }

    .about-content h1 {
        font-size: 44px;
    }

    .about-content p {
        font-size: 15px;
        line-height: 1.55;
    }

    .about-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 22px 16px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .reviews-section {
        padding: 32px 10px;
    }

    .reviews-scroll {
        grid-auto-columns: 86%;
    }

    .reviews-intro h2 {
        font-size: 38px;
    }
}

@media (max-width: 430px) {
    .hero-split.five-panels .hero-panel {
        flex-basis: 86vw;
        min-width: 86vw;
        min-height: 390px;
        padding: 20px;
    }

    .hero-split.five-panels .panel-text span {
        width: 36px;
        height: 36px;
        font-size: 11px;
        margin-bottom: 10px;
    }

    .hero-split.five-panels .panel-text h2 {
        font-size: 46px;
    }
}

@media (max-width: 420px) {
    .video-switch-buttons {
        grid-template-columns: 1fr;
    }

    .video-play-overlay {
        font-size: 48px;
    }
}

@media (max-width: 390px) {
    .main-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-header .main-nav .owner-link {
        grid-column: auto;
    }

    .hero-panel {
        min-height: 115px;
        padding: 10px;
    }

    .panel-text h2 {
        font-size: 19px;
    }

    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .calendar-day {
        min-height: 70px;
        padding: 6px;
        border-radius: 13px;
    }

    .calendar-day strong {
        font-size: 23px;
    }

    .calendar-day em {
        font-size: 7.5px;
    }

    .modal-card h2,
    .qr-card h2 {
        font-size: 38px;
    }

    .gallery-grid img,
    .gallery-placeholder {
        height: 210px;
    }

    .owner-header-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Accessibility / Reduced Motion
========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   Header SEO
========================================================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.booking-search-form {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 12px auto 18px;
}

.booking-search-form input[type="search"] {
    min-width: 240px;
    padding: 10px 12px;
    border: 1px solid #d8bca9;
    border-radius: 999px;
    background: #ffffff;
}

.booking-search-form button,
.booking-search-form a {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: #2f211c;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.booking-search-form a {
    background: #d8bca9;
    color: #2f211c;
}