/*
=============================================================
ON THE SPOT CATERING — SITE-WIDE CSS
Replacement stylesheet
Version: 2026-08-26.2

Goals:
- Suppress Webit's native header content without hiding the custom header
- Consolidate the custom On The Spot header styling
- Preserve the active legacy page styles still used by the site
- Improve responsive behavior, accessibility, and rendering stability
- Remove obsolete /our-menu and old .cw-menu-page styling
- Avoid expensive fixed-background behavior on mobile and desktop

IMPORTANT:
SEO titles, meta descriptions, canonical URLs, schema markup,
redirects, sitemap settings, image alt text, and page copy belong
in the HTML/CMS—not in CSS.
=============================================================
*/

/* Material Symbols are still referenced by existing home/about content.
   display=swap prevents the icon font from unnecessarily blocking rendering. */
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap");


/* =========================================================
   1. GLOBAL VARIABLES & SAFE RESPONSIVE DEFAULTS
   ========================================================= */

:root {
  --ots-dark: #1f1f1f;
  --ots-charcoal: #2d2d2d;
  --ots-gold: #c49a4a;
  --ots-gold-hover: #d8b15f;
  --ots-cream: #fff8ee;
  --ots-white: #ffffff;
  --ots-muted: #666666;
  --ots-border: #e7ddcf;
  --ots-focus: #9b752f;

  --ots-site-image:
    url("https://apihoard.webit.com/api/v1/Image/A6E63DB34B8F68BFCB1D9C7A38237803/A6E63DB34B8F68BFCB1D9C7A38237803.jpg?size=Original");
}

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

body {
  overflow-x: hidden;
}

/* Prevent oversized media from breaking the mobile layout. */
img,
picture,
video,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
}

/* Long email addresses and URLs should wrap instead of widening the viewport. */
a {
  overflow-wrap: break-word;
  word-break: normal;
}

/* Visible keyboard focus improves usability/accessibility. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
label:focus-visible {
  outline: 3px solid var(--ots-focus);
  outline-offset: 3px;
}

/* Respect users who have requested less motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   2. WEBIT HEADER WRAPPER / CUSTOM HEADER
   IMPORTANT:
   Webit injects the custom .ots-site-header inside its native
   .header wrapper. Therefore we CANNOT hide .header itself.

   These selectors keep the ancestry path to .ots-site-header
   visible while pruning Webit's native sibling header content.
   ========================================================= */

/* Keep Webit's outer header wrapper visible, but neutralize its
   old visual treatment when it contains our custom header. */
.header:has(.ots-site-header) {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Remove Webit's native header branches while preserving the
   branch that contains .ots-site-header. */
.header:has(.ots-site-header) > *:not(.ots-site-header):not(:has(.ots-site-header)),
.header *:has(.ots-site-header) > *:not(.ots-site-header):not(:has(.ots-site-header)) {
  display: none !important;
}

/* Neutralize layout wrappers Webit places between .header and
   the custom header so they do not add old spacing/backgrounds. */
.header:has(.ots-site-header) > :has(.ots-site-header),
.header *:has(.ots-site-header) {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The custom header itself must remain fully visible. */
.header .ots-site-header,
.ots-site-header {
  display: block !important;
}


/* =========================================================
   3. CUSTOM SITE HEADER
   Consolidated from the custom header HTML.
   Once this stylesheet is active, the duplicate <style> block
   inside the custom header HTML can be removed.
   ========================================================= */

.ots-site-header {
  position: relative;
  z-index: 9999;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ots-dark);
  border-bottom: 1px solid var(--ots-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  font-family: Arial, Helvetica, sans-serif;
}

.ots-site-header *,
.ots-site-header *::before,
.ots-site-header *::after {
  box-sizing: border-box;
}

.ots-header-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.ots-header-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  min-width: 0;
  color: var(--ots-dark);
  text-decoration: none;
}

.ots-header-logo {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 74px;
  object-fit: contain;
}

.ots-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}

.ots-header-nav a {
  padding: 12px 12px;
  border-radius: 999px;
  color: var(--ots-dark);
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.ots-header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  margin-left: auto;
}

.ots-header-phone {
  color: var(--ots-dark);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.ots-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ots-gold);
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 900;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

