/* Bold Line website, created by DI SI DI CONSULTING. */
@import url("../fonts/fonts.css");
@import url("../fonts/fonts-themes.css");

/* Bold Line: tokens ------------------------------------------------------ */
:root {
  --navy-950: #0b1428;
  --navy-900: #101b33;
  --navy: #14213d;
  --navy-700: #1f2f55;
  --navy-500: #3a4b74;
  --cotton: #f2eee3;
  --cotton-200: #e7e1d2;
  --cotton-300: #d9d1bf;
  --ink: #14213d;
  --ink-soft: #4a5571;
  --on-navy: #f2eee3;
  --on-navy-soft: #b9c0d3;
  --gold: #e8b84a;
  --gold-deep: #86600f;
  --crimson: #9e2b2b;
  --crimson-bright: #e0675e;
  --silver-1: #f3f4f6;
  --silver-2: #aeb3ba;
  --silver-3: #d9dce0;
  --silver-4: #858b94;
  --silver: linear-gradient(135deg, var(--silver-1) 0%, var(--silver-2) 32%, var(--silver-3) 52%, var(--silver-4) 78%, #c7cbd1 100%);
  --lane-pets: var(--gold);
  --lane-anime: var(--crimson-bright);
  --lane-business: var(--silver-2);

  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 4.2rem);
  --step-5: clamp(2.5rem, 1.6rem + 4.4vw, 5.4rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 7rem;
  --gutter: clamp(1.1rem, 0.6rem + 2.4vw, 3rem);
  --max: 1320px;
  --radius: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-1: 0 1px 2px rgb(11 20 40 / 0.12), 0 4px 14px rgb(11 20 40 / 0.10);
  --shadow-2: 0 2px 6px rgb(11 20 40 / 0.18), 0 18px 40px rgb(11 20 40 / 0.22);

  /* stitch geometry */
  --stitch: 9px;   /* stitch length */
  --gap: 5px;      /* gap between stitches */
  --thread: 2px;   /* thread thickness */

  /* semantic layer: themes (themes.css) override these, components read them */
  --ground-a: var(--navy);          /* main ground (header, hero, rack, reviews) */
  --ground-a-deep: var(--navy-950); /* deep bands (proof, drops, footer, announce) */
  --ground-b: var(--cotton);        /* panel ground (lanes, pets, business, form) */
  --on-deep: var(--on-navy);
  --on-deep-soft: var(--on-navy-soft);
  --strong: var(--navy);            /* dark buttons and selected states on panels */
  --on-strong: var(--cotton);
  --on-accent: var(--navy-950);     /* text on the accent (gold) */
  --paper: #fbf9f4;                 /* form fields and form card */
  --veil: rgb(255 255 255 / 0.07);  /* quiet fills on main ground */
  --veil-2: rgb(255 255 255 / 0.14);
  --veil-line: rgb(255 255 255 / 0.25);
  --tissue: var(--navy-700);
  --lane-pets-ink: var(--gold-deep);
  --lane-anime-ink: var(--crimson);
  --lane-business-ink: var(--navy-500);
  --tex-a:
    repeating-linear-gradient(135deg, rgb(255 255 255 / 0.028) 0 1.5px, transparent 1.5px 5px),
    repeating-linear-gradient(45deg, rgb(0 0 0 / 0.10) 0 1px, transparent 1px 7px);
  --tex-b:
    repeating-linear-gradient(0deg, rgb(20 33 61 / 0.018) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgb(20 33 61 / 0.014) 0 1px, transparent 1px 2px);
  --display-weight: 800;
  --display-tracking: -0.02em;
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground-b);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--on-accent); }
:focus-visible { outline: 2px dashed var(--gold); outline-offset: 4px; border-radius: 4px; }
html { scrollbar-color: var(--navy-500) var(--ground-a-deep); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ground-a-deep); }
::-webkit-scrollbar-thumb { background: var(--navy-500); border-radius: 8px; border: 3px solid var(--ground-a-deep); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--gold); color: var(--on-accent); padding: var(--space-2) var(--space-4); border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: var(--space-4); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: var(--display-tracking); margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-5); font-weight: var(--display-weight); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Surfaces ---------------------------------------------------------------- */
.twill {
  background-color: var(--ground-a);
  background-image: var(--tex-a);
  color: var(--on-navy);
}
.twill-deep { background-color: var(--ground-a-deep); --on-navy: var(--on-deep); --on-navy-soft: var(--on-deep-soft); color: var(--on-deep); }
.cotton {
  background-color: var(--ground-b);
  background-image: var(--tex-b);
  color: var(--ink);
}

