/* ==========================================================================
   K2H THEME · INNER PAGES
   Reservations · Menus · Events · FAQs · Contact
   Restyles the existing page markup — no page logic (OpenTable widget,
   lightbox galleries, PDF links) is changed.
   ========================================================================== */

/* Elements that only make sense in the festive season */
html:not(.k2h-festive) .k2h-festive-only { display: none !important; }

/* ---- Page banner (includes/partials/page-banner.php) -------------------- */
.k2h-page-banner {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 96px) 0 clamp(76px, 10vw, 120px);
    background: var(--k2h-night-gradient);
    color: var(--k2h-on-dark);
    text-align: center;
    isolation: isolate;
}
.k2h-page-banner--photo {
    background-color: var(--k2h-navy-800);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;   /* image set inline by page-banner.php (keeps the path relative to the page) */
}
.k2h-page-banner--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, rgba(6, 16, 31, .6), rgba(6, 16, 31, .88));
}
.k2h-page-banner__mandala {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 640px;
    aspect-ratio: 1;
    margin: -320px 0 0 -320px;
    opacity: .18;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 900' fill='none' stroke='%23C9A35E'%3E%3Ccircle cx='450' cy='450' r='420'/%3E%3Ccircle cx='450' cy='450' r='395' stroke-width='22' stroke-dasharray='3 14'/%3E%3Ccircle cx='450' cy='450' r='350' stroke-dasharray='40 10'/%3E%3Ccircle cx='450' cy='450' r='320' stroke-width='10' stroke-dasharray='1 9'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: k2h-spin 120s linear infinite;
}
.k2h-page-banner__inner { display: flex; flex-direction: column; align-items: center; }
.k2h-page-banner .k2h-eyebrow { margin-bottom: 12px; }
.k2h-page-banner__title {
    margin: 0;
    font-family: var(--k2h-font-display);
    font-weight: 600;
    font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem);
    line-height: 1;
}

/* ---- Existing photo heroes (events.php, faqs.php) ----------------------- */
/* NOTE: the original k2h-style.css styles this banner with CSS nesting, which some
   browsers ignore. Everything the banner needs is therefore declared here in flat CSS. */
#section-hero { position: relative; width: 100%; }
#section-hero .bg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(260px, 34vw, 440px);
    padding-bottom: clamp(26px, 4vw, 56px);   /* keeps the title clear of the snow drift */
    outline: 0;
    background-color: var(--k2h-navy-800);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}
#section-hero .bg .inner {
    position: relative;
    z-index: 1;
    padding: 2em var(--k2h-gutter);
    text-align: center;
}
#section-hero .bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 16, 31, .35), rgba(6, 16, 31, .8));
}
#section-hero .bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(26px, 4vw, 56px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'%3E%3Cpath fill='%23F7F0E3' d='M0 34 C 160 10, 300 46, 480 26 S 800 6, 960 30 S 1280 48, 1440 22 V50 H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
#section-hero .bg h2 {
    margin: 0 auto;
    color: #FFFFFF;
    text-align: center;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
    max-width: min(900px, 86vw);
    font-family: var(--k2h-font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.4rem);
    line-height: 1.02;
    text-transform: none;
    text-wrap: balance;
}
#section-hero .bg h2::before {
    content: "K2H Sandbach";
    display: block;
    margin-bottom: 14px;
    font-family: var(--k2h-font-label);
    font-size: .8125rem;
    letter-spacing: var(--k2h-tracking-label);
    text-transform: uppercase;
    color: var(--k2h-gold-300);
    text-shadow: none;
}

/* ---- Alternating feature rows (events.php) ------------------------------ */
#section-cream,
#section-blue {
    position: relative;
    padding: clamp(56px, 7vw, 96px) 0;
}
#section-cream { background: var(--k2h-cream-100); color: var(--k2h-ink); }
#section-blue  { background: var(--k2h-navy-800); color: var(--k2h-on-dark); }

#section-cream div[class^='container'],
#section-blue  div[class^='container'] {
    padding: 0 var(--k2h-gutter);
    background: none;
}
#section-cream .row,
#section-blue  .row { align-items: center; row-gap: 32px; }
#section-cream img.shadow,
#section-blue  img.shadow {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 999px 999px 6px 6px / 140px 140px 6px 6px;
    box-shadow: var(--k2h-shadow-lg) !important;
    transition: transform var(--k2h-dur-slow) var(--k2h-ease);
}
#section-cream .glightbox:hover img,
#section-blue  .glightbox:hover img { transform: scale(1.02); }
#section-cream h2,
#section-blue  h2 {
    font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
    text-transform: none !important;
}
#section-cream h2 { color: var(--k2h-navy-800); }
#section-blue  h2 { color: var(--k2h-gold-300); }
#section-cream .fs-5 { color: var(--k2h-ink-soft); line-height: 1.75; }
#section-blue  .fs-5 { color: var(--k2h-on-dark-soft); line-height: 1.75; }
@media (min-width: 992px) {
    #section-cream .col-lg-7,
    #section-blue  .col-lg-7 { padding-left: clamp(24px, 4vw, 64px); }
}

