/* ============================================================================
   MY FRENCH FACTORY: OPTION A (ELEGANT)
   Vintage bistro poster. Marcellus + Karla.

   Contents
     1.  Tokens
     2.  Reset & base
     3.  Utilities (wrap, labels, star, buttons, reveal, image crops)
     4.  Flag rule & navigation
     5.  Hero, split poster
     6.  About
     7.  Menu
     8.  Gallery
     9.  Location and hours
     10. Footer
     11. WhatsApp chat widget
     12. Responsive
     13. Reduced motion
   ========================================================================== */


/* ============================================================================
   1. TOKENS: edit colours, fonts and rhythm here
   ========================================================================== */
:root {
  /* Colour: white dominates, deep blue is structural, red is the punch */
  --paper:      #FCFBF9;
  --white:      #FFFFFF;
  --blue:       #14285A;
  --blue-deep:  #0E1C40;
  --rose:       #E8A0AC;           /* red, lightened for use on deep blue */
  --red:        #C8102E;
  --ink:        #191919;
  --ink-soft:   #55555A;
  --rule:       rgba(20, 40, 90, .16);
  --rule-light: rgba(255, 255, 255, .22);
  --wa-green:   #25D366;           /* WhatsApp's own green, for recognition */

  /* Type */
  --display: "Marcellus", "Optima", Georgia, serif;
  --body:    "Karla", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --gut:     clamp(1.25rem, 4vw, 3rem);      /* page side padding */
  --sect:    clamp(4.5rem, 10vw, 9rem);      /* section vertical padding */
  --maxw:    1180px;
  --navh:    68px;

  /* Motion */
  --ease:    cubic-bezier(.22, .61, .36, 1);
}


/* ============================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-top: 4px;                          /* clears the fixed flag rule */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: var(--white);
  padding: .7rem 1.2rem;
  font: 500 .72rem/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Anchors land clear of the sticky header */
section[id] { scroll-margin-top: calc(var(--navh) + 4px); }


/* ============================================================================
   3. UTILITIES
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sect); }

/* Letterspaced small-caps section label */
.label {
  font-family: var(--body);
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}
.label--light { color: var(--rose); }

/* Section heading */
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: .015em;
  color: var(--blue);
}
.h2--light { color: var(--white); }

/* The divider motif: a four-point star, alone or between two hairlines */
.star {
  width: 14px;
  height: 14px;
  fill: var(--red);
  overflow: visible;
  flex: none;
}
.star--block { display: block; margin-block: 1.7rem; }
.star--light { fill: var(--white); opacity: .8; }

.rule {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-block: 1.7rem;
  max-width: 22rem;
}
.rule__line { flex: 1; height: 1px; background: var(--rule); }

.eyebrow {
  font-weight: 500;
  font-size: clamp(.6rem, 1.4vw, .72rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--blue);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  transition: background-color .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease);
}
.btn--solid {
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}
.btn--solid:hover { background: var(--red); border-color: var(--red); }

.btn--line {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--rule);
}
.btn--line:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }

/* --- Image crops ---------------------------------------------------------
   Several source photographs carry promotional text around the food. The
   food is isolated by zooming in on a focal point, so the text falls
   outside the frame. To re-frame a photograph, edit only its inline
   --focus (x% y%) and --zoom values in index.html. Originals are untouched.
   ------------------------------------------------------------------------ */
.crop {
  position: relative;
  overflow: hidden;
  background: #EFEDE8;
}
.crop > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--focus, 50% 50%);
  transition: transform .9s var(--ease);
}
.crop--plate { aspect-ratio: 4 / 5; }
.crop--fill  { position: absolute; inset: 0; }

/* --- Scroll reveal -------------------------------------------------------
   Scoped to .js, which an inline script in <head> adds to <html>. If the
   script never runs, nothing is ever hidden and the page reads normally.
   Elements only use `transform` here; anything that needs a permanent
   rotation or offset uses the independent `rotate` / `translate`
   properties instead, so the two can't overwrite each other.
   ------------------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ============================================================================
   4. FLAG RULE & NAVIGATION
   ========================================================================== */
.flagrule {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 100;
  background: linear-gradient(to right,
    var(--blue) 0 33.333%,
    var(--white) 33.333% 66.666%,
    var(--red) 66.666% 100%);
}
.flagrule--foot { position: static; height: 5px; }

