/* Tilery — brand tokens. Swap these when the logo and colours are decided. */
:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --bg-alt: #f2efea;
  --surface: #ffffff;       /* cards, inputs */
  --ink: #1d1b19;
  --muted: #6b655e;
  --line: #e3ded6;
  --stripe: #ebe6df;
  --accent: #c8553d;        /* primary brand colour (logo colour goes here) */
  --accent-ink: #ffffff;    /* text on accent */
  --accent-soft: #f6e4de;
  --tile-empty: rgba(29, 27, 25, .05);
  --tile-edge: rgba(29, 27, 25, .10);
  --shadow: rgba(0, 0, 0, .06);
  --error: #b42318;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
}

/* Dark mode: follows the device unless the visitor picked a theme with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141312; --bg-alt: #1b1917; --surface: #221f1c; --ink: #f2eee8; --muted: #a39b91;
    --line: #34302b; --stripe: #24211e; --accent: #dc6a51; --accent-ink: #ffffff; --accent-soft: #3a241e;
    --tile-empty: rgba(255, 255, 255, .04); --tile-edge: rgba(255, 255, 255, .10); --shadow: rgba(0, 0, 0, .35); --error: #ff8a7a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141312; --bg-alt: #1b1917; --surface: #221f1c; --ink: #f2eee8; --muted: #a39b91;
  --line: #34302b; --stripe: #24211e; --accent: #dc6a51; --accent-ink: #ffffff; --accent-soft: #3a241e;
  --tile-empty: rgba(255, 255, 255, .04); --tile-edge: rgba(255, 255, 255, .10); --shadow: rgba(0, 0, 0, .35); --error: #ff8a7a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.01em; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.1rem; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); font-weight: 600; margin: 0 0 12px; }

/* Wordmark */
.wordmark { font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; letter-spacing: -.02em; }
.wordmark .dot { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, opacity .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-wide { width: 100%; padding: 16px; font-size: 1.05rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .92rem; }
.ticks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.hero-media { position: relative; aspect-ratio: 1; }

/* Hero tile wall */
.mosaic { --n: 15; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: clamp(3px, .6vw, 6px); width: 100%; height: 100%; }
.mosaic .t { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: var(--tile-empty); box-shadow: inset 0 0 0 1px var(--tile-edge); opacity: 0; animation: tile-in .5s ease forwards; transition: background-color .6s; }
.mosaic .t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: 0; transition: opacity .6s; }
.mosaic .t img.on { opacity: 1; }
.mosaic .t.photo { background: linear-gradient(135deg, #8a8a8a, #3c3c3c); }
.mosaic .t.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0) 45%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); pointer-events: none; }
.mosaic .t.solid { background: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
@keyframes tile-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* Theme toggle */
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* Placeholders (remove when real media is in) */
.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 10px, var(--stripe) 10px, var(--stripe) 20px); color: var(--muted); font-size: .85rem; border-radius: 10px; }
.placeholder p { margin: 0; background: var(--bg); padding: 4px 10px; border-radius: 999px; }
.placeholder-text { opacity: .7; }

/* Sets */
.sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.set { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.set-hero { border: 2px solid var(--accent); box-shadow: 0 12px 30px var(--shadow); }
.badge { position: absolute; top: -12px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.set .tiles { color: var(--muted); margin: 0; }
.set .price { font-size: 2rem; font-weight: 700; margin: 8px 0 4px; }
.set .note { color: var(--muted); margin: 0 0 20px; font-size: .95rem; }
.set .btn { margin-top: auto; }
.delivery-note { margin: 24px 0 0; color: var(--muted); text-align: center; }
.corporate { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border-radius: var(--radius); background: var(--accent-soft); }
.corporate p { margin: 0; color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }

/* Before / after */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba { margin: 0; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba-pair img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }
.ph-square { aspect-ratio: 1; }
.ph-after { outline: 2px solid var(--accent); outline-offset: -2px; }
.ba figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; text-align: center; }
.styles-line { margin-top: 32px; color: var(--muted); text-align: center; }
.styles-line span { display: inline-block; padding: 4px 12px; margin: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .9rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.review p { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.1rem; }
.review cite { color: var(--muted); font-style: normal; font-size: .9rem; }

/* Form */
.order-form { display: grid; gap: 18px; }
.order-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.order-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.order-form input[type=text], .order-form input[type=tel], .order-form input[type=number], .order-form select, .order-form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.order-form :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.set-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.set-pick legend { font-weight: 500; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.chip { display: inline-flex !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-label { cursor: pointer; text-align: center; display: grid !important; gap: 4px; padding: 10px; }
.drop-label strong { color: var(--accent); font-size: 1.05rem; }
.drop-label span { color: var(--muted); font-weight: 400; font-size: .9rem; }
.thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg-alt); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }

.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400 !important; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }

.summary { background: var(--bg-alt); border-radius: 10px; padding: 14px 16px; font-size: .95rem; }
.summary:empty { display: none; }
.summary .total { font-weight: 700; font-size: 1.1rem; }
.progress { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.form-msg { margin: 0; color: var(--error); font-size: .95rem; min-height: 1em; }
.fine { color: var(--muted); font-size: .82rem; margin: 0; }
.done { text-align: center; padding: 40px 24px; background: var(--accent-soft); border-radius: var(--radius); }
.done .hero-cta { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start; }
.footer-inner p { margin: 4px 0 0; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a { text-decoration: none; color: var(--muted); }
.footer .fine { grid-column: 1 / -1; }

/* Responsive */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .ba-grid, .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .hero { padding-top: 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .mosaic { --n: 10; }
  .sets { grid-template-columns: 1fr; gap: 24px; }
  .corporate { flex-direction: column; align-items: flex-start; }
  .order-form .row { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mosaic .t { animation: none; opacity: 1; }
  .btn { transition: none; }
}
.photo-hint { color: var(--muted); font-size: .92rem; margin: 0; }
[hidden] { display: none !important; }