/* ---- Generic content pages (Menus, Contact, Reservations) ---------------- */
#main.py-3 { padding-block: clamp(48px, 7vw, 88px) !important; background: var(--k2h-cream-100); }
#main h1,
#main #about h2,
#main #reservations h2 { color: var(--k2h-navy-800); }
#main h1 small {
    display: block;
    margin-top: 10px;
    font-family: var(--k2h-font-label);
    font-size: .9rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--k2h-gold-700);
}
#main #about p,
#main #reservations p,
#main #reservations li { color: var(--k2h-ink-soft); line-height: 1.75; }
#main #reservations .lead { color: var(--k2h-ink); }

/* Reservations: frame the OpenTable widget (widget itself untouched) */
#reservations .row { row-gap: 40px; }
#reservations .col-lg-6.text-center {
    padding: 28px 16px;
    background: var(--k2h-cream-50);
    border: 1px solid var(--k2h-cream-300);
    border-top: 4px solid var(--k2h-gold-500);
    box-shadow: var(--k2h-shadow-md);
}
#reservations ol { padding-left: 0; list-style: none; counter-reset: k2h-step; }
#reservations ol li { position: relative; padding: 8px 0 8px 46px; counter-increment: k2h-step; }
#reservations ol li::before {
    content: counter(k2h-step);
    position: absolute;
    left: 0;
    top: 6px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--k2h-gold-500);
    border-radius: 50%;
    font-family: var(--k2h-font-label);
    font-size: .8125rem;
    line-height: 30px;
    text-align: center;
    color: var(--k2h-gold-700);
}

/* Menus list */
.list-menus {
    position: relative;
    margin-top: 28px;
    border: 1px solid var(--k2h-gold-500);
    outline: 1px solid var(--k2h-gold-500);
    outline-offset: 6px;
    background: var(--k2h-cream-50);
    font-family: var(--k2h-font-display);
    font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
    font-weight: 600;
}
.list-menus { margin-inline: auto; text-align: center; }
.list-menus ul { margin: 0; padding: 14px 0; list-style: none; }
.list-menus li { padding: 0; }
.list-menus a { display: block; text-decoration: none; }
.list-menus a,
.list-menus .christmas-menu-title {
    padding: 12px 20px;
    color: var(--k2h-navy-800);
    transition: background-color var(--k2h-dur) ease, color var(--k2h-dur) ease, letter-spacing var(--k2h-dur) ease;
}
.list-menus a:hover,
.list-menus .christmas-menu-title:hover {
    background: var(--k2h-navy-800);
    color: var(--k2h-gold-300);
    box-shadow: none;
    letter-spacing: .02em;
}
.list-menus .christmas-submenu { padding-block: 0 8px; font-size: .8em; }
.list-menus .christmas-submenu a { color: var(--k2h-gold-700); }
/* festive marker on the Christmas entries */
.k2h-festive .list-menus > ul > li:first-child > a,
.k2h-festive .list-menus .christmas-menu-title { color: var(--k2h-crimson-600); }
.k2h-festive .list-menus > ul > li:first-child > a::before,
.k2h-festive .list-menus .christmas-menu-title::before {
    content: "\2726";
    margin-right: 10px;
    font-size: .7em;
    color: var(--k2h-gold-500);
    vertical-align: middle;
}
.list-menus .christmas-menu-title::after { content: " \25BE"; font-size: .7em; color: var(--k2h-gold-500); }
.list-menus details[open] .christmas-menu-title::after { content: " \25B4"; }

#about .glightbox img { box-shadow: var(--k2h-shadow-md); border-radius: 999px 999px 6px 6px / 160px 160px 6px 6px; }

/* Contact */
#about .contact-info span { color: var(--k2h-ink); }
#about .contact-info span::before { color: var(--k2h-gold-700); margin-right: 6px; }
#about .border { border: 1px solid var(--k2h-gold-500) !important; padding: 8px; background: var(--k2h-cream-50); box-shadow: var(--k2h-shadow-md); }
#about hr { border-color: var(--k2h-gold-500); opacity: .6; }

/* ---- FAQs ----------------------------------------------------------------- */
#info-faqs { background: var(--k2h-cream-100); }
#info-faqs .mb-5 > div {
    height: 100%;
    padding: 28px 28px 22px;
    background: var(--k2h-cream-50);
    border: 1px solid var(--k2h-cream-300);
    border-top: 3px solid var(--k2h-gold-500);
    transition: transform var(--k2h-dur) var(--k2h-ease), box-shadow var(--k2h-dur) ease;
}
#info-faqs .mb-5 > div:hover { transform: translateY(-4px); box-shadow: var(--k2h-shadow-md); }
#info-faqs h4 { margin-bottom: 14px; font-size: 1.15rem; color: var(--k2h-navy-800); line-height: 1.35; }
#info-faqs p { color: var(--k2h-ink-soft); line-height: 1.75; }
#info-faqs h4, #info-faqs dt { text-wrap: balance; }
#info-faqs dl {
    margin: 0 0 0 1em;
    padding-left: 1em;
    border-left: 3px solid var(--k2h-gold-500);
}
#info-faqs a { color: var(--k2h-gold-700); text-decoration: underline; }
#info-faqs a:hover { color: var(--k2h-navy-800); text-decoration: none; }

@media (max-width: 575.98px) {
    .k2h-page-banner .k2h-eyebrow::before { display: none; }
}
