/* ===========================================================
   Beads Art — stylesheet
   Palette: pale blue, cool ink, sky accent
   =========================================================== */

:root {
  --cream:      #F3F9FD;   /* page background — palest blue */
  --cream-deep: #E4F0F9;   /* alternating section band */
  --paper:      #FFFFFF;
  --ink:        #24313B;
  --ink-soft:   #5F7383;
  --sky:        #6BA3CE;   /* accent */
  --sky-pale:   #CFE4F3;
  --gold:       #C2A15E;
  --line:       #D3E3F0;

  --radius:  14px;
  --radius-l: 22px;
  --shadow:    0 1px 2px rgba(36,49,59,.04), 0 8px 24px rgba(36,49,59,.06);
  --shadow-lg: 0 2px 4px rgba(36,49,59,.05), 0 18px 44px rgba(36,49,59,.10);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
           "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1em; }
em { font-style: italic; color: var(--sky); }
a  { color: inherit; }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: .9em;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1.1rem, 4vw, 2.6rem);
  background: rgba(243,249,253,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }

.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background:
    radial-gradient(circle at 33% 30%, #fff 0%, #fff 12%, transparent 42%),
    linear-gradient(140deg, var(--sky-pale), var(--sky) 62%, #4E86B0);
  box-shadow: inset 0 -2px 5px rgba(0,0,0,.10);
  flex: none;
}

.brand-text { font-family: var(--serif); font-size: 1.32rem; letter-spacing: -.01em; }
.brand-text em { font-style: italic; margin-left: .12em; }

.site-nav { display: flex; gap: 1.7rem; margin-left: auto; }
.site-nav a {
  text-decoration: none;
  font-size: .93rem;
  color: var(--ink-soft);
  padding: .2rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color .18s, border-color .18s;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--sky); }

