/*
Theme Name:  a.kitchen + bar
Theme URI:   https://akitchenandbar.com
Description: Custom WordPress theme for a.kitchen + bar — High Street Hospitality Group, Philadelphia.
Version:     2.4.0
Author:      High Street Hospitality Group
Text Domain: aka
*/

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
    --white:      #ffffff;
    --off-white:  #fafaf8;
    --black:      #0d0d0d;
    --ink:        #1a1a1a;
    --mid:        #555550;
    --light:      #888884;
    --rule:       #e8e8e4;

    --serif:  'EB Garamond', Georgia, serif;
    --sans:   'Inter', -apple-system, sans-serif;

    --max:       740px;
    --max-wide:  1100px;
    --nav-h:     60px;
}

/* ─── BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--white); scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 14px; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─── GRECAPTCHA HIDE (Loyalist) ─────────────────────────── */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* ─── NAV ────────────────────────────────────────────────── */
.aka-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 36px;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
}
.aka-nav__logo img  { height: 38px; width: auto; }
.aka-nav__logo-text { font-family: var(--serif); font-size: 1.1rem; color: var(--black); }

.aka-nav__links {
    display: flex; align-items: center; gap: 32px;
}
.aka-nav__links a {
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink); font-weight: 400;
    transition: color .15s;
}
.aka-nav__links a:hover { color: var(--black); }
.aka-nav__links a.--reserve { font-weight: 500; }

/* hamburger */
.aka-nav__burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
    position: relative; z-index: 9999;
}
.aka-nav__burger span { display: block; width: 20px; height: 1px; background: var(--black); transition: transform .25s, opacity .25s; }
.aka-nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.aka-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.aka-nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* drawer */
.aka-drawer {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white); z-index: 199;
    border-bottom: 1px solid var(--rule);
}
.aka-drawer.is-open { display: block; }
.aka-drawer a {
    display: block; padding: 14px 36px;
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink); border-bottom: 1px solid var(--rule);
    transition: background .12s;
}
.aka-drawer a:hover { background: var(--off-white); }

.aka-spacer { height: var(--nav-h); }

/* ─── LAYOUT SHELLS ──────────────────────────────────────── */
.aka-page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 32px 120px;
}
.aka-page--wide {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 72px 32px 120px;
}

/* ─── TYPE SCALE ─────────────────────────────────────────── */
.aka-page-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400; line-height: 1.2;
    letter-spacing: -.01em; color: var(--black);
    margin-bottom: 32px;
}
.aka-label {
    font-size: 10px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--light);
    font-weight: 500;
}
.aka-body {
    font-size: 14px; line-height: 1.8; color: var(--mid);
}
.aka-body p + p { margin-top: 1.1em; }

/* ─── RULE ───────────────────────────────────────────────── */
.aka-rule { border: none; border-top: 1px solid var(--rule); }

/* ─── BUTTON ─────────────────────────────────────────────── */
.aka-btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--white); background: var(--black);
    padding: 12px 24px;
    border: 1px solid var(--black);
    transition: background .15s, color .15s;
    cursor: pointer;
}
.aka-btn:hover { background: var(--white); color: var(--black); }
.aka-btn--outline {
    background: transparent; color: var(--black);
}
.aka-btn--outline:hover { background: var(--black); color: var(--white); }

/* ─── HOMEPAGE ───────────────────────────────────────────── */
.aka-hero {
    width: 100%; height: calc(100svh - var(--nav-h));
    position: relative; overflow: hidden;
}
.aka-hero img { width: 100%; height: 100%; object-fit: cover; }
.aka-hero__text {
    position: absolute; bottom: 48px; left: 48px;
    color: var(--white);
}
.aka-hero__text h1 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 400; line-height: 1.2;
    letter-spacing: -.01em;
}
.aka-hero__text p {
    margin-top: 10px;
    font-size: 11px; letter-spacing: .18em;
    text-transform: uppercase; opacity: .7;
}

