/* =====================================================================
   LIVE EVENT EMBROIDERY — "Heritage Thread Atelier"
   Bespoke design for liveeventembroidery.com (v8). Standalone stylesheet.
   Palette: ivory paper, deep forest green, antique gold, near-black ink.
   Fonts: Cormorant Garamond (display) + Jost (body).
   ===================================================================== */

/* Force the heritage palette even on subpages that set inline vars */
:root,
body[style] {
  --paper:    #f7f1e6 !important;
  --paper-2:  #efe6d4 !important;
  --forest:   #1d3a2f !important;
  --forest-2: #15291f !important;
  --gold:     #b08d4f !important;
  --gold-soft:#cdb079 !important;
  --ink:      #20140c !important;
  --muted:    #6b5a4a !important;
  --line:     #d8c8ab !important;
  --hairline: #c8b487 !important;

  /* Map legacy var names used by subpages onto the heritage palette */
  --accent:   #1d3a2f !important;
  --accent-2: #b08d4f !important;
  --accent-3: #b08d4f !important;
  --surface:  #efe6d4 !important;
  --hero-ink: #f7f1e6 !important;
  --font-display: "Cormorant Garamond", Georgia, serif !important;
  --font-body:    "Jost", "Inter", Arial, sans-serif !important;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.12;
  letter-spacing: .002em;
  margin: 0;
}

p { margin: 0 0 1em; }

/* ---------- Reusable atelier primitives ---------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .68rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.display-xl {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 600;
}
.display-lg {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
}

.gold-rule {
  width: 78px;
  height: 1px;
  background: var(--gold);
  margin: 1.8rem auto;
}

.stitch-line {
  flex: 1;
  height: 0;
  border-top: 1.5px dashed var(--hairline);
  min-width: 40px;
}

.stitch-divider {
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1.5px dashed var(--hairline);
  opacity: .85;
}

.link-underline {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--forest);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: color .25s, border-color .25s;
}
.link-underline:hover { color: var(--gold); }

/* ---------- Buttons ---------- */
.button, .button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  padding: .95rem 1.9rem;
  border-radius: 6px;
  border: 1px solid var(--forest);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
  cursor: pointer;
}
.button {
  background: var(--forest);
  color: var(--paper);
}
.button:hover { background: var(--forest-2); transform: translateY(-2px); }
.button-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--gold);
}
.button-ghost:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--gold);
  z-index: 200;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 5vw, 3.5rem);
  background: rgba(247, 241, 230, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--forest);
}
.brand-words, .brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--forest);
}
.brand small {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.site-nav a {
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 400;
  transition: color .2s;
}
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-quote {
  border: 1px solid var(--gold);
  border-radius: 5px;
  padding: .5rem 1rem;
  color: var(--forest);
  letter-spacing: .14em;
  font-weight: 500;
}
.site-nav .nav-quote:hover { background: var(--forest); color: var(--paper); }

.nav-toggle {
  display: none;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  background: transparent;
  border: 1px solid var(--forest);
  color: var(--forest);
  border-radius: 5px;
  padding: .55rem 1rem;
  cursor: pointer;
}

/* ---------- HERO (centered editorial) ---------- */
.atelier-hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.2rem, 5vw, 2rem) 3rem;
  text-align: center;
}
.atelier-hero .lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.atelier-hero-media {
  margin: 0;
  position: relative;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(29, 58, 47, .55);
}
.atelier-hero-media::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.atelier-hero-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.atelier-hero-media figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
  padding-top: 1rem;
}
.hero-note {
  margin-top: 2rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .66rem;
  color: var(--muted);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  max-width: 1080px;
  margin: 1rem auto 0;
  padding: 2.4rem clamp(1.2rem, 5vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-label, .trust-bar > span:first-child {
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .64rem;
  color: var(--gold);
  white-space: nowrap;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  justify-content: center;
}
.trust-logos span {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--forest);
  opacity: .82;
}

/* ---------- Statement ---------- */
.atelier-statement {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.2rem, 5vw, 2rem);
  text-align: center;
}
.statement-body {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 640px;
  margin: 1.4rem auto 2rem;
}

/* ---------- Three pillars ---------- */
.atelier-pillars {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.2rem, 5vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}
.pillar { padding: 0 .5rem; }
.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: .6rem;
}
.pillar h3 {
  font-size: 1.5rem;
  margin-bottom: .7rem;
}
.pillar p { color: var(--muted); margin: 0; }
.atelier-pillars .pillar:not(:last-child) {
  border-right: 1px dashed var(--hairline);
}

/* ---------- Gallery ---------- */
.atelier-gallery {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
  text-align: center;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.photo-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
}
.photo-grid figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .98rem;
  color: var(--muted);
  padding: .75rem .25rem .25rem;
}

/* ---------- Process list ---------- */
.atelier-process {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
  text-align: center;
}
.process-list {
  list-style: none;
  margin: 2.8rem 0 0;
  padding: 0;
  text-align: left;
}
.process-list li {
  display: flex;
  gap: 1.6rem;
  align-items: baseline;
  padding: 1.7rem 0;
  border-bottom: 1px dashed var(--hairline);
}
.process-list li:first-child { border-top: 1px dashed var(--hairline); }
.process-numeral {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold);
  min-width: 3rem;
}
.process-list h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.process-list p { color: var(--muted); margin: 0; }

