/* ===========================================================================
   Pies 'n' Thighs Catering — first version
   Design tokens sourced from Figma file uE3h6lDQVZMOSa4d7qvT4K (node 1630:13).
   Fonts:
     Mooseheart      -> licensed Mooseheart webfont (drop into assets/fonts/);
                        Pacifico is the interim fallback until files are added
     Geist / Metallophile Sp8 -> Inter (body, subheads, quotes)
     Poppins         -> Poppins       (exact)
     Overpass        -> Overpass      (exact, testimonial attribution)
   =========================================================================== */

@font-face {
  font-family: "Mooseheart";
  src: url("../fonts/mooseheart.woff2") format("woff2"),
       url("../fonts/mooseheart.woff") format("woff"),
       url("../fonts/mooseheart.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --natural-white: #f9f7ed;
  --page-bg:       #faf5e5;
  --yellow:        #e8c527;
  --red:           #fb5058;
  --brown:         #795c51;
  --gold:          #ad976e;
  --card-white:    #fffefa;
  --ink:           #231f20;
  --body-text:     #4d4d4d;
  --dashed:        #86583f;

  --font-display: "Mooseheart", "Pacifico", cursive;
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-label:   "Overpass", system-ui, sans-serif;

  --container: 1240px;
  --radius-btn: 3px;
  --radius-card: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* ---- Display + section headings ------------------------------------------ */
.display-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 5.4vw, 4rem);
  line-height: 1.08;
  color: #000;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  min-width: 177px;
  border-radius: var(--radius-btn);
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--red   { background: var(--red); color: #fff; }
.btn--cream { background: var(--natural-white); color: #000; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.btn-row--center { justify-content: center; }

/* ---- Site header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page-bg);
  border-bottom: 1px solid rgba(121, 92, 81, 0.18);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand__logo { height: 34px; width: auto; display: block; }
.brand__logo--footer {
  height: 44px;
  filter: drop-shadow(0 0 2px rgba(249, 247, 237, 0.65))
          drop-shadow(0 0 1px rgba(249, 247, 237, 0.65));
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brown);
}
.brand__tag {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--red);
}
.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
}
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--red); }
.site-header__cta { min-width: 0; padding: 10px 20px; font-size: 0.85rem; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; color: var(--natural-white); overflow: hidden; }
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") center / cover no-repeat;
}
.hero__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.hero__inner {
  position: relative;
  text-align: center;
  padding-top: clamp(56px, 8.5vw, 104px);
  padding-bottom: clamp(56px, 8.5vw, 104px);
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.85rem);
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  line-height: 1.04;
  text-shadow: 2px 4px 0 var(--brown);
}
.hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  max-width: 640px;
  margin: 22px auto 0;
}
.stamp {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--red);
  color: var(--natural-white);
  border-radius: 50%;
  font-family: var(--font-display);
  line-height: 1.1;
}
.stamp--hero {
  top: 26px;
  right: clamp(20px, 5vw, 70px);
  width: 116px;
  height: 116px;
  transform: rotate(-15deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.stamp--hero span { font-size: 1.05rem; font-weight: 700; }
.stamp--hero small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  margin-top: 2px;
}
.stamp--stamp2 {
  top: 150px;
  right: clamp(54px, 8vw, 124px);
  width: 104px;
  height: 104px;
  background: transparent;
  border: 2px solid var(--natural-white);
  color: var(--natural-white);
  transform: rotate(11deg);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}
@media (max-width: 720px) { .stamp--stamp2 { display: none; } }

/* ---- Press band ---------------------------------------------------------- */
.press { background: var(--yellow); padding: 44px 0; text-align: center; }
.press__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--ink);
  margin: 0 0 28px;
}
.press__logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.press__logos img { height: 150px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* ---- Intro / the spread -------------------------------------------------- */
.nowrap { white-space: nowrap; }

.intro { padding: clamp(40px, 6vw, 72px) 0; }
.intro__frame {
  position: relative;
  padding: clamp(34px, 4.2vw, 60px);
}
.intro__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/deco-group.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: stretch;
}
.intro__photo {
  display: flex;
}
.intro__photo img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 5px;
}
.intro__chicken {
  display: block;
  width: auto;
  height: clamp(56px, 5vw, 76px);
  margin-bottom: 14px;
}
.intro__copy p { font-size: 1.1rem; margin: 20px 0 0; max-width: 36ch; }
.intro__copy .display-heading { max-width: 12ch; }

/* ---- Bacon divider ------------------------------------------------------- */
.bacon-divider {
  height: 32px;
  background: url("../img/bacon-tile.png") repeat-x left center;
  background-size: auto 32px;
  margin: clamp(18px, 3vw, 36px) 0;
}

