/* --- MS Market (normal width) --- */
@font-face {
  font-family: 'MS Market';
  src: url('../fonts/MSMarket-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MS Market';
  src: url('../fonts/MSMarket-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

/* --- MS Market (Condensed) --- */
@font-face {
  font-family: 'MS Market';
  src: url('../fonts/MSMarket-Condensed.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-stretch: condensed;
  font-display: swap;
}
@font-face {
  font-family: 'MS Market';
  src: url('../fonts/MSMarket-CondensedBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-stretch: condensed;
  font-display: swap;
}

/* --- MS Market (Extended) --- */
@font-face {
  font-family: 'MS Market';
  src: url('../fonts/MSMarket-Extended.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-stretch: expanded;
  font-display: swap;
}
@font-face {
  font-family: 'MS Market';
  src: url('../fonts/MSMarket-ExtendedBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-stretch: expanded;
  font-display: swap;
}

/* --- MS Barrow --- */
@font-face {
  font-family: 'MS Barrow';
  src: url('../fonts/MSBarrow-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MS Barrow';
  src: url('../fonts/MSBarrow-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MS Barrow';
  src: url('../fonts/MSBarrow-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Optional: avoid fake bold/condense */
:root { font-synthesis: none; }

/* Base / Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

:root {
  --bg-page: #ECE5DF;
  --bg-dark: #000;
  --brand: #00C6ED;
  --text-light: #fff;
  --text-dark: #000;

  --pad-lg: clamp(1.5rem, 0.75rem + 3vw, 3rem);
  --pad-xl: clamp(3rem, 1.1608rem + 8.4076vw, 11.25rem);
  --gap-lg: 5rem;
  --gap-md: 2rem;
}

body { 
  background-color: var(--bg-page);
 }

h1 { font-size: 40px; }
.h3, h3 { font-size: max(3vh, 30px); }

body { font-family: 'MS Market', sans-serif; }

p.lead { font-family: 'MS Barrow', sans-serif; }

h1, p.text {
  font-family: 'MS Market', sans-serif !important;
  font-weight: 400;
}

p {
  font-family: 'MS Barrow', sans-serif;
  font-weight: 400;
}

.text { 
  font-size: max(2vh, 20px); 
  text-align: center;
}

.lead { font-size: max(2vh, 20px) }

.bold { 
  font-weight: 700; 
  font-family: 'MS Barrow', sans-serif;
}

/* Layout wrappers */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4vh;
  width: 100%;
  height: 100vh;
  max-width: 2090px;
  margin: 0 auto;
}

.section {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
}

.section--two-col {
  display: flex;
  flex-wrap: nowrap;
}

/* Columns */
.section__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section__col--100 { flex: 0 0 100%; }
.section__col--50  { flex: 0 0 50%; }

/* Media helpers */
.media { width: 100%; height: 100%; }
.media--cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

.bg--dark { background-color: var(--bg-dark); }

.container { width: 100%; }

/* Components */
.card {
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 2vh;
  text-align: center;
  padding: 2vh;
  border-top: 1px solid var(--text-dark);
  border-bottom: 1px solid var(--text-dark);
}

.stack {
  display: flex;
  flex-direction: column;
}

.stores__content { align-items: start; }

.stack.bg--tint {
  width: 100%;
  align-items: center;
}

.hero {
  height: 20vh;
}

.hero__media {
  background-image: url('images/classic-burger-brioche-burger.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hero__title {
  color: var(--text-light);
  text-align: center;
}

/* Stores block */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: stretch;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

/* Buttons (store links) */
.btn {
  display: inline-block;
  padding: 1em 1.25em;
  text-decoration: none;
  color: var(--text-light);
  background-color: var(--brand);
  border-radius: 10em;
  width: 100%;
  flex-grow: 1;
  text-align: center;
  font-size: 18px;
  transition: color 0.2s, background-color 0.2s;
}
.btn:hover {
  color: var(--brand);
  background-color: var(--text-light);
}

/* Media assets */
.pancakes {
  background-image: url('images/pancake-day.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Footer */
.site-footer { 
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  overflow: visible;
  height: 20vh;
}

.logos__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  position: relative;
}

.mns {
  width: clamp(3.75rem, 2.7747rem + 4.4586vw, 8.125rem);
}

.wolt {
  width: clamp(5rem, 4.0247rem + 4.4586vw, 9.375rem);
}

.rocket {
  width: clamp(7.5rem, 5.5494rem + 8.9172vw, 16.25rem);
  position: absolute;
  right: calc(-1.4 * clamp(3.75rem, 2.7747rem + 4.4586vw, 8.125rem));
  top: calc(-1.4 * clamp(3.75rem, 2.7747rem + 4.4586vw, 8.125rem));
  animation: floatRocket 4s ease-in-out infinite;
}

@keyframes floatRocket {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.intro {
  height: fit-content;
  max-height: 52vh;
}


/* WebKit-based browsers (Chrome, Edge, Safari) */
.intro::-webkit-scrollbar {
  width: 2px;
  height: 2px; /* if horizontal scroll ever appears */
}

.intro::-webkit-scrollbar-track {
  background: var(--bg-page);
}

.intro::-webkit-scrollbar-thumb {
  background: var(--text-dark);
}

/* Firefox */
.intro {
  scrollbar-width: thin;              /* makes scrollbar narrower */
  scrollbar-color: var(--text-dark) var(--bg-page);
}

.section.section--two-col.intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap-md);
  align-items: stretch;
}

.intro__copy { grid-column: 1 / 5; }
.intro__media { grid-column: 5 / 9; }
.stores__content { 
  grid-column: 9 / 13;
  align-items: start;
}

.intro__media .media { width: 100%; height: 100%; }
.intro__media .media--cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media only screen and (max-width: 900px) {
  h1 {
    font-size: 16px;
  }

  .lead {
    font-size: 16px;
  }

  .intro {
    height: fit-content;
    max-height: unset;
  }

  .section.section--two-col.intro {
    display: flex;
    flex-direction: column-reverse;
  }

  .intro__media {
    height: 50vh;
  }

  .h3, h3 {
    font-size: 20px;
  }

  .section.section--two-col.intro {
    gap: 0;
  }

  .page {
    gap: 0;
  }

  .card {
    padding: 5vh 2vh;
  }

  .btn {
    font-size: 16px;
  }
}