/* ============================================================
   Live Embroidery Bar — "thread-salon" theme
   Warm ivory ground, orchid + dusty-rose thread accents,
   Gambetta editorial serif over Karla, running-stitch motif.
   Written from scratch for liveembroiderybar.com, 2026-07-04.
   ============================================================ */

:root {
  --bg: #faf4ee;
  --surface: #ffffff;
  --accent: #7d4f9e;
  --accent-deep: #5f3a7b;
  --accent2: #d9a5b3;
  --accent2-soft: #f3dde3;
  --ink: #2c2430;
  --ink-soft: #5c5262;
  --hem: #eadfd4;
  --radius: 16px;
  --disp: "Gambetta", "Georgia", serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --stitch: repeating-linear-gradient(90deg, var(--accent2) 0 12px, transparent 12px 22px);
  --stitch-purple: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 19px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; 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: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; font-weight: 700; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }

.eyebrow {
  font: 700 .78rem/1.2 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px; height: 2px;
  background: var(--stitch-purple);
  vertical-align: middle;
  margin-right: .6em;
}
.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 46em; }

/* ---- scroll progress: a thread being pulled across the top ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ------------------------------ header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.4rem);
  background: rgba(250, 244, 238, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hem);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--stitch); opacity: .7; pointer-events: none;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-hoop { display: grid; place-items: center; }
.brand-word strong { font-family: var(--disp); font-size: 1.12rem; font-weight: 700; display: block; line-height: 1.05; }
.brand-word small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav { display: flex; gap: 1.15rem; align-items: center; }
.site-nav a { font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta {
  background: var(--accent); color: #fff; padding: .5rem 1.05rem; border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--accent-deep); color: #fff; }
.nav-toggle {
  display: none; font: 700 .85rem var(--body); letter-spacing: .08em; text-transform: uppercase;
  background: none; border: 1.5px dashed var(--accent); color: var(--accent);
  padding: .45rem .9rem; border-radius: 999px; cursor: pointer;
}

@media (max-width: 860px) {
  .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: 2px solid var(--accent);
    box-shadow: 0 18px 30px rgba(44, 36, 48, .12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .85rem 1.4rem; border-top: 1px dashed var(--hem); }
  .site-nav .nav-cta { border-radius: 0; text-align: center; }
}

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font: 700 1rem var(--body); text-decoration: none;
  padding: .85rem 1.7rem; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(125, 79, 158, .28);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--accent); box-shadow: none;
  border: 1.6px dashed var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ------------------------------ hero ------------------------------ */
.hero { padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.4rem) 1rem; overflow: hidden; }
.hero-grid {
  max-width: 1180px; margin: 0 auto; position: relative;
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
}
.hero-copy { padding-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.5rem 0; }
.hero-facts { list-style: none; margin: 1.6rem 0 0; padding: 1.1rem 0 0; border-top: 2px solid transparent; border-image: none; position: relative; }
.hero-facts::before { content: ""; position: absolute; top: 0; left: 0; width: 220px; height: 2px; background: var(--stitch); }
.hero-facts li { padding: .28rem 0 .28rem 1.5rem; position: relative; color: var(--ink-soft); }
.hero-facts li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; background: var(--stitch-purple);
}
.hero-facts strong { color: var(--ink); }
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4; object-fit: cover; width: 100%;
  box-shadow: 0 26px 60px rgba(44, 36, 48, .22);
  transform: rotate(1.2deg);
}
.hero-chip {
  position: absolute; top: 1.1rem; left: -0.9rem;
  background: var(--surface); color: var(--accent-deep);
  font: 700 .8rem/1 var(--body); letter-spacing: .06em;
  padding: .6rem .95rem; border-radius: 999px;
  border: 1.6px dashed var(--accent2);
  transform: rotate(-3deg);
  box-shadow: 0 8px 20px rgba(44, 36, 48, .14);
}
.hero-inset { margin: 0; position: absolute; bottom: -1.2rem; right: clamp(30%, 34%, 38%); width: clamp(120px, 15vw, 180px); }
.hero-inset img {
  border-radius: 50%; aspect-ratio: 1; object-fit: cover;
  border: 6px solid var(--surface); outline: 3px solid var(--accent2);
  box-shadow: 0 16px 34px rgba(44, 36, 48, .22);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 420px; }
  .hero-inset { position: static; width: 0; height: 0; overflow: hidden; }
}

