
/* ==========================================================================
   McKnight's Catering — Production Responsive Layer
   Shared QA fixes for the integrated client-approved interior pages.
   This layer does not redesign page layouts; it only hardens sizing,
   overflow, shared navigation, and responsive behavior.
   ========================================================================== */

html { max-width: 100%; }
body { min-width: 0; }
img, svg, video, canvas { max-width: 100%; }
button, input, select, textarea { max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }

/* Shared top bar */
.topbar { width: 100%; }
.topbar .container { width: min(100% - 40px, var(--container, 1240px)); min-width: 0; }
.topbar .topbar-links { min-width: 0; }
@media (max-width: 760px) {
  .topbar .container { width: min(100% - 28px, var(--container, 1240px)); }
  .topbar .topbar-links { flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
}

/* Shared header — keep the existing McKnight's navbar design */
header.site-header { width: 100%; min-width: 0; }
header.site-header .container {
  width: min(100% - 40px, var(--container, 1240px));
  min-width: 0;
}
.brand { min-width: 0; }
.brand-logo { max-width: 100%; height: 56px; object-fit: contain; object-position: center; }
.nav-desktop-left, .nav-desktop-right, .nav-right-wrap,
.header-cta { min-width: 0; }
.nav-desktop-left a, .nav-desktop-right a { min-width: 0; }
.nav-dropdown { min-width: 0; }

@media (min-width: 1081px) and (max-width: 1450px) {
  header.site-header .container { width: min(100% - 28px, 1400px); }
  .brand { margin-inline: 20px; }
  .nav-desktop-left a, .nav-desktop-right a {
    font-size: 12px;
    padding-inline: 11px;
  }
  .nav-desktop-left a::after, .nav-desktop-right a::after {
    left: 11px; right: 11px;
  }
  .nav-desktop-left, .nav-desktop-right { gap: 0; }
  .header-cta { gap: 8px; }
  .icon-btn { width: 40px; height: 40px; }
}

@media (max-width: 1080px) {
  header.site-header .container {
    width: min(100% - 32px, 1240px);
  }
  .main-nav {
    box-sizing: border-box;
    max-width: 100vw;
  }
  nav.main-nav {
    z-index: 220;
    left: auto;
    right: 0;
    width: min(92vw, 420px);
    padding: 14px 24px 34px;
  }
  nav.main-nav .mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 44px;
    height: 44px;
    margin: 0 0 8px;
    border: 1px solid rgba(17,17,17,.18);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
  }
  nav.main-nav .mobile-nav-close:hover,
  nav.main-nav .mobile-nav-close:focus-visible {
    border-color: var(--gold);
    color: var(--gold);
    outline: none;
  }
  nav.main-nav a { flex: 0 0 auto; }
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(17,17,17,.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .mobile-nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  header.site-header .container { height: 78px; width: min(100% - 24px, 1240px); }
  header.site-header.scrolled .container { height: 66px; }
  .brand-logo { height: 46px; }
  header.site-header.scrolled .brand-logo { height: 40px; }
  .header-cta { gap: 4px; }
  .icon-btn { width: 40px; height: 40px; }
  .menu-toggle { width: 44px; height: 44px; }
  nav.main-nav { width: min(92vw, 420px); padding: 10px 18px 30px; }
  nav.main-nav a { padding: 15px 2px; font-size: 15px; }
  nav.main-nav a.sub-link { padding-left: 18px; font-size: 13px; }
}

/* Prevent flex/grid children from creating accidental viewport overflow */
.integrated-page,
.integrated-page section,
.integrated-page .container,
.integrated-page .wrap,
.integrated-page .content,
.integrated-page .copy,
.integrated-page .grid,
.integrated-page [class*="grid"],
.integrated-page [class*="layout"],
.integrated-page [class*="inner"] {
  min-width: 0;
}

.integrated-page .container,
.integrated-page .wrap {
  max-width: calc(100% - 32px);
}

.integrated-page img,
.integrated-page video {
  max-width: 100%;
}

.integrated-page h1,
.integrated-page h2,
.integrated-page h3,
.integrated-page h4,
.integrated-page p {
  overflow-wrap: break-word;
}

.integrated-page .btn,
.integrated-page button,
.integrated-page input,
.integrated-page select,
.integrated-page textarea {
  box-sizing: border-box;
}

.integrated-page .btn,
.integrated-page button {
  white-space: normal;
}

@media (max-width: 1024px) {
  .integrated-page .container,
  .integrated-page .wrap {
    max-width: calc(100% - 40px);
  }
  .integrated-page [class*="grid"],
  .integrated-page [class*="layout"] {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .integrated-page .container,
  .integrated-page .wrap {
    max-width: calc(100% - 32px);
  }
  .integrated-page .hero,
  .integrated-page .hero-section {
    max-width: 100%;
  }
}

/* ---------- Formal Events ---------- */
@media (max-width: 900px) {
  .age-formal .custom-grid,
  .age-formal .menu-feature { min-width: 0; }
  .age-formal .card-grid,
  .age-formal .feature-grid,
  .age-formal .steps,
  .age-formal .check-grid { min-width: 0; }
}
@media (max-width: 650px) {
  .age-formal .card-grid { gap: 10px; }
  .age-formal .info-card { min-width: 0; }
  .age-formal .hero h1,
  .age-formal .custom-intro h2,
  .age-formal .cta-copy h2 { overflow-wrap: anywhere; }
  .age-formal .menu-actions,
  .age-formal .hero-actions { flex-wrap: wrap; }
  .age-formal .menu-actions .btn,
  .age-formal .hero-actions .btn { max-width: 100%; }
}

/* ---------- Conferences & Full-Service Events ---------- */
@media (max-width: 1000px) {
  .age-events .service-section,
  .age-events .experience-inner,
  .age-events .final-cta,
  .age-events .clients-section { min-width: 0; }
  .age-events .event-grid,
  .age-events .category-strip,
  .age-events .logo-strip { max-width: 100%; }
}
@media (max-width: 760px) {
  .age-events .hero h1,
  .age-events h2 { overflow-wrap: anywhere; }
  .age-events .service-section,
  .age-events .experience-inner { grid-template-columns: 1fr; }
  .age-events .event-grid { grid-template-columns: 1fr 1fr; }
  .age-events .event-card { min-width: 0; }
  .age-events .experience-image,
  .age-events .service-image { min-height: 260px; }
}
@media (max-width: 430px) {
  .age-events .event-grid { grid-template-columns: 1fr; }
  .age-events .hero h1 { font-size: clamp(38px, 12vw, 50px); }
}

/* ---------- Workplace Dining ---------- */
@media (max-width: 1000px) {
  .age-workplace .intro-grid,
  .age-workplace .concepts-layout,
  .age-workplace .cta-grid { min-width: 0; }
}
@media (max-width: 760px) {
  .age-workplace .intro-grid,
  .age-workplace .concepts-layout,
  .age-workplace .cta-grid { grid-template-columns: 1fr; }
  .age-workplace .feature-grid { grid-template-columns: 1fr; }
  .age-workplace .form-grid { grid-template-columns: 1fr; }
  .age-workplace .hero h1 { overflow-wrap: anywhere; }
  .age-workplace .hero-actions .btn { width: auto; max-width: 100%; }
}
@media (max-width: 430px) {
  .age-workplace .hero h1 { font-size: clamp(40px, 12vw, 49px); }
  .age-workplace .hero-actions { flex-direction: column; align-items: stretch; }
  .age-workplace .hero-actions .btn { width: 100%; }
}

/* ---------- Holiday Catering ---------- */
@media (max-width: 800px) {
  .age-holiday .feature,
  .age-holiday .footer-main nav { white-space: normal; }
  .age-holiday .events-section,
  .age-holiday .custom-section { min-width: 0; }
  .age-holiday .hero h1 { overflow-wrap: anywhere; }
  .age-holiday .hero-buttons,
  .age-holiday .custom-buttons { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .age-holiday .hero-buttons .btn,
  .age-holiday .custom-buttons .btn { width: 100%; max-width: 280px; }
  .age-holiday .events-copy,
  .age-holiday .custom-copy { min-width: 0; }
}

/* ---------- Chef-Curated Menus ---------- */
@media (max-width: 900px) {
  .age-menus .hero { min-height: 600px; }
  .age-menus .cards { min-width: 0; }
  .age-menus .card { min-width: 0; }
  .age-menus .card h3 { overflow-wrap: anywhere; }
  .age-menus .events .grid { min-width: 0; }
}
@media (max-width: 560px) {
  .age-menus .hero { min-height: 560px; }
  .age-menus .hero .btns { gap: 10px; }
  .age-menus .hero .btn { width: 100%; min-width: 0; }
  .age-menus .feat li { min-width: 0; }
  .age-menus .exp .im { min-height: 240px; }
  .age-menus .fcta .wrap { align-items: flex-start; }
  .age-menus .fcta .btns { width: 100%; }
  .age-menus .fcta .btns .btn { flex: 1 1 100%; }
}

/* ---------- Private Chef ---------- */
@media (max-width: 900px) {
  .age-private-chef .split,
  .age-private-chef .commitment-grid { min-width: 0; }
  .age-private-chef .hero h1 { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .age-private-chef .hero h1 { font-size: clamp(42px, 13vw, 54px); }
  .age-private-chef .hero-panel { max-width: calc(100% - 32px); }
  .age-private-chef .cta-buttons { width: 100%; }
  .age-private-chef .cta-buttons .btn { width: 100%; }
  .age-private-chef .footer-links { min-width: 0; }
}

/* ---------- Sliders & Dogs ---------- */
@media (max-width: 1050px) {
  .age-sliders .hero-inner,
  .age-sliders .signature-grid,
  .age-sliders .spread-layout,
  .age-sliders .occasion-layout,
  .age-sliders .testi-row { min-width: 0; }
}
@media (max-width: 760px) {
  .age-sliders .hero h1 { overflow-wrap: anywhere; }
  .age-sliders .product-grid { min-width: 0; }
  .age-sliders .product-card { min-width: 0; }
  .age-sliders .spread-actions { min-width: 0; }
  .age-sliders .footer nav { min-width: 0; }
}
@media (max-width: 430px) {
  .age-sliders .hero h1 { font-size: clamp(42px, 13vw, 48px); }
  .age-sliders .hero-actions { flex-direction: column; align-items: stretch; }
  .age-sliders .hero-actions .btn { width: 100%; }
}

/* ---------- Our Story ---------- */
@media (max-width: 820px) {
  .age-story .hero-content,
  .age-story .copy,
  .age-story .cta-content { min-width: 0; }
  .age-story .hero h1,
  .age-story .copy h2,
  .age-story .cta h2 { overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
  .age-story .hero-content { margin-inline: 16px; }
  .age-story .cta-actions .btn { width: 100%; }
  .age-story .footer nav { min-width: 0; }
}

/* Shared production footer */
.site-footer { width: 100%; }
.footer-top > * { min-width: 0; }
.newsletter-form { width: 100%; }
@media (max-width: 560px) {
  .site-footer { padding-top: 54px; }
  .footer-bottom { align-items: flex-start; }
  .footer-bottom > * { max-width: 100%; }
  .newsletter-form { max-width: 100%; }
}

/* Avoid intentional page-level horizontal scrolling being mistaken for body overflow */
.age-sliders .occasion-grid,
.age-workplace .how-grid,
.age-workplace .chef-cards,
.age-workplace .benefits-grid,
.age-formal .category-grid {
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

 .age-story .split-approach { overflow: clip; }


/* ==========================================================================
   CLIENT LOGO CAROUSEL (Conferences + Formal Events)
   19 logos, original colors, every logo fits the same fixed box so they all
   look the same size. To resize all logos at once change --logo-w / --logo-h.
   ========================================================================== */
.age-events .logo-carousel,
.age-formal.integrated-page .logo-carousel{
  --logo-w:200px; --logo-h:88px;
  max-width:1100px; width:100%; height:140px; margin:28px auto 12px; background:#fff;
}
.age-events .logo-track,
.age-formal.integrated-page .logo-track{ animation-duration:200s; }
.age-events .logo-slide,
.age-formal.integrated-page .logo-slide{ width:calc(var(--logo-w) + 56px); padding:0 28px; }
.age-events .logo-slide img,
.age-formal.integrated-page .logo-slide img{
  width:var(--logo-w); height:var(--logo-h); max-width:none; max-height:none;
  object-fit:contain; object-position:center; min-width:0; filter:none; opacity:1;
}
@media (max-width:1000px){
  .age-events .logo-carousel,
  .age-formal.integrated-page .logo-carousel{ --logo-w:150px; --logo-h:68px; height:108px; margin-top:20px; }
  .age-events .logo-slide,
  .age-formal.integrated-page .logo-slide{ width:calc(var(--logo-w) + 36px); padding:0 18px; }
}
@media (max-width:560px){
  .age-events .logo-carousel,
  .age-formal.integrated-page .logo-carousel{ --logo-w:128px; --logo-h:58px; height:92px; }
  .age-events .logo-slide,
  .age-formal.integrated-page .logo-slide{ width:calc(var(--logo-w) + 28px); padding:0 14px; }
}
@media (prefers-reduced-motion:reduce){
  .age-events .logo-track,.age-formal.integrated-page .logo-track{ animation:none; }
}
