/* =============================================================
   MR. SPICEE / BOULANGERIE MENAGO
   components.css — Reusable components shared across all 7 pages
   Nav · Footer · Buttons · Product Cards · Tags
   ============================================================= */


/* ============================
   BUTTONS
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  line-height: 1;
}

/* Consumer path — Brand Red */
.btn--red {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn--red:hover {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
}

/* Wholesale/School path — Navy */
.btn--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
.btn--navy:hover {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
}

/* Ghost — navy outline (on light backgrounds) */
.btn--ghost {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn--ghost:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* Ghost — cream outline (on dark/navy backgrounds) */
.btn--ghost-cream {
  background-color: transparent;
  color: var(--color-cream);
  border-color: rgba(250, 246, 240, 0.5);
}
.btn--ghost-cream:hover {
  background-color: var(--color-cream);
  color: var(--color-navy);
  border-color: var(--color-cream);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 18px 40px;
  font-size: var(--text-base);
}


/* ============================
   SITE NAVIGATION
   ============================ */

.site-nav {
  background-color: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--color-gold);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: var(--space-lg);
}

.site-nav__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-nav__logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-nav__logo-circle img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  display: block;
}

.site-nav__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-cream);
  letter-spacing: 0.01em;
  line-height: 1;
}

.site-nav__brand-sub {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--color-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  justify-content: center;
}

.site-nav__link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(250, 246, 240, 0.72);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--color-cream);
  border-bottom-color: var(--color-gold);
}

.site-nav__actions {
  flex-shrink: 0;
}

/* Wraps .site-nav__links + .site-nav__actions. `display:contents` means
   this wrapper contributes no box of its own on desktop — its children
   remain direct flex items of .site-nav__inner, exactly as before, so
   desktop layout is completely unchanged. Only the mobile media query
   below turns it into a real, visible dropdown panel. */
.site-nav__menu {
  display: contents;
}

/* Mobile nav toggle (visible on mobile) */
.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-cream);
}

.site-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-cream);
  margin: 5px 0;
  transition: background-color 0.15s;
}

@media (max-width: 900px) {
  .site-nav__menu    { display: none; }
  .site-nav__toggle  { display: block; }

  /* Open state: the wrapper becomes a real dropdown panel anchored to
     the bottom of the sticky nav bar */
  .site-nav.is-open .site-nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-navy);
    border-bottom: 3px solid var(--color-gold);
    padding: var(--space-md) var(--gutter) var(--space-lg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }

  .site-nav.is-open .site-nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .site-nav.is-open .site-nav__link {
    width: 100%;
    padding: var(--space-xs) 0;
  }

  .site-nav.is-open .site-nav__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Extra safety so the brand mark never wraps/overflows on very narrow phones */
@media (max-width: 480px) {
  .site-nav__inner { gap: var(--space-sm); }
  .site-nav__logo-circle { width: 40px; height: 40px; }
  .site-nav__brand-name { font-size: var(--text-lg); }
}


/* ============================
   SITE FOOTER
   (Reusable — appears on all 7 pages)
   ============================ */

.site-footer {
  background-color: var(--color-navy-dark);
  color: var(--color-cream);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 3px solid var(--color-gold);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* Brand column */
.site-footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.1;
  margin-bottom: 4px;
}

.site-footer__brand-sub {
  font-size: 10px;
  color: var(--color-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: block;
}

.site-footer__tagline {
  font-size: var(--text-sm);
  color: rgba(250, 246, 240, 0.6);
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: var(--space-md);
}

.site-footer__cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(201, 146, 42, 0.35);
  padding: 6px 12px;
}

/* Link columns */
.site-footer__col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__link {
  font-size: var(--text-sm);
  color: rgba(250, 246, 240, 0.65);
  transition: color 0.15s;
  line-height: 1;
}

.site-footer__link:hover {
  color: var(--color-cream);
}

/* Contact column */
.site-footer__address {
  font-size: var(--text-sm);
  color: rgba(250, 246, 240, 0.65);
  line-height: 1.85;
}

.site-footer__contact-link {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(250, 246, 240, 0.65);
  transition: color 0.15s;
}

.site-footer__contact-link:hover {
  color: var(--color-cream);
}

/* Bottom bar */
.site-footer__bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.1);
  padding-top: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__copy {
  font-size: var(--text-xs);
  color: rgba(250, 246, 240, 0.35);
}

.site-footer__bottom-links {
  display: flex;
  gap: var(--space-md);
}

.site-footer__bottom-link {
  font-size: var(--text-xs);
  color: rgba(250, 246, 240, 0.35);
  transition: color 0.15s;
}

.site-footer__bottom-link:hover {
  color: rgba(250, 246, 240, 0.65);
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* Footer 3-column layout (Home / Patties / Rock Cakes / Our Story / Contact).
   Matches the desktop grid these pages previously set inline
   (display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:40px) so desktop
   is unchanged — this class just makes it possible to collapse on mobile. */
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: var(--space-md);
}

@media (max-width: 700px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
  }
}

@media (max-width: 560px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
  }
  .site-footer__tagline {
    margin-bottom: var(--space-sm);
  }
  .site-footer__col-title {
    margin-bottom: var(--space-xs);
  }
  .site-footer__address {
    line-height: 1.6;
  }
  .site-footer__bottom {
    padding-top: var(--space-sm);
  }
}


/* ============================
   PRODUCT CARD
   ============================ */

.product-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.product-card__image-area {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--color-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card__image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder label when no image */
.product-card__image-placeholder {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  font-style: italic;
}

.product-card__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.product-card__tag--quebec {
  background-color: var(--color-red);
  color: var(--color-white);
}

.product-card__tag--canada {
  background-color: var(--color-green);
  color: var(--color-white);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
  line-height: 1.15;
}

.product-card__weight {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 100%;
  margin-bottom: var(--space-md);
  flex: 1;
}

.product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.product-card__spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.product-card__spec-label {
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

.product-card__spec-value {
  font-weight: 600;
  color: var(--color-text);
}

.product-card__spec-value--highlight {
  color: var(--color-red);
}


/* ============================
   SECTION LABELS (eyebrow text)
   ============================ */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.eyebrow--light {
  color: rgba(201, 146, 42, 0.85);
}

.eyebrow--cream {
  color: rgba(250, 246, 240, 0.6);
}


/* ============================
   DIVIDER
   ============================ */

.divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-gold);
  margin: var(--space-md) 0;
}

.divider--red {
  background-color: var(--color-red);
}