/* split: image left, text right */
.aka-split {
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--rule);
}
.aka-split__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aka-split__body {
    padding: 72px 64px;
    display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.aka-split__heading {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 400; line-height: 1.25;
    color: var(--black);
}
.aka-split__copy { font-size: 14px; line-height: 1.85; color: var(--mid); }
.aka-split__copy p + p { margin-top: 1em; }
.aka-split__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* awards */
.aka-awards {
    display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
    padding-top: 24px; border-top: 1px solid var(--rule);
}
.aka-awards img { height: 52px; width: auto; opacity: .75; transition: opacity .15s; }
.aka-awards a:hover img { opacity: 1; }

/* ─── MENU CPT ───────────────────────────────────────────── */
.aka-menu-subnav {
    display: flex; align-items: baseline; gap: 0;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.aka-menu-subnav::-webkit-scrollbar { display: none; }
.aka-menu-subnav a {
    display: inline-block;
    padding: 14px 20px;
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--light); white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.aka-menu-subnav a:hover { color: var(--black); }
.aka-menu-subnav a.is-current { color: var(--black); border-bottom-color: var(--black); }

.aka-menu-hours {
    font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
    color: var(--light); margin-bottom: 40px;
}
.aka-menu-notes-top,
.aka-menu-notes-bottom {
    font-size: 13px; color: var(--light);
    font-style: italic; margin-bottom: 20px;
}
.aka-menu-intro {
    font-size: 14px; line-height: 1.8; color: var(--mid);
    max-width: 520px; margin-bottom: 48px;
}
.aka-menu-pdf {
    width: 100%;
    /* aspect-ratio is set inline per-menu (matching the real PDF page size) as
       a placeholder so nothing jumps while the canvas render loads; it's
       cleared by JS once the actual page(s) are drawn in. No border/background
       here on purpose — the canvas output is the only thing visible, so it
       reads as part of the page rather than an embedded widget. */
    margin-bottom: 20px;
}
.aka-menu-pdf canvas { width: 100%; height: auto; display: block; }
.aka-menu-pdf__loading {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; text-align: center;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--light);
}
.aka-menu-pdf__fallback {
    text-align: center; padding: 24px 0;
    font-size: 13px; color: var(--mid);
}
.aka-menu-pdf__fallback a { text-decoration: underline; color: var(--black); }
.aka-menu-pdf-cta { margin: 0 0 40px; }

.aka-menus-page-title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; color: var(--black); margin-bottom: 32px; }

/* section / subsection headings */
.aka-menu-section {
    font-family: var(--sans);
    font-size: 13px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--light);
    margin: 52px 0 0; padding-top: 40px;
    border-top: 1px solid var(--rule);
}
.aka-menu-section:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.aka-menu-subsection {
    font-family: var(--serif);
    font-size: 15px; font-weight: 400; font-style: italic;
    letter-spacing: .01em; text-transform: none;
    color: var(--mid); margin: 32px 0 0;
}

/* item */
.aka-item {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}
.aka-item:last-child { border-bottom: none; }
.aka-item__name {
    font-family: var(--serif);
    font-size: 15px; color: var(--black);
    font-weight: 400; letter-spacing: .01em;
    text-transform: uppercase;
    grid-column: 1; grid-row: 1;
}
.aka-item__price {
    font-family: var(--sans);
    font-size: 13px; color: var(--mid);
    grid-column: 2; grid-row: 1;
    align-self: start; white-space: nowrap;
}
.aka-item__desc {
    font-size: 12px; color: var(--light);
    line-height: 1.6; margin-top: 3px;
    grid-column: 1 / -1; grid-row: 2;
    font-style: italic;
    text-transform: lowercase;
}
.aka-item__note {
    font-size: 11px; color: var(--light);
    grid-column: 1 / -1; grid-row: 3;
    margin-top: 2px;
    font-style: italic;
    text-transform: lowercase;
}

/* spacer row */
.aka-menu-spacer { height: 32px; }

/* ─── ABOUT ──────────────────────────────────────────────── */
/* single-column layout — centered */
.aka-about__award { margin-bottom: 28px; text-align: center; }
.aka-about__badge { height: 144px; width: auto; opacity: .85; transition: opacity .15s; display: inline-block; }
.aka-about__award a:hover .aka-about__badge { opacity: 1; }

.aka-about__h1 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; color: var(--black); margin-bottom: 32px; text-align: center; }
.aka-about__intro {
    font-size: 14px; line-height: 1.85;
    color: var(--mid); margin-bottom: 16px;
    text-align: center;
}
.aka-about__body { font-size: 14px; line-height: 1.85; color: var(--mid); text-align: center; }
.aka-about__body p + p { margin-top: 1em; }

/* hours */
.aka-about__hours {
    margin-top: 48px; padding-top: 40px;
    border-top: 1px solid var(--rule);
    text-align: center;
}
.aka-hours__day {
    padding-bottom: 20px; margin-bottom: 20px;
    border-bottom: 1px solid var(--rule);
}
.aka-hours__day:last-child { border-bottom: none; margin-bottom: 0; }
.aka-hours__name {
    font-size: 11px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--black); margin-bottom: 6px;
}
.aka-hours__times p { font-size: 13px; line-height: 1.75; color: var(--mid); }
.aka-hours__service { font-weight: 400; color: var(--mid); }
.aka-hours__time { font-weight: 600; color: var(--ink); }