/* Hover rules only apply to devices that actually support hover. */
@media (hover: hover) and (pointer: fine) {
  .ots-header-nav a:hover {
    background: var(--ots-cream);
    color: var(--ots-gold);
  }

  .ots-header-phone:hover {
    color: var(--ots-gold);
  }

  .ots-header-cta:hover {
    background: var(--ots-gold-hover);
    transform: translateY(-2px);
  }
}


/* ---------------------------------------------------------
   Mobile header
   --------------------------------------------------------- */

.ots-mobile-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ots-mobile-label {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ots-border);
  border-radius: 12px;
  background: var(--ots-white);
}

.ots-mobile-label span,
.ots-mobile-label span::before,
.ots-mobile-label span::after {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ots-dark);
  transition:
    transform 0.2s ease,
    top 0.2s ease,
    background-color 0.2s ease;
}

.ots-mobile-label span::before,
.ots-mobile-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.ots-mobile-label span::before {
  top: -7px;
}

.ots-mobile-label span::after {
  top: 7px;
}

.ots-mobile-menu {
  display: none;
  background: var(--ots-white);
  border-top: 1px solid var(--ots-border);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.ots-mobile-menu-inner {
  display: grid;
  gap: 8px;
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 14px 22px 22px;
}

.ots-mobile-menu a {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--ots-cream);
  color: var(--ots-dark);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.3;
}

.ots-mobile-menu .ots-mobile-cta {
  margin-top: 8px;
  border-radius: 999px;
  background: var(--ots-gold);
  color: #1a1a1a;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .ots-mobile-menu a:hover {
    background: #f3eadc;
    color: var(--ots-gold);
  }

  .ots-mobile-menu .ots-mobile-cta:hover {
    background: var(--ots-gold-hover);
    color: #1a1a1a;
  }
}

@media (max-width: 1120px) {
  .ots-header-nav a {
    padding-inline: 9px;
    font-size: 14px;
  }

  .ots-header-actions {
    gap: 8px;
  }

  .ots-header-cta {
    padding-inline: 14px;
  }
}

@media (max-width: 1060px) {
  .ots-header-nav,
  .ots-header-actions {
    display: none;
  }

  .ots-mobile-label {
    display: flex;
  }

  .ots-mobile-toggle:checked ~ .ots-mobile-menu {
    display: block;
  }

  .ots-mobile-toggle:checked + .ots-header-inner .ots-mobile-label span {
    background: transparent;
  }

  .ots-mobile-toggle:checked + .ots-header-inner .ots-mobile-label span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .ots-mobile-toggle:checked + .ots-header-inner .ots-mobile-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .ots-header-inner {
    padding: 9px 16px;
  }

  .ots-header-logo {
    max-width: 175px;
    max-height: 62px;
  }

  .ots-mobile-menu-inner {
    padding-inline: 16px;
  }
}

@media (max-width: 420px) {
  .ots-header-logo {
    max-width: 155px;
    max-height: 54px;
  }
}


/* =========================================================
   4. EMAIL / CONTACT WRAPPING FIX
   Preserved from the existing stylesheet, simplified.
   ========================================================= */

.header-business-email,
.contact-email,
.footer-business-email {
  font-size: 85% !important;
}

.header-business-email a,
.contact-email a,
.footer-info-business a {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  overflow-wrap: anywhere;
}

@media (min-width: 425px) {
  .header-business-email,
  .contact-email,
  .footer-business-email {
    font-size: inherit !important;
  }

  .header-business-email a,
  .contact-email a,
  .footer-info-business a {
    display: inline-block;
  }
}


/* =========================================================
   5. SHARED BACKGROUND TREATMENT
   Old fixed-background behavior has been removed.
   This reduces scroll/rendering overhead, especially on phones.
   ========================================================= */

