/* 8th Espresso Bar. Warm modern cafe editorial. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin-var.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F1ECE4;
  --cream-lift: #FAF7F2;
  --beige: #D9C7B2;
  --tan: #A98B6F;
  --espresso: #3E2F26;
  --espresso-deep: #32261E;
  --orange: #E07A3F;
  --orange-deep: #C9682F;
  /* One radius scale. Everything on the page uses these three, plus 999px for pills. */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  /* Two elevations, nothing else. 1 for resting cards, 2 for lifted or floating panels. */
  --shadow: 0 8px 24px rgba(45, 33, 25, 0.10);
  --shadow-lift: 0 22px 48px rgba(30, 21, 15, 0.24);
  /* Section rhythm. One value so every band of the page breathes the same. */
  --section-pad: clamp(5.5rem, 11vw, 9rem);
  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
  /* Tiny tiling fractal noise, inline so there is no extra request. Under 400 bytes. */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font);
  font-weight: 300;
  font-optical-sizing: auto;
  line-height: 1.65;
  color: var(--espresso);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 600;
  font-stretch: 80%;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

a { color: inherit; }

section { scroll-margin-top: 92px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { max-width: 720px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--espresso);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* One eyebrow treatment everywhere: same size, tracking, weight and colour. */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 85%;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 1rem;
}

/* One heading scale everywhere, so no section shouts louder than another. */
.section-head { margin-bottom: clamp(2.75rem, 5vw, 4rem); max-width: 660px; }
.section-head h2 {
  font-size: clamp(2.15rem, 4.6vw, 3.1rem);
  font-weight: 600;
  font-stretch: 80%;
  letter-spacing: -0.028em;
}
.section-sub {
  margin-top: 1.1rem;
  color: rgba(62, 47, 38, 0.72);
  font-size: 1.02rem;
  max-width: 46ch;
}

/* Fine printed grain on the dark sections only */
.is-dark { position: relative; isolation: isolate; }
.is-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  background-size: 140px 140px;
  opacity: 0.03;
  pointer-events: none;
}

/* Buttons */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 0.78rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-stretch: 90%;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  font-family: inherit;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), color 0.3s ease, border-color 0.3s ease;
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary::before { background: var(--orange-deep); }
.btn-ghost { border: 1.5px solid rgba(241, 236, 228, 0.45); color: var(--cream); }
.btn-ghost:hover { color: #fff; border-color: var(--orange); }
.btn-nav { background: var(--espresso); color: var(--cream); padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-nav:hover { color: #fff; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 236, 228, 0.9);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(62, 47, 38, 0.08);
}
.nav-inner {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.8rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  font-stretch: 85%;
  font-size: 1.05rem;
}
.nav-logo { width: 42px; height: 42px; flex-shrink: 0; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { opacity: 1; color: var(--orange); }
/* Scrollspy: the link for the section you are reading picks up a burnt orange underline */
.nav-links a { position: relative; padding-bottom: 3px; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
.nav-links a.is-current { opacity: 1; color: var(--orange-deep); }
.nav-links a.is-current::after { transform: scaleX(1); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, #5A4636 0%, transparent 70%),
    linear-gradient(180deg, #4A382C 0%, var(--espresso) 60%, var(--espresso-deep) 100%);
  color: var(--cream);
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.25rem clamp(5rem, 11vw, 8rem);
}
.hero-inner { max-width: 780px; margin-inline: auto; }

.hero-badge {
  position: relative;
  width: clamp(150px, 24vw, 210px);
  margin-inline: auto;
}
.hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.35));
}

/* Steam: three thin wisps drifting up out of the cup mark */
.steam {
  position: absolute;
  left: 56%;
  bottom: 40%;   /* sits on the rim of the cup in the badge */
  width: 30%;
  height: 78%;   /* rises past the top edge of the badge */
  overflow: visible;
  pointer-events: none;
}
.steam-wisp {
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 40 200;
  opacity: 0;
}
.steam-1 { animation: drift 9s linear infinite; }
.steam-2 { animation: drift 12s linear infinite 2.4s; }
.steam-3 { animation: drift 10.5s linear infinite 5.1s; }

@keyframes drift {
  0%   { stroke-dashoffset: 240; opacity: 0; transform: translateY(4px); }
  18%  { opacity: 0.24; }
  72%  { opacity: 0.15; }
  100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-12px); }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  margin-top: 2.25rem;
  letter-spacing: -0.032em;
}
.word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  vertical-align: bottom;
}
.word > span { display: inline-block; }