/* language switch */
.lang-toggle {
  margin-left: auto;
  padding: .34rem .8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  font: inherit; font-size: .82rem; font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .16s, color .16s;
}
.lang-toggle:hover { border-color: var(--sky); color: var(--ink); }
.lang-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: .4rem; gap: 5px; flex-direction: column;
}
.nav-toggle span { display: block; width: 22px; height: 1.6px; background: var(--ink); transition: .22s; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .78rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font: inherit; font-size: .94rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #33434F; box-shadow: var(--shadow); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

.btn-small { padding: .45rem 1rem; font-size: .84rem; background: var(--cream-deep); color: var(--ink); }
.btn-small:hover { background: var(--sky); color: #fff; }

.btn-block { width: 100%; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2rem) clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.lede { font-size: 1.09rem; color: var(--ink-soft); max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.8rem 0 2.4rem; }

.hero-facts {
  list-style: none; margin: 0; padding: 1.5rem 0 0;
  display: flex; gap: clamp(1.4rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.hero-facts span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.hero-art { position: relative; display: flex; justify-content: center; }

.hero-canvas {
  width: min(100%, 380px);
  border-radius: var(--radius-l);
  background: var(--paper);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}

.pearl {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0%, #fff 14%, transparent 46%),
    linear-gradient(140deg, #fff, var(--sky-pale) 55%, #A9CCE5);
  box-shadow: 0 6px 16px rgba(36,49,59,.14), inset 0 -3px 7px rgba(0,0,0,.08);
}
.pearl-1 { width: 54px; height: 54px; top: -14px;  right: 6%;  }
.pearl-2 { width: 30px; height: 30px; bottom: 12%; left: -6px; }
.pearl-3 { width: 18px; height: 18px; bottom: -6px; right: 24%; }

/* ── Sections ───────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.2rem, 8vw, 5.5rem) clamp(1.1rem, 4vw, 2rem);
}
.section-alt {
  max-width: none;
  background: var(--cream-deep);
  border-block: 1px solid var(--line);
}
.section-alt > * { max-width: var(--maxw); margin-inline: auto; }

.section-head { max-width: 56ch; margin-bottom: 2.8rem; }
.section-sub { color: var(--ink-soft); }

.grid { display: grid; gap: 1.5rem; }
.products { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team     { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Product cards ──────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card .bead-canvas { padding: 1.5rem; background: var(--cream); border-bottom: 1px solid var(--line); }

.card-body { padding: 1.15rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: .93rem; flex: 1; }

/* what the piece actually is — coaster, card holder, something to hook on */
.form-tag {
  flex: none !important;
  margin: 0 0 .35em;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky) !important;
}

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
/* Size tier instead of a price — Beads Art quotes by item size */
.size-tag {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .3rem .75rem .3rem .55rem;
  border-radius: 100px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap;
}
/* dot scales with the tier, so size reads at a glance */
.size-tag::before {
  content: ""; border-radius: 50%; flex: none;
  background: var(--sky);
  width: 7px; height: 7px;
}
.size-tag[data-tier="middle"]::before { width: 10px; height: 10px; }
.size-tag[data-tier="big"]::before    { width: 13px; height: 13px; }
.size-tag[data-tier="xl"]::before     { width: 16px; height: 16px; }

/* ── Bead canvas (JS-rendered SVG, or a real photo) ── */
.bead-canvas svg { display: block; width: 100%; height: auto; }

/* photographed pieces: show the whole piece, never crop it */
.card .bead-canvas.is-photo { padding: 0; }
.bead-canvas.is-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--cream-deep);
}

/* ── Past work gallery ──────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.3rem;
}

.work { margin: 0; }

.work-frame {
  aspect-ratio: 1;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.work:hover .work-frame { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.work-frame img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;      /* pieces are taller than they are wide — never crop them */
  padding: .5rem;
}

/* placeholder while a piece is still to be photographed */
.work.is-missing .work-frame {
  border-style: dashed;
  background: var(--cream-deep);
  display: grid; place-items: center;
}
.work.is-missing .work-frame::after {
  content: attr(data-missing-label);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .75;
}

.work figcaption {
  margin-top: .7rem;
  font-size: .93rem;
  text-align: center;
}

/* ── Custom order ───────────────────────────────────── */
[hidden] { display: none !important; }

/* folded state: just the pitch and a button */
.custom-prompt { max-width: 46ch; }
.custom-prompt p { color: var(--ink-soft); }
.custom-prompt h2 { margin-bottom: .4em; }

.custom-close { margin-bottom: 1.6rem; background: var(--paper); }

.custom-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.steps { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 1.15rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps span {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  font-family: var(--serif); font-size: .95rem;
}
.steps strong { display: block; }
.steps p { margin: 0; font-size: .91rem; color: var(--ink-soft); }

.palette-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.palette-hint { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .7; }

.palette-demo { position: relative; }

/* 13 columns, so each row is one hue family — reads like a bead colour chart */
.swatches { display: grid; grid-template-columns: repeat(13, 1fr); gap: .26rem; }
.swatch {
  aspect-ratio: 1; border-radius: 50%;
  border: 0; padding: 0;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.14), 0 1px 3px rgba(0,0,0,.10);
  position: relative; cursor: pointer;
  transition: transform .15s;
}
.swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch::after {
  content: ""; position: absolute; top: 20%; left: 22%;
  width: 26%; height: 26%; border-radius: 50%;
  background: rgba(255,255,255,.75);
}
.swatch:hover { transform: scale(1.45); z-index: 2; }

/* a bead the customer has chosen */
.swatch.is-picked {
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.14), 0 0 0 2px var(--ink);
  transform: scale(1.12);
}
.swatch.is-picked:hover { transform: scale(1.45); }

/* ── The customer's picked colours ──────────────────────── */
.picked-hint { margin: .8rem 0 0; font-size: .82rem; color: var(--ink-soft); }