.page-home .list,
.page-home .textwithimage {
  background-image:
    linear-gradient(
      to bottom,
      rgba(17, 15, 36, 0.90),
      rgba(17, 15, 36, 0.70),
      rgba(17, 15, 36, 0.50),
      rgba(17, 15, 36, 0.90)
    ),
    var(--ots-site-image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.page-home .galleryslideshow {
  background-image:
    linear-gradient(
      to bottom,
      rgba(17, 15, 36, 0.90),
      rgba(17, 15, 36, 0.90)
    ),
    var(--ots-site-image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.footer {
  background-image:
    linear-gradient(
      to bottom,
      rgba(17, 15, 36, 0.85),
      rgba(17, 15, 36, 0.95),
      rgba(17, 15, 36, 1)
    ),
    var(--ots-site-image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}


/* =========================================================
   6. HOME PAGE HERO / H1
   Preserved, but made more responsive.
   ========================================================= */

.page-home .list h1 {
  text-shadow: 0 0 2px #000, 1px 1px 2px #000;
}

.cw-home-h1 {
  padding: clamp(4rem, 8vw, 9rem) 0 clamp(6rem, 15vw, 19rem);
  background-image:
    linear-gradient(
      to bottom,
      rgba(17, 15, 36, 0.90),
      rgba(17, 15, 36, 0.70),
      rgba(17, 15, 36, 0.50),
      rgba(17, 15, 36, 0.90)
    ),
    var(--ots-site-image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.cw-home-h1 h1 {
  margin-top: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 2px #000, 1px 1px 2px #000;
}

.cw-home-h1 h1 span {
  font-size: 60%;
}

@media (min-width: 992px) {
  .cw-home-h1 h1 {
    text-align: right;
  }
}


/* =========================================================
   7. HOME ABOUT SECTION
   Preserved from existing site with cleaner responsive sizing.
   ========================================================= */

.cw-home-about {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(6rem, 10vw, 9rem);
  background-image:
    linear-gradient(
      to bottom,
      rgba(17, 15, 36, 0.90),
      rgba(17, 15, 36, 0.70),
      rgba(17, 15, 36, 0.50),
      rgba(17, 15, 36, 0.90)
    ),
    var(--ots-site-image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.cw-home-about-inner {
  padding: 2rem 1rem;
  background: #fff;
  text-align: center;
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.60);
}

.cw-home-about-inner p {
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  text-align: center;
}

.cw-home-about-inner hr {
  border-top-color: #cc0000 !important;
}

.cw-home-about-inner .material-symbols-outlined {
  color: #110f24;
  font-size: 2em;
  text-align: center;
}

.cw-home-about-inner li {
  font-size: clamp(1rem, 1.6vw, 1.33rem);
}

.cw-home-about-inner .btn {
  box-shadow: 0 1px 2px #000;
}

@media (min-width: 992px) {
  .cw-home-about-inner {
    padding: 3em 1em;
    border-radius: 7px;
    text-align: left;
  }
}


/* =========================================================
   8. LEGACY WEBIT INNER PAGES STILL IN USE
   Removed old .page-our-menu rules because that page is being
   replaced by /menus-catering-options.
   ========================================================= */

.page-about-us,
.page-about-us .title,
.page-about-us .line,
.page-about-us .detailedlist,
.page-gallery,
.page-gallery .title,
.page-gallery .line,
.page-gallery .gallery,
.page-contact-us,
.page-contact-us .title,
.page-contact-us .line,
.page-contact-us .businessinfo,
.page-services,
.page-services .title,
.page-services .line,
.page-services .detailedlist,
.page-services .galleryslideshow {
  background-image:
    linear-gradient(
      to bottom,
      rgba(17, 15, 36, 0.85),
      rgba(17, 15, 36, 0.85),
      rgba(17, 15, 36, 0.90),
      rgba(17, 15, 36, 1)
    ),
    var(--ots-site-image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.page-gallery .gallery a {
  color: #fff;
}


/* =========================================================
   9. NEW MENUS & CATERING OPTIONS PAGE SAFETY
   The actual menu component is self-scoped as .ots-menu-page-v2.
   These rules only prevent surrounding Webit defaults from
   creating accidental horizontal overflow.
   ========================================================= */

.page-menus-catering-options,
.ots-menu-page-v2 {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .page-menus-catering-options,
  .ots-menu-page-v2 {
    overflow-x: hidden;
  }
}


/* =========================================================
   10. PRINT / ACCESSIBILITY QUALITY-OF-LIFE
   Does not affect search ranking directly, but avoids bad output.
   ========================================================= */

@media print {
  .ots-site-header,
  .ots-mobile-menu,
  .footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