.hero-sub {
  margin: 1.35rem auto 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: rgba(241, 236, 228, 0.8);
  text-wrap: balance;
}
.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero load sequence. Runs once on first paint, finishes under 1.5s. */
.js .hero-logo { animation: logoSettle 820ms var(--ease) 60ms both; }
.js .word > span { animation: wordRise 620ms var(--ease) both; animation-delay: calc(320ms + var(--i) * 80ms); }
.js .hero-sub { animation: softRise 620ms var(--ease) 700ms both; }
.js .hero-ctas { animation: softRise 600ms var(--ease) 820ms both; }

@keyframes logoSettle {
  from { opacity: 0; transform: scale(1.07); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes wordRise {
  from { opacity: 0; transform: translateY(0.85em); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes softRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Story */
.story {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--cream) 0%, #F6F2EB 100%);
}
.story-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.story-copy { max-width: 620px; }
/* The statement, not a paragraph. Same scale as a section heading. */
.story-pull {
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  font-weight: 600;
  font-stretch: 80%;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.story-text {
  margin-top: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(62, 47, 38, 0.72);
  max-width: 46ch;
}

/* Editorial offset frame beside the paragraph. The padding keeps the offset
   frame inside the grid column so it can never push the page sideways. */
.story-figure {
  position: relative;
  padding: 0 1.1rem 1.1rem 0;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.story-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.story-figure::after {
  content: "";
  position: absolute;
  inset: 1.1rem 0 0 1.1rem;
  border: 1.5px solid rgba(62, 47, 38, 0.22);
  border-radius: var(--radius-lg);
  z-index: 0;
  pointer-events: none;
}

/* Ticker */
.ticker {
  overflow: hidden;
  background: #F6F2EB;
  border-block: 1px solid rgba(62, 47, 38, 0.09);
  padding-block: 1.1rem;
}
/* Texture, not noise: slower and quieter than a normal marquee. */
.ticker-track {
  display: flex;
  width: max-content;
  opacity: 0.55;
  animation: marquee 64s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-run {
  display: block;
  white-space: nowrap;
  padding-right: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 600;
  font-stretch: 75%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
}
.ticker-run i { font-style: normal; color: var(--orange); padding-inline: 0.35em; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Cakes */
.cakes {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, #F6F2EB 0%, var(--cream) 45%);
}
.cake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.25rem 1.75rem;
}
/* No card chrome. The photograph is the card, the caption is a quiet row under it. */
.cake-card {
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.cake-shot {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.cake-shot img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
/* soft shadow pooled under the cake so it reads as floating rather than pasted */
.cake-shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(62, 47, 38, 0) 0%, rgba(62, 47, 38, 0.16) 100%);
  opacity: 0.7;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.cake-card:hover .cake-shot { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.cake-card:hover .cake-shot img { transform: scale(1.04); }
.cake-card:hover .cake-shot::after { opacity: 1; }
/* Caption row: name, then the descriptor on a single line that ellipses if it runs out of room. */
.cake-card figcaption { padding: 0.9rem 0.15rem 0; min-width: 0; }
.cake-name {
  display: block;
  font-weight: 600;
  font-stretch: 85%;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.cake-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(62, 47, 38, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Eighth tile: typographic, squares the grid off and points at the enquiry form */
.cake-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  background: var(--cream-lift);
  border: 1.5px solid rgba(169, 139, 111, 0.4);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  text-align: left;
}
.cake-cta-title { font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: -0.02em; }
.cake-cta-line { font-size: 0.92rem; color: rgba(62, 47, 38, 0.7); }
.cake-cta .btn { margin-top: 0.7rem; padding: 0.7rem 1.35rem; font-size: 0.88rem; }

/* staggered scroll reveal across the grid */
.cake-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.cake-grid .reveal:nth-child(2) { transition-delay: 70ms; }
.cake-grid .reveal:nth-child(3) { transition-delay: 140ms; }
.cake-grid .reveal:nth-child(4) { transition-delay: 210ms; }
.cake-grid .reveal:nth-child(5) { transition-delay: 0ms; }
.cake-grid .reveal:nth-child(6) { transition-delay: 70ms; }
.cake-grid .reveal:nth-child(7) { transition-delay: 140ms; }
.cake-grid .reveal:nth-child(8) { transition-delay: 210ms; }

/* Offerings */
.offerings {
  background: linear-gradient(180deg, #DFCFBC 0%, var(--beige) 100%);
  padding: var(--section-pad) 0;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.offer-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.offer-shot {
  display: block;
  position: relative;
  overflow: hidden;
}
.offer-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.6s var(--ease);
}
/* the same pooled shadow the cake shots use, so the two grids feel related */
.offer-shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(62, 47, 38, 0) 0%, rgba(62, 47, 38, 0.18) 100%);
  opacity: 0.7;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.offer-body { padding: 1.4rem 1.5rem 1.7rem; }
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.offer-card:hover .offer-shot img { transform: scale(1.04); }
.offer-card:hover .offer-shot::after { opacity: 1; }
.offer-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.offer-card p { font-size: 0.94rem; line-height: 1.55; color: rgba(62, 47, 38, 0.78); }
.offer-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.offer-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.offer-grid .reveal:nth-child(4) { transition-delay: 240ms; }

/* Full bleed image band between the menu and the reviews */
.band {
  position: relative;
  height: 40vh;
  min-height: 260px;
  max-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Sits on the street and the lid, not the middle of the cup, so the band reads
     as a scene rather than a wall of green */
  object-position: center 14%;
}
/* Dark scrim so the cream line always clears contrast over the photograph */
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 85% at 50% 50%, rgba(28, 20, 15, 0.5) 0%, rgba(28, 20, 15, 0) 72%),
    linear-gradient(180deg, rgba(40, 30, 24, 0.58) 0%, rgba(40, 30, 24, 0.7) 100%);
  pointer-events: none;
}
.band-line {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-inline: 1.25rem;
  text-align: center;
  color: var(--cream);
  font-weight: 600;
  font-stretch: 75%;
  font-size: clamp(2.15rem, 6.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* Reviews */
.reviews {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--cream) 0%, #F6F2EB 100%);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.review-card .stars { margin-bottom: 0.9rem; font-size: 1.05rem; }
.review-card p { font-size: 1.02rem; }
.review-card footer {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--tan);
  font-weight: 600;
  font-stretch: 90%;
}
.review-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.review-grid .reveal:nth-child(3) { transition-delay: 180ms; }
.stars { color: var(--orange); letter-spacing: 0.12em; }
.reviews-more { margin-top: 1.9rem; text-align: center; font-size: 0.95rem; }
.reviews-more a {
  color: rgba(62, 47, 38, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 47, 38, 0.25);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.reviews-more a:hover { color: var(--orange-deep); border-bottom-color: var(--orange); }

/* Visit */
.visit {
  background: linear-gradient(180deg, var(--espresso) 0%, #372A21 100%);
  color: var(--cream);
  padding: var(--section-pad) 0;
}
.visit .eyebrow { color: var(--orange); }
.visit-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.visit-block { margin-bottom: 2rem; }
.visit-block:last-child { margin-bottom: 0; }
.visit-block h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tan);
  margin-bottom: 0.6rem;
}
.visit-block a { color: var(--cream); }
.visit-block a:hover { color: var(--orange); }
.visit-phone { font-size: 1.4rem; font-weight: 600; font-stretch: 85%; }
.visit-phone a { text-decoration: none; }
.btn-directions { margin-top: 1.25rem; }
.btn-directions:hover { color: #fff; }
.hours-list { list-style: none; max-width: 340px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.35rem;
  border-bottom: 1px solid rgba(241, 236, 228, 0.12);
}
.hours-list li:last-child { border-bottom: none; }
.social-links { display: flex; gap: 1.35rem; }

/* Catering card and enquiry form */
.catering-card {
  background: var(--cream-lift);
  color: var(--espresso);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-lift);
}
.catering-title { font-size: clamp(1.45rem, 2.9vw, 1.85rem); letter-spacing: -0.025em; }
.catering-lead {
  margin-top: 0.5rem;
  color: rgba(62, 47, 38, 0.72);
  font-size: 0.94rem;
  max-width: 46ch;
}
.enquiry-form { margin-top: 1.35rem; }
.field { margin-bottom: 0.7rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
/* Event date, headcount and what you need share one row on desktop */
.field-row-3 { grid-template-columns: 1fr 0.7fr 1.2fr; }
.field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  font-stretch: 92%;
  letter-spacing: 0.01em;
  /* quiet, but still 5.1:1 on the card so it reads as a label not a whisper */
  color: rgba(62, 47, 38, 0.72);
  margin-bottom: 0.28rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--espresso);
  /* quiet cream on cream, no hard border. The card carries the edge, not the field. */
  background: rgba(62, 47, 38, 0.055);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  min-height: 42px;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; padding-block: 0.6rem; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--tan) 50%), linear-gradient(135deg, var(--tan) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.1rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { background: rgba(62, 47, 38, 0.085); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224, 122, 63, 0.22);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B3462F; }
.field-note {
  font-size: 0.8rem;
  color: rgba(62, 47, 38, 0.72);
  margin: -0.15rem 0 0.7rem;
}
/* honeypot, off screen but still focusable by bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Submit sits inline with the reply note on desktop, stacks under it on mobile */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}
.btn-submit { flex: 0 0 auto; padding: 0.7rem 1.5rem; font-size: 0.88rem; text-align: center; }
.btn-submit[disabled] { opacity: 0.75; cursor: progress; transform: none; }
.btn-submit[disabled]::before { transform: scaleX(0); }
.spinner {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.55em;
  vertical-align: -0.1em;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-error {
  background: rgba(179, 70, 47, 0.1);
  border: 1px solid rgba(179, 70, 47, 0.3);
  color: #8E3421;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  margin: 0.2rem 0 0.1rem;
}
.form-error a { color: inherit; }
.form-fineprint {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(62, 47, 38, 0.72);
}
.form-success { animation: softRise 500ms var(--ease) both; }
.form-success-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  font-stretch: 80%;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.form-success p:last-child { color: rgba(62, 47, 38, 0.75); }

/* Footer */
.footer {
  background: var(--beige);
  color: rgba(62, 47, 38, 0.8);
  padding: 3.25rem 0;
  font-size: 0.95rem;
  border-top: 1px solid rgba(62, 47, 38, 0.1);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-logo { width: 52px; height: 52px; flex-shrink: 0; }
.footer-name { font-weight: 600; font-stretch: 85%; color: var(--espresso); font-size: 1.05rem; }
.footer a { color: var(--espresso); }
.footer a:hover { color: var(--orange-deep); }
.footer-credit { font-size: 0.85rem; }

/* Mobile action bar. Phone only, hidden by default so nothing shows on desktop. */
.callbar { display: none; }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), letter-spacing 0.7s var(--ease);
}
.js .reveal.reveal-head { letter-spacing: 0.005em; }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal.reveal-head.in-view { letter-spacing: -0.028em; }

/* Responsive */

/* Phone only sticky action bar. Two equal targets, walk in on the left, catering on the right. */
@media (max-width: 767px) {
  .callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--espresso-deep);
    border-top: 1px solid rgba(241, 236, 228, 0.14);
    padding: 0.6rem 0.85rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(30, 21, 15, 0.28);
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  /* Pulled out of the way while the enquiry form is on screen */
  .callbar.is-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }
  .callbar-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0.5rem;
    font-size: 0.95rem;
  }
  .callbar-btn:hover { transform: none; }
  /* Keep the footer clear of the bar */
  body { padding-bottom: 4.5rem; }
}

@media (max-width: 940px) {
  .visit-grid { grid-template-columns: 1fr; }
  .catering-card { margin-top: 0.5rem; }
}

/* Below four across the offerings would leave a lone orphan card, so pair them up */
@media (max-width: 1026px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .story-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-copy { max-width: none; }
  .story-figure { max-width: 340px; margin-inline: 0; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; gap: 0.75rem; }
  .nav-name { font-size: 0.98rem; }
  .cake-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 1.4rem 1rem; }
  .cake-card figcaption { padding: 0.7rem 0.1rem 0; }
  .cake-name { font-size: 0.93rem; }
  .cake-note { font-size: 0.75rem; margin-top: 0.15rem; }
  .cake-cta { padding: 1.15rem 1rem 1.3rem; gap: 0.45rem; }
  .cake-cta .btn { width: 100%; text-align: center; padding: 0.7rem 0.5rem; font-size: 0.8rem; }
  .story-figure { max-width: 300px; padding: 0 0.85rem 0.85rem 0; }
  .story-figure::after { inset: 0.85rem 0 0 0.85rem; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-body { padding: 1.15rem 1.25rem 1.45rem; }
  .field-row,
  .field-row-3 { grid-template-columns: 1fr; gap: 0; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; gap: 0.75rem; }
  /* comfortable touch targets on a phone, so the compaction stays desktop only */
  .form-actions .btn-submit { width: 100%; padding-block: 0.95rem; }
  .form-fineprint { text-align: center; }
  .field input,
  .field select { min-height: 46px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; letter-spacing: normal; }
  .js .reveal.reveal-head { letter-spacing: -0.028em; }
  .btn:hover, .offer-card:hover, .review-card:hover { transform: none; }
  .cake-card:hover .cake-shot { transform: none; }
  .offer-card:hover .offer-shot img { transform: none; }
  .nav-links a::after { transition: none; }
  .btn::before { display: none; }
  .btn-primary:hover { background: var(--orange-deep); }
  .ticker-track { animation: none; transform: none; }
  .steam { display: none; }
  .spinner { border-top-color: rgba(255, 255, 255, 0.45); }
}