.nav {
  position: sticky;
  top: 4px;
  z-index: 90;
  background: rgba(252, 251, 249, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  min-height: var(--navh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* --- Brand --------------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-size: 1.14rem;
  letter-spacing: .03em;
  color: var(--blue);
}
.brand__sub {
  font-size: .53rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: .32rem;
}

/* --- Links --------------------------------------------------------------- */
.menu { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); }
.menu__list { display: flex; gap: clamp(1.1rem, 2.4vw, 2rem); }
.menu__list a {
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: .4rem;
  position: relative;
}
.menu__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.menu__list a:hover::after { transform: scaleX(1); }

.social { display: flex; align-items: center; gap: .9rem; }
.social--nav a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.social--nav svg { width: 14px; height: 14px; fill: var(--blue); transition: fill .35s var(--ease); }
.social--nav a:hover { background: var(--blue); border-color: var(--blue); }
.social--nav a:hover svg { fill: var(--white); }

/* --- Hamburger ----------------------------------------------------------- */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--blue);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }


/* ============================================================================
   5. HERO, SPLIT POSTER
   Three verticals run across the screen: a faint blue band, the white
   type panel, then a solid red divider and the photograph. That is the
   French flag used as page structure, the same construction as the
   vertical stripes behind the circle in the café's own logo.
   ========================================================================== */
/* Height is deliberately restrained. The photograph is 940×788, so a very
   tall panel would force `object-fit: cover` to crop it hard and then scale
   what's left back up. At roughly 4:3 the frame shows most of the source at
   close to its own size, which is why it stays sharp. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  min-height: clamp(520px, 74svh, 720px);
  background: var(--paper);
}

.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
  /* Aligns the type with the page's left gutter at every width */
  padding-left: max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut)));
}

/* The flag's first vertical: a faint blue band with a hairline edge.
   The hairline is what makes it read as structure, not a colour wash. */
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 15%;
  background: linear-gradient(to right, rgba(20, 40, 90, .075), rgba(20, 40, 90, .03));
  border-right: 1px solid rgba(20, 40, 90, .14);
  pointer-events: none;
}

/* Poster frame: two hairlines with a gap between them */
.frame {
  position: absolute;
  inset: clamp(14px, 2vw, 26px);
  border: 1px solid var(--rule);
  pointer-events: none;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--rule);
}

/* Rotated type running up the left edge of the frame */
.edgetype {
  position: absolute;
  left: clamp(21px, 2.4vw, 34px);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: .48;
  margin: 0;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.hero__crest {
  width: clamp(54px, 5.6vw, 74px);
  height: auto;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  animation: crest-in 1.3s var(--ease) both;
}
@keyframes crest-in {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: none; }
}

/* --- The wordmark -------------------------------------------------------- */
.wordmark {
  margin: clamp(1rem, 2.4vw, 1.6rem) 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.9vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--blue);
}
.wordmark__line { display: block; }

/* "FACTORY" is shorter than "MY FRENCH", extra tracking optically
   matches the two lines' widths, the way a poster would set them. */
.wordmark__line--wide { letter-spacing: .2em; margin-right: -.2em; }

.tagline {
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(.95rem, 1.9vw, 1.14rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 26rem;
}

.hero__cta {
  margin-top: clamp(1.8rem, 3.6vw, 2.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

/* --- The photograph half -------------------------------------------------
   No `overflow: hidden` here on purpose, `.crop` already clips the image,
   and the stamp needs to hang past this panel's left edge.
   ------------------------------------------------------------------------ */
.hero__photo {
  position: relative;
  border-left: 7px solid var(--red);         /* the flag's third vertical */
  background: #EFEDE8;
}
.hero__photo:hover .crop > img { transform: scale(calc(var(--zoom, 1) * 1.04)); }

/* Sits bottom-left, clear of the chat button in the opposite corner */
.hero__credit {
  position: absolute;
  left: 1.1rem;
  bottom: .9rem;
  z-index: 3;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

/* --- "Établi 2014" stamp, straddling the red divider --------------------- */
.stamp {
  position: absolute;
  left: -54px;
  bottom: clamp(28px, 5vw, 62px);
  z-index: 4;
  width: clamp(88px, 9vw, 108px);
  aspect-ratio: 1;
  border: 1px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--red);
  rotate: -9deg;                             /* independent of .reveal's transform */
  background: var(--paper);
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--red);
  border-radius: 50%;
  opacity: .45;
}
.stamp__top, .stamp__bot {
  font-size: .48rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.stamp__year {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  display: block;
}


/* ============================================================================
   6. ABOUT
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.prose p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 46ch;
}
.prose p + p { margin-top: 1.35rem; }
.prose em { font-style: italic; color: var(--ink); }

/* Drop cap in red, the one place red appears at size */
.dropcap {
  float: left;
  font-family: var(--display);
  font-weight: 400;
  font-size: 3.9rem;
  line-height: .88;
  color: var(--red);
  margin: .05rem .5rem 0 0;
}

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.creds li {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Four real café photographs, each at its native 206px */
.plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.4rem);
  max-width: 440px;
  margin-left: auto;
}
.plate { margin: 0; }

/* Direct child only, so the wide plate's cropped image is left alone */
.plate > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--white);
  outline: 1px solid var(--rule);
  transition: transform .6s var(--ease);
}
.plate:hover > img { transform: translateY(-4px); }