.picked {
  margin-top: .9rem;
  padding: .9rem 1rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.picked-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .6rem;
}
.picked-title { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.picked-title b { font-weight: 500; opacity: .8; }
.picked-clear {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: .8rem; color: var(--sky);
  text-decoration: underline; text-underline-offset: 2px;
}
.picked-clear:hover { color: var(--ink); }

.picked-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pick {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .3rem .25rem .45rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .8rem;
}
.pick-dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  box-shadow: inset 0 -1px 3px rgba(0,0,0,.22);
}
.pick-hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-soft); font-size: .74rem; }
.pick-remove {
  width: 18px; height: 18px; flex: none;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-soft);
  font-size: .95rem; line-height: 1; cursor: pointer;
}
.pick-remove:hover { background: var(--sky-pale); color: var(--ink); }

.picked-note { margin: .7rem 0 0; font-size: .78rem; color: var(--ink-soft); }

/* label that pops next to a bead, showing its name and code */
.swatch-tip {
  position: absolute; z-index: 5;
  transform: translate(-50%, calc(-100% - 9px));
  display: flex; align-items: center; gap: .45rem;
  padding: .38rem .6rem;
  background: var(--ink); color: var(--cream);
  border-radius: 100px;
  font-size: .82rem; line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.swatch-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.tip-dot {
  width: 13px; height: 13px; border-radius: 50%;
  box-shadow: inset 0 -1px 3px rgba(0,0,0,.25);
}
.tip-hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .85; }
.tip-copied {
  padding-left: .4rem; margin-left: .1rem;
  border-left: 1px solid rgba(255,255,255,.25);
  color: #9BD6A6;
}

/* ── Form ───────────────────────────────────────────── */
.order-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: var(--shadow);
}
.order-form h3 { margin-bottom: 1.2rem; }

.order-form label { display: block; margin-bottom: 1rem; }
.order-form label > span {
  display: block; margin-bottom: .35rem;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
}
.order-form label > span b { color: var(--sky); }

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: .68rem .85rem;
  font: inherit; font-size: .94rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.order-form textarea { resize: vertical; }
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(107,163,206,.20);
}
.order-form .invalid { border-color: #c2564f; box-shadow: 0 0 0 3px rgba(194,86,79,.14); }

/* ── Photo upload ───────────────────────────────────────── */
.field { margin-bottom: 1rem; }
.field-label {
  display: block; margin-bottom: .35rem;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
}

.dropzone {
  display: flex; flex-direction: column; align-items: center;
  gap: .15rem;
  padding: 1.35rem 1rem;
  text-align: center;
  background: var(--cream);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.dropzone:hover,
.dropzone:focus-visible { border-color: var(--sky); background: var(--paper); outline: none; }
.dropzone.dragging { border-color: var(--sky); background: var(--sky-pale); }
.dropzone.has-photos { padding: .85rem 1rem; }

/* little stack-of-photos mark */
.dz-icon {
  width: 26px; height: 20px; margin-bottom: .3rem;
  border: 1.5px solid var(--sky);
  border-radius: 4px;
  position: relative;
}
.dz-icon::before {
  content: ""; position: absolute; inset: auto 3px 3px 3px; height: 7px;
  border-radius: 2px 2px 0 0;
  background: var(--sky-pale);
  clip-path: polygon(0 100%, 32% 22%, 56% 100%, 74% 55%, 100% 100%);
}
.dz-icon::after {
  content: ""; position: absolute; top: 3px; right: 4px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--sky);
}

.dz-text { margin: 0; font-size: .9rem; }
.dz-text b { color: var(--sky); font-weight: 600; }
.dz-hint { margin: 0; font-size: .76rem; color: var(--ink-soft); }

.photo-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.photo-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .4rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.photo-item img {
  width: 44px; height: 44px; flex: none;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream-deep);
}
.photo-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.photo-name {
  font-size: .85rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.photo-size { font-size: .75rem; color: var(--ink-soft); }
.photo-remove {
  flex: none;
  width: 26px; height: 26px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-soft);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  transition: background .16s, color .16s;
}
.photo-remove:hover { background: var(--sky-pale); color: var(--ink); }