/* Seams: stitched lines drawn as thread dashes ---------------------------- */
.seam {
  --c: currentColor;
  height: var(--thread);
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--c) 0 var(--stitch), transparent var(--stitch) calc(var(--stitch) + var(--gap))) 0 0 / calc(var(--stitch) + var(--gap)) 100% repeat-x;
  border-radius: 2px;
  opacity: 0.8;
}
.seam--gold { --c: var(--gold); opacity: 1; }
.seam--silver { --c: var(--silver-2); }
/* a panel with a stitched border, inset like a hem */
.hem {
  --c: currentColor;
  --inset: 10px;
  position: relative;
}
.hem::before {
  content: "";
  position: absolute;
  inset: var(--inset);
  pointer-events: none;
  border-radius: calc(var(--radius) - 4px);
  background:
    linear-gradient(90deg, var(--c) 0 var(--stitch), transparent var(--stitch) calc(var(--stitch) + var(--gap))) top left / calc(var(--stitch) + var(--gap)) var(--thread) repeat-x,
    linear-gradient(90deg, var(--c) 0 var(--stitch), transparent var(--stitch) calc(var(--stitch) + var(--gap))) bottom left / calc(var(--stitch) + var(--gap)) var(--thread) repeat-x,
    linear-gradient(180deg, var(--c) 0 var(--stitch), transparent var(--stitch) calc(var(--stitch) + var(--gap))) top left / var(--thread) calc(var(--stitch) + var(--gap)) repeat-y,
    linear-gradient(180deg, var(--c) 0 var(--stitch), transparent var(--stitch) calc(var(--stitch) + var(--gap))) top right / var(--thread) calc(var(--stitch) + var(--gap)) repeat-y;
  opacity: 0.55;
}
/* SVG seam that stitches itself in when it enters view (see site.js) */
.stitch-line { display: block; width: 100%; height: 22px; overflow: visible; }
.stitch-line path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 9 5; }
.stitch-line .thread-end { stroke-dasharray: none; stroke-width: 1.6; opacity: 0.85; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  --bg: var(--gold);
  --fg: var(--on-accent);
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0.8em 1.5em;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  position: relative; isolation: isolate;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 6px 18px rgb(11 20 40 / 0.25);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.2s;
}
.btn::after { /* stitched inner hem on every button */
  content: ""; position: absolute; inset: 5px; border-radius: inherit; pointer-events: none;
  border: 1.5px dashed color-mix(in srgb, var(--fg) 35%, transparent);
  opacity: 0; transition: opacity 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 12px 26px rgb(11 20 40 / 0.3); }
.btn:hover::after, .btn:focus-visible::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--navy { --bg: var(--strong); --fg: var(--on-strong); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--silver { --bg: var(--silver-3); --fg: var(--navy-950); background: var(--silver); }
.link-thread {
  font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.45em;
  background: linear-gradient(90deg, currentColor 0 7px, transparent 7px 11px) 0 100% / 11px 1.5px repeat-x;
  padding-bottom: 4px;
}
.link-thread:hover { background-size: 11px 2.5px; }

/* Tags and chips ---------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.35em 0.85em; border-radius: 999px;
  font-size: var(--step--1); font-weight: 600;
  border: 1.5px dashed currentColor;
}
.spool { /* thread colour dot that looks like a spool end */
  width: 0.9em; height: 0.9em; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, rgb(0 0 0 / 0.35) 0 18%, transparent 19%), repeating-radial-gradient(circle, var(--spool, var(--gold)) 0 1px, color-mix(in srgb, var(--spool, var(--gold)) 70%, black) 1px 2px);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.15);
}
.review-flag { /* marks placeholder or sample content in the prototype */
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--crimson); background: #fbe9e4; border: 1.5px dashed var(--crimson);
  padding: 0.15em 0.6em; border-radius: 4px;
}
.twill .review-flag { color: #ffd9d3; background: rgb(158 43 43 / 0.35); border-color: #f0a39b; }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header__bar { display: flex; align-items: center; gap: var(--space-5); min-height: 70px; }
.site-header .logo img { height: 38px; width: auto; }
.logo__on-light { display: none; }
[data-tone="light"] .site-header .logo__on-dark { display: none; }
[data-tone="light"] .site-header .logo__on-light { display: block; }
.site-header nav ul { display: flex; gap: clamp(0.8rem, 1.6vw, 1.8rem); list-style: none; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--on-navy-soft); padding: 0.4em 0; position: relative; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--on-navy); }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 9px) 0 0 / 9px 2px repeat-x; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
.site-header nav a:hover::after, .site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.lang-switch { display: inline-flex; border-radius: 999px; padding: 3px; background: var(--veil); }
.lang-switch button { border: 0; background: none; color: var(--on-navy-soft); font-size: 0.8rem; font-weight: 700; padding: 0.4em 0.8em; border-radius: 999px; cursor: pointer; min-height: 34px; }
.lang-switch button[aria-pressed="true"] { background: var(--on-navy); color: var(--ground-a); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: var(--veil); color: var(--on-navy); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--veil-2); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--on-accent); font-size: 0.7rem; font-weight: 800; display: grid; place-items: center; }
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.menu-btn { display: none; }
.announce { font-size: 0.82rem; color: var(--on-deep-soft); text-align: center; padding: 0.45rem var(--gutter); background: var(--ground-a-deep); }
.announce strong { color: var(--gold); font-weight: 600; }
.site-header .seam { color: var(--silver-4); opacity: 0.45; }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header nav.is-open { display: block; position: fixed; inset: 0; top: 0; background: var(--ground-a-deep); padding: 175px var(--gutter) var(--space-7); z-index: -1; overflow: auto; }
  .site-header nav.is-open ul { flex-direction: column; gap: 0; }
  .site-header nav.is-open li { padding-block: var(--space-3); background: linear-gradient(90deg, var(--silver-4) 0 9px, transparent 9px 14px) 0 100% / 14px 2px repeat-x; }
  .site-header nav.is-open a { font-family: var(--font-display); font-size: var(--step-2); color: var(--on-deep); }
}
@media (max-width: 420px) {
  .site-header .logo img { height: 30px; }
  .site-header__tools { gap: var(--space-2); }
}

