/* Šitie Atelier — stilicateg.buzz — prefix st- — A21 chalkboard · T19 small-caps + serif */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Figtree:wght@400;500;600&display=swap');

:root {
  --st-chalk: #e8e4d4;
  --st-chalk-dim: #c8c2a8;
  --st-board: #1a3a2a;
  --st-board-deep: #0f2418;
  --st-board-mid: #234d38;
  --st-accent: #d4c48a;
  --st-ink: #f2efe3;
  --st-muted: #a8b5a0;
  --st-line: rgba(232, 228, 212, 0.22);
  --st-font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --st-font-body: 'Figtree', 'Segoe UI', sans-serif;
  --st-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --st-header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--st-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--st-ink);
  background: var(--st-board-deep);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(35, 77, 56, 0.55), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(15, 36, 24, 0.9), transparent 50%),
    linear-gradient(180deg, var(--st-board) 0%, var(--st-board-deep) 40%);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--st-accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--st-chalk); }
h1, h2, h3 {
  font-family: var(--st-font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--st-chalk);
  letter-spacing: 0.01em;
}
.st-label {
  font-family: var(--st-font-body);
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--st-accent);
  display: block;
  margin-bottom: 0.55rem;
}

/* H07 — overlay always, light on photo */
.st-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(15, 36, 24, 0.72), transparent);
  pointer-events: none;
}
.st-header > * { pointer-events: auto; }
.st-brand {
  font-family: var(--st-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--st-chalk);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.st-brand span {
  display: block;
  font-family: var(--st-font-body);
  font-size: 0.65rem;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  color: var(--st-chalk-dim);
  margin-top: 0.15rem;
}
.st-menu-toggle {
  appearance: none;
  border: 1px solid var(--st-line);
  background: rgba(15, 36, 24, 0.45);
  color: var(--st-chalk);
  font-family: var(--st-font-body);
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.st-menu-toggle:hover { border-color: var(--st-accent); color: var(--st-accent); }

/* N20 — two-step menu */
.st-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 20, 14, 0.92);
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.st-nav-overlay.is-open { display: flex; }
.st-nav-panel {
  width: min(420px, 100%);
  align-self: center;
  border: 1px solid var(--st-line);
  background: var(--st-board);
  padding: 1.75rem 1.5rem 2rem;
  position: relative;
}
.st-nav-close {
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  background: none; border: none;
  color: var(--st-chalk-dim);
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.st-nav-step { display: none; }
.st-nav-step.is-active { display: block; }
.st-nav-step h2 {
  font-size: 1.65rem;
  margin: 0 0 1.25rem;
}
.st-nav-cats, .st-nav-links {
  list-style: none;
  margin: 0; padding: 0;
}
.st-nav-cats li, .st-nav-links li { margin: 0 0 0.35rem; }
.st-nav-cats button,
.st-nav-links a {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--st-line);
  color: var(--st-chalk);
  font-family: var(--st-font-display);
  font-size: 1.35rem;
  padding: 0.65rem 0;
  cursor: pointer;
  text-decoration: none;
}
.st-nav-cats button:hover,
.st-nav-links a:hover { color: var(--st-accent); }
.st-nav-back {
  margin-top: 1.25rem;
  background: none;
  border: none;
  color: var(--st-muted);
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 0;
}

/* Inner pages: header needs solid feel when no tall photo */
.st-page-top {
  position: relative;
  min-height: var(--st-header-h);
  background:
    linear-gradient(135deg, var(--st-board-mid), var(--st-board-deep)),
    url('../images/rolled-bolt-cloth.jpg') center/cover;
  background-blend-mode: multiply;
}
.st-page-top .st-header {
  position: relative;
  background: rgba(15, 36, 24, 0.55);
}

/* Y06 — 50/50 hero */
.st-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(92vh, 820px);
  position: relative;
}
.st-hero-photo {
  position: relative;
  overflow: hidden;
  background: var(--st-board-deep);
}
.st-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}
.st-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--st-header-h) + 2rem) 8% 3.5rem;
  background:
    linear-gradient(160deg, var(--st-board-mid) 0%, var(--st-board-deep) 70%);
  position: relative;
}
.st-hero-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}
.st-hero-copy > * { position: relative; }
.st-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 0.75rem;
  max-width: 12ch;
}
.st-hero-lead {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  color: var(--st-chalk-dim);
  font-size: 1.05rem;
}
.st-cta {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--st-accent);
  color: var(--st-board-deep);
  background: var(--st-accent);
  text-decoration: none;
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  transition: background 0.25s var(--st-ease), color 0.25s var(--st-ease);
}
.st-cta:hover { background: transparent; color: var(--st-accent); }
.st-cta-ghost {
  background: transparent;
  color: var(--st-chalk);
  border-color: var(--st-line);
  margin-left: 0.65rem;
}
.st-cta-ghost:hover { border-color: var(--st-accent); color: var(--st-accent); }

