/* ============================================================
   ANNABI COOKIES — menu.css
   Page-specific styles for menu.html only.
   All shared tokens and utilities live in main.css.
   ============================================================ */


/* ============================================================
   PAGE HERO
   ============================================================ */

#menu-hero {
  position: relative;
  padding-top: var(--nav-height);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--warm-grey); /* fallback while image loads */
}

/* Hero image */
.menu-hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.menu-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay so heading reads over image */
.menu-hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

#menu-hero .container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding-bottom: var(--space-12);
}

.menu-hero-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: var(--white);
}


/* ============================================================
   PERMANENT FLAVOURS
   ============================================================ */

#flavours {
  padding-block: var(--space-28);
}

.flavours-intro {
  margin-bottom: var(--space-16);
}

.flavours-intro .label {
  display: block;
  margin-bottom: var(--space-3);
}

.flavours-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
}


/* ── Cookie card (standard) ── */

.cookie-card {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 64px;
  align-items: start;
  padding-block: var(--space-16);
  border-top: 1px solid rgba(0,0,0,0.08);
}

.cookie-card:last-of-type {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Image wrapper handles the hover zoom clip */
.cc-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--warm-grey);
}

.cc-img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}

.cc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.cc-img-wrap:hover .cc-img img {
  transform: scale(1.06);
}

/* Card body */
.cc-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--space-4);
}

.cc-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cc-name {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.cc-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--grey-mid);
  max-width: 460px;
}

/* Ingredients + allergens meta block */
.cc-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--off-white);
  border-radius: var(--radius-md);
}

.meta-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
  margin-bottom: var(--space-2);
}

.cc-ingredients p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0,0,0,0.65);
}

/* Allergen pill row */
.allergen-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.allergen-pill {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.07);
  color: var(--black);
  white-space: nowrap;
}


/* ── Flavour of the Month card ── */

.cookie-card--feature {
  background: var(--peach);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  border-top: none;
  margin-bottom: var(--space-8);
}

/* Remove the top border that the sibling rule would add */
.cookie-card--feature + .cookie-card {
  border-top: none;
  padding-top: var(--space-8);
}

.cookie-card--feature .cc-meta {
  background: rgba(255,255,255,0.55);
}

.cookie-card--feature .allergen-pill {
  background: rgba(0,0,0,0.09);
}

/* FOTM badge */
.fotm-badge {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
  z-index: 2;
}


/* ============================================================
   LIMITED EDITION
   ============================================================ */

#limited-edition {
  background: var(--black);
  padding-block: var(--space-28);
}

.le-intro {
  margin-bottom: var(--space-16);
}

.le-intro .label {
  display: block;
  margin-bottom: var(--space-3);
}

.le-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Limited edition card */
.le-card {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 64px;
  align-items: start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.le-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.le-img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}

.le-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.le-img-wrap:hover .le-img img {
  transform: scale(1.06);
}

.le-badge {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: var(--peach);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

/* LE body */
.le-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--space-4);
}

.le-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.le-name {
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--white);
}

.le-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.62);
  max-width: 460px;
}

/* Three-flavour list inside LE card */
.le-flavour-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-5);
}

.le-flavour-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.le-flavour-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.le-flavour-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}


/* ============================================================
   NOTICES (Allergy & Cookie Care)
   ============================================================ */

#notices {
  padding-block: var(--space-20);
  background: var(--off-white);
}

.notices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.notice-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid rgba(0,0,0,0.06);
}

.notice-icon {
  font-size: 28px;
  margin-bottom: var(--space-4);
  display: block;
}

.notice-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.notice-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--grey-mid);
}


/* ============================================================
   PAGE-END CTA
   ============================================================ */

#menu-cta {
  padding-block: var(--space-28);
  text-align: center;
}

.menu-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.menu-cta-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.menu-cta-inner p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--grey-mid);
  max-width: 440px;
}


/* ============================================================
   RESPONSIVE — 860px (Tablet)
   ============================================================ */

@media (max-width: 860px) {

  /* Cookie cards: stack vertically */
  .cookie-card {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .cookie-card--feature {
    padding: var(--space-8);
  }

  .cc-img {
    aspect-ratio: 3 / 2;
  }

  /* LE card: stack vertically */
  .le-card {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-8);
  }

  .le-img {
    aspect-ratio: 3 / 2;
  }

  /* Notices: stack */
  .notices-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   RESPONSIVE — 520px (Mobile)
   ============================================================ */

@media (max-width: 520px) {

  .cookie-card--feature {
    padding: var(--space-6);
  }

  .le-card {
    padding: var(--space-6);
  }

  .notice-card {
    padding: var(--space-6);
  }

  .cc-meta {
    padding: var(--space-5);
  }

  .menu-cta-inner h2 {
    font-size: 32px;
  }
}