.photo-error { margin: .45rem 0 0; font-size: .8rem; color: #c2564f; }

.field-row { display: grid; grid-template-columns: 2.2fr 1fr; gap: 1rem; }
.field-row label { margin-bottom: 1rem; }

.form-note { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: .9rem 0 0; }
.form-status { margin: .7rem 0 0; font-size: .9rem; text-align: center; min-height: 1.3em; }
.form-status.ok  { color: #4b7a54; }
.form-status.err { color: #c2564f; }

/* ── Team ───────────────────────────────────────────── */
.member {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.8rem 1.5rem;
  text-align: center;
}
.member h3 { margin-bottom: .15em; }
.member p { color: var(--ink-soft); font-size: .93rem; }
.role {
  font-size: .76rem !important;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--sky) !important;
  margin-bottom: 1em;
}
.avatar {
  width: 74px; height: 74px; margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.9rem; color: #fff;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.85) 0%, transparent 40%),
    linear-gradient(140deg, var(--sky), #4E86B0);
  box-shadow: inset 0 -4px 10px rgba(0,0,0,.12);
}
.avatar::after { content: attr(data-initial); }

/* ── Contact ────────────────────────────────────────── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.contact-wrap p { color: var(--ink-soft); }
/* ── Opening hours ──────────────────────────────────────── */
.hours {
  margin-top: 1.8rem;
  padding: 1.15rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.hours-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: .5rem;
}
.hours-head h3 { margin: 0; font-size: 1.02rem; }

.shop-status {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .22rem .7rem;
  border-radius: 100px;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: .78rem; font-weight: 500;
  white-space: nowrap;
}
.shop-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-soft);
}
.shop-status.is-open { background: #E2F0E4; color: #3C6B46; }
.shop-status.is-open::before { background: #4E9160; }

.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .45rem 0;
  font-size: .92rem;
}
.hours-list li + li { border-top: 1px solid var(--line); }
.hours-list span { color: var(--ink-soft); }
.hours-list b { font-weight: 500; }
.hours-list .is-closed b { color: var(--ink-soft); }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .16s; }
.contact-list a:hover { border-bottom-color: var(--sky); }

/* ── Ratings ────────────────────────────────────────── */
.ratings-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.rating-summary { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.rating-average { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.rating-count { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.rating-empty { color: var(--ink-soft); }

.star { width: 20px; height: 20px; fill: var(--line); flex: none; }
.star.is-filled { fill: #E8B54B; }
.rating-stars, .review-stars { display: inline-flex; gap: .1rem; }

.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.1rem 1.25rem;
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.review-name { font-weight: 500; }
.review p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

.rating-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: var(--shadow);
}
.rating-form h3 { margin-bottom: 1.2rem; }
.rating-form label { display: block; margin-bottom: 1rem; }
.rating-form label > span {
  display: block; margin-bottom: .35rem;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
}
.rating-form input,
.rating-form textarea {
  width: 100%;
  padding: .68rem .85rem;
  font: inherit; font-size: .94rem; color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.rating-form textarea { resize: vertical; }
.rating-form input:focus,
.rating-form textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(107,163,206,.20);
}

.star-picker { display: flex; align-items: center; gap: .15rem; }
.star-picker .star { width: 30px; height: 30px; transition: transform .12s; }
.star-btn {
  background: none; border: 0; padding: .1rem; cursor: pointer;
  display: inline-flex; border-radius: 6px;
}
.star-btn:hover .star { transform: scale(1.12); }
.star-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.star-picker.invalid .star { fill: #E7B4B1; }

.star-label {
  margin-left: .6rem;
  font-size: .85rem; color: var(--ink-soft);
}

@media (max-width: 880px) {
  .ratings-wrap { grid-template-columns: 1fr; }
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2rem clamp(1.1rem, 4vw, 2rem);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: .87rem; color: var(--ink-soft);
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ── Reveal on scroll ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 880px) {
  .hero, .custom-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-canvas { max-width: 300px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: .4rem clamp(1.1rem, 4vw, 2.6rem) 1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem 0; font-size: 1rem; }
}

@media (max-width: 560px) {
  /* the size options are long — give the select the full row rather than clip it */
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