/* S19 — breadcrumb-style section labels */
.st-crumb {
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: var(--st-muted);
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--st-line);
  max-width: 42rem;
}
.st-crumb span { color: var(--st-accent); }

.st-wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
}
.st-section {
  padding: 3.75rem 0;
}
.st-section + .st-section { padding-top: 0; }

/* Page index (L07) */
.st-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--st-line);
}
.st-index-list li {
  border-bottom: 1px solid var(--st-line);
}
.st-index-list a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  text-decoration: none;
  color: var(--st-chalk);
  font-family: var(--st-font-display);
  font-size: 1.55rem;
}
.st-index-list a:hover { color: var(--st-accent); }
.st-index-list .st-num {
  font-family: var(--st-font-body);
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--st-muted);
}
.st-index-list .st-go {
  font-family: var(--st-font-body);
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--st-accent);
}

/* Deep feature */
.st-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.st-feature img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.st-prose p { color: var(--st-chalk-dim); margin: 0 0 1rem; }
.st-prose p:last-child { margin-bottom: 0; }

/* C07 — offerings table */
.st-table-wrap { overflow-x: auto; }
.st-offerings {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.st-offerings th,
.st-offerings td {
  text-align: left;
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid var(--st-line);
  vertical-align: top;
}
.st-offerings th {
  font-family: var(--st-font-body);
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--st-accent);
  font-weight: 500;
}
.st-offerings td:first-child {
  font-family: var(--st-font-display);
  font-size: 1.2rem;
  color: var(--st-chalk);
  width: 28%;
}
.st-offerings td { color: var(--st-chalk-dim); }

/* K05 — hours dominant visit */
.st-visit {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--st-line);
  border-bottom: 1px solid var(--st-line);
}
.st-hours {
  margin: 0;
}
.st-hours dt {
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: var(--st-accent);
  margin-top: 1rem;
}
.st-hours dt:first-child { margin-top: 0; }
.st-hours dd {
  margin: 0.35rem 0 0;
  font-family: var(--st-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--st-chalk);
  line-height: 1.2;
}
.st-visit-side p {
  color: var(--st-chalk-dim);
  margin: 0 0 1.25rem;
}
.st-phone-cta {
  display: inline-block;
  font-family: var(--st-font-display);
  font-size: 1.65rem;
  color: var(--st-chalk);
  text-decoration: none;
  border-bottom: 1px solid var(--st-accent);
  padding-bottom: 0.15rem;
}
.st-phone-cta:hover { color: var(--st-accent); }

/* Inner page hero band */
.st-inner-hero {
  padding: 2.5rem 0 1rem;
}
.st-inner-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin: 0 0 0.75rem;
}
.st-inner-hero p {
  max-width: 42rem;
  color: var(--st-chalk-dim);
  margin: 0;
}
.st-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}
.st-split img { width: 100%; object-fit: cover; max-height: 420px; }
.st-figure { margin: 2rem 0; }
.st-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--st-muted);
}
.st-process-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  counter-reset: st-step;
}
.st-process-steps li {
  counter-increment: st-step;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-bottom: 1px solid var(--st-line);
  position: relative;
  color: var(--st-chalk-dim);
}
.st-process-steps li::before {
  content: counter(st-step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1.35rem;
  font-family: var(--st-font-body);
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--st-accent);
}
.st-process-steps strong {
  display: block;
  font-family: var(--st-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--st-chalk);
  margin-bottom: 0.35rem;
}

