/* Bramblecart Stores — shopfront/retail aesthetic: rounded, warm, card-forward */

:root {
  color-scheme: light;
  --white: #ffffff;
  --soft: #f6f4ef;
  --ink: #262220;
  --muted: #5e574f;
  --sage: #4a6b4f;
  --sage-deep: #324b36;
  --sage-wash: #e9f0ea;
  --clay: #c17a3f;
  --clay-deep: #93581f;
  --clay-wash: #faf0e3;
  --line: #e6e0d8;
  --line-strong: #cfc6b7;
  --control: #6e6559;
  --alert: #a3262a;
  --alert-wash: #fbebea;
  --focus: #262220;

  --head: "Avenir Next", "Segoe UI Semibold", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 1.05rem; line-height: 1.62; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--sage-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { width: 100%; max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: #fff; padding: 0.6rem 1rem; text-decoration: none; border-radius: 999px; }
.skip-link:focus { top: 1rem; color: #fff; }

/* Header: sticky floating pill bar */
.site-header { position: sticky; top: 0; z-index: 10; background: transparent; padding: 0.8rem 0 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; padding: 0.6rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 20px -8px rgba(38, 34, 32, 0.18); }
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.05rem; }
.brand svg { width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.3rem; font-size: 0.93rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.3rem 0.1rem; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--sage); }
.site-nav .nav-cta { background: var(--sage); color: #fff; padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 700; border-bottom: none; }
.site-nav .nav-cta:hover { background: var(--sage-deep); color: #fff; }

/* Section anchors */
.h-anchor { position: relative; }
.h-anchor .anchor { margin-left: 0.4em; color: var(--sage); text-decoration: none; opacity: 0; font-weight: 400; }
.h-anchor:hover .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .h-anchor .anchor { opacity: 0.6; } }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.75rem, 6vw, 4.5rem); background: radial-gradient(ellipse at top right, var(--sage-wash), var(--white) 60%); }
.hero .wrap { display: grid; gap: 2.75rem; align-items: start; }
.hero .wrap > * { min-width: 0; }
.tag { font-size: 0.85rem; font-weight: 700; color: var(--sage-deep); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.hero .lead { font-size: 1.15rem; max-width: 34rem; color: var(--muted); }
.channel-strip { list-style: none; padding: 0; margin: 1.1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.channel-strip li { background: var(--clay-wash); color: var(--clay-deep); border: 1px solid var(--clay); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.85rem; font-weight: 700; }
.svc-links { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; display: grid; gap: 0.6rem; }
.svc-links li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0.6rem 0.9rem; }
.svc-links a { font-weight: 700; color: var(--ink); text-decoration: none; }
.svc-links a:hover { color: var(--sage-deep); text-decoration: underline; }
.svc-links span { display: block; font-size: 0.92rem; color: var(--muted); }
.btn { display: inline-block; font-weight: 700; font-size: 0.98rem; background: var(--sage); color: #fff; text-decoration: none; padding: 0.8rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer; transition: background-color 0.15s ease, transform 0.15s ease; box-shadow: 0 8px 18px -8px rgba(74, 107, 79, 0.55); }
.btn:hover { background: var(--sage-deep); color: #fff; transform: translateY(-1px); }
.hero .scope { font-size: 0.9rem; color: var(--muted); margin-top: 1.25rem; max-width: 34rem; }
@media (min-width: 64rem) { .hero .wrap { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 3.5rem; } }

/* Shelf: overlapping rounded tag cards, chained */
.shelf { margin: 0; background: transparent; padding: 0; }
.shelf-title { font-size: 0.85rem; color: var(--muted); margin: 0 0 1.1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1rem; }
.shelf-title b { color: var(--ink); font-weight: 800; }
.shelf-tags { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.tagcard { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 0.95rem 1.05rem; box-shadow: 0 10px 24px -14px rgba(38, 34, 32, 0.25); position: relative; }
.tagcard:nth-child(odd) { transform: rotate(-1.2deg); }
.tagcard:nth-child(even) { transform: rotate(1deg); }
.tagcard::before { content: ""; position: absolute; top: -0.6rem; left: 1.1rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--sage); border: 3px solid var(--white); }
.tagcard.flag::before { background: var(--clay); }
.tagcard-name { font-weight: 800; font-size: 1.02rem; margin: 0 0 0.2rem; font-family: var(--head); }
.tagcard p:last-child { margin: 0; font-size: 0.89rem; color: var(--muted); }
.shelf figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 1.1rem; }

/* Sections */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-soft { background: var(--soft); }
.section .intro { color: var(--muted); max-width: 44rem; }

/* Services: icon card grid */
.shop-grid { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.shop-card { border: 1px solid var(--line); background: var(--white); border-radius: 20px; padding: 1.5rem 1.4rem; box-shadow: 0 14px 30px -20px rgba(38, 34, 32, 0.3); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(38, 34, 32, 0.32); }
.chip { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sage-wash); color: var(--sage-deep); font-family: var(--head); font-weight: 800; font-size: 0.95rem; margin-bottom: 0.9rem; }
.spec-head h3 { margin: 0 0 0.6rem; }
.spec-purpose { max-width: 50rem; }
.io { display: grid; gap: 1rem; margin-top: 0.75rem; }
.io > div { background: var(--soft); border-radius: 12px; padding: 0.85rem 1rem; min-width: 0; }
.io ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.io li { margin-bottom: 0.3rem; }
.io li::marker { color: var(--sage); }
.spec-note { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--muted); }
@media (min-width: 52rem) { .shop-grid { grid-template-columns: repeat(3, 1fr); } .io { grid-template-columns: 1fr; } }

/* Scenario: receipt cards */
.scenario { display: grid; gap: 1.75rem; }
.scenario > * { min-width: 0; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; background: var(--clay-wash); color: var(--clay-deep); border-radius: 999px; padding: 0.15rem 0.75rem; margin-bottom: 0.6rem; }
.receipts { display: grid; gap: 1.5rem; }
.receipt { list-style: none; margin: 0; padding: 1.2rem 1.3rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px 4px 14px 14px; box-shadow: 0 10px 26px -16px rgba(38, 34, 32, 0.28); background-image: repeating-linear-gradient(to bottom, transparent 0 1.9rem, var(--line) 1.9rem 2rem); }
.receipt-head { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; padding-bottom: 0.6rem; margin-bottom: 0.3rem; border-bottom: 2px dashed var(--line-strong); background: none !important; }
.receipt li:not(.receipt-head) { padding: 0.45rem 0; font-size: 0.93rem; color: var(--muted); background: none !important; }
.receipt .k { display: block; font-weight: 800; color: var(--ink); font-family: var(--head); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.03em; }
.receipt-after { border-top: 4px solid var(--sage); }
.receipt-before { border-top: 4px solid var(--line-strong); }
@media (min-width: 52rem) { .receipts { grid-template-columns: 1fr 1fr; } }

.billing { margin-top: 0.5rem; background: var(--clay-wash); border-radius: 14px; padding: 0.9rem 1.1rem; font-size: 0.95rem; color: var(--muted); max-width: 50rem; }
.billing strong { color: var(--ink); }

/* Resource: ribbon card */
.res { display: grid; gap: 1.75rem; align-items: start; }
.res > * { min-width: 0; }
.tag-stack { list-style: none; padding: 1.1rem 1.3rem; margin: 0; font-size: 0.93rem; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 30px -20px rgba(38, 34, 32, 0.3); position: relative; }
.tag-stack::before { content: "Free checklist"; position: absolute; top: -0.75rem; left: 1.3rem; background: var(--clay); color: #fff; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.3rem 0.7rem; border-radius: 999px; }
.tag-stack li { padding: 0.5rem 0; border-bottom: 1px dashed var(--line); display: flex; gap: 0.6rem; }
.tag-stack li:last-child { border-bottom: 0; }
.tag-stack li::before { content: "\2713"; color: var(--sage-deep); font-weight: 700; }
@media (min-width: 52rem) { .res { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

/* About: pill facts */
.about { display: grid; gap: 1.75rem; }
.about > * { min-width: 0; }
.about p { max-width: 42rem; }
.pill-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-facts div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0.6rem 0.9rem; font-size: 0.9rem; max-width: 18rem; }
.pill-facts dt { font-weight: 800; font-family: var(--head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sage-deep); margin: 0; }
.pill-facts dd { margin: 0.1rem 0 0; color: var(--muted); }
@media (min-width: 52rem) { .about { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

/* Contact: inline-label form */
.notice { border: 1px solid var(--alert); background: var(--alert-wash); border-radius: 14px; padding: 0.85rem 1.1rem; margin: 1.25rem 0 1.5rem; max-width: 52rem; }
.notice p { margin: 0 0 0.35rem; font-size: 0.97rem; }
.notice p:last-child { margin: 0; }
.notice strong { color: var(--alert); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.enquiry-form { border: 1px solid var(--line); border-radius: 20px; max-width: 52rem; background: var(--white); box-shadow: 0 14px 30px -20px rgba(38, 34, 32, 0.3); overflow: hidden; }
.form-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding: 0.9rem 1.3rem; background: var(--sage-wash); }
.form-head h3 { margin: 0; font-size: 1.05rem; }
.form-required-note { margin: 0; font-size: 0.88rem; color: var(--muted); }
.form-body { padding: 0.5rem 1.3rem 1.4rem; }
.error-summary { border: 2px solid var(--alert); background: var(--alert-wash); border-radius: 12px; padding: 0.8rem 1rem; margin: 0.75rem 0 0.5rem; }
.error-summary h4 { color: var(--alert); text-transform: none; letter-spacing: 0; font-size: 0.98rem; margin: 0 0 0.3rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--alert); font-weight: 700; }
.field { display: grid; gap: 0.3rem 1.25rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.field > * { min-width: 0; }
.field label { font-weight: 700; font-size: 0.95rem; padding-top: 0.55rem; }
.field .req { color: var(--alert); }
.field .optional { font-weight: 400; color: var(--muted); font-size: 0.85rem; display: block; }
.field-hint { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.35rem; }
.field input, .field select, .field textarea { display: block; width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--control); border-radius: 12px; padding: 0.55rem 0.8rem; min-height: 2.8rem; transition: border-color 0.15s ease; }
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--sage); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 0.9rem; top: 50%; width: 0.45rem; height: 0.45rem; border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field [aria-invalid="true"] { border: 2px solid var(--alert); padding: calc(0.55rem - 1px) calc(0.8rem - 1px); background: #fffafa; }
.field-error { color: var(--alert); font-size: 0.9rem; font-weight: 700; margin: 0.35rem 0 0; }
.field-error::before { content: "Error: "; }
.field-count { font-size: 0.78rem; color: var(--muted); text-align: right; margin: 0.25rem 0 0; }
.field-count.is-near { color: var(--alert); font-weight: 700; }
@media (min-width: 46rem) { .field { grid-template-columns: 12rem minmax(0, 1fr); } .field label { grid-row: 1 / span 4; } }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; padding-top: 1.1rem; }
.form-actions .btn:disabled { background: var(--line-strong); color: var(--ink); cursor: not-allowed; box-shadow: none; }
.form-privacy { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 12px; background: var(--soft); font-size: 0.97rem; }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-status.is-success { background: var(--sage-wash); color: var(--ink); }
.form-status.is-error { background: var(--alert-wash); color: var(--alert); }
.form-noscript { border-left: 3px solid var(--line-strong); padding: 0.7rem 1rem; margin-top: 1rem; }

/* Footer */
.site-footer { padding: 2.25rem 0 2rem; font-size: 0.9rem; color: var(--muted); }
.footer-top { display: grid; gap: 1rem; }
.footer-top p { margin: 0; max-width: 48rem; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.88rem; }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--sage-deep); }
@media (min-width: 56rem) { .footer-top { grid-template-columns: 1fr auto; } }
@media (max-width: 30rem) { .footer-legal { flex-direction: column; gap: 0.4rem; } }

/* Docs */
.doc { padding: clamp(2rem, 5vw, 3.25rem) 0 3.5rem; }
.doc-head { max-width: 52rem; margin-bottom: 1.5rem; }
.doc-meta { color: var(--muted); font-size: 0.92rem; }
.doc-body { max-width: 44rem; }
.doc-body h2 { font-size: 1.3rem; margin-top: 2rem; }
.doc-body ul { padding-left: 1.2rem; }
.summary { border-radius: 14px; background: var(--sage-wash); padding: 0.9rem 1.1rem; margin-bottom: 1.5rem; }
.summary p:last-child { margin-bottom: 0; }

/* Checklist */
.cl-meta { list-style: none; padding: 0; margin: 1.1rem 0; display: grid; gap: 0.2rem 2rem; max-width: 52rem; }
.cl-meta li { display: flex; gap: 0.6rem; align-items: flex-end; padding-top: 0.6rem; }
.cl-meta span { font-weight: 700; white-space: nowrap; }
.cl-meta li::after { content: ""; flex: 1; border-bottom: 1px solid var(--ink); min-width: 3rem; }
@media (min-width: 42rem) { .cl-meta { grid-template-columns: 1fr 1fr; } }
.cl-warn { border: 1px solid var(--alert); background: var(--alert-wash); border-radius: 12px; padding: 0.6rem 0.9rem; font-size: 0.95rem; max-width: 52rem; }
.cl-part { margin-top: 1.75rem; max-width: 56rem; }
.cl-part h2 { font-size: 1.2rem; border-bottom: 2px solid var(--sage); padding-bottom: 0.3rem; }
.cl-part h2 span { color: var(--sage-deep); margin-right: 0.4rem; }
.cl-items { list-style: none; padding: 0; margin: 0; }
.cl-items li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.cl-items li::before { content: ""; width: 1rem; height: 1rem; border-radius: 4px; border: 1.5px solid var(--ink); margin-top: 0.25rem; }
.cl-items small { display: block; color: var(--muted); font-size: 0.88rem; }
.cl-foot { margin-top: 2rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.print-hint { color: var(--muted); font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; color: #000; font-size: 10pt; line-height: 1.4; }
  .skip-link, .site-nav, .print-hint, .no-print, .site-footer { display: none !important; }
  .site-header { border-bottom: 1px solid #000; box-shadow: none; position: static; }
  .site-header .wrap { border-radius: 0; box-shadow: none; border: none; }
  .wrap { padding: 0; max-width: none; }
  a { color: #000; text-decoration: none; }
  .doc { padding: 5mm 0 0; }
  h1 { font-size: 19pt; }
  .cl-part { margin-top: 5mm; }
  .cl-part h2 { font-size: 12pt; break-after: avoid; }
  .cl-part h2 span { color: #000; }
  .cl-items li { break-inside: avoid; padding: 1.5mm 0; }
  .cl-items li::before { border-color: #000; }
  .cl-warn { background: none; border-color: #000; }
}
.cl-items p { margin: 0; }