/* Wide frame across both columns, closing the photo column */
.plate--wide { grid-column: 1 / -1; }
.plate--wide .crop {
  border: 6px solid var(--white);
  outline: 1px solid var(--rule);
}
.plate--wide:hover .crop > img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.plate figcaption {
  margin-top: .7rem;
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}




/* ============================================================================
   7. MENU
   Full-bleed deep blue: the strongest colour block on the page, and the
   reason the white photo mounts read as poster plates.
   ========================================================================== */
.carte {
  background: var(--blue);
  color: rgba(255, 255, 255, .8);
}

.secthead {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.secthead__note {
  max-width: 44ch;
  font-size: .95rem;
  color: rgba(255, 255, 255, .62);
}
.galerie .secthead__note { color: var(--ink-soft); }

/* Photo column is capped at 360px on purpose. These four photographs have
   promotional text printed around the food, so the crops are tight, and a
   tight crop only stays sharp if it isn't then blown up. At 360px each
   frame shows its source pixels at roughly 1:1. */
.course {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(2rem, 5.5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
  border-top: 1px solid var(--rule-light);
}
.course:first-of-type { border-top: 0; }
.course--flip { grid-template-columns: minmax(0, 1fr) 360px; }
.course--flip .course__pic { order: 2; }

.course__pic .crop {
  border: 8px solid var(--white);
  outline: 1px solid rgba(255, 255, 255, .3);
  background: var(--white);
}
.course__pic:hover .crop > img { transform: scale(calc(var(--zoom, 1) * 1.05)); }

.course__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: .02em;
  color: var(--white);
}
.course__lede {
  margin-top: .6rem;
  font-style: italic;
  font-size: .98rem;
  color: var(--rose);
}

/* --- Item list. Each row is a button that swaps the photo beside it. ----- */
.items { margin-top: 1.9rem; }
.items li { border-top: 1px solid var(--rule-light); }

.items__btn {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0 .8rem;
  width: 100%;
  padding: 1rem .8rem 1rem .6rem;
  margin-inline: -.6rem;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.items__btn:hover { background: rgba(255, 255, 255, .06); }

/* The item currently in the frame */
.items__btn.is-on { background: rgba(255, 255, 255, .09); }
.items__btn.is-on .items__code { color: var(--white); }
.items__btn.is-on .items__name { color: var(--white); }

/* A hairline marks the chosen row without moving anything */
.items__btn.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--rose);
}
.items li { position: relative; }

.items__code {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--rose);
  padding-top: .5rem;
  transition: color .3s var(--ease);
}
.items__name {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: .005em;
  color: var(--white);
}
.items__desc {
  grid-column: 2;
  font-size: .87rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .58);
}

/* Small prompt under the photo, so the interaction is discoverable */
.course__hint {
  margin-top: .9rem;
  text-align: center;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

/* Fade the frame while the next photograph decodes */
.course__pic .crop.is-swapping > img { opacity: 0; }
.course__pic .crop > img { transition: transform .9s var(--ease), opacity .28s var(--ease); }

.explore {
  display: inline-block;
  margin-top: 1.8rem;
  padding: .85rem 1.6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border: 1px solid var(--rule-light);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.explore:hover { background: var(--white); border-color: var(--white); color: var(--blue); }

.course__aside {
  margin-top: 1.6rem;
  font-size: .8rem;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .62);
}
.course__aside strong { color: var(--white); font-weight: 500; }


/* ============================================================================
   8. GALERIE, the contact sheet
   Every 206px photograph is displayed at 206px or smaller, so it stays sharp.
   ========================================================================== */
.sheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.7rem, 1.6vw, 1.1rem);
  max-width: 1000px;
  margin-inline: auto;
}
.tile {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 6px solid var(--white);
  outline: 1px solid var(--rule);
  transition: transform .55s var(--ease), outline-color .55s var(--ease);
}
.tile > img { width: 100%; height: 100%; object-fit: cover; }
.tile--feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.tile:hover { transform: translateY(-5px); outline-color: var(--red); }
.tile:hover .crop > img { transform: scale(calc(var(--zoom, 1) * 1.05)); }