/* ------------------------- thread divider ------------------------- */
.thread { max-width: 1180px; margin: clamp(.6rem, 2vw, 1.6rem) auto; height: clamp(42px, 7vw, 90px); }
.thread svg { width: 100%; height: 100%; display: block; }
.thread-flip svg { transform: scaleX(-1); }

/* ------------------------------ sections ------------------------------ */
section { padding: clamp(1.4rem, 3.5vw, 2.6rem) clamp(1rem, 4vw, 2.4rem); }
.section-head { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.section-head .eyebrow::before { display: none; }
.section-head .eyebrow::after {
  content: ""; display: block; width: 60px; height: 2px; margin: .7em auto 0; background: var(--stitch-purple);
}
.section-sub { color: var(--ink-soft); }

/* steps */
.step-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1180px;
  display: grid; gap: 1.2rem; grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.step-list li {
  background: var(--surface); border: 1px solid var(--hem); border-radius: var(--radius);
  padding: 1.5rem 1.3rem 1.2rem; position: relative;
}
.step-list li::before {
  content: ""; position: absolute; top: .85rem; left: 1.3rem; right: 1.3rem; height: 2px; background: var(--stitch); opacity: .8;
}
.step-no {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; margin: .6rem 0 .7rem;
  border-radius: 50%; border: 2px solid var(--accent);
  font: 700 1rem var(--disp); color: var(--accent);
}
.step-list p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 1020px) { .step-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .step-list { grid-template-columns: 1fr; } }

/* split */
.split {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: clamp(1.4rem, 4vw, 3.4rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
}
.split-photo { margin: 0; }
.split-photo img {
  border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  box-shadow: 0 20px 44px rgba(44, 36, 48, .18);
}
.hoop-frame img {
  border-radius: 50%; aspect-ratio: 1;
  border: 8px solid var(--surface); outline: 4px solid var(--accent);
  outline-offset: 3px;
}
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li { padding: .35rem 0 .35rem 1.9rem; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 16px; height: 9px;
  border-left: 2.4px solid var(--accent); border-bottom: 2.4px solid var(--accent);
  transform: rotate(-48deg);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-photo { max-width: 420px; } }

/* menu band */
.menu-band { background: var(--surface); border-top: 1px solid var(--hem); border-bottom: 1px solid var(--hem); }
.menu-grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.menu-card {
  background: var(--bg); border-radius: var(--radius); padding: 1.4rem 1.3rem 1.1rem;
  border: 1px solid var(--hem); position: relative; overflow: hidden;
}
.menu-card::after {
  content: ""; position: absolute; left: 1.3rem; bottom: .9rem; width: 44px; height: 2px; background: var(--stitch-purple);
}
.menu-card h3 { color: var(--accent-deep); }
.menu-card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
@media (max-width: 900px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .menu-grid { grid-template-columns: 1fr; } }

/* proof */
.proof-grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.proof-grid figure { margin: 0; }
.proof-grid img {
  border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  box-shadow: 0 14px 30px rgba(44, 36, 48, .14);
}
.proof-grid figcaption { font-size: .88rem; color: var(--ink-soft); padding: .6rem .2rem 0; }
.proof-note { text-align: center; margin: 1.8rem auto 0; color: var(--ink-soft); }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; max-width: 460px; } }

