/* ============================================================
   JO'S KILN — STYLES
   Tokens first; seasonal accents flip on <html data-season="…">
   (set automatically by js/main.js — nobody edits this by hand)
   ============================================================ */

:root {
  /* palette */
  --bg:        #f6efe3;
  --bg-alt:    #efe5d3;
  --card:      #fdf8f0;
  --ink:       #3a2f28;
  --ink-soft:  #6d5c50;
  --accent:    #b65332;
  --accent-dk: #9a4527;
  --blush:     #e8c3ae;
  --blush-bg:  #eec9b6;
  --dark:      #33261c;
  --dark-ink:  #fff8ef;
  --line:      #e3d2ba;

  /* badges */
  --ok-bg: #dfe8d9;  --ok-fg: #3d5c3a;
  --nf-bg: #f3d9c4;  --nf-fg: #8a4a22;
  --wl-bg: #e8e1d5;  --wl-fg: #6d5c50;

  /* type */
  --serif: 'Young Serif', Georgia, serif;
  --sans:  'Nunito Sans', -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --shadow: 0 6px 24px rgba(58,47,40,.08);
  --maxw: 1120px;
}

/* seasonal accent — flipped by date in main.js, Jo never touches it */
html[data-season="autumn"]  { --accent:#a8542c; --accent-dk:#8d4423; }
html[data-season="winter"]  { --accent:#7d5ba6; --accent-dk:#68498d; }
html[data-season="spring"]  { --accent:#5c7d4f; --accent-dk:#4b6840; }
html[data-season="summer"]  { --accent:#b65332; --accent-dk:#9a4527; }

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 18px;               /* accessibility floor */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: .5rem; }
h3 { font-size: 1.25rem; }

p  { margin-bottom: 1rem; }
a  { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt   { background: var(--bg-alt); }
.section--blush { background: var(--blush-bg); }
.kicker {
  font-size: .82rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.lead { max-width: 560px; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--sans); font-size: 1rem; font-weight: 800;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff8ef; }
.btn--primary:hover { background: var(--accent-dk); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--ink-soft);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--card); color: var(--ink); border-color: var(--line); }

/* WhatsApp button — the one way to reach Jo directly */
.btn--wa { background: #128c4a; color: #fff; gap: 10px; }
.btn--wa:hover { background: #0d6f3a; }
.btn--wa .wa-ic { width: 20px; height: 20px; flex: none; }

/* kiln-glow: a slow ember pulse on the primary CTA */
.btn--glow { animation: kilnGlow 4.5s ease-in-out infinite; }
@keyframes kilnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182,83,50,.0); }
  50%      { box-shadow: 0 0 22px 4px rgba(182,83,50,.38); }
}
@media (prefers-reduced-motion: reduce) { .btn--glow { animation: none; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,239,227,.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px; min-height: 80px;
}
.site-header .btn { min-height: 44px; padding: 10px 22px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Josefin Sans', var(--sans); font-weight: 300; letter-spacing: .01em;
  font-size: 1.8rem; color: var(--ink);
  text-decoration: none; margin-right: auto; white-space: nowrap;
  padding-top: 2px; /* Josefin sits high on its line */
}
.brand svg { width: 48px; height: 48px; flex: none; }
.nav-desktop { display: flex; gap: 26px; align-items: center; }
.nav-desktop a {
  position: relative; white-space: nowrap;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 8px 2px;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--accent); }
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .nav-desktop a::after { transition: none; } }

/* mobile controls */
.icon-btn {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }

/* full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--dark);
  color: var(--dark-ink); padding: 22px;
  display: none; flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top .brand { color: var(--dark-ink); }
.mobile-menu nav { margin-top: 28px; flex: 1; }
.mobile-menu nav a {
  display: block; padding: 16px 4px; font-family: var(--serif);
  font-size: 1.6rem; color: var(--dark-ink); text-decoration: none;
  border-bottom: 1px solid rgba(255,248,239,.14);
}
.mobile-menu nav a[aria-current="page"] { color: var(--blush); }
.mobile-menu__actions { display: grid; gap: 12px; padding-bottom: 10px; }
.mobile-menu__hours {
  text-align: center; font-size: .85rem; color: rgba(255,248,239,.7); padding-top: 10px;
}

/* sticky mobile action bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246,239,227,.96); border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; min-height: 52px; }

/* nav collapses to the menu button well before it can crowd the header */
@media (max-width: 1020px) {
  .nav-desktop { display: none; }
  .icon-btn { display: inline-flex; }
}
/* phones: header keeps just brand + menu; actions live in the bottom bar */
@media (max-width: 640px) {
  .site-header .btn { display: none; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 84px; }   /* room for the bar */
}