/* ---------- Intent ribbon ---------- */
.intent-ribbon {
  background: var(--forest);
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.6rem;
  padding: 1.5rem clamp(1.2rem, 5vw, 2rem);
}
.intent-ribbon span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-soft);
  position: relative;
}
.intent-ribbon span:not(:last-child)::after {
  content: "\00B7";
  position: absolute;
  right: -1.4rem;
  color: var(--gold);
}

/* ---------- FAQ ---------- */
.home-faq {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
  text-align: center;
}
.faq-list {
  margin-top: 2.4rem;
  text-align: left;
}
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1.3rem .2rem;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.6rem;
  transition: transform .25s;
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p {
  color: var(--muted);
  margin: .9rem 0 0;
  padding-right: 2rem;
}

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--forest);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
}
.quote-band .quote-intro,
.quote-band > div:first-child {
  max-width: 720px;
  margin: 0 auto 2.6rem;
  text-align: center;
}
.quote-band .eyebrow { color: var(--gold-soft); }
.quote-band h2 { color: var(--paper); }
.quote-band > div:first-child p,
.quote-band .quote-intro p { color: #e6dcc8; }

/* ---------- Lead form ---------- */
.lead-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 8px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.lead-form label {
  display: flex;
  flex-direction: column;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 500;
  color: var(--muted);
  gap: .45rem;
  margin-top: 1.1rem;
}
.field-grid label { margin-top: 0; }
.lead-form input,
.lead-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .8rem .9rem;
  width: 100%;
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 79, .18);
}
.lead-form textarea { resize: vertical; }
.hp-wrap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.hp-field { display: none; }
.form-submit {
  margin-top: 1.6rem;
  width: 100%;
  background: var(--forest);
  color: var(--paper);
  border: 1px solid var(--forest);
  border-radius: 6px;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s, transform .2s;
}
.form-submit:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.lead-form.is-success .form-submit { background: var(--gold); border-color: var(--gold); }
.form-note {
  margin: 1rem 0 0;
  font-size: .76rem;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-2);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 3px solid var(--gold);
}
.site-footer strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--paper);
  display: block;
  margin-bottom: .6rem;
}
.site-footer p {
  max-width: 460px;
  color: #d9cfbb;
  font-size: .92rem;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.site-footer nav a {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold-soft);
  transition: color .2s;
}
.site-footer nav a:hover { color: #fff; }

/* =====================================================================
   SUBPAGE LEGACY CLASS SUPPORT
   Subpages reuse: .hero/.hero-copy/.hero-media/.card/.card-grid/.quote-band
   plus decorative .hero-livebug/.hero-ticker/.ticket-* etc. Style them to
   match the heritage atelier and hide the loud "live broadcast" widgets.
   ===================================================================== */

/* Subpage hero — turn the old split hero into a centered editorial block */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-copy { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}
.hero .lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--ink);
  margin: 0 auto 1.6rem;
  max-width: 620px;
}
.hero .hero-actions { margin-bottom: 2rem; }
.hero-media {
  margin: 2rem auto 0;
  position: relative;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  max-width: 760px;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-media figcaption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  padding-top: .8rem;
  font-size: .98rem;
}

/* Hide the loud broadcast / ticket / ticker widgets to keep the calm tone */
.hero-livebug,
.hero-timestamp,
.hero-ticker,
.hero-artifact,
.hero-accessory,
.menu-ticket {
  display: none !important;
}

/* Subpage card grids */
.card-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 2rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 1.8rem;
  border-radius: 4px;
}
.card h2, .card h3 {
  font-size: 1.45rem;
  margin-bottom: .6rem;
}
.card p { color: var(--muted); margin: 0 0 .8rem; }
.card a:not(.button):not(.button-ghost) {
  color: var(--forest);
  border-bottom: 1px solid var(--gold);
  font-weight: 500;
}

/* Generic content sections on subpages (services, blog body, etc.) */
main > section:not(.hero):not(.quote-band):not(.intent-ribbon):not(.trust-bar):not(.atelier-hero):not(.atelier-pillars):not(.atelier-gallery):not(.atelier-process):not(.atelier-statement):not(.home-faq):not(.card-grid) {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 5vw, 2rem);
}
main h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .8rem; }
main h3 { font-size: 1.35rem; margin: 1.6rem 0 .5rem; }

/* Blog list items / articles */
article + article { margin-top: 1.4rem; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .atelier-pillars { grid-template-columns: 1fr; gap: 0; }
  .atelier-pillars .pillar:not(:last-child) {
    border-right: none;
    border-bottom: 1px dashed var(--hairline);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .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(--paper);
    border-bottom: 1px solid var(--line);
    padding: .6rem clamp(1.2rem, 5vw, 2rem) 1.2rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: .85rem .2rem;
    border-bottom: 1px dashed var(--hairline);
  }
  .site-nav .nav-quote { margin-top: .6rem; text-align: center; }
  .field-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .process-list li { gap: 1rem; }
  .process-numeral { min-width: 2.2rem; font-size: 1.6rem; }
  .trust-bar .stitch-line { display: none; }
}

@media (max-width: 420px) {
  .brand small { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button, .hero-actions .button-ghost { width: 100%; }
}