/* planner strip / facts */
.fact-grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.1rem; grid-template-columns: repeat(4, 1fr); }
.fact {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--hem);
  padding: 1.25rem 1.2rem 1rem;
}
.fact strong { font-family: var(--disp); font-size: 1.1rem; color: var(--accent-deep); display: block; margin-bottom: .35rem; }
.fact p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.fact-more { text-align: center; margin: 1.7rem auto 0; color: var(--ink-soft); }
@media (max-width: 1020px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fact-grid { grid-template-columns: 1fr; } }

/* ------------------------------ contact / form ------------------------------ */
.contact { background: var(--accent-deep); color: #f6effa; border-radius: 28px 28px 0 0; margin-top: 1rem; }
.contact-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: clamp(1.6rem, 4vw, 3.4rem); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  padding: clamp(1rem, 2.5vw, 2rem) 0;
}
.contact-copy .eyebrow { color: var(--accent2); }
.contact-copy h2 { color: #fff; }
.contact-copy a { color: var(--accent2-soft); }
.lead-form {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: 0 26px 60px rgba(20, 10, 28, .35);
  position: relative;
}
.lead-form::before {
  content: ""; position: absolute; top: .75rem; left: 1.5rem; right: 1.5rem; height: 2px; background: var(--stitch);
}
.field-grid { display: grid; gap: .9rem 1rem; grid-template-columns: 1fr 1fr; margin-bottom: .9rem; }
.lead-form label { display: block; font: 700 .8rem/1.3 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.lead-form input, .lead-form textarea {
  width: 100%; margin-top: .3rem;
  font: 400 1rem var(--body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--hem); border-radius: 10px;
  padding: .7rem .8rem;
}
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.hp-wrap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit {
  width: 100%; margin-top: 1.1rem; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  font: 700 1.05rem var(--body); padding: .95rem 1.2rem;
  transition: background .15s ease;
}
.form-submit:hover { background: var(--accent-deep); }
.form-submit:disabled { opacity: .65; cursor: wait; }
.form-note { font-size: .88rem; color: var(--ink-soft); text-align: center; margin: .8rem 0 0; }
.lead-form.is-success { outline: 3px solid var(--accent2); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .field-grid { grid-template-columns: 1fr; } }

/* ------------------------------ subpage layouts ------------------------------ */
.page-hero { max-width: 880px; margin: 0 auto; padding-top: clamp(2rem, 5vw, 3.6rem); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose-tight { padding-top: 0; }
.post .post-date, .post-date { font: 700 .78rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); margin: 0 0 .4rem; }

/* services */
.service-list { max-width: 1080px; margin: 0 auto; display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
.service-row {
  display: grid; gap: clamp(1.2rem, 3vw, 2.6rem); grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center; background: var(--surface); border: 1px solid var(--hem); border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  position: relative;
}
.service-row::before { content: ""; position: absolute; top: .8rem; left: 1.4rem; width: 70px; height: 2px; background: var(--stitch); }
.service-row:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.service-row:nth-child(even) .service-copy { order: 2; }
.service-row figure { margin: 0; }
.service-row img { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.service-copy p:last-child { color: var(--ink-soft); font-size: .92rem; margin: 0; }
@media (max-width: 820px) {
  .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-copy { order: 0; }
  .service-row figure { max-width: 380px; }
}

/* pricing */
.anchor-grid { max-width: 1080px; margin: 0 auto; display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.anchor-card {
  background: var(--surface); border: 1px solid var(--hem); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; text-align: center;
}
.anchor-num { font: 500 2.3rem/1 var(--disp); color: var(--accent); display: block; margin-bottom: .6rem; }
.anchor-card p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .anchor-grid { grid-template-columns: 1fr; max-width: 460px; } }
.driver-list { list-style: none; counter-reset: d; max-width: 760px; margin: 0 auto; padding: 0; }
.driver-list li { counter-increment: d; padding: 1.1rem 0 1.1rem 3.4rem; position: relative; border-bottom: 1px dashed var(--hem); }
.driver-list li::before {
  content: counter(d, decimal-leading-zero); position: absolute; left: 0; top: 1.15rem;
  font: 500 1.5rem var(--disp); color: var(--accent2);
}
.driver-list h3 { margin-bottom: .3rem; }
.driver-list p { margin: 0; color: var(--ink-soft); }
.budget-note { max-width: 880px; margin: 0 auto; }

/* gallery */
.gallery-grid { max-width: 1180px; margin: 0 auto; columns: 3 300px; column-gap: 1.2rem; }
.gallery-grid figure { margin: 0 0 1.2rem; break-inside: avoid; }
.gallery-grid img { border-radius: var(--radius); width: 100%; box-shadow: 0 12px 28px rgba(44, 36, 48, .13); }
.gallery-grid figcaption { font-size: .88rem; color: var(--ink-soft); padding: .5rem .2rem 0; }

/* case studies */
.case {
  max-width: 1080px; margin: 0 auto 2.4rem;
  display: grid; gap: clamp(1.3rem, 3.5vw, 2.8rem); grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
}
.case-alt .case-photo { order: 2; }
.case-photo { margin: 0; }
.case-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 18px 40px rgba(44, 36, 48, .16); }
.case-tag { font: 700 .78rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.case-copy p { color: var(--ink-soft); }
.case-copy p strong { color: var(--ink); }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } .case-alt .case-photo { order: 0; } .case-photo { max-width: 400px; } }

/* event & answer cards */
.event-cards, .answer-cards {
  max-width: 1180px; margin: 0 auto; display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.event-card, .answer-card {
  display: block; background: var(--surface); border: 1px solid var(--hem); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; text-decoration: none; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
  position: relative; overflow: hidden;
}
.event-card:hover, .answer-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(44, 36, 48, .14); color: var(--ink); }
.event-card img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; margin-bottom: 1rem; }
.event-card h2, .answer-card h2 { font-size: 1.3rem; }
.event-card p, .answer-card p { color: var(--ink-soft); font-size: .95rem; }
.card-link { font: 700 .9rem var(--body); color: var(--accent); }
.event-card::after, .answer-card::after {
  content: ""; position: absolute; left: 1.3rem; right: 1.3rem; top: .7rem; height: 2px; background: var(--stitch); opacity: .7;
}

/* CTA band */
.cta-band { padding-bottom: clamp(2.2rem, 5vw, 4rem); }
.cta-inner {
  max-width: 880px; margin: 0 auto; text-align: center;
  background: var(--surface); border-radius: var(--radius);
  border: 1.6px dashed var(--accent2);
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.2rem, 4vw, 2.6rem);
}
.cta-inner p { color: var(--ink-soft); max-width: 40em; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.3rem; }

/* ------------------------------ footer ------------------------------ */
.site-footer { background: var(--ink); color: #cfc6d6; margin-top: 2rem; padding: clamp(2rem, 5vw, 3.4rem) clamp(1rem, 4vw, 2.4rem) 1rem; }
.footer-grid {
  max-width: 1180px; margin: 0 auto; display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr));
}
.footer-logo { font: 700 1.35rem var(--disp); color: #fff; margin-bottom: .5rem; }
.footer-brand p { font-size: .93rem; }
.footer-contact a { color: var(--accent2); font-weight: 700; text-decoration: none; }
.footer-head { font: 700 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: .6rem; }
.footer-col a { display: block; color: #cfc6d6; text-decoration: none; padding: .22rem 0; font-size: .95rem; }
.footer-col a:hover { color: var(--accent2); }
.footer-areas { font-size: .93rem; }
.footer-base { max-width: 1180px; margin: 2.2rem auto 0; text-align: center; }
.footer-base .stitch-h { display: block; height: 2px; background: var(--stitch); opacity: .5; margin-bottom: 1rem; }
.footer-base p { font-size: .85rem; color: #9d92a6; margin: 0; padding-bottom: .6rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
