/* Food Truck — page styles only. Tokens, header, footer, buttons from main.css. */

.foodtruck-hero {
  position: relative;
  isolation: isolate;
}

.foodtruck-hero-photo {
  margin: 0;
  overflow: hidden;
}

.foodtruck-hero-photo img {
  width: 100%;
  height: min(72vh, 40rem);
  object-position: 52% 46%;
}

.foodtruck-hero-copy {
  position: absolute;
  left: var(--axis-a);
  bottom: clamp(1rem, 2.4vw, 2rem);
  z-index: 1;
  width: min(28rem, calc(100% - (2 * var(--page-gutter))));
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--color-bg);
}

.foodtruck-hero-copy h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.55rem, 1.15rem + 3.2vw, 4.4rem);
  line-height: 0.96;
}

.foodtruck-hero-copy p {
  max-width: 28rem;
  margin-bottom: 1.35rem;
  font-size: var(--fs-lead);
}

.foodtruck-hero-copy .btn {
  margin-top: 0.15rem;
}

/* Story: bakery in motion — copy + product, not a second truck */

.foodtruck-story {
  display: grid;
  grid-template-columns: minmax(16rem, 0.95fr) minmax(0, 1.15fr);
  gap: var(--space-lg);
  align-items: end;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: var(--space-section) var(--page-gutter);
}

.foodtruck-story-copy {
  max-width: 28rem;
  padding-bottom: var(--space-sm);
}

.foodtruck-story-copy h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.2rem, 1.2rem + 2.4vw, 3.5rem);
  line-height: 1.05;
}

.foodtruck-story-copy p {
  font-size: var(--fs-lead);
}

.foodtruck-story-photo,
.foodtruck-product-main,
.foodtruck-product-side {
  margin: 0;
  overflow: hidden;
}

.foodtruck-story-photo img {
  width: 100%;
  height: min(48vh, 26rem);
  object-position: 50% 48%;
}

.foodtruck-story-photo figcaption {
  margin-top: 0.7rem;
  font-size: var(--fs-caption);
  color: var(--color-muted);
}

/* Memorable vehicle moment: full-bleed, different crop, small text */

.foodtruck-feature {
  position: relative;
  color: var(--color-on-dark);
}

.foodtruck-feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgb(28 22 18 / 0.7) 0%, rgb(28 22 18 / 0.18) 58%, transparent 100%);
  pointer-events: none;
}

.foodtruck-feature-photo {
  margin: 0;
  overflow: hidden;
}

.foodtruck-feature-photo img {
  width: 100%;
  height: min(78vh, 44rem);
  object-position: 22% 54%;
}

.foodtruck-feature-copy {
  position: absolute;
  left: var(--axis-a);
  bottom: clamp(1.25rem, 3.2vw, 2.75rem);
  z-index: 1;
  width: min(26rem, calc(100% - (2 * var(--page-gutter))));
  max-width: 26rem;
}

.foodtruck-feature-copy h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.2rem, 1.15rem + 2.6vw, 3.6rem);
  line-height: 0.98;
}

.foodtruck-feature-copy p {
  max-width: 24rem;
  font-size: var(--fs-caption);
  color: color-mix(in srgb, var(--color-on-dark) 90%, transparent);
  text-shadow: 0 1px 18px rgb(28 22 18 / 0.55);
}

.foodtruck-feature-copy .eyebrow-light {
  margin-bottom: 0.65rem;
  text-shadow: 0 1px 16px rgb(28 22 18 / 0.5);
}

/* Product: bakery world, not a truck menu */

.foodtruck-product {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.05fr) minmax(12rem, 0.7fr);
  grid-template-areas:
    "copy main side";
  gap: var(--space-md) var(--space-lg);
  align-items: end;
  background: var(--color-bg-secondary);
  padding: var(--space-section) var(--axis-a);
}

.foodtruck-product-copy {
  grid-area: copy;
  max-width: 24rem;
  padding-bottom: var(--space-sm);
}