/* ---------- hero ---------- */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 520px; display: flex; align-items: flex-end;
  margin: 26px auto 0; max-width: calc(var(--maxw) - 40px);
  box-shadow: var(--shadow);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.6s ease;
}
.hero__slides img.is-active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,28,22,.10) 0%, rgba(38,28,22,.28) 45%, rgba(38,28,22,.72) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; color: #fff8ef; padding: 44px; max-width: 620px; }
.hero__content h1 { color: #fff8ef; margin-bottom: .6rem; }
.hero__content .glaze { position: relative; display: inline-block; }
.hero__content .glaze::after {
  content: ""; position: absolute; left: 0; bottom: -8px; height: 4px; width: 100%;
  background: var(--blush); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; animation: glazeDraw 1.4s .5s ease forwards;
}
@keyframes glazeDraw { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__content .glaze::after { animation: none; transform: scaleX(1); }
}
.hero__content p { max-width: 460px; text-shadow: 0 1px 8px rgba(38,28,22,.5); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero__cta .btn--ghost { color: #fff8ef; border-color: rgba(255,248,239,.75); }
.hero__controls {
  position: absolute; right: 20px; bottom: 20px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
}
.hero__dots { display: flex; gap: 6px; }
.hero__dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,248,239,.45); }
.hero__dots span.is-active { background: #fff8ef; }
.hero__pause {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(38,28,22,.55); color: #fff8ef; font-weight: 700; font-size: .85rem;
}
.hero__badge {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  background: var(--accent); color: #fff8ef; font-weight: 800; font-size: .85rem;
  padding: 8px 16px; border-radius: 999px; display: none;
}
html[data-season] .hero__badge.has-strap { display: inline-block; }
@media (max-width: 640px) {
  .hero { min-height: 480px; margin: 14px 14px 0; }
  .hero__content { padding: 24px 24px 68px; }
}

/* ---------- generic cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}

/* workshop card */
.wcard__media { height: 210px; background: var(--bg-alt); }
.wcard__media img { width: 100%; height: 100%; object-fit: cover; }
.wcard__media--icon { display: flex; align-items: center; justify-content: center; }
.wcard__media--icon svg { width: 84px; height: 84px; color: var(--accent); }
.wcard__body { padding: 18px 20px 20px; }
.badge {
  display: inline-block; font-size: .8rem; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge--nf { background: var(--nf-bg); color: var(--nf-fg); }
.badge--wl { background: var(--wl-bg); color: var(--wl-fg); }
.wcard__when { color: var(--ink-soft); font-size: .95rem; margin: 4px 0 12px; }
.wcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wcard__price { font-weight: 800; font-size: 1.05rem; }

/* photo grid with captions */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }
.pgrid figure { border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.pgrid img { width: 100%; height: 230px; object-fit: cover; }
.pgrid figcaption { padding: 10px 14px; font-size: .9rem; color: var(--ink-soft); }

/* auto-note (labels a section fed by Instagram/Baluu) */
.auto-note {
  display: inline-block; margin-top: 14px; font-size: .8rem; color: var(--ink-soft);
  background: var(--bg-alt); border: 1px dashed var(--line);
  padding: 5px 12px; border-radius: 8px;
}

/* ---------- accordion ---------- */
.accordion { display: grid; gap: 12px; max-width: 720px; }
.acc__item { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 20px; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 800; color: var(--ink); text-align: left;
  min-height: 56px;
}
.acc__icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #efe4d2; color: var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: background .2s ease;
}
.acc__item[data-open="true"] .acc__icon { background: var(--blush); }
.acc__panel { display: none; padding: 0 20px 18px; color: var(--ink-soft); }
.acc__item[data-open="true"] .acc__panel { display: block; }

/* ---------- booking embed ---------- */
.booking-shell {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px;
}
.booking-shell h2 { margin-bottom: 4px; }
#booking-embed iframe { width: 100%; min-height: 640px; border: 0; border-radius: 12px; }
.booking-fallback {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 40px 24px;
  text-align: center; color: var(--ink-soft); margin-top: 18px;
}
.booking-fallback .btn { margin: 6px; }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; cursor: pointer;
  min-height: 44px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff8ef; border-color: var(--ink); }
.chip--static { cursor: default; }

/* ---------- pricing blocks / tiers ---------- */
.tier { padding: 26px; }
.tier--featured { border: 2px solid var(--accent); }
.tier .from { font-family: var(--serif); font-size: 1.9rem; }
.tier .from small { font-size: .95rem; font-family: var(--sans); color: var(--ink-soft); }
.tier ul { list-style: none; margin-top: 12px; color: var(--ink-soft); }
.tier li { padding: 4px 0; }
.tier li::before { content: "· "; color: var(--accent); font-weight: 800; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.step__num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blush);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px;
}

