/* The Familiar Basket: site styles. Mobile first. */

:root {
  --cream: #ffffff;        /* page background: white */
  --cream-2: #f2f2ef;      /* subtle fills */
  --paper: #ffffff;
  --green: #0f4d2f;        /* the one accent: deep green */
  --green-2: #0b3d25;
  --green-soft: #eef4ef;
  --gold: #0f4d2f;         /* former gold accents now green */
  --gold-soft: #eef4ef;
  --ink: #161616;          /* near-black text */
  --ink-2: #4a4a4a;
  --ink-3: #7a7a7a;
  --line: #e6e6e3;
  --danger: #a8352f;
  --danger-soft: #f8e3e1;
  --ok: #2b7a4b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
button { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 0.4em; color: var(--green); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--green); text-decoration: none; letter-spacing: -0.015em; white-space: nowrap; line-height: 1; }
.brand .mark { width: 30px; height: 30px; color: var(--green); flex: none; }
.brand-lg { font-size: 2rem; margin-bottom: 10px; }
.brand-lg .mark { width: 38px; height: 38px; }
@media (max-width: 420px) { .brand { font-size: 1.3rem; gap: 8px; } .brand .mark { width: 24px; height: 24px; } .nav .btn { padding: 8px 12px; font-size: 0.88rem; } }
.brand em { font-style: italic; color: var(--green); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); background: var(--green-soft); }
.nav .btn { padding: 9px 14px; white-space: nowrap; }
.nav .btn-primary { color: #fff; }
.nav .btn-primary:hover { color: #fff; background: var(--green-2); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; font-weight: 500; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- Hero ---- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 6vw, 64px); }
.hero .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.hero-card h3 { margin-bottom: 12px; }
.hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.hero-card li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 9px; flex: none; }

/* ---- Sections ---- */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-alt { background: #f7f7f5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.grid-3 { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section-alt .card { background: #fff; }
.step { position: relative; padding-top: 18px; }
.step .num { position: absolute; top: -14px; left: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; }
.step h3 { margin-top: 8px; }

/* Cost example */
.bill { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 480px; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.bill-row:last-child { border-bottom: 0; }
.bill-row.total { font-weight: 600; font-size: 1.1rem; color: var(--green); border-top: 2px solid var(--green); margin-top: 6px; padding-top: 12px; }
.bill-row .note { display: block; font-size: 0.85rem; color: var(--ink-3); font-weight: 400; }

/* Callout */
.callout { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---- Footer ---- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 16px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer a { color: var(--ink-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Preview banner ---- */
.preview-banner { background: #161616; color: #fff; font-size: 0.85rem; text-align: center; padding: 8px 12px; }
.preview-banner a { color: #fff; }

/* ---- Shop ---- */
.shop { display: grid; gap: 24px; padding: 24px 0 120px; }
@media (min-width: 960px) { .shop { grid-template-columns: 1fr 380px; align-items: start; padding-bottom: 60px; } }
.shop-tools { display: grid; gap: 12px; margin-bottom: 18px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; }
.search input { flex: 1; border: 0; background: transparent; font: inherit; outline: none; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 0.9rem; }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }

.items { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.item { position: relative; background: #fff; border: 1px solid #ececea; border-radius: var(--radius); padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.item:hover, .item:focus-within { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 61, 43, 0.12); border-color: #d6cfbf; }
.item .thumb { aspect-ratio: 1; border-radius: 10px; background: #fafaf8; display: grid; place-items: center; overflow: hidden; }
.item .thumb img, .item .thumb svg { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.item:hover .thumb img, .item:hover .thumb svg { transform: scale(1.06); }
.item .thumb svg { padding: 14%; color: var(--green); }
.item .name { font-weight: 500; line-height: 1.3; font-size: 0.95rem; }
.item .meta { font-size: 0.82rem; color: var(--ink-3); }
.item .price { margin-top: auto; padding-top: 4px; }
.item .price .amount { font-weight: 600; color: var(--green); font-size: 1.05rem; }
.item .price .unit { display: block; font-size: 0.78rem; color: var(--ink-3); }
.item .price .sample { font-size: 0.68rem; color: #9a6a1f; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }
.item .in-basket { position: absolute; top: 10px; right: 10px; background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--green); font-size: 1.1rem; cursor: pointer; border-radius: 50%; }
.qty button:hover { background: var(--green-soft); }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-size: 0.95rem; }
.item .add { margin-top: 6px; width: 100%; }
.item .btn-secondary:hover { background: var(--green); color: #fff; }

.cat-head { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 12px; }
.cat-head:first-child { margin-top: 8px; }

.request { background: var(--paper); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 18px; margin-top: 24px; }
.request form { display: grid; gap: 10px; }
@media (min-width: 640px) { .request form { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; } }
.field label { display: block; font-size: 0.85rem; color: var(--ink-2); margin-bottom: 4px; }
.field input, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; }

/* ---- Basket panel ---- */
.basket { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .basket { position: sticky; top: 80px; } }
.basket h2 { font-size: 1.4rem; margin-bottom: 4px; }
.meter { display: grid; gap: 10px; margin: 14px 0; }
.meter-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--ink-2); white-space: nowrap; }
.bar { height: 10px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .25s ease; }
.bar.warn > span { background: var(--gold); }
.bar.full > span { background: var(--danger); }
.room { font-size: 0.9rem; color: var(--ink-2); margin: 6px 0 14px; }
.lines { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 0.92rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.line .ln { font-weight: 500; }
.line .lm { font-size: 0.8rem; color: var(--ink-3); }
.line .lp { font-weight: 600; white-space: nowrap; }
.line .pending { color: #9a6a1f; font-size: 0.8rem; font-weight: 600; }
.line .rm { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 0.85rem; padding: 2px 0; }
.line .rm:hover { color: var(--danger); }
.summary .bill-row { padding: 7px 0; }
.summary .bill-row.total { font-size: 1.15rem; }
.basket .btn-primary { width: 100%; margin-top: 12px; }
.empty { color: var(--ink-3); text-align: center; padding: 20px 0; }
.flag { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; margin: 10px 0; }

/* Mobile sticky basket bar */
.basket-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #161616; color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 20px rgba(0,0,0,.12); }
.basket-bar strong { font-size: 1.05rem; }
.basket-bar .btn { background: #fff; color: var(--green); padding: 9px 16px; }
@media (min-width: 960px) { .basket-bar { display: none; } }
.basket.open { display: block; }
@media (max-width: 959px) {
  .basket { display: none; position: fixed; inset: 0; z-index: 40; border-radius: 0; overflow: auto; }
  .basket .close { position: absolute; top: 12px; right: 12px; }
  .basket.open { display: block; }
}
.close { border: 0; background: var(--cream-2); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.toast.show { opacity: 1; }
@media (min-width: 960px) { .toast { bottom: 24px; } }

/* ---- Testimonials ---- */
.quotes { display: grid; gap: 18px; }
@media (min-width: 720px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.quote::before { content: "\201C"; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--gold); position: absolute; top: 10px; left: 18px; opacity: .8; }
.quote p { margin: 18px 0 14px; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.45; color: var(--ink); }
.quote .who { font-size: 0.9rem; color: var(--ink-2); }
.quote .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }
.quote .example-tag { position: absolute; top: 12px; right: 12px; font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: #9a6a1f; border: 1px solid #9a6a1f; border-radius: 999px; padding: 2px 8px; }

/* ---- Photography ---- */
.hero-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream-2); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
@media (min-width: 720px) { .photo-strip { grid-template-columns: repeat(4, 1fr); } }
.photo-strip figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--cream-2); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo-strip figure:hover img { transform: scale(1.04); }
.placeholder-photo { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-3); font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 12px; }
.cats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.cat { text-decoration: none; color: var(--ink); text-align: center; font-size: 0.9rem; }
.cat .disc { aspect-ratio: 1; border-radius: 50%; background: var(--cream-2); margin: 0 auto 8px; overflow: hidden; display: grid; place-items: center; color: var(--green); transition: transform .2s ease, box-shadow .2s ease; }
.cat:hover .disc { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat .disc svg { width: 46%; height: 46%; }
.cat .disc img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Steps with pictures (home) ---- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.step-card > div { padding: 14px 16px 18px; }
.step-card .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step-card p { margin: 0; font-size: 0.92rem; }

/* ---- Journey rows (how it works page) ---- */
.journey { display: grid; gap: 28px; }
.journey-row { display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) {
  .journey-row { grid-template-columns: 1fr 1fr; gap: 36px; }
  .journey-row:nth-child(even) img { order: 2; }
}
.journey-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.journey-row .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.journey-row h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.journey-row p { font-size: 1.05rem; max-width: 46ch; }

/* ---- Two-column blocks ---- */
.two-col { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.photo-pair { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.photo-pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.photo-pair img:nth-child(2) { margin-top: 28px; }
.hero-photo { aspect-ratio: 16 / 10; }