.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem .8rem .7rem;
  background: linear-gradient(to top, rgba(14, 28, 64, .92), transparent);
  color: var(--white);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; }
.tile--feature figcaption {
  font-size: .64rem;
  letter-spacing: .12em;
  padding: 2.4rem 1rem 1.1rem;
}


/* ============================================================================
   9. LOCATION AND HOURS
   ========================================================================== */
.find { background: var(--white); border-top: 1px solid var(--rule); }

/* Two shops, side by side. Each card carries its own map, address and hours. */
.outlets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.outlet__tag {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.2rem;
}
.outlet__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: .015em;
  color: var(--blue);
  margin-bottom: 1.6rem;
}

.facts { margin-top: 1.6rem; }
.facts dt {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 1.6rem;
}
.facts dt:first-of-type { margin-top: 0; }
.facts dd {
  margin-top: .45rem;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 38ch;
}
.facts dd a { color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--rule); }
.facts dd a:hover { border-bottom-color: var(--red); color: var(--red); }

.hours {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.hours__title {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.hours li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding-block: .62rem;
  font-size: .95rem;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--rule);
}
.hours li span:last-child {
  margin-left: auto;
  font-weight: 600;
  font-size: .95rem;
  color: var(--blue);
  white-space: nowrap;
}
/* Stands in for the hours table where the hours are not yet confirmed */
.hours__ask {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badges li {
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--rule);
  padding: .5rem .85rem;
}

/* Map, framed like everything else on the page */
.mapframe {
  border: 8px solid var(--white);
  outline: 1px solid var(--rule);
  background: #EFEDE8;
}
.mapframe iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
}
/* Shared footer strip under both shops */
.find__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
}


/* ============================================================================
   10. FOOTER
   ========================================================================== */
.foot { background: var(--blue-deep); color: rgba(255, 255, 255, .66); }
.foot__inner {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.foot__crest {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin-bottom: 1.6rem;
}
.foot__name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
}
.foot__sub {
  margin-top: .7rem;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.social--foot { gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
.social--foot a {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  padding-bottom: .25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: border-color .35s var(--ease);
}
.social--foot a:hover { border-bottom-color: var(--red); }

.foot__addr { margin-top: 2.4rem; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.foot__addr a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.foot__addr a:hover { color: var(--white); }
.foot__copy {
  margin-top: .5rem;
  font-size: .72rem;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .34);
}


/* ============================================================================
   11. WHATSAPP CHAT WIDGET
   The floating button and panel use the brand's blue so they don't fight
   the palette; the send button and status dot use WhatsApp's own green so
   the affordance is still unmistakable.
   ========================================================================== */
.wa {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .8rem;
}

/* --- Floating button ----------------------------------------------------- */
.wa__toggle {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.3rem;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(14, 28, 64, .28);
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.wa__toggle:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.wa__icon { width: 19px; height: 19px; fill: currentColor; flex: none; }
.wa__icon--close { display: none; }
.wa.is-open .wa__icon--chat  { display: none; }
.wa.is-open .wa__icon--close { display: block; }
.wa.is-open .wa__label { display: none; }
.wa.is-open .wa__toggle { padding: .85rem; }

/* Unread ping, hidden once the panel has been opened */
.wa__ping {
  position: absolute;
  top: -5px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  background: var(--wa-green);
  color: #06331A;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 19px;
  text-align: center;
}
.wa__toggle { position: relative; }
.wa.is-seen .wa__ping { display: none; }

/* --- Panel --------------------------------------------------------------- */
.wa__panel {
  order: 1;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 8rem));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 22px 60px rgba(14, 28, 64, .22);
  overflow: hidden;
}
.wa__panel[hidden] { display: none; }
.js .wa__panel {
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.js .wa.is-open .wa__panel { opacity: 1; transform: none; }

/* Header */
.wa__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  background: var(--blue);
  color: var(--white);
}
.wa__avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.wa__ident { min-width: 0; flex: 1; }
.wa__name {
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1.2;
}
.wa__state {
  display: flex;
  align-items: center;
  gap: .38rem;
  font-size: .64rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, .72);
  margin-top: .12rem;
}
.wa__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa-green);
  flex: none;
}
.wa__dot--shut { background: var(--rose); }
.wa__x {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  flex: none;
}
.wa__x svg { width: 15px; height: 15px; fill: rgba(255, 255, 255, .8); }
.wa__x:hover svg { fill: var(--white); }

