/* Cafe theme — warm, artisanal, editorial. Centred serif masthead, textured
   paper, eyebrow labels, alternating bands. Consumes design tokens; web-safe
   serif/sans stacks (no web fonts). Loaded after static/css/site.css. */

.theme-cafe {
  --font-serif: var(--font-heading), "Hoefler Text", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: var(--font-body), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space: clamp(3rem, 7vw, 6rem);
  --rule: 1px solid var(--color-border);

  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  /* Layered warm paper: a soft vignette over two faint tints. */
  background-color: var(--color-bg);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(60% 50% at 90% 110%, rgba(154, 52, 18, 0.05), transparent 70%);
  -webkit-font-smoothing: antialiased;
}

.theme-cafe .container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.theme-cafe h1, .theme-cafe h2, .theme-cafe h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
.theme-cafe h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 0.4em; }
.theme-cafe h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 0 0 0.6em; }
.theme-cafe p { margin: 0 0 1rem; }
/* :not(.btn) so a button's own contrast colour wins — this rule would otherwise
   out-specify .btn and paint solid-button text in the primary colour (invisible). */
.theme-cafe a:not(.btn) { color: var(--color-primary); text-underline-offset: 3px; }

.eyebrow {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-accent);
  margin: 0 0 1rem;
}

.btn {
  display: inline-block; text-decoration: none; cursor: pointer; font-weight: 600;
  background: var(--color-primary); color: var(--color-primary-contrast);
  padding: 0.85rem 1.7rem; border-radius: var(--radius); border: 1px solid var(--color-primary);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(154, 52, 18, 0.22); }
.btn--ghost { background: transparent; color: var(--color-primary); }

/* --- Top strip + masthead ------------------------------------------------- */

.cafe-strip { background: var(--color-primary); color: var(--color-primary-contrast); font-size: 0.85rem; }
.cafe-strip__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; }
.cafe-strip__hours { letter-spacing: 0.03em; }
.cafe-strip a { color: inherit; text-decoration: none; }
.cafe-strip a:hover { text-decoration: underline; }

.cafe-header { position: sticky; top: 0; z-index: 20; background: var(--color-surface); background: color-mix(in srgb, var(--color-surface) 90%, transparent); backdrop-filter: blur(8px); border-bottom: var(--rule); }
.cafe-header__inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding-block: 1.1rem; text-align: center; }
.cafe-brand { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: 0.01em; color: var(--color-text); text-decoration: none; }
.cafe-brand img { max-height: 3rem; width: auto; }

.cafe-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.cafe-nav a {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600;
  text-decoration: none; color: var(--color-text); padding-bottom: 3px;
  border-bottom: 1px solid transparent; transition: border-color 0.18s ease, color 0.18s ease;
}
.cafe-nav a:hover, .cafe-nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: currentColor; }

/* --- Hero ----------------------------------------------------------------- */

