/* Live Embroidery Events — "cost-and-craft" theme (v1, 2026-07-04)
   Palette: bg #fbf8f1, surface #fff, accent #0f6466 (thread teal), accent2 #d4a373 (camel), ink #20232a
   Display: Erode (Fontshare). Body: Assistant (Google).
   Motifs: ledger-grid ruling behind pricing blocks, running-stitch dashed dividers. */

:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --accent: #0f6466;
  --accent-deep: #0a4a4c;
  --accent2: #d4a373;
  --ink: #20232a;
  --ink-soft: #4c5158;
  --rule: rgba(15, 100, 102, 0.14);
  --stitch: 2px dashed var(--accent2);
  --disp: "Erode", Georgia, "Times New Roman", serif;
  --body: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(32, 35, 42, 0.09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

h1, h2, h3 { font-family: var(--disp); font-weight: 600; line-height: 1.14; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-bottom: 0.6em; }
h3 { font-size: 1.18rem; margin-bottom: 0.35em; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }
p + p { margin-top: 0.9em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.two-col { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200;
  background: var(--accent2); transform-origin: 0 0; transform: scaleX(0);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 22px;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--stitch);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #f6efe2;
  font-family: var(--disp); font-weight: 700; font-size: 1.15rem;
  border-radius: 10px;
  outline: 2px dashed rgba(246, 239, 226, 0.55); outline-offset: -6px;
}
.brand-word { line-height: 1.15; }
.brand-word strong { font-family: var(--disp); font-weight: 600; font-size: 1.02rem; display: block; }
.brand-word small { color: var(--ink-soft); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-toggle {
  display: none; font: 600 0.9rem var(--body); color: var(--accent);
  background: none; border: 1.5px solid var(--accent); border-radius: 999px;
  padding: 7px 16px; cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta {
  background: var(--accent); color: #fff; padding: 9px 18px; border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--accent-deep); color: #fff; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: var(--stitch);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 24px; border-top: 1px solid var(--rule); }
  .site-nav .nav-cta { border-radius: 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 0; }
.hero .eyebrow, .page-head .eyebrow, .post .eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1 { max-width: 21ch; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; margin-top: 16px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }
.chip {
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 18px; text-decoration: none;
  background: var(--surface);
  border: 1.5px solid var(--accent2); border-radius: 12px;
  box-shadow: 0 3px 0 rgba(212, 163, 115, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(212, 163, 115, 0.45); }
.chip b { font-family: var(--disp); font-size: 1.18rem; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.chip span { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.hero-photo {
  position: relative; margin-bottom: -70px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid var(--surface);
  outline: var(--stitch); outline-offset: 5px;
}
.hero-photo img { width: 100%; height: min(58vw, 480px); object-fit: cover; object-position: 50% 52%; }
.hero + .section { padding-top: 130px; }

/* ---------- page head ---------- */
.page-head { padding: 58px 0 8px; }
.page-head h1 { max-width: 24ch; }

/* ---------- sections ---------- */
.section { padding: 54px 0; }
.section + .section { border-top: var(--stitch); }
.inline-cta { margin-top: 1.2em; }
.inline-cta.center { text-align: center; margin-top: 2em; }
.button {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none; border-radius: 999px;
  padding: 13px 26px; font-size: 0.98rem;
  box-shadow: 0 4px 0 var(--accent-deep);
  transition: transform 0.15s ease;
}
.button:hover { transform: translateY(-2px); color: #fff; }

/* ---------- ledger motif ---------- */
.ledger-band {
  background:
    linear-gradient(rgba(251, 248, 241, 0.6), rgba(251, 248, 241, 0.6)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px),
    linear-gradient(to right, transparent 0, transparent 56px, rgba(212, 163, 115, 0.5) 56px, rgba(212, 163, 115, 0.5) 57px, transparent 57px, transparent 61px, rgba(212, 163, 115, 0.35) 61px, rgba(212, 163, 115, 0.35) 62px, transparent 62px),
    var(--bg);
}
.ledger {
  background: var(--surface);
  border: 1px solid var(--rule); border-left: 4px solid var(--accent2);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px 26px; margin-top: 10px;
}
.ledger.mini { padding: 6px 20px; margin: 18px 0; }
.ledger-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 0;
}
.ledger-row + .ledger-row { border-top: 1px dashed rgba(15, 100, 102, 0.25); }
.ledger-row.total { border-top: 2px solid var(--accent); font-weight: 700; }
.ledger-item { flex: 0 1 auto; }
.ledger-dots { flex: 1 0 30px; border-bottom: 2px dotted rgba(32, 35, 42, 0.3); transform: translateY(-4px); }
.ledger-amt {
  flex: none; font-family: var(--disp); font-weight: 700; font-size: 1.06rem;
  color: var(--accent-deep); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ledger-note { margin-top: 16px; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 620px) {
  .ledger { padding: 6px 16px; }
  .ledger-row { flex-wrap: wrap; gap: 4px; }
  .ledger-dots { display: none; }
  .ledger-amt { margin-left: auto; }
}

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--rule); box-shadow: var(--shadow);
  padding-bottom: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.card img { height: 180px; width: 100%; object-fit: cover; margin-bottom: 8px; }
.card h3, .card p, .card > a { padding: 0 20px; }
.card p { font-size: 0.96rem; color: var(--ink-soft); flex: 1; }
.card > a { font-weight: 700; font-size: 0.92rem; }

/* ---------- services alternating ---------- */
.svc {
  display: grid; gap: 30px; grid-template-columns: 1fr; align-items: center;
  padding: 36px 0;
}
.svc + .svc { border-top: var(--stitch); }
.svc img { border-radius: var(--radius); box-shadow: var(--shadow); height: 320px; width: 100%; object-fit: cover; }
@media (min-width: 880px) {
  .svc { grid-template-columns: 3fr 2fr; }
  .svc-flip { grid-template-columns: 2fr 3fr; }
  .svc-flip .svc-copy { order: 2; }
}
.svc-copy h2 { margin-bottom: 0.4em; }
.svc-copy p + p { margin-top: 0.8em; }

/* ---------- drivers list ---------- */
.drivers { list-style: none; }
.drivers li { padding: 10px 0 10px 26px; position: relative; }
.drivers li + li { border-top: 1px dashed rgba(15, 100, 102, 0.2); }
.drivers li::before {
  content: ""; position: absolute; left: 2px; top: 20px;
  width: 12px; height: 3px; background: var(--accent2); border-radius: 2px;
  box-shadow: 16px 0 0 -1px rgba(212, 163, 115, 0.5);
}

/* ---------- gallery ---------- */
.gal-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gal-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .gal-grid { grid-template-columns: 1fr 1fr 1fr; } }
.gal-grid figure {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.gal-grid img { width: 100%; height: 250px; object-fit: cover; }
.gal-grid figcaption { padding: 12px 16px 16px; font-size: 0.88rem; color: var(--ink-soft); border-top: var(--stitch); }

/* ---------- case studies ---------- */
.case {
  display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start;
  padding: 34px 0;
}
.case + .case { border-top: var(--stitch); }
.case img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 260px; object-fit: cover; }
@media (min-width: 880px) { .case { grid-template-columns: 2fr 3fr; } }
.lesson {
  margin-top: 1em; padding: 14px 18px;
  background: rgba(212, 163, 115, 0.14);
  border-left: 4px solid var(--accent2); border-radius: 0 10px 10px 0;
  font-size: 0.97rem;
}

/* ---------- blog post ---------- */
.post { padding: 58px 0 30px; }
.post h1 { margin-bottom: 0.3em; }
.post h2 { margin-top: 1.6em; }
.post img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 28px 0; width: 100%; height: 340px; object-fit: cover; }
.post .lede { margin-bottom: 10px; }

/* ---------- quote band + form ---------- */
.quote-band {
  background: var(--accent);
  color: #f2ede1;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(246, 239, 226, 0.08) 31px, rgba(246, 239, 226, 0.08) 32px);
}
.quote-band h2 { color: #fff; }
.quote-lede { max-width: 60ch; margin-bottom: 26px; color: rgba(242, 237, 225, 0.9); }
.lead-form {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; max-width: 780px;
  border-top: 6px solid var(--accent2);
}
.field-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.88rem; }
.lead-form input, .lead-form textarea {
  font: 400 1rem var(--body); color: var(--ink);
  padding: 11px 14px; border: 1.5px solid rgba(32, 35, 42, 0.22); border-radius: 9px;
  background: #fdfcf8;
}
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.lead-form textarea { resize: vertical; }
.hp-wrap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-submit {
  margin-top: 18px; width: 100%;
  font: 700 1.05rem var(--body); color: #fff; background: var(--accent);
  border: none; border-radius: 999px; padding: 15px 20px; cursor: pointer;
  box-shadow: 0 4px 0 var(--accent-deep);
}
.form-submit:hover { background: var(--accent-deep); }
.form-submit:disabled { opacity: 0.7; cursor: default; }
.form-note { margin-top: 12px; font-size: 0.88rem; color: var(--ink-soft); }
.lead-form.is-success { border-top-color: var(--accent); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 60px; padding: 52px 22px 90px;
  background: var(--ink); color: #d8d4ca;
  border-top: 4px solid var(--accent2);
}
.foot-grid { max-width: 1120px; margin: 0 auto; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 3fr 2fr; } }
.foot-brand strong { font-family: var(--disp); font-size: 1.25rem; color: #fff; display: block; margin-bottom: 10px; }
.foot-brand p { font-size: 0.95rem; max-width: 54ch; }
.foot-contact { margin-top: 14px; }
.foot-contact a { color: var(--accent2); font-weight: 700; text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.foot-nav a { color: #d8d4ca; text-decoration: none; font-size: 0.95rem; padding: 4px 0; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.foot-fine {
  max-width: 1120px; margin: 36px auto 0; padding-top: 20px;
  border-top: 1px dashed rgba(216, 212, 202, 0.3);
  font-size: 0.82rem; color: rgba(216, 212, 202, 0.65);
}