/* ---------- practical strip ---------- */
.practical { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
@media (max-width: 480px) { .practical { grid-template-columns: 1fr; } }

/* home: live-calendar CTA card */
.booking-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 28px 32px; flex-wrap: wrap;
}
.booking-cta h3 { font-size: 1.45rem; margin-bottom: 6px; }
.booking-cta p { margin: 0; color: var(--ink-soft); max-width: 600px; }
.practical div { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.practical svg { flex: none; width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }

/* ---------- testimonials ---------- */
.quote { padding: 26px 28px; }
.quote blockquote { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 10px; }
.quote cite { color: var(--accent); font-style: normal; font-weight: 800; font-size: .92rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; max-width: 480px; }
.form label { font-weight: 800; font-size: .95rem; }
.form input, .form textarea {
  width: 100%; margin-top: 6px; padding: 13px 16px; font: inherit; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--blush); border-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
.form__status { font-weight: 700; }
.form__status[data-state="ok"] { color: var(--ok-fg); }
.form__status[data-state="err"] { color: var(--accent-dk); }

/* ---------- map ---------- */
.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.map-card iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(.75) contrast(.95); }

/* ---------- info cards ---------- */
.info-card { padding: 22px 24px; }
.info-card h3 { color: var(--accent); font-family: var(--sans); font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.info-card p { margin-bottom: .4rem; color: var(--ink-soft); }

/* noticeboard */
.notice { padding: 24px 26px; }
.notice article { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.notice article:last-child { border-bottom: none; }
.notice strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-ink); margin-top: 64px; }
.site-footer .wrap { padding: 54px 20px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--dark-ink); }
.site-footer a { color: var(--dark-ink); }
.footer-tag {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.3; color: var(--dark-ink); margin-bottom: 20px; max-width: 420px;
}
.footer-wa { margin-bottom: 22px; }
.footer-meta { font-size: .95rem; color: rgba(255,248,239,.8); line-height: 1.9; }
.newsletter { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.newsletter input {
  flex: 1; min-width: 200px; padding: 12px 16px; font: inherit;
  background: rgba(255,248,239,.1); color: var(--dark-ink);
  border: 1px solid rgba(255,248,239,.3); border-radius: 999px;
}
.newsletter input::placeholder { color: rgba(255,248,239,.55); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,248,239,.18); margin-top: 36px; padding-top: 18px;
  font-size: .85rem; color: rgba(255,248,239,.65);
}
.footer-bottom a { color: rgba(255,248,239,.65); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- page hero (inner pages) ---------- */
.page-head { padding: 56px 0 8px; }
.page-head .lead { margin-top: 8px; }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 420px; object-fit: cover; }

/* welcome portrait card */
.portrait-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px; min-height: 300px; color: var(--ink-soft); font-size: .9rem; gap: 14px;
}
.portrait-card svg { width: 90px; height: 90px; color: var(--accent); }
.portrait-card img { border-radius: 12px; width: 100%; height: 300px; object-fit: cover; }

/* utility */
.center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 22px; } .mt-3 { margin-top: 40px; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff8ef; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- logo flame: gentle flicker always, burns on hover ---------- */
.flame {
  transform-origin: 24px 37px;
  animation: flameFlick 2.4s ease-in-out infinite;
  transition: stroke .25s ease;
}
@keyframes flameFlick {
  0%, 100% { transform: scale(1) rotate(0); }
  25%      { transform: scaleY(1.07) scaleX(.97) rotate(-2deg); }
  50%      { transform: scaleY(.95); }
  75%      { transform: scaleY(1.05) scaleX(.98) rotate(2deg); }
}
.brand:hover .flame, .brand:focus-visible .flame {
  stroke: var(--accent);
  animation: flameBurn .65s ease-in-out infinite;
}
@keyframes flameBurn {
  0%, 100% { transform: scale(1) rotate(0); }
  30%      { transform: scaleY(1.18) scaleX(.93) rotate(-3.5deg); }
  55%      { transform: scaleY(.9) scaleX(1.06); }
  80%      { transform: scaleY(1.14) scaleX(.95) rotate(3.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flame, .brand:hover .flame { animation: none; }
}