/* ─── PRESS ──────────────────────────────────────────────── */
.aka-press-intro {
    font-size: 14px; line-height: 1.85; color: var(--mid);
    margin-bottom: 48px; max-width: var(--max);
    text-align: center; margin-left: auto; margin-right: auto;
}
.aka-press-intro p { margin: 0 0 1.25em; }
.aka-press-intro p:last-child { margin-bottom: 0; }
.aka-press-intro a { color: var(--ink); border-bottom: 1px solid var(--rule); transition: border-color .15s; }
.aka-press-intro a:hover { border-color: var(--black); }

.aka-press-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

a.aka-press-item,
div.aka-press-item {
    display: flex; flex-direction: column;
    background: var(--white);
    text-decoration: none; color: inherit;
    transition: background .15s;
}
a.aka-press-item:hover { background: var(--off-white); opacity: 1; }

.aka-press-item__img {
    width: 100%; aspect-ratio: 3/2; overflow: hidden;
    background: var(--rule);
}
.aka-press-item__img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s ease;
}
a.aka-press-item:hover .aka-press-item__img img { transform: scale(1.03); }
.aka-press-item__img-placeholder {
    width: 100%; height: 100%; background: var(--off-white);
}

.aka-press-item__body {
    padding: 20px 22px 24px;
    display: flex; flex-direction: column; gap: 8px;
    flex: 1;
}

.aka-press-item__meta {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
}
.aka-press-item__logo img {
    height: 20px; width: auto; opacity: .7;
    filter: grayscale(1);
    object-fit: contain;
}
.aka-press-item__pub {
    font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--light);
}
.aka-press-item__date {
    font-size: 11px; color: var(--light);
    white-space: nowrap; flex-shrink: 0;
}
.aka-press-item__headline {
    font-family: var(--serif);
    font-size: 1rem; line-height: 1.4;
    color: var(--black); font-weight: 400;
}
.aka-press-item__excerpt {
    font-size: 12px; color: var(--mid); line-height: 1.65;
}

@media (max-width: 900px) {
    .aka-press-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .aka-press-grid { grid-template-columns: 1fr; }
}

/* ─── CONTACT/* ─── CONTACT ────────────────────────────────────────────── */
.aka-contact-simple { max-width: 480px; }
.aka-contact-simple__line {
    font-size: 14px; line-height: 1.85; color: var(--mid);
    margin-bottom: 12px;
}
.aka-contact-simple__line a {
    color: var(--ink); border-bottom: 1px solid var(--rule);
    transition: border-color .15s;
}
.aka-contact-simple__line a:hover { border-color: var(--black); }
.aka-contact-simple__info {
    margin-top: 36px; padding-top: 32px;
    border-top: 1px solid var(--rule);
    display: flex; flex-direction: column; gap: 8px;
}
.aka-contact-simple__info p {
    font-size: 13px; line-height: 1.7; color: var(--mid);
}
.aka-contact-simple__info a {
    color: var(--mid); transition: color .15s;
}
.aka-contact-simple__info a:hover { color: var(--black); }

/* ─── PRIVATE/* ─── PRIVATE EVENTS ─────────────────────────────────────── */
.aka-events {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 64px 32px 100px;
    text-align: center;
}
.aka-events__title {
    text-align: center;
    margin-bottom: 40px;
}
.aka-events__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 48px;
}
.aka-events__gallery-img img {
    width: 100%; aspect-ratio: 4/3;
    object-fit: cover; display: block;
}
.aka-events__body {
    display: flex; flex-direction: column;
    align-items: center; gap: 28px;
}
.aka-events__intro {
    font-size: 14px; line-height: 1.85;
    color: var(--mid); max-width: 520px;
}
.aka-events__intro p + p { margin-top: 1em; }
.aka-events__info {
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
    width: 100%; max-width: 400px;
    display: flex; flex-direction: column; gap: 8px;
}
.aka-events__info p {
    font-size: 12px; line-height: 1.75; color: var(--mid);
}
.aka-events__info a {
    color: var(--mid); transition: color .15s;
}
.aka-events__info a:hover { color: var(--black); }

@media (max-width: 640px) {
    .aka-events__gallery { grid-template-columns: 1fr; gap: 2px; }
    .aka-events { padding: 40px 20px 80px; }
}

