/* Ankka3D — placeholder stylesheet.
   Intentionally minimal and easy to replace: a real design comes later with a
   designer. Hand-rolled utility-ish CSS, no framework, no build step. */

:root {
  --duck:        #f5b301;   /* warm duck yellow — the one accent */
  --duck-dark:   #d99a00;
  --ink:         #1c1e21;   /* near-black text */
  --muted:       #5b6068;
  --line:        #e6e8eb;
  --bg:          #ffffff;
  --bg-soft:     #f7f8fa;
  --max:         960px;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .3em; }
p  { margin: 0 0 1em; }
a  { color: var(--duck-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* --- header / nav --- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800;
  font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand .mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--duck); font-size: 18px;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; padding: 8px 12px;
  border-radius: 8px; font-size: .95rem;
}
.nav a:hover { background: var(--bg-soft); }
.nav a.active { color: var(--duck-dark); font-weight: 600; }
.nav a.cta {
  background: var(--duck); color: #3a2c00; font-weight: 700;
}
.nav a.cta:hover { background: var(--duck-dark); color: #2a2100; }
.lang-toggle {
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  padding: 6px 10px; margin-left: 4px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--muted);
}
.lang-toggle:hover { border-color: var(--duck); color: var(--ink); }

/* --- hero --- */
.hero { padding: 56px 0 32px; }
.hero .tagline { color: var(--muted); font-size: 1.15rem; max-width: 40ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-size: 1rem;
}
.btn-primary { background: var(--duck); color: #3a2c00; }
.btn-primary:hover { background: var(--duck-dark); color: #2a2100; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-whatsapp { background: #25d366; color: #073d21; }
.btn-whatsapp:hover { background: #1eb757; color: #062e19; }
.pref { font-size: .8rem; font-weight: 400; color: var(--muted); }

/* --- generic sections --- */
main { padding-bottom: 48px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--bg); box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .ico { font-size: 26px; }

.duck-note {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--duck);
  border-radius: var(--radius); padding: 16px 20px; margin: 24px 0;
}

/* --- gallery --- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 24px 0; }
.gallery .tile {
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); border: 1px dashed var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: .85rem; text-align: center;
}
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- pricing table --- */
.table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* --- forms / contact --- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field-label { font-weight: 600; }

/* --- placeholder marker (visible only in dev-ish) --- */
.todo { background: #fff6d6; border: 1px dashed var(--duck-dark); border-radius: 6px;
  padding: 2px 6px; font-size: .8rem; color: #7a5c00; }

/* --- footer --- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  margin-top: 40px; padding: 32px 0; color: var(--muted); font-size: .92rem;
}
.site-footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer a { color: var(--muted); }
.site-footer .brand-line { font-weight: 700; color: var(--ink); }

@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
  .nav { width: 100%; }
}

/* --- quoter (tilaa.html) --- */
.quoter { margin-top: 20px; }
.guidelines {
  font-size: .88rem; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 12px 0 0;
}
.lead-time { margin: 10px 0 0; font-size: .92rem; font-weight: 600; color: var(--ink); }
.lead-time::before { content: "🕑 "; }

.drop {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 32px 20px; text-align: center; cursor: pointer;
  background: var(--bg-soft); transition: border-color .15s, background .15s;
}
.drop:hover, .drop.hover { border-color: var(--duck); background: #fffaf0; }
.drop-icon { font-size: 30px; color: var(--duck-dark); }
.drop .link { color: var(--duck-dark); text-decoration: underline; }
.drop .filename { margin-top: 6px; }
.muted { color: var(--muted); font-size: .9rem; }

.controls { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 16px 0; }
.controls label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.controls select, .order-grid input, .order-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%;
}
.controls select:focus, .order-grid input:focus, .order-form textarea:focus {
  outline: 2px solid var(--duck); outline-offset: 1px; border-color: var(--duck);
}

/* --- use-case quick picks + advanced settings --- */
.usecase { margin: 18px 0 6px; }
.usecase-chip { font-weight: 600; padding: 9px 14px; }
.mat-line { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.advanced {
  margin: 12px 0 4px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 16px; background: var(--bg-soft);
}
.advanced summary {
  cursor: pointer; padding: 12px 0; font-size: .92rem; font-weight: 600;
  color: var(--muted); list-style-position: inside;
}
.advanced summary:hover { color: var(--ink); }
.advanced[open] { padding-bottom: 12px; background: var(--bg); }
details.mini { margin-top: 12px; }
details.mini summary { cursor: pointer; font-size: .88rem; color: var(--muted); }
details.mini summary:hover { color: var(--ink); }

/* --- colour / variant picker --- */
.variant { margin: 4px 0 10px; }
.variant-label { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg); color: var(--ink); cursor: pointer; font-size: .85rem;
  font-family: inherit;
}
.swatch:hover { background: var(--bg-soft); }
.swatch.selected { border-color: var(--duck); background: #fffaf0; box-shadow: 0 0 0 2px rgba(245,179,1,.35); }
.swatch .dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; flex: none; }
.swatch.special { font-weight: 600; }
.swatch.orderable { opacity: .78; border-style: dashed; }
.swatch.orderable:hover { opacity: 1; }
.swatch.instock { border-color: #cfe3d0; }
.swatch .chk { color: #2e9e4f; font-weight: 700; margin-left: 1px; }
.variant-legend { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.variant-note {
  margin: 10px 0 0; background: #fff6d6; border: 1px dashed var(--duck-dark);
  border-radius: 8px; padding: 9px 13px; font-size: .88rem; color: #7a5c00;
}

.result {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 16px 0; min-height: 64px; background: var(--bg);
}
.result .placeholder { color: var(--muted); }
.result.ok { border-color: var(--duck); box-shadow: var(--shadow); }
.result.error { border-color: #e0b4b4; background: #fdf3f3; color: #a5352c; }

.quote-total { font-size: 2.1rem; font-weight: 800; }
.quote-sub { color: var(--muted); margin-bottom: 12px; }

.file-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.file-row {
  display: grid; grid-template-columns: 1fr 64px auto auto; gap: 10px;
  align-items: center; padding: 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg-soft);
}
.fr-name { font-weight: 600; word-break: break-word; }
.fr-meta { color: var(--muted); font-size: .85rem; }
.fr-warn { color: #a5352c; font-weight: 600; }
.fr-qty { text-align: center; }
.fr-price { font-weight: 700; white-space: nowrap; }
.fr-remove {
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 1rem; padding: 4px 8px; border-radius: 6px;
}
.fr-remove:hover { background: #f1d9d9; color: #a5352c; }

.breakdown { width: 100%; border-collapse: collapse; margin-top: 12px; }
.breakdown td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.order-btn { margin: 8px 0; }
.order-form { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.order-form h2 { margin-top: 0; }
.order-form label { display: block; font-weight: 600; margin: 12px 0 0; }
.order-form input, .order-form textarea { margin-top: 6px; font-weight: 400; }
.order-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.order-form .btn { margin-top: 16px; }
.note { color: var(--muted); font-size: .9rem; }

@media (max-width: 480px) {
  .controls { grid-template-columns: 1fr; }
  .file-row { grid-template-columns: 1fr auto auto; }
  .file-row .fr-qty { grid-column: 2; }
}
