/* =====================================================================
   Dream Quilt – Yael Sarig | shared styles
   Palette taken from the logo: watercolor sky blue + charcoal on white
   ===================================================================== */
:root {
  --sky: #7CC4EA;
  --sky-soft: #E8F5FC;
  --sky-mist: #F5FBFE;
  --sky-deep: #1F78AB;      /* buttons / links – AA contrast with white */
  --sky-deeper: #165E87;
  --ink: #474747;           /* logo charcoal */
  --ink-soft: #6B6B6B;
  --line: #DCE9F1;
  --paper: #FFFFFF;
  --ok: #2E7D4F;
  --ok-soft: #E6F4EC;
  --bad: #B23A32;
  --bad-soft: #FBE9E7;
  --warn-soft: #FFF6E0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(31, 120, 171, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Assistant', 'Heebo', Arial, sans-serif; font-size: 17px; line-height: 1.65;
}
h1, h2, h3, h4 { font-family: 'Varela Round', 'Assistant', sans-serif; font-weight: 400; color: var(--ink); margin: 0 0 .45em; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--sky-deep); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- demo banner ---------- */
.demo-banner { background: var(--warn-soft); color: #6A4B00; text-align: center; font-size: .9rem; padding: 6px 12px; border-bottom: 1px solid #F1DFAF; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 10px 20px; }
.nav .logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .98rem; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sky-deep); }
.nav-user { font-size: .9rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; padding: 4px 8px; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .nav-user { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav .logo img { height: 44px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 24px; border-radius: 999px;
  border: 2px solid var(--sky-deep); background: var(--sky-deep); color: #fff; font: 600 1rem 'Assistant', sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:hover { background: var(--sky-deeper); border-color: var(--sky-deeper); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--sky-deep); }
.btn.ghost:hover { background: var(--sky-soft); }
.btn.small { min-height: 38px; padding: 6px 16px; font-size: .92rem; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--sky-deep); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.tint { background: var(--sky-mist); }
.section-head { max-width: 680px; margin-bottom: 30px; }
.kicker { color: var(--sky-deep); font-weight: 700; font-size: .95rem; margin-bottom: 4px; letter-spacing: .02em; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--sky-mist), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-logo { max-width: 460px; width: 100%; margin-inline-start: auto; }
.hero p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 44ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { margin: 0 auto; max-width: 320px; order: -1; } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.c4 { grid-template-columns: repeat(3, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.c4, .grid.c3 { grid-template-columns: repeat(2, 1fr); gap: 12px; } .grid.c2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.soft { background: var(--sky-mist); }

.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 56px; }
.step-card::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; inset-inline-start: 20px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sky); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ---------- photo tiles (gallery, designed quilts, fabrics) ---------- */
.tile { position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: start; padding: 0; font: inherit; color: inherit; }
button.tile, .tile.clickable { cursor: pointer; transition: border-color .15s, transform .1s; }
button.tile:hover:not([disabled]) { border-color: var(--sky); }
.tile .img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--sky-soft); }
.tile .img.tall { aspect-ratio: 3/4; }
.tile .img.square { aspect-ratio: 1/1; }
.tile .meta { padding: 10px 12px 12px; }
.tile .name { font-weight: 700; }
.tile .sub { font-size: .88rem; color: var(--ink-soft); }
.tile.selected { border-color: var(--sky-deep); box-shadow: 0 0 0 3px var(--sky-soft); }
.tile.selected::after { content: "✓"; position: absolute; top: 8px; inset-inline-start: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-deep); color: #fff; display: grid; place-items: center; font-weight: 700; }
.tile[disabled], .tile.off { cursor: not-allowed; }
button.tile[disabled]:not(.selected):not(.off) { opacity: .45; }
.tile.off .img { filter: grayscale(.6); opacity: .55; }
.badge { position: absolute; top: 10px; inset-inline-end: 10px; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.badge.sold { background: var(--bad); color: #fff; }
.badge.reserved { background: #F3B23E; color: #4A3000; }
.badge.out { background: var(--ink); color: #fff; }

/* ---------- tabs & chips ---------- */
.tabs { display: inline-flex; background: var(--sky-soft); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 8px 20px; border-radius: 999px; font: 600 .98rem 'Assistant', sans-serif; color: var(--ink-soft); cursor: pointer; min-height: 40px; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 16px; font: 600 .92rem 'Assistant', sans-serif; cursor: pointer; min-height: 38px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- testimonials ---------- */
.quote { font-size: 1.05rem; }
.quote::before { content: "”"; font-family: Georgia, serif; font-size: 3rem; line-height: .6; color: var(--sky); display: block; margin-bottom: 8px; }
.quote .who { margin-top: 10px; font-weight: 700; font-size: .95rem; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky-deep); outline: none; box-shadow: 0 0 0 3px var(--sky-soft); }
.field .err { color: var(--bad); font-size: .88rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); }
.field.invalid .err { display: block; }
.code-input { letter-spacing: .5em; font-size: 1.4rem !important; text-align: center; direction: ltr; }
.notice { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 14px; font-size: .95rem; }
.notice.info { background: var(--sky-soft); }
.notice.ok { background: var(--ok-soft); color: #1C5434; }
.notice.bad { background: var(--bad-soft); color: #7A231D; }
.notice.warn { background: var(--warn-soft); color: #6A4B00; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; z-index: 100; font-weight: 600; box-shadow: var(--shadow); max-width: 92vw; text-align: center; }

/* ---------- footer ---------- */
footer.site { background: var(--sky-mist); border-top: 1px solid var(--line); padding: 36px 0; font-size: .95rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer.site img { height: 46px; width: auto; }
footer.site .contact a { margin-inline-end: 16px; }

.skeleton { background: linear-gradient(90deg, var(--sky-soft), #fff, var(--sky-soft)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 120px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