/* Sections ---------------------------------------------------------------- */
.section { padding-block: clamp(4rem, 3rem + 5vw, 8rem); position: relative; }
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 62ch; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.twill .section-head p { color: var(--on-navy-soft); }

/* Reveal (content visible by default, enhanced only when JS runs) ------------ */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Forms ------------------------------------------------------------------- */
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.input, .textarea, .select {
  width: 100%; min-height: 50px; padding: 0.75em 0.95em;
  border-radius: 8px; border: 1.5px solid var(--cotton-300); background: var(--paper); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .textarea:hover { border-color: var(--ink-soft); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 40%, transparent); }
::placeholder { color: #646c82; }
.field.is-invalid .input, .field.is-invalid .textarea { border-color: var(--crimson); }
.field .error { color: var(--crimson); font-size: 0.88rem; font-weight: 600; display: none; }
.field.is-invalid .error { display: block; }
.choice-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 0.5em; min-height: 46px; padding: 0.55em 1.05em; border-radius: 999px; border: 1.5px dashed var(--ink-soft); font-weight: 600; font-size: 0.93rem; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.choice input:checked + span { background: var(--strong); color: var(--on-strong); border-style: solid; border-color: var(--strong); }
.choice input:focus-visible + span { outline: 2px dashed var(--gold); outline-offset: 3px; }

.dropzone {
  border-radius: 12px; padding: var(--space-5); text-align: center;
  background: var(--paper); border: 2px dashed var(--ink-soft);
  display: grid; gap: var(--space-2); justify-items: center; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.dropzone.is-over { background: color-mix(in srgb, var(--gold) 14%, var(--paper)); border-color: var(--gold-deep); }
.dropzone svg { width: 36px; height: 36px; color: var(--strong); }
.dropzone strong { font-family: var(--font-display); font-size: 1rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); list-style: none; padding: 0; }
.thumbs li { position: relative; width: 78px; height: 78px; border-radius: 8px; overflow: hidden; background: var(--cotton-200); box-shadow: var(--shadow-1); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .file-name { font-size: 0.65rem; padding: 4px; display: grid; place-items: center; height: 100%; text-align: center; word-break: break-all; }
.thumbs button { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgb(11 20 40 / 0.8); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* Footer ------------------------------------------------------------------ */
.site-footer { padding-top: var(--space-8); padding-bottom: var(--space-6); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); }
.site-footer h4 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-3); font-family: var(--font-body); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--on-navy-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-navy); text-decoration: underline; }
.site-footer__brand img { height: 46px; width: auto; margin-bottom: var(--space-4); }
.site-footer__brand p { color: var(--on-navy-soft); max-width: 34ch; font-size: 0.95rem; }
.site-footer__legal { margin-top: var(--space-7); padding-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; font-size: 0.82rem; color: var(--on-navy-soft); position: relative; }
.site-footer__legal::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--silver-4) 0 9px, transparent 9px 14px) 0 0 / 14px 2px repeat-x; opacity: 0.6; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* footer credit (added by npm run build) */
.preview-note { margin: var(--space-4) 0 0; font-size: 0.78rem; color: var(--on-navy-soft); }
