/* Main page: follows compass-canada.com. White ground, dark type,
   warm neutral footer, plum for links. */
body.site { background: #fff; color: var(--c-ink); }
:root { --c-heading: #373f41; --c-plum: #672567; --c-tint: #f9f7f6; }

/* Header bar */
.bar { background: #fff; border-bottom: var(--hair) solid #e6e3dc; }
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; padding-block: 0.75rem; }
.bar__logo { width: clamp(128px, 12vw, 170px); height: auto; }
.bar__unit { font-size: 1rem; color: #2c2c2c; text-align: right; line-height: 1.35; }
.bar__unit strong { font-weight: 700; }
@media (max-width: 767px) { .bar__unit-long { display: none; } }

/* Hero: full-bleed photo with a dark wash, white type left */
.hero { display: grid; background: #45494c; color: #fff; }
.hero > * { grid-area: 1 / 1; }
.hero__image { aspect-ratio: auto !important; min-height: min(calc(var(--vh) * 84), 46rem); background: #45494c; color: #e9e7e2; align-items: end; justify-items: end; }
.hero__image figcaption { max-width: 22ch; text-align: right; font-size: 1rem; }
.hero__image.slot--img { --focus: 72% 50%; }
.hero__image .slot__note { z-index: 2; }
.hero::after { content: ""; grid-area: 1 / 1; background: linear-gradient(90deg, rgba(0,0,0,0.5), rgba(0,0,0,0.15) 60%, rgba(0,0,0,0)); pointer-events: none; }
.hero__text { position: relative; z-index: 1; align-self: center; padding-block: 3rem 7rem; }
.hero__kicker { font-size: var(--step-0); font-weight: 700; }
.hero__title { margin-top: 0.6rem; font-size: clamp(2.75rem, 1.6rem + 4.2vw, 5.5rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.02; }
.hero__intro { margin-top: 1.5rem; max-width: 32ch; font-size: var(--step-1); line-height: 1.5; }
/* Phones and tablets: the photo sits above the text on a dark band, so the
   headline never has to fight the busy kitchen for contrast. */
@media (max-width: 1023px) {
  .hero { display: block; background: #16191b; }
  .hero::after { display: none; }
  .hero__image { min-height: 0; aspect-ratio: 4 / 3 !important; }
  .hero__text { padding-block: 2.25rem 3rem; }
}
@media (min-width: 1024px) {
  .hero__text { padding-block: 4rem; }
  .hero__intro { max-width: 36ch; }
}

/* Brands: centred grey heading, square tiles labelled underneath */
.brands { padding-block: clamp(4rem, 9vw, 7rem); }
.brands__h { text-align: center; color: var(--c-heading); font-size: var(--step-2); font-weight: 700; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.tiles { list-style: none; padding: 0; display: grid; gap: 3rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; } }
.tile__link { display: block; text-decoration: none; color: var(--c-heading); }
.tile__panel { aspect-ratio: 4 / 3; overflow: hidden; background: #d9d8d4; display: grid; place-items: center; }
.tile__panel--marble { background: #f7f6f3 url("../assets/textures/marble.svg") center / cover; }
.tile__panel img { width: 62%; height: auto; transition: transform 0.5s ease; }
.tile__slot { width: 100%; height: 100%; }
.tile__link:hover .tile__panel img { transform: scale(1.03); }
.tile__name { margin-top: 1.1rem; font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
.tile__link:hover .tile__name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.tile__desc { margin-top: 0.4rem; color: #4f4f4f; }
.tile__more { display: inline-block; margin-top: 0.75rem; color: var(--c-plum); font-weight: 700; text-decoration: none; }
.tile__more span { display: inline-block; transition: transform 0.25s ease; }
.tile__more:hover span { transform: translateX(0.25rem); }

/* Event note on the site's light warm tint */
.event { background: var(--c-tint); padding-block: clamp(3.5rem, 7vw, 6rem); }
.event__inner { display: grid; gap: 1.25rem; }
.event__h { color: var(--c-heading); font-size: var(--step-2); font-weight: 700; }
.event__h span { display: block; font-size: var(--step-0); font-weight: 400; color: #4f4f4f; margin-top: 0.5rem; letter-spacing: 0; }
.event p { max-width: 40ch; font-size: var(--step-1); line-height: 1.5; }
@media (min-width: 1024px) { .event__inner { grid-template-columns: 5fr 7fr; align-items: start; gap: var(--gutter); } }

/* Footer: Compass warm neutral */
.foot { background: var(--c-soft); color: var(--c-ink); padding-block: clamp(3rem, 6vw, 4.5rem); }
.foot__inner { display: grid; gap: 2.5rem; }
.foot__logo { width: 180px; height: auto; }
.foot__cols { display: grid; gap: 1.75rem; }
.foot__cols h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
@media (min-width: 768px) {
  .foot__inner { grid-template-columns: auto 1fr; align-items: start; column-gap: 5rem; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tile__panel--logo img { width: auto; height: 70%; max-width: 78%; object-fit: contain; }
.tile__panel--shawarma img { height: auto; width: 84%; max-width: 84%; }

/* Hero slideshow ----------------------------------------------------------- */
.hs { display: block; }
.hs::after { display: none; }
.hs__slides { display: grid; position: relative; }
.hs__slide { grid-area: 1 / 1; display: grid; position: relative; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.hs__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s ease, visibility 0s; z-index: 1; }
.hs__slide > * { grid-area: 1 / 1; }
.hs__slide::after { content: ""; grid-area: 1 / 1; background: linear-gradient(90deg, rgba(0,0,0,0.62), rgba(0,0,0,0.2) 58%, rgba(0,0,0,0)); pointer-events: none; }
.hs__img.slot--img { --focus: inherit; }
.hs__img--intro.slot--img { --focus: 72% 50%; }
.hs__slide .hero__text { z-index: 1; }
/* No JS: only the first slide shows. */
.no-js .hs__bar { display: none; }

.hs__chip { display: inline-grid; place-items: center; width: clamp(170px, 18vw, 240px); aspect-ratio: 4 / 3; padding: 1rem; }
.hs__chip img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.hs__line { margin-top: 1.5rem; max-width: 18ch; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.hs__cta { display: inline-block; margin-top: 1.75rem; padding: 0.8rem 1.3rem; background: #fff; color: var(--c-ink); font-weight: 700; text-decoration: none; }
.hs__cta span { display: inline-block; transition: transform 0.25s ease; }
.hs__cta:hover span { transform: translateX(0.3rem); }

/* Tab bar under the hero: brand names, with a fill line showing time left. */
.hs__bar { background: #16191b; color: #fff; }
.hs__bar-inner { display: flex; align-items: stretch; gap: 1rem; }
.hs__tabs { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; }
.hs__tabs::-webkit-scrollbar { display: none; }
.hs__tabs { position: relative; }
.hs__tabs li { flex: 1 0 auto; }
.hs__tab {
  position: relative; width: 100%; padding: 1.1rem 1rem 1.2rem; background: none; border: 0; color: #c9c6bf;
  font: inherit; font-size: 1rem; font-weight: 700; text-align: left; white-space: nowrap; cursor: pointer;
  border-top: 3px solid rgba(255,255,255,0.18);
}
.hs__tab:hover { color: #fff; }
.hs__tab.is-active { color: #fff; }
.hs__tab::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--c-gold); }
.hs__tab.is-active::before { width: 100%; }
.hs.is-running .hs__tab.is-active::before { animation: hs-fill 6.5s linear; }
@keyframes hs-fill { from { width: 0; } to { width: 100%; } }
.hs__pause { flex: none; width: 3rem; background: none; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
.hs__pause span { width: 12px; height: 14px; border-inline: 4px solid currentColor; }
.hs__pause.is-paused span { border: 0; width: 0; height: 0; border-left: 13px solid currentColor; border-block: 8px solid transparent; }

@media (max-width: 1023px) {
  .hs__slide { display: block; background: #16191b; }
  .hs__slide::after { display: none; }
  .hs__chip { width: 150px; padding: 0.75rem; }
  .hs__line { margin-top: 1.1rem; font-size: 1.75rem; }
  .hs__tab { padding: 1rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hs__slide, .hs__slide.is-active { transition: none; }
}
/* Desktop: one fixed frame for every slide; photos crop to fill it. */
@media (min-width: 1024px) {
  .hs__slide { height: min(calc(var(--vh) * 84), 46rem); overflow: hidden; }
  .hs__slide .hs__img { height: 100%; min-height: 0; }
  .hs__slide .hs__img img { position: absolute; inset: 0; }
}
/* Desktop brand slides: text on a solid panel, photo on the right, so the
   copy stays readable over bright food photography. */
@media (min-width: 1024px) {
  .hs__slide--brand { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hs__slide--brand::after { display: none; }
  .hs__slide--brand > * { grid-area: auto; }
  .hs__slide--brand .hs__img { grid-column: 2; grid-row: 1; }
  .hs__slide--brand .hero__text { grid-column: 1; grid-row: 1; max-width: none; padding-inline: max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) clamp(2rem, 4vw, 4rem); }
  .hs__slide--brand .hs__line { max-width: 14ch; }
}

/* Brand slides take the brand's tile colour, so the logo panel and slide read as one. */
.hs__slide.hs__slide--brand { background: var(--slide-bg, #16191b); color: var(--slide-ink, #fff); }
.hs__slide--brand .hs__line { color: var(--slide-ink, #fff); }
.hs__slide--brand .hs__cta { background: var(--slide-ink, #fff); color: var(--slide-bg, var(--c-ink)); }

.foot__note { grid-column: 1 / -1; font-size: 0.875rem; opacity: 0.75; }