/* Contact form */
.st-form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}
.st-form label {
  display: block;
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--st-accent);
  margin-bottom: 0.35rem;
}
.st-form input,
.st-form textarea,
.st-form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--st-line);
  background: rgba(15, 36, 24, 0.55);
  color: var(--st-chalk);
  font-family: var(--st-font-body);
  font-size: 1rem;
}
.st-form textarea { min-height: 140px; resize: vertical; }
.st-form button[type="submit"] {
  justify-self: start;
  cursor: pointer;
}
.st-form-success {
  display: none;
  padding: 1rem 1.15rem;
  border: 1px solid var(--st-accent);
  color: var(--st-chalk);
  margin-bottom: 1rem;
}
.st-form-success.is-visible { display: block; }
.st-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

/* F18 — diagonal split footer */
.st-footer {
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 220px;
}
.st-footer-a,
.st-footer-b {
  padding: 2.5rem 8% 2.75rem;
  position: relative;
}
.st-footer-a {
  background: var(--st-board-mid);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  z-index: 1;
}
.st-footer-b {
  background: #0a1810;
  margin-left: -8%;
  padding-left: calc(8% + 2rem);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.st-footer-brand {
  font-family: var(--st-font-display);
  font-size: 1.75rem;
  color: var(--st-chalk);
  margin: 0 0 0.75rem;
}
.st-footer-contact {
  color: var(--st-chalk-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.st-footer-contact a { color: var(--st-accent); text-decoration: none; }
.st-footer-links {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}
.st-footer-links a {
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--st-chalk-dim);
  text-decoration: none;
}
.st-footer-links a:hover { color: var(--st-accent); }
.st-footer-legal {
  font-size: 0.78rem;
  color: var(--st-muted);
  margin: 0;
}

/* CB05 — center modal cookie */
.st-cookie {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(9, 20, 14, 0.72);
}
.st-cookie.is-open { display: flex; }
.st-cookie-card {
  width: min(440px, 100%);
  background: var(--st-board);
  border: 1px solid var(--st-line);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.st-cookie-card h2 {
  font-size: 1.45rem;
  margin: 0 0 0.65rem;
}
.st-cookie-card p {
  margin: 0 0 1.15rem;
  color: var(--st-chalk-dim);
  font-size: 0.95rem;
}
.st-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.st-cookie-actions button {
  appearance: none;
  border: 1px solid var(--st-line);
  background: transparent;
  color: var(--st-chalk);
  font-family: var(--st-font-body);
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
}
.st-cookie-actions button[data-cookie="accept"] {
  background: var(--st-accent);
  border-color: var(--st-accent);
  color: var(--st-board-deep);
}
.st-cookie-settings {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--st-line);
}
.st-cookie-settings.is-open { display: block; }
.st-cookie-settings label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  color: var(--st-chalk-dim);
  font-size: 0.92rem;
}

/* M01 fade-up */
.st-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--st-ease), transform 0.7s var(--st-ease);
}
.st-fade.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .st-fade { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 880px) {
  .st-hero { grid-template-columns: 1fr; min-height: auto; }
  .st-hero-photo { order: -1; min-height: 48vh; }
  .st-hero-photo img { min-height: 48vh; }
  .st-hero-copy { padding: 2rem 6% 2.75rem; }
  .st-feature,
  .st-visit,
  .st-split,
  .st-contact-grid,
  .st-footer { grid-template-columns: 1fr; }
  .st-footer-a,
  .st-footer-b {
    clip-path: none;
    margin: 0;
    padding: 1.75rem 6%;
  }
  .st-footer-b { padding-left: 6%; background: #0a1810; }
  .st-cta-ghost { margin-left: 0; margin-top: 0.55rem; display: inline-block; }
  .st-index-list a { grid-template-columns: 2.5rem 1fr; font-size: 1.3rem; }
  .st-index-list .st-go { display: none; }
}
