/* Stitched FC — static site styles. Brand values carried over from the Divi site. */
:root {
  --blue: #003cd3;
  --blue-deep: #002a91;
  --gold: #c59435;
  --gold-dark: #9e7322;
  --red: #d3161b;
  --cream: #ebe6d8;
  --paper: #f5f1e6;
  --ink: #141414;
  --muted: #5c5a52;
  --line: #d6cfbd;
  --sidebar: 230px;
  --head: 'Manrope', Helvetica, Arial, sans-serif;
  --body: 'Lora', Georgia, serif;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--body); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { color: var(--gold); font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* top bar */
.topbar { background: var(--red); color: #fff; text-align: center; font-size: .82rem; line-height: 1.4; padding: .55rem 1rem; }
@media (min-width: 960px) { .topbar { margin-left: var(--sidebar); } }

/* sidebar (desktop) / drawer (mobile) */
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--sidebar); background: var(--blue); color: #fff;
  display: flex; flex-direction: column; padding: 2rem 1.6rem 1.4rem; overflow-y: auto; }
.sidebar__logo img { width: 112px; margin: 0 auto 2.4rem; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar__nav a { display: block; color: var(--gold); font: 600 1rem/1 var(--body); text-decoration: none; padding: .55rem 0; }
.sidebar__nav a:hover, .sidebar__nav a[aria-current] { color: #fff; }
.sidebar__bottom { margin-top: auto; padding-top: 2rem; }
.langs { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.langs a { color: #fff; font: 700 .78rem/1 var(--head); text-decoration: none; border: 1px solid rgba(255,255,255,.45); border-radius: var(--r); padding: .45rem .55rem; }
.langs a[aria-current] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.sidebar__legal a { color: rgba(255,255,255,.75); font-size: .78rem; line-height: 1.5; text-decoration: none; display: block; padding: .15rem 0; }
.sidebar__legal a:hover { color: #fff; }
.sidebar__copy { color: rgba(255,255,255,.55); font-size: .75rem; margin: 1rem 0 0; }

.mobilebar { display: none; }
@media (max-width: 959px) {
  .mobilebar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40;
    background: var(--blue); padding: .5rem 16px; }
  .mobilebar__logo img { width: 46px; }
  .mobilebar__toggle { background: none; border: 0; padding: .4rem; color: #fff; cursor: pointer; }
  .mobilebar__toggle svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
  .mobilebar__toggle svg + svg { display: none; }
  .nav-open .mobilebar__toggle svg { display: none; }
  .nav-open .mobilebar__toggle svg + svg { display: block; }
  .sidebar { top: 62px; width: min(320px, 86vw); transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar__logo { display: none; }
  .nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .nav-open { overflow: hidden; }
}

/* page frame */
.page { min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 960px) { .page { margin-left: var(--sidebar); } }
main { flex: 1; }
.section { padding: 2.5rem clamp(16px, 4vw, 3rem); max-width: 1240px; }
.section--head { padding-bottom: 0; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.small { font-size: .85rem; color: var(--muted); }
.lead { font-size: 1.12rem; }
.closing { font: italic 500 1.15rem/1.5 var(--body); color: var(--blue); margin-top: 1.5rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: var(--r); cursor: pointer;
  font: 700 1rem/1 var(--head); padding: 1rem 1.6rem; text-decoration: none; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dark); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* hero (home) */
.hero { position: relative; color: #fff; min-height: clamp(380px, 52vw, 560px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,20,80,.78), rgba(0,20,80,.15) 70%); }
.hero__text { position: relative; z-index: 1; padding: 3rem clamp(16px, 4vw, 3rem); max-width: 620px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero p { font-size: 1.1rem; }
.is-blue { background: var(--blue-deep); color: #fff; }
.is-blue .filter span, .is-blue .card__title, .is-blue .grid__empty { color: #fff; }
.is-blue .card__meta { color: rgba(255,255,255,.75); }

/* filter + grid */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.6rem; }
.filter span { color: var(--gold); margin-right: .4rem; font-size: .95rem; }
.filter button { font: 600 .9rem/1 var(--body); border: 0; border-radius: var(--r); background: transparent; color: inherit; padding: .65rem 1rem; cursor: pointer; }
.filter button:hover { background: rgba(197,148,53,.18); }
.filter button.is-on { background: #000; color: var(--gold); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (max-width: 599px) { .grid { grid-template-columns: 1fr 1fr; gap: 1.6rem .8rem; } .card__title { font-size: .92rem; } .card__meta { font-size: .82rem; } .badge { font-size: .62rem; top: .5rem; left: .5rem; } }
.card a { color: inherit; text-decoration: none; display: block; }
.card__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper); border-radius: var(--r); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .5s; }
.card__alt { position: absolute; inset: 0; opacity: 0; }
.card a:hover .card__alt { opacity: 1; }
.card a:hover .card__img img:first-child { transform: scale(1.03); }
.card.is-sold .card__img img:first-child { filter: saturate(.75); }
.badge { position: absolute; top: .7rem; left: .7rem; background: var(--gold); color: #fff; font: 700 .72rem/1 var(--head); letter-spacing: .04em; text-transform: uppercase; padding: .45rem .6rem; border-radius: var(--r); }
.is-sold .badge { background: #000; }
.card__title { display: block; font: 600 1.05rem/1.3 var(--body); margin: .8rem 0 .25rem; }
.card__meta { font-size: .92rem; color: var(--muted); }
.card__meta s { opacity: .6; }
.card[hidden] { display: none; }

/* text band with photo background */
.band { position: relative; color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(16px, 8vw, 7rem); background: #333 var(--bg) center/cover; }
.band::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.band p { position: relative; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; max-width: 52rem; margin: 0; }

/* newsletter */
.news { position: relative; color: #fff; background: #1d2a17 url('/assets/img/02-stitchedfc-whyupcycling-01.jpg') center/cover; }
.news::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.1) 75%); }
.news__inner { position: relative; padding: 3.5rem clamp(16px, 4vw, 3rem); max-width: 560px; }
.news h2 { color: #fff; }
.news form { display: grid; gap: .7rem; margin-top: 1.2rem; }
.news input { border: 0; }

/* forms */
input, select, textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1rem; }
textarea { resize: vertical; }
label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 600; }
label.check { display: flex; align-items: center; gap: .6rem; font-weight: 400; }
label.check input { width: auto; }
.form__status { margin: .4rem 0 0; font-size: .95rem; }
.form__status.is-ok { color: #1f7a3c; font-weight: 600; }
.form__status.is-fail { color: var(--red); }
.news .form__status.is-ok { color: #9be3b2; }
.card-form { display: grid; gap: .9rem; background: var(--paper); border-radius: 8px; padding: clamp(1.2rem, 3vw, 2rem); }

/* product */
.product { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); padding: 1.2rem clamp(16px, 4vw, 3rem) 2rem; max-width: 1240px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.1fr 1fr; align-items: start; } .product__info { position: sticky; top: 2rem; } }
.gallery__main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--paper); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .5rem; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; }
.gallery__thumbs button.is-on { border-color: var(--gold); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__drop { font: 700 .78rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .8rem; }
.product__price { font: 700 1.4rem/1 var(--head); margin-bottom: 1.2rem; }
.product__price s { opacity: .5; font-weight: 500; margin-right: .3rem; }
.tag { display: inline-block; vertical-align: middle; background: #000; color: #fff; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: .4rem .55rem; border-radius: var(--r); margin-left: .5rem; }
.product__facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; margin: 0 0 1.2rem; font-size: .95rem; }
.product__facts dt { font-weight: 600; }
.product__facts dd { margin: 0; }
.product__pitch { font-style: italic; font-size: 1.08rem; }
.soldout { border-left: 4px solid var(--blue); background: var(--paper); padding: 1.1rem 1.3rem; border-radius: 0 var(--r) var(--r) 0; }
.soldout h2 { font-size: 1.15rem; margin-bottom: .3rem; }
.soldout p { margin: 0; }
.story { max-width: 860px; }
.story h3 { font-size: 1.4rem; margin-top: 2rem; color: var(--blue); }
.story__note { margin-bottom: 0; }
.stitchedfc-image-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; margin: 1.4rem 0; }
.stitchedfc-image-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }

/* dialog */
.dialog { border: 0; border-radius: 10px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--cream); color: var(--ink); }
.dialog::backdrop { background: rgba(0, 20, 80, .55); }
.dialog form { display: grid; gap: .8rem; padding: 1.8rem; position: relative; }
.dialog h2 { margin: 0; padding-right: 2rem; }
.dialog__piece { font: 700 1rem/1.3 var(--head); color: var(--blue); margin: 0; }
.dialog__close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; cursor: pointer; padding: .3rem; color: var(--ink); }
.dialog__close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* long-form pages */
.prose { max-width: 720px; }
.prose--narrow { max-width: 780px; }
.prose h2 { margin-top: 2rem; color: var(--blue); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
blockquote { margin: 1.6rem 0; padding: .3rem 0 .3rem 1.2rem; border-left: 4px solid var(--blue); font: italic 400 1.35rem/1.4 var(--body); color: var(--blue-deep); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 860px) { .split { grid-template-columns: 1.3fr 1fr; align-items: center; } .split--top { align-items: start; } }
.split > img { border-radius: var(--r); }
.legal h2 { font-size: 1.25rem; }
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.beforeafter figure { margin: 0; }
.beforeafter img { border-radius: var(--r); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.beforeafter figcaption { font: 700 .78rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; margin-top: .5rem; color: var(--muted); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.4rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { counter-increment: s; background: var(--paper); border-radius: 8px; padding: 1.3rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--blue); color: #fff; font: 800 1rem/1 var(--head); margin-bottom: .8rem; }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; font-size: .95rem; }

/* footer */
.footer { background: #000; color: rgba(255,255,255,.7); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.2rem clamp(16px, 4vw, 3rem); font-size: .85rem; }
.footer p { margin: 0; }
.footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.pay { background: #fff; color: var(--blue-deep); font: 800 .7rem/1 var(--head); padding: .4rem .55rem; border-radius: 3px; }
.footer__social { display: flex; gap: .8rem; }
.footer__social a { color: rgba(255,255,255,.7); display: block; }
.footer__social a:hover { color: #fff; }
.footer__social svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linejoin: round; }
.footer__social .fill { fill: currentColor; stroke: none; }

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