/*
Theme Name: Blackstone Restaurant Base
Theme URI: https://blackstonetexas.com/
Author: Blackstone Texas
Description: A reusable, Customizer-driven restaurant theme with a full-screen responsive background slider, centered desktop navigation, mobile overlay menu, promotional banners, and an eight-pane restaurant network footer.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: blackstone-restaurant
*/

:root {
  --bs-accent: #b7864b;
  --bs-text: #fff;
  --bs-bg: #050505;
  --bs-overlay: .34;
  --bs-content-width: 1200px;
  --bs-header-height: 170px;
  --bs-banner-height: 0px;
  --bs-slider-top: var(--bs-header-height);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bs-text);
  background: var(--bs-bg);
  font-family: var(--bs-font, Georgia, "Times New Roman", serif);
  min-height: 100vh;
  padding-bottom: var(--bs-banner-height);
  isolation: isolate;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

/* Full viewport background slider */
.bs-slider { position: fixed; inset: var(--bs-slider-top) 0 0; z-index: -2; overflow: hidden; background: var(--bs-bg); }
.bs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.bs-slide.is-active { opacity: 1; }
.bs-slide > picture { display: block; width: 100%; height: 100%; }
.bs-slide__image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bs-slider::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--bs-overlay)); }
.bs-slider__control {
  position: fixed; z-index: 20; top: calc(var(--bs-slider-top) + (100vh - var(--bs-slider-top) - var(--bs-banner-height)) / 2); transform: translateY(-50%);
  width: 52px; height: 70px; border: 0; padding: 0; cursor: pointer;
  color: #fff; background: transparent; font-size: 54px; line-height: 1;
}
.bs-slider__control--prev { left: 20px; }
.bs-slider__control--next { right: 20px; }

/* Header */
.site-header { position: relative; z-index: 50; min-height: var(--bs-header-height); padding: 30px 5vw 12px; background: #000; }
.desktop-header { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; }
.desktop-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(18px,2.5vw,42px); margin: 0; padding: 0; }
.desktop-nav--left ul { justify-content: flex-end; }
.desktop-nav--right ul { justify-content: flex-start; }
.desktop-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .035em; font-size: 16px; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav .current-menu-item > a { color: var(--bs-accent); }
.site-branding { text-align: center; width: clamp(150px,15vw,220px); }
.custom-logo-link { display: block; }
.custom-logo { display: block; width: auto; max-height: 105px; margin: 0 auto; }
.site-title { margin: 0; font-size: 34px; }
.site-title a { text-decoration: none; }
.desktop-social { position: absolute; top: 28px; right: 5vw; display: flex; gap: 13px; }
.social-link { display: inline-grid; place-items: center; width: 27px; height: 27px; text-decoration: none; }
.social-link svg { width: 22px; height: 22px; fill: currentColor; }
.mobile-header, .mobile-menu-panel { display: none; }

/* Content sits between the visual header/footer regions. */
.site-content {
  position: relative; z-index: 5; width: min(var(--bs-content-width), calc(100% - 40px));
  min-height: calc(100vh - var(--bs-header-height) - var(--bs-banner-height));
  min-height: max(0px, calc(100dvh - var(--bs-header-height) - var(--bs-banner-height)));
  margin: 0 auto; padding: 30px 40px 70px;
}
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-title { text-align: center; }

/* Footer promotional banners and network */
.site-footer { position: relative; z-index: 15; margin-top: auto; background: transparent; }
.site-footer::before {
  content: ""; position: absolute; inset: -50px 0 0; z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.45) 50px, rgba(0,0,0,.45) 100%);
}
.promo-banner-item--fixed {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1;
  background: rgba(0,0,0,.45); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.promo-banner-item--fixed .promo-banner { max-height: 35vh; max-height: 35dvh; object-fit: contain; }
.promo-banner-item--fixed::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.45)); pointer-events: none;
}
.promo-banners { display: grid; width: 100%; }
.promo-banners a, .promo-banners picture { display: block; }
.promo-banner { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
.network-logos-wrap { padding: 34px 5vw 24px; }
.network-logos { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); align-items: center; gap: 20px; }
.network-logo-pane { min-height: 74px; display: grid; place-items: center; }
.network-logo-pane img { display: block; width: auto; max-width: 100%; max-height: 68px; }
.footer-branding { border-top: 1px solid rgba(183,134,75,.65); padding: 15px 20px; text-align: center; font-size: 14px; }

@media (max-width: 860px) {
  :root { --bs-header-height: 178px;  }
  .desktop-header, .desktop-social { display: none; }
  .site-header { min-height: var(--bs-header-height); padding: 22px 18px 10px; }
  .mobile-header { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 102; }
  .mobile-header .site-branding { width: min(58vw,230px); }
  .mobile-header .custom-logo { max-height: 105px; }
  .menu-toggle {
    margin-top: 16px; width: 58px; height: 44px; display: grid; place-items: center;
    border: 0; background: transparent; color: #fff; cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 42px; height: 2px; background: currentColor; position: relative; transition: .25s ease;
  }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -10px; }
  .menu-toggle__bars::after { top: 10px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }
  .mobile-menu-panel {
    position: fixed; inset: var(--bs-slider-top) 0 0; z-index: 45; padding: 24px 24px 40px; overflow-y: auto;
    background: rgba(0,0,0,.96); display: flex; flex-direction: column; align-items: center;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .25s ease;
  }
  .mobile-menu-panel.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-social { display: flex; justify-content: center; gap: 22px; margin-bottom: 27px; }
  .mobile-social .social-link { width: 36px; height: 36px; }
  .mobile-social .social-link svg { width: 29px; height: 29px; }
  .mobile-nav { width: min(100%,420px); overflow-y: auto; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
  .mobile-nav li { border-top: 1px solid rgba(255,255,255,.18); }
  .mobile-nav li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
  .mobile-nav a { display: block; padding: 15px 8px; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
  .site-content { width: calc(100% - 28px); padding: 24px 10px 55px; }
  .bs-slider__control { width: 36px; height: 54px; font-size: 40px; }
  .bs-slider__control--prev { left: 2px; }
  .bs-slider__control--next { right: 2px; }
  .network-logos { grid-template-columns: 1fr; gap: 15px; }
  .network-logo-pane { min-height: 64px; }
  .network-logo-pane img { max-height: 60px; max-width: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