/* Message log */
.wa__log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: .87rem;
  line-height: 1.55;
}
.wa__msg { max-width: 84%; padding: .6rem .8rem; }
.wa__msg--bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.wa__msg--me {
  align-self: flex-end;
  background: var(--blue);
  color: var(--white);
}
.wa__msg a { color: var(--red); text-decoration: underline; }
.wa__msg--me a { color: var(--white); }
.wa__msg strong { font-weight: 600; }
.wa__msg ul { margin-top: .35rem; }
.wa__msg li { padding-left: .8rem; position: relative; }
.wa__msg li::before { content: "·"; position: absolute; left: .15rem; }

/* Typing indicator */
.wa__typing { display: flex; gap: 4px; align-items: center; padding: .75rem .8rem; }
.wa__typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-soft);
  animation: wa-bounce 1.1s infinite;
}
.wa__typing span:nth-child(2) { animation-delay: .16s; }
.wa__typing span:nth-child(3) { animation-delay: .32s; }
@keyframes wa-bounce {
  0%, 60%, 100% { opacity: .28; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Quick replies */
.wa__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .7rem 1rem 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.wa__chips:empty { display: none; }
.wa__chip {
  font-family: var(--body);
  font-weight: 500;
  font-size: .72rem;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .42rem .8rem;
  cursor: pointer;
  transition: background-color .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.wa__chip:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.wa__chip--go {
  background: var(--wa-green);
  border-color: var(--wa-green);
  color: #06331A;
  font-weight: 600;
}
.wa__chip--go:hover { background: #1FBA59; border-color: #1FBA59; color: #06331A; }

/* Back and Main menu, set apart from the question chips */
.wa__chip--nav {
  background: transparent;
  border-style: dashed;
  color: var(--ink-soft);
}
.wa__chip--nav:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Composer */
.wa__foot {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  background: var(--paper);
}
.wa__sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wa__input {
  flex: 1;
  min-width: 0;
  font-family: var(--body);
  font-size: .85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .58rem .9rem;
}
.wa__input::placeholder { color: #9A9A9F; }
.wa__send {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--wa-green);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .28s var(--ease);
}
.wa__send svg { width: 16px; height: 16px; fill: #06331A; }
.wa__send:hover { background: #1FBA59; }

.wa__note {
  padding: 0 1rem .8rem;
  background: var(--paper);
  font-size: .62rem;
  line-height: 1.45;
  color: var(--ink-soft);
  opacity: .8;
}


/* ============================================================================
   12. RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__panel { padding-inline: var(--gut); padding-block: clamp(3rem, 9vw, 4.5rem); }
  .hero__photo { border-left: 0; border-top: 7px solid var(--red); aspect-ratio: 3 / 2; }
  .stamp { left: auto; right: clamp(18px, 5vw, 40px); top: -46px; bottom: auto; }
  .about__grid,
  .outlets { grid-template-columns: minmax(0, 1fr); }
  .plates { margin-left: 0; max-width: 100%; }

}

@media (max-width: 860px) {
  /* --- Mobile navigation --- */
  .burger { display: block; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gut) 1.5rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .45s var(--ease);
  }
  .nav.is-open .menu { clip-path: inset(0 0 0 0); }
  .menu__list { flex-direction: column; gap: 0; }
  .menu__list a {
    display: block;
    padding: 1rem 0;
    font-size: .8rem;
    letter-spacing: .2em;
    border-bottom: 1px solid var(--rule);
  }
  .menu__list a::after { display: none; }
  .social--nav { margin-top: 1.4rem; }

  /* --- Menu rows stack, image first --- */
  .course,
  .course--flip { grid-template-columns: minmax(0, 1fr); }
  .course--flip .course__pic { order: 0; }
  .course__pic { max-width: 380px; }

  /* --- Contact sheet drops to two columns --- */
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--feature { grid-column: span 2; grid-row: span 1; aspect-ratio: 1; }
  .tile figcaption { opacity: 1; }
}

@media (max-width: 640px) {
  .edgetype { display: none; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dropcap { font-size: 3.2rem; }
  .wa__label { display: none; }
  .wa__toggle { padding: .85rem; }
}

@media (hover: none) {
  /* No hover on touch, show gallery captions and skip lift effects */
  .tile figcaption { opacity: 1; }
  .tile:hover { transform: none; }
}


/* ============================================================================
   13. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .wa__panel { opacity: 1; transform: none; }
}
