/* ═══════════════════════════════════════════
   ADMIRAL PUB — WordPress additions
═══════════════════════════════════════════ */

/* Month tabs: one row, scroll sideways, arrows when there are more months than fit */
.month-scroller {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.month-scroller .month-tabs-wrap {
  flex: 1 1 auto;
  min-width: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}
.month-scroller .month-tabs {
  flex-wrap: nowrap;
  justify-content: safe center;
}
.month-scroller .month-tabs > li { flex: 0 0 auto; scroll-snap-align: center; }

.month-arrow {
  display: none;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  margin-top: 20px; /* line up with tabs (wrap has top padding for the count badge) */
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s, border-color .2s;
}
.month-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #111; }
.month-arrow:disabled { opacity: .3; cursor: default; }
.month-scroller.has-overflow .month-arrow { display: inline-flex; }

@media (max-width: 576px) {
  .month-arrow { width: 34px; height: 34px; }
  .month-scroller { gap: 6px; }
}

/* Nav "Menu" dropdown: open on hover on desktop (mouse); tap to open on touch / mobile */
@media (min-width: 992px) and (hover: hover) {
  .navbar .nav-item.dropdown > .dropdown-menu {
    display: block;
    top: 100%;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .navbar .nav-item.dropdown:hover > .dropdown-menu,
  .navbar .nav-item.dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  /* Invisible bridge so the menu doesn't close while the mouse moves down to it */
  .navbar .nav-item.dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -14px;
    height: 14px;
  }
}

/* ── Brand icons as tiny inline SVGs (saves the 114 KB Font Awesome "Brands" font on every page) ── */
.fa-brands.fa-facebook-f, .fa-brands.fa-instagram, .fa-brands.fa-google, .fa-brands.fa-microsoft {
  font-family: inherit !important;
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -.125em;
  background-color: currentColor;
  -webkit-mask: var(--admiral-ico) center / contain no-repeat;
          mask: var(--admiral-ico) center / contain no-repeat;
}
.fa-brands.fa-facebook-f::before, .fa-brands.fa-instagram::before,
.fa-brands.fa-google::before, .fa-brands.fa-microsoft::before { content: none !important; }
.fa-brands.fa-facebook-f { --admiral-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8h3V3.5h-3.2C10.6 3.5 9 5.4 9 8.3V11H6.5v4.3H9V22h4.5v-6.7h3.2l.6-4.3h-3.8V8.9c0-.6.3-.9.5-.9z'/%3E%3C/svg%3E"); }
.fa-brands.fa-instagram { --admiral-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Ccircle cx='17.4' cy='6.6' r='.9' fill='%23000' stroke='none'/%3E%3C/svg%3E"); }
.fa-brands.fa-google { --admiral-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.6-5.9'/%3E%3Cpath d='M12.5 12H20'/%3E%3C/svg%3E"); }
.fa-brands.fa-microsoft { --admiral-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8.5v8.5H3zM12.5 3H21v8.5h-8.5zM3 12.5h8.5V21H3zM12.5 12.5H21V21h-8.5z'/%3E%3C/svg%3E"); }

/* ── Mobile overflow fixes ── */
body { overflow-x: clip; }
@media (max-width: 767.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }            /* big gutters pushed rows 12px past the screen edge */
}
.events-note { display: block; }                   /* text + phone button wrap normally on small screens */
.events-note > i:first-child { margin-right: 8px; }
.res-info-card .d-flex.gap-3 { flex-wrap: wrap; } /* Contact: Facebook / Instagram / Google buttons wrap */

/* ── Reservation page: online booking card (Toast) ── */
.res-book .section-eyebrow { margin-bottom: .75rem; }
.res-steps { list-style: none; padding: 0; margin: 1.75rem 0 2rem; display: grid; gap: 14px; }
.res-steps li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: var(--bg-card-hover, rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.res-step-num {
  flex: 0 0 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(232,160,32,.12); color: var(--accent);
  border: 1px solid rgba(232,160,32,.35);
  font-weight: 700;
}
.res-steps strong { display: block; color: var(--text); font-weight: 600; }
.res-steps span:not(.res-step-num) { display: block; color: var(--text-muted); font-size: .86rem; margin-top: 2px; }
.res-book-btn { display: flex; align-items: center; justify-content: center; padding-top: 1rem; padding-bottom: 1rem; font-weight: 700; }
.res-book-ext { font-size: .8em; opacity: .7; }
.res-book-powered { text-align: center; color: var(--text-muted); font-size: .78rem; margin: .75rem 0 0; }
.res-or { display: flex; align-items: center; gap: 12px; margin: 1.5rem 0 1rem; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.res-or::before, .res-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 576px) {
  .res-steps li { padding: 14px; gap: 12px; }
}
/* Card base (also needed on the homepage, where pages.css isn't loaded) */
.res-book.res-form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.res-book .res-form-title { font-size: 1.8rem; margin-bottom: .3rem; }
.res-book .res-form-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 0; }
@media (max-width: 576px) { .res-book.res-form-wrap { padding: 24px 18px; } }

/* ── Event cards: show the whole poster (no cropping) ──
   Square box; posters that are taller or wider get a blurred copy of themselves behind them. */
.event-card-img-wrap {
  height: auto;
  aspect-ratio: 1 / 1;
  background: #0c0e12;
  isolation: isolate;
}
.event-card-img-wrap::before {
  content: "";
  position: absolute; inset: -24px;
  background: var(--ev-img, none) center / cover no-repeat;
  filter: blur(18px) brightness(.5);
  z-index: -1;
}
.event-card-img { object-fit: contain; }
.event-card:hover .event-card-img { transform: scale(1.03); }
.event-card-img-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 18%, transparent 34%);
}

/* ── Google rating badge (reviews section) ── */
.google-rating {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 1rem; padding: 10px 18px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: .92rem;
}
.google-rating:hover { border-color: var(--accent); color: var(--text); }
.google-rating strong { font-size: 1.15rem; }
.google-rating-stars { position: relative; display: inline-block; color: var(--border); letter-spacing: 2px; line-height: 1; }
.google-rating-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #f4b400; }

/* ── Keyboard focus: always visible (WCAG 2.4.7) ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, .btn:focus-visible, .nav-link:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px;
  box-shadow: none;
}
.form-control:focus-visible, .form-select:focus-visible { outline-offset: 1px; }

/* ── Light theme: darker orange for text on light backgrounds (WCAG 1.4.3) ──
   #9A5B00 on cream = 4.7–5.1:1 (was #E8A020 = 1.9–2.1:1). Dark sections keep the bright orange. */
[data-theme="light"] { --accent: #9a5b00; }
[data-theme="light"] .btn-accent { color: #fff !important; }
[data-theme="light"] :is(.site-footer, .hero-section, .page-hero, .happy-hour-section, .hh-image-wrap) { --accent: #e8a020; }
[data-theme="light"] :is(.site-footer, .hero-section, .page-hero, .happy-hour-section) .btn-accent { color: #0c0d13 !important; }
[data-theme="light"] .sig-tag { color: #2f5fb3; }
/* Footer stays dark in light theme: give it the dark-theme text colours (was 3.16:1) */
[data-theme="light"] .site-footer { --text: #eee8da; --text-muted: #8899b0; }
/* Badges on light backgrounds (were 2.1–2.8:1) */
[data-theme="light"] .event-free-badge, [data-theme="light"] .veg-tag { color: #1a6b3a; }
[data-theme="light"] .event-price-badge { color: #8f4700; }
[data-theme="light"] .ca-tag { color: #a0203a; }
[data-theme="light"] .menu-cat-pill.active { color: #fff; }
/* Rating stars: visible outline for empty stars, deeper gold on white (non-text ≥ 3:1) */
.google-rating-stars { color: #80868b; }
[data-theme="light"] .google-rating-stars > span { color: #c48a00; }
[data-theme="light"] .month-count, [data-theme="light"] .filter-pill.active, [data-theme="light"] .menu-tab-btn.active { color: #fff; }
.recurring-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }

/* Bootstrap's keyboard-focus style uses --bs-btn-hover-* vars the custom buttons don't set,
   which made a focused "Reserve" button transparent (dark text on dark nav). Keep their colours. */
.btn-accent:focus-visible { background: var(--accent) !important; border-color: var(--accent) !important; color: #0c0d13 !important; }
.btn-outline-accent:focus-visible { background: transparent !important; border-color: var(--accent) !important; color: var(--accent) !important; }
[data-theme="light"] .btn-accent:focus-visible { color: #fff !important; }
[data-theme="light"] :is(.site-footer, .hero-section, .page-hero, .happy-hour-section) .btn-accent:focus-visible { color: #0c0d13 !important; }

/* ── Structure: skip link (visible only when focused with the keyboard) ── */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: #0c0d13; font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
[data-theme="light"] .skip-link { color: #fff; }
.pickup-info-banner h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

/* ── Footer links: ≥ 24px tall tap targets (WCAG 2.5.8), same visual spacing ── */
.footer-links:not(.small-text) { gap: 2px; }
.footer-links:not(.small-text) li a { display: inline-block; padding: 4px 0; min-height: 24px; }
/* Small inline controls: at least 24px tall */
.copy-phone-btn, .hh-banner-link { display: inline-block; min-height: 24px; padding-top: 2px; padding-bottom: 2px; }

/* ── Reviews: clamp long reviews to 7 lines with a "Read more" toggle ── */
.review-text { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-text.expanded { -webkit-line-clamp: unset; display: block; }
.review-more {
  background: none; border: 0; padding: 4px 0; min-height: 24px;
  color: var(--accent); font-weight: 600; font-size: .85rem; cursor: pointer; align-self: flex-start;
}
.review-more:hover { text-decoration: underline; }

/* ── Google rating + "see all reviews" in one button ── */
.google-rating-btn { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; }
.google-rating-btn strong { font-size: 1.1rem; }
.google-rating-btn .google-rating-stars { color: rgba(12, 13, 19, .3); letter-spacing: 1px; }
.google-rating-btn .google-rating-stars > span { color: #0c0d13; }
.google-rating-btn .grb-sep { opacity: .55; }
[data-theme="light"] .google-rating-btn .google-rating-stars { color: rgba(255, 255, 255, .4); }
[data-theme="light"] .google-rating-btn .google-rating-stars > span { color: #fff; }
@media (max-width: 576px) { .google-rating-btn .grb-sep { display: none; } .google-rating-btn > span:last-child { flex-basis: 100%; } }

/* ── Delivery / pickup logos ── */
.order-platform-logo { width: 132px; height: 32px; object-fit: contain; }
.platform-logo-white { filter: brightness(0) invert(1); }       /* DoorDash, Skip: white on dark cards */
.platform-logo-black { filter: brightness(0); }                 /* Admiral: black on the orange button */
[data-theme="light"] .platform-logo-white { filter: brightness(0); }  /* light cards: dark logos so they stay visible */
[data-theme="light"] .platform-logo-black { filter: brightness(0) invert(1); }  /* light theme: orange button is darker, white logo reads better */
