/* Semmy website styles. Colours are set once here; dark mode follows the visitor's phone/computer setting. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --alt: #f2efe8;
  --ink: #1d2330;
  --muted: #5b6475;
  --line: #e3ded4;
  --brand: #0f766e;
  --brand-strong: #0b5e57;
  --brand-ink: #ffffff;
  --brand-soft: #e3f3f0;
  --accent: #f59e0b;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 32, .06), 0 6px 20px rgba(20, 24, 32, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fredoka", var(--font);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1a2028;
    --alt: #161b22;
    --ink: #e8ebf0;
    --muted: #a3acba;
    --line: #2c3440;
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --brand-ink: #06201d;
    --brand-soft: #143a35;
    --accent: #fbbf24;
    --danger: #f97066;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
  padding: .8em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--brand);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-small { padding: .45em 1em; font-size: .95rem; }
.btn-wide { width: 100%; padding: 1em; font-size: 1.1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.site-header {
  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);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; }
.layer-1 { fill: var(--brand); }
.layer-2 { fill: color-mix(in srgb, var(--brand) 70%, var(--accent)); }
.layer-3 { fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--brand); }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
}

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); }
.hero-facts li::before { content: "●"; color: var(--accent); margin-right: 8px; font-size: .7em; vertical-align: middle; }
.hero-facts strong { color: var(--ink); }
.hero-photo { margin: 0; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; background: var(--brand-soft); position: relative; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-illustration { display: none; width: 100%; height: 100%; }
.hero-photo.no-photo img { display: none; }
.hero-photo.no-photo .hero-illustration { display: block; }
.ill-plate { fill: color-mix(in srgb, var(--ink) 18%, transparent); }
.ill-l1 { fill: var(--brand); }
.ill-l2 { fill: color-mix(in srgb, var(--brand) 75%, var(--accent)); }
.ill-l3 { fill: color-mix(in srgb, var(--brand) 45%, var(--accent)); }
.ill-l4 { fill: var(--accent); }
.ill-nozzle { fill: color-mix(in srgb, var(--ink) 70%, transparent); }
.ill-strand { stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 9; }
@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; aspect-ratio: 16 / 10; }
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--alt); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps h3 { margin-top: .6em; }
.steps p { margin: 0; color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-family: var(--display); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Lists */
.ticks, .crosses { padding: 0; list-style: none; margin: 0 0 1em; display: grid; gap: 8px; }
.ticks li, .crosses li { padding-left: 30px; position: relative; }
.ticks li::before, .crosses li::before {
  position: absolute; left: 0; top: .15em;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}
.ticks li::before { content: "✓"; background: var(--brand-soft); color: var(--brand); }
.crosses li::before { content: "✕"; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* Build size card */
.size-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.size-card h3 { margin-top: 0; }
.size-box { width: 100%; max-width: 280px; margin: 0 auto; }
.box-top { fill: color-mix(in srgb, var(--brand) 22%, var(--surface)); stroke: var(--brand); stroke-width: 2; }
.box-left { fill: color-mix(in srgb, var(--brand) 40%, var(--surface)); stroke: var(--brand); stroke-width: 2; }
.box-right { fill: color-mix(in srgb, var(--brand) 30%, var(--surface)); stroke: var(--brand); stroke-width: 2; }
.box-label { font: 600 15px var(--font); fill: var(--ink); }
.size-figure { font-family: var(--display); font-size: 1.6rem; font-weight: 600; margin: .4em 0 .2em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.note { background: color-mix(in srgb, var(--accent) 14%, transparent); border-left: 4px solid var(--accent); padding: 8px 12px; border-radius: 6px; font-size: .95rem; }
@media (max-width: 860px) { .cards, .cards.three { grid-template-columns: 1fr; } }

/* Colour swatches */
.swatches { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.swatches li { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.dot { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); flex: none; }
.dot.silk { background: radial-gradient(circle at 30% 30%, #ffffff99, transparent 55%), var(--c); }
.dot.translucent { background: linear-gradient(135deg, #ffffff66, transparent 60%), var(--c); }

/* Gallery / photo slots */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } }
.photo-placeholder {
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 16px;
  border: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent);
  background: repeating-linear-gradient(45deg, var(--brand-soft), var(--brand-soft) 10px, transparent 10px, transparent 20px);
  color: var(--ink); font-size: .9rem; border-radius: var(--radius) var(--radius) 0 0;
}
.photo-placeholder code { display: block; font-weight: 700; margin-bottom: 4px; }
.hero-photo .photo-placeholder-tag {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 2px dashed var(--brand);
  border-radius: 10px; padding: 8px 10px; font-size: .85rem;
}

/* Quote form */
.form-banner { background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; }
.quote-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 16px; display: grid; gap: 6px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
label { font-weight: 600; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .7em .8em; min-height: 46px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
input[type="file"] { font: inherit; padding: 8px 0; max-width: 100%; }
.hint { color: var(--muted); font-size: .9rem; margin: 0; font-weight: 400; }
.file-total { font-size: .95rem; margin: -6px 0 16px; }
.file-total.over { color: var(--danger); font-weight: 600; }
.checks { display: grid; gap: 10px; margin-bottom: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.form-error { color: var(--danger); font-weight: 600; background: color-mix(in srgb, var(--danger) 10%, transparent); padding: 10px 14px; border-radius: 10px; }
.invalid { border-color: var(--danger) !important; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.quote-form .hint.center { margin-top: 12px; }

/* Terms */
.terms p { color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }

/* Thank-you page */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.thanks .big-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 16px; }