.foodtruck-product-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 1.2rem + 2.4vw, 3.5rem);
}

.foodtruck-product-copy p {
  font-size: var(--fs-lead);
  margin-bottom: 1.35rem;
}

.foodtruck-product-main {
  grid-area: main;
}

.foodtruck-product-main img {
  width: 100%;
  height: min(52vh, 28rem);
  object-position: 50% 48%;
}

.foodtruck-product-side {
  grid-area: side;
}

.foodtruck-product-side img {
  width: 100%;
  height: min(36vh, 20rem);
  object-position: 28% 70%;
}

.foodtruck-next {
  margin: 0.85rem 0 0;
  font-size: var(--fs-body);
}

@media (max-width: 1100px) {
  .foodtruck-product {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.2fr);
    grid-template-areas:
      "copy copy"
      "main side";
  }

  .foodtruck-product-copy {
    padding-bottom: 0;
  }
}

@media (max-width: 960px) {
  .foodtruck-hero-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-position: 50% 48%;
  }

  .foodtruck-hero-copy {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: var(--space-lg) var(--page-gutter) var(--space-xl);
    background: var(--color-bg);
  }

  .foodtruck-story {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding-top: var(--space-xl);
  }

  .foodtruck-story-copy {
    padding-bottom: 0;
  }

  .foodtruck-story-photo img {
    height: min(42vh, 22rem);
  }

  .foodtruck-feature-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-position: 24% 52%;
  }

  .foodtruck-feature::after {
    display: none;
  }

  .foodtruck-feature-copy {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    padding: var(--space-lg) var(--page-gutter) var(--space-xl);
    background: var(--color-oven);
  }

  .foodtruck-feature-copy p {
    text-shadow: none;
    color: color-mix(in srgb, var(--color-on-dark) 88%, transparent);
  }

  .foodtruck-feature-copy .eyebrow-light {
    text-shadow: none;
  }

  .foodtruck-product-main img,
  .foodtruck-product-side img {
    height: min(40vh, 22rem);
  }
}

@media (max-width: 700px) {
  .foodtruck-hero-copy h1 {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  .foodtruck-hero-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-position: 50% 48%;
  }

  .foodtruck-hero-copy,
  .foodtruck-story {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .foodtruck-hero-copy {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-xl);
  }

  .foodtruck-story {
    padding-bottom: var(--space-xl);
  }

  .foodtruck-story-photo img {
    width: 100%;
    height: 42vh;
  }

  .foodtruck-feature-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-position: 26% 52%;
  }

  .foodtruck-feature-copy {
    padding: var(--space-lg) var(--page-gutter) var(--space-xl);
  }

  .foodtruck-product {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "main"
      "side";
    gap: var(--space-md);
    padding: var(--space-xl) var(--page-gutter);
  }

  .foodtruck-product-main img {
    width: 100%;
    height: 42vh;
  }

  .foodtruck-product-side img {
    width: 100%;
    height: 32vh;
  }

  .foodtruck-hero-copy .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .foodtruck-hero-photo img {
    aspect-ratio: 16 / 10;
    object-position: 50% 48%;
  }

  .foodtruck-feature-photo img {
    aspect-ratio: 16 / 10;
    object-position: 28% 50%;
  }
}

@media (max-width: 360px) {
  .foodtruck-hero-copy h1 {
    font-size: 2.2rem;
  }

  .foodtruck-hero-photo img,
  .foodtruck-feature-photo img {
    aspect-ratio: 16 / 10;
  }

  .foodtruck-story-photo img,
  .foodtruck-product-main img {
    height: 36vh;
  }

  .foodtruck-product-side img {
    height: 28vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .foodtruck-hero-photo img,
  .foodtruck-feature-photo img,
  .foodtruck-story-photo img,
  .foodtruck-product-main img,
  .foodtruck-product-side img {
    transition: none;
  }
}