/* ─── RESERVATIONS/* ─── RESERVATIONS ───────────────────────────────────────── */
.aka-res-single { text-align: center; max-width: 520px; }
.aka-res-single__title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; color: var(--black); margin-bottom: 32px; }
.aka-res-single__body { font-size: 14px; line-height: 1.85; color: var(--mid); margin-bottom: 40px; }
.aka-res-single__body p { margin-bottom: 1em; }
.aka-res-single__hours {
    margin-bottom: 48px; display: inline-block;
    text-align: left; width: 100%;
}
.aka-res-single__hours-group {
    padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.aka-res-single__hours-group:first-child { border-top: 1px solid var(--rule); }
.aka-res-single__hours-label {
    font-size: 11px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--black); margin-bottom: 4px;
}
.aka-res-single__hours-times p { font-size: 13px; line-height: 1.75; color: var(--mid); }
.aka-res-single__widget { margin-top: 8px; }
.aka-res-single__widget > * { margin-left: auto; margin-right: auto; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.aka-footer-wrap { background: #0d0d0d; width: 100%; }
.aka-footer {
    padding: 32px 36px 28px;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 32px; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.aka-footer__signup {
    display: flex; justify-content: center; align-items: center;
}
.aka-footer__brand {
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 0;
}
.aka-footer__brand-name {
    font-family: var(--serif); font-size: 1rem;
    color: rgba(255,255,255,.6); margin-bottom: 10px;
}
.aka-footer__address {
    font-style: normal; font-size: 12px;
    line-height: 1.75; color: rgba(255,255,255,.35);
    text-align: right; display: flex; flex-direction: column;
}
.aka-footer__address a { color: rgba(255,255,255,.35); transition: color .15s; }
.aka-footer__address a:hover { color: rgba(255,255,255,.8); }
.aka-footer__bottom {
    padding: 12px 36px; text-align: center;
    font-size: 11px; color: rgba(255,255,255,.2); letter-spacing: .05em;
}
@media (max-width: 600px) {
    .aka-footer { grid-template-columns: 1fr; padding: 32px 20px 24px; text-align: center; }
    .aka-footer__brand { align-items: center; }
    .aka-footer__brand img { margin-left: auto; margin-right: auto; }
    .aka-footer__address { text-align: center; }
    .aka-footer__bottom { padding: 10px 20px; }
}

/* ─── 404 ────────────────────────────────────────────────── */
.aka-404 { text-align: center; padding: 120px 32px; }
.aka-404 h1 { font-family: var(--serif); font-size: 6rem; color: var(--rule); font-weight: 400; margin-bottom: 16px; }
.aka-404 p { font-size: 14px; color: var(--light); margin-bottom: 32px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .aka-split { grid-template-columns: 1fr; }
    .aka-split__img { display: none; }
    .aka-split__body { padding: 56px 32px; }

    .aka-about { grid-template-columns: 1fr; }
    .aka-about__main { padding: 56px 32px 32px; }
    .aka-about__aside { padding: 32px 32px 72px; border-left: none; border-top: 1px solid var(--rule); }

    /* aka-res single column — no responsive overrides needed */

    .aka-events-gallery { grid-template-columns: 1fr; }
    .aka-events-gallery img { height: 260px; }
    .aka-events-gallery > * + * { border-left: none; border-top: 1px solid var(--rule); }
    .aka-space { grid-template-columns: 1fr; gap: 28px; }
    .aka-space:nth-child(even) .aka-space__img { order: 0; }
    .aka-space:nth-child(even) .aka-space__text { order: 0; }

    .aka-contact { grid-template-columns: 1fr; gap: 0; }
    .aka-press-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    :root { --nav-h: 56px; }
    .aka-nav { padding: 0 20px; }
    .aka-nav__links { display: none; }
    .aka-nav__burger { display: flex; }
    .aka-drawer a { padding: 13px 20px; }

    .aka-page, .aka-page--wide { padding: 48px 20px 80px; }
    .aka-hero__text { left: 24px; bottom: 32px; }
    .aka-menu-subnav a { padding: 12px 14px; }
    .aka-press-grid { grid-template-columns: 1fr; }
    .aka-events-intro-wrap { padding: 48px 20px 40px; }
    .aka-events-spaces { padding: 0 20px 80px; }


}

/* ─── HOURS (generated from Customizer → Hours of Service) ─── */
.aka-hours__note { font-size: 12px; line-height: 1.6; color: var(--light); margin-top: 12px; font-style: italic; }
.aka-footer__hours { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.35); }
.aka-footer__hours .aka-fhours__day { margin-bottom: 8px; }
.aka-footer__hours .aka-fhours__day:last-of-type { margin-bottom: 0; }
.aka-footer__hours .aka-fhours__name { color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.aka-footer__hours .aka-hours__service,
.aka-footer__hours .aka-hours__time { color: rgba(255,255,255,.35); font-weight: 400; }
.aka-footer__hours .aka-hours__note { color: rgba(255,255,255,.35); }

/* ─── RESERVE FAQ ────────────────────────────────────────── */
.aka-faq { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); text-align: left; }
.aka-faq__title { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 24px; text-align: center; }
.aka-faq__item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.aka-faq__q { font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.aka-faq__a { font-size: 13px; line-height: 1.75; color: var(--mid); }

/* ─── HOMEPAGE H1 FALLBACK ───────────────────────────────── */
.aka-home__h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; padding: 56px 32px 0; color: var(--black); }
.aka-home__h1--sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .aka-home__h1 { padding: 40px 20px 0; } }