.cafe-hero { position: relative; }
.cafe-hero--image { min-height: min(78vh, 640px); display: grid; }
.cafe-hero--image .cafe-hero__media { grid-area: 1 / 1; }
.cafe-hero--image .cafe-hero__inner { grid-area: 1 / 1; }
.cafe-hero__media { position: relative; }
.cafe-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cafe-hero--image .cafe-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43, 32, 23, 0.15) 0%, rgba(43, 32, 23, 0.62) 78%, rgba(43, 32, 23, 0.78) 100%);
}
.cafe-hero__inner { position: relative; display: flex; align-items: flex-end; padding-block: var(--space); }
.cafe-hero:not(.cafe-hero--image) .cafe-hero__inner { padding-block: calc(var(--space) * 1.2); text-align: center; justify-content: center; }
.cafe-hero__copy { max-width: 44rem; }
.cafe-hero--image .cafe-hero__copy { color: #fff8f0; }
.cafe-hero--image .cafe-hero__eyebrow { color: #f4c896; }
.cafe-hero--image .cafe-hero__title { color: #fff; }
.cafe-hero__title { font-size: clamp(2.6rem, 7vw, 4.5rem); margin: 0 0 0.5rem; }
.cafe-hero__lead { font-size: 1.25rem; line-height: 1.5; max-width: 36rem; }
.cafe-hero--image .cafe-hero__lead { color: rgba(255, 248, 240, 0.92); }
.cafe-hero__cta { margin-top: 1.25rem; }

.cafe-hero__eyebrow, .cafe-hero__title, .cafe-hero__lead, .cafe-hero__cta { animation: cafe-rise 0.7s both; }
.cafe-hero__title { animation-delay: 0.08s; }
.cafe-hero__lead { animation-delay: 0.16s; }
.cafe-hero__cta { animation-delay: 0.24s; }
@keyframes cafe-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --- Section rhythm (base section markup, cafe-styled) -------------------- */

.section { padding-block: var(--space); }
.section--text, .section--faq, .section--hours { background: var(--color-surface); border-block: var(--rule); }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 0; }

.image-text__grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 48rem) {
  .image-text__grid { grid-template-columns: 1fr 1fr; }
  .image-text--right .image-text__media { order: 2; }
}
.image-text__media { margin: 0; }
.image-text__media img { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(43, 32, 23, 0.12); }

.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.gallery-grid__item a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-grid__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid__item a:hover img { transform: scale(1.05); }

.menu-list { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.menu-item { padding-block: 1rem; border-bottom: var(--rule); }
.menu-item__head { display: flex; align-items: baseline; gap: 0.5rem; }
.menu-item__name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; }
.menu-item__head::after { content: ""; flex: 1; border-bottom: 1px dotted var(--color-border); transform: translateY(-4px); }
.menu-item__price { color: var(--color-primary); font-weight: 600; }
.menu-item__desc { color: var(--color-muted); margin: 0.2rem 0 0; }

.faq-list { max-width: 44rem; }
.faq-item { border-bottom: var(--rule); padding-block: 0.5rem; }
.faq-item summary { cursor: pointer; font-family: var(--font-serif); font-size: 1.15rem; padding: 0.6rem 0; }

.open-badge { display: inline-block; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.8rem; border-radius: 999px; }
.open-badge--open { background: #dcfce7; color: #166534; }
.open-badge--closed { background: #efe7da; color: #7c6a55; }
.hours-list { display: grid; grid-template-columns: auto auto; gap: 0.25rem 1.75rem; justify-content: start; margin: 1rem 0 0; }
.hours-list dt { font-weight: 600; }
.hours-list dd { margin: 0; color: var(--color-muted); }

.section--cta { background: var(--color-primary); color: var(--color-primary-contrast); text-align: center; }
.section--cta h2 { color: var(--color-primary-contrast); }
.section--cta .btn { background: var(--color-primary-contrast); color: var(--color-primary); border-color: var(--color-primary-contrast); }
.cta__inner { max-width: 40rem; margin-inline: auto; }

.section--map address { font-style: normal; color: var(--color-muted); margin: 0 0 1rem; }
.section--contact .container { max-width: 46rem; }

/* optional lead paragraph under a section heading (team, steps). */
.section__lead { max-width: 42rem; color: var(--color-muted); margin: -0.25rem 0 1.5rem; }

/* team: warm rounded portraits with a soft shadow. */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.team-card { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(43, 32, 23, 0.10); }
.team-card__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.team-card__body { padding: 1rem 1.15rem 1.25rem; }
.team-card__name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; margin: 0; }
.team-card__role { color: var(--color-primary); font-weight: 600; font-size: 0.85rem; margin: 0.2rem 0 0; }
.team-card__bio { color: var(--color-muted); font-size: 0.95rem; margin: 0.5rem 0 0; }

/* steps: numbered cards on the warm surface. */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.step { display: flex; gap: 1rem; align-items: flex-start; background: var(--color-surface); border: var(--rule); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.step__num { flex: none; font-family: var(--font-serif); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--color-accent); }
.step__title { font-family: var(--font-serif); font-size: 1.15rem; margin: 0 0 0.3rem; }
.step__desc { color: var(--color-muted); margin: 0; }

/* --- Footer --------------------------------------------------------------- */

.cafe-footer { margin-top: var(--space); background: var(--color-surface); border-top: 2px solid var(--color-primary); }
.cafe-footer__rule { text-align: center; color: var(--color-accent); font-size: 1.3rem; margin-top: -0.9rem; }
.cafe-footer__rule::before { content: ""; }
.cafe-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); padding-block: 2.5rem 1.5rem; }
.cafe-footer__name { font-family: var(--font-serif); font-size: 1.3rem; margin: 0 0 0.5rem; }
.cafe-footer address { font-style: normal; color: var(--color-muted); }
.cafe-footer__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-accent); margin: 0 0 0.6rem; }
.cafe-footer a { color: var(--color-text); }
.cafe-footer__legal { border-top: var(--rule); padding-block: 1.2rem; color: var(--color-muted); font-size: 0.85rem; text-align: center; }

/* --- Mobile nav ----------------------------------------------------------- */

.cafe-nav__toggle {
  font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.4rem 0.9rem; cursor: pointer; color: var(--color-text);
}
@media (max-width: 40rem) {
  .cafe-header__inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .cafe-nav__toggle[hidden] { display: none; }
  .cafe-nav { display: none; flex-basis: 100%; }
  .cafe-nav.is-open { display: block; }
  .cafe-nav ul { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding-top: 0.5rem; }
}