/* ---- Menu grid ----------------------------------------------------------- */
.menu { padding: clamp(20px, 3vw, 36px) 0; }
.menu .display-heading { margin-bottom: 36px; }
.menu__grid,
.occasions__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
}
.menu-card__img {
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
}
.menu-card__img img { width: 100%; height: 100%; object-fit: cover; }
.menu-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #000;
  margin-top: 16px;
}

/* ---- Occasions ----------------------------------------------------------- */
.occasions { padding: clamp(20px, 3vw, 36px) 0; }
.occasions .display-heading { margin-bottom: 36px; }
.occasion-card {
  background: var(--natural-white);
  border: 1px dashed rgba(134, 88, 63, 0.45);
  border-radius: var(--radius-btn);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 14px;
  text-align: center;
}
.occasion-card img { height: 58px; width: auto; object-fit: contain; }
.occasion-card span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #000;
}

/* ---- Free pie promo ------------------------------------------------------ */
.promo { padding: clamp(20px, 3vw, 40px) 0; }
.promo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.promo__copy p { font-size: 1.1rem; margin: 18px 0 28px; max-width: 34ch; }
.promo__photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 5px;
}

/* ---- Testimonials -------------------------------------------------------- */
.testimonials { padding: clamp(36px, 5vw, 64px) 0; }
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  transition: transform 0.45s ease;
}
.testimonial {
  flex: 0 0 82%;
  opacity: 0.55;
  transition: opacity 0.45s ease;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  background: var(--card-white);
  border-radius: 20px;
  padding: clamp(32px, 4vw, 56px);
  box-shadow: 12px 12px 0 var(--gold);
}
.testimonial.is-active { opacity: 1; }
.testimonial__quote-mark {
  position: absolute;
  top: -28px;
  left: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 9rem;
  line-height: 1;
  color: var(--yellow);
}
.testimonial__text {
  font-size: 1.05rem;
  color: var(--brown);
  margin: 18px 0 28px;
}
.testimonial__person { display: flex; align-items: center; gap: 16px; }
.testimonial__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial__name {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--brown);
  margin: 0;
}
.testimonial__photo img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 20px;
}
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.carousel__nav--prev { left: -10px; }
.carousel__nav--next { right: -10px; }
.carousel__nav:hover { filter: brightness(0.94); }
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  cursor: pointer;
}
.carousel__dots button.is-active { opacity: 1; background: var(--red); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { padding: clamp(36px, 5vw, 64px) 0; }
.faq__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: #000;
}
.faq__sub { font-size: 1.1rem; margin: 14px 0 36px; }
.faq-item { border-top: 1px solid rgba(121, 92, 81, 0.4); }
.faq-item:last-child { border-bottom: 1px solid rgba(121, 92, 81, 0.4); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: #000;
}
.faq-item__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  border-right: 2.5px solid var(--brown);
  border-bottom: 2.5px solid var(--brown);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-bottom: 4px;
}
.faq-item.is-open .faq-item__chevron { transform: rotate(-135deg); margin-bottom: -4px; }
.faq-item__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}
.faq-item.is-open .faq-item__a { max-height: 320px; }
.faq-item__a p { margin: 0 0 24px; max-width: 70ch; font-size: 1.02rem; }

/* ---- Final CTA band ------------------------------------------------------ */
.final-cta {
  position: relative;
  background: var(--yellow);
  text-align: center;
  padding: clamp(120px, 14vw, 180px) 0 clamp(56px, 8vw, 90px);
  margin-top: clamp(40px, 6vw, 72px);
}
.final-cta__car {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -45%);
  width: clamp(220px, 28vw, 360px);
}
.final-cta__title { color: #000; }
.final-cta__sub { font-size: 1.1rem; margin: 16px auto 0; max-width: 46ch; }

/* ---- Site footer --------------------------------------------------------- */
.site-footer { background: var(--brown); color: var(--natural-white); padding: 48px 0; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__brand .brand__name { color: var(--natural-white); }
.site-footer__brand p { margin: 6px 0 0; font-size: 0.92rem; opacity: 0.85; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.92rem; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { color: var(--yellow); }
.site-footer__copy { width: 100%; font-size: 0.82rem; opacity: 0.7; margin: 0; }

/* ---- Anchor fade transition (user pref: no smooth-scroll) ---------------- */
#page { transition: opacity 0.18s ease; }
#page.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #page { transition: none; }
  .carousel__track { transition: none; }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .intro__grid,
  .promo__grid { grid-template-columns: 1fr; }
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .occasions__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial { grid-template-columns: 1fr; flex-basis: 100%; opacity: 1; }
  .testimonial__photo { order: -1; }
  .carousel__track { gap: 16px; }
}
@media (max-width: 560px) {
  .menu__grid { grid-template-columns: 1fr; }
  .occasions__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .press__logos img { height: 120px; }
  .carousel__nav--prev { left: 0; }
  .carousel__nav--next { right: 0; }
}
