/* ================================================================
   KIM A TAILOR — VARIATION B  ·  "The Alterations Studio"
   Modern / precise / technical.  Charcoal + warm stone + slate-teal.
   Motif: a tailor's measuring rule — hairlines, tick marks, and
   monospace spec labels.  Deliberately NOT the warm letterpress
   heritage look of variation A.
   Rebrand the whole site by editing the tokens below.
   ================================================================ */
:root {
  /* client brand */
  --brand:  #21262b;   /* graphite / charcoal ink */
  --accent: #3f6b73;   /* slate-teal — the single refined thread of colour */

  /* typefaces (loaded via Google Fonts <link> in each page head) */
  --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', ui-monospace, monospace;

  /* fixed studio palette — warm stone & graphite, cool accent */
  --ink: #1c1f22;
  --ink-soft: #5f6469;
  --paper: #ece8e1;       /* warm greige page */
  --paper-deep: #e0dbd1;  /* slightly deeper stone panel */
  --line: #c9c3b8;        /* hairline on paper */
  --line-soft: #d6d1c6;
  --white: #f7f5f0;       /* warm off-white card */
  --accent-tint: #e4e9e8; /* faint teal-grey wash */
}

/* ================================================================
   Base
   ================================================================ */
html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* very fine woven-cloth weft, barely there */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 3px);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}

::selection { background: var(--accent); color: var(--white); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ================================================================
   Studio atoms — mono spec labels + hairline rules + tick rule
   ================================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: var(--accent);
}

/* index numerals as fine mono figures over a hairline */
.section-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

/* the ruler: a horizontal tick strip used as a section divider */
.rule-tick {
  height: 14px;
  background-image:
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12px 100%;
  background-position: bottom left;
  border-bottom: 1px solid var(--line);
  opacity: 0.9;
}
.rule-dotted { border: none; border-top: 1px solid var(--line); }

/* ================================================================
   Buttons — flat, precise, thin-bordered (NO offset shadow)
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-brand {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}
.btn-brand:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--brand); border-color: var(--brand); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }

/* ================================================================
   Header / nav — thin rule, mono utility bar
   ================================================================ */
.topbar {
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.topbar a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); }
.topbar a:hover { color: var(--white); border-color: var(--accent); }

.site-header {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.wordmark .spark {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  transform: translateY(-0.28rem);
}

.navlink {
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
}
.navlink::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -3px;
  height: 1px;
  background: var(--accent);
  transition: right 200ms ease;
}
.navlink:hover { color: var(--ink); }
.navlink:hover::after { right: 0; }
.navlink.active { color: var(--ink); }
.navlink.active::after { right: 0; }

/* mobile panel */
.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-panel.open { display: block; }
.nav-panel a {
  display: block;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.nav-panel a:hover { background: var(--paper-deep); color: var(--accent); }

.hamburger { border: 1px solid var(--ink); border-radius: 2px; padding: 0.45rem 0.6rem; background: transparent; color: var(--ink); }
.hamburger:hover { background: var(--ink); color: var(--paper); }

/* ================================================================
   Hero — dark graphite panel with a measuring-rule spine
   ================================================================ */
.hero-shell {
  position: relative;
  background: var(--paper);
}

.hero-display {
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-display em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* spec line under headline: monospace measurements */
.spec-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.spec-line span { display: inline-flex; align-items: center; gap: 0.5rem; }
.spec-line span::before { content: "//"; color: var(--accent); }

/* the dark visual panel on the right of the hero */
.hero-panel {
  position: relative;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--brand);
  overflow: hidden;
  color: var(--white);
}
.hero-panel .rays { position: absolute; inset: 0; opacity: 0.16; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--white);
}
.chip .dot { width: 0.42rem; height: 0.42rem; border-radius: 999px; background: var(--accent); }

/* floating measurement tag inside hero panel */
.meas-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.meas-tag::before { content: ""; width: 0.5rem; height: 0.5rem; border: 1px solid var(--accent); border-radius: 999px; }

/* ================================================================
   Marquee → repurposed as a quiet mono spec ribbon
   ================================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--brand);
  color: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 2.4rem;
  white-space: nowrap;
  padding: 0.62rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  animation: marquee 34s linear infinite;
  width: max-content;
}
.marquee-track .sep { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================
   Service cards — flat spec cards, hairline border, top index
   ================================================================ */
.card-service {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.8rem 1.6rem 1.6rem;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.card-service::before {
  /* thin accent tick on the top-left corner */
  content: "";
  position: absolute;
  top: -1px; left: 1.6rem;
  width: 2.4rem; height: 2px;
  background: var(--accent);
}
.card-service:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.card-service .num {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.card-service .icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card-service h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.card-service p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.card-link:hover { color: var(--ink); }

/* ================================================================
   Testimonials — clean bordered slips, mono attribution
   ================================================================ */
.quote-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.9rem 1.6rem 1.4rem;
}
.quote-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}
.quote-card blockquote { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; font-style: italic; font-weight: 500; color: var(--ink); }
.quote-card figcaption { margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.quote-card figcaption::before { content: "— "; color: var(--accent); }

.stars { color: var(--accent); letter-spacing: 0.2em; font-size: 0.85rem; }

/* ================================================================
   CTA band — solid graphite
   ================================================================ */
.cta-band {
  background: var(--brand);
  color: var(--white);
  border-top: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12px 100%;
  opacity: 0.06;
}
.cta-band h2, .cta-band .display { color: var(--white); }
.cta-band .eyebrow { color: color-mix(in srgb, var(--accent) 55%, white); }
.cta-band .eyebrow::before { background: color-mix(in srgb, var(--accent) 55%, white); }
.cta-band .display { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ================================================================
   Hours table & map placeholder
   ================================================================ */
.hours-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.hours-table th { font-weight: 700; text-transform: uppercase; }
.hours-table td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours-table tr.today th { color: var(--accent); }
.hours-table tr.today td { color: var(--accent); font-weight: 700; }
.hours-table tr.closed td { color: var(--ink-soft); opacity: 0.75; }

.map-ph {
  position: relative;
  border: 1px solid var(--ink);
  border-radius: 3px;
  min-height: 280px;
  overflow: hidden;
  background-color: var(--paper-deep);
  background-image:
    repeating-linear-gradient(0deg, rgba(28,31,34,0.10) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(28,31,34,0.10) 0 1px, transparent 1px 46px);
}
.map-ph .rail {
  position: absolute;
  left: 0; right: 0; top: 46%;
  height: 8px;
  background: var(--accent);
  opacity: 0.5;
  transform: rotate(-4deg);
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -90%);
  color: var(--accent);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, -90%); } 50% { transform: translate(-50%, -108%); } }
.map-label {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ================================================================
   Forms
   ================================================================ */
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.8rem 0.95rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 140ms ease, background 140ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }

/* ================================================================
   Numbered process / about lists
   ================================================================ */
.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.step .step-num {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

details.faq {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  padding: 0;
}
details.faq[open] { border-color: var(--ink); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--accent); }
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding: 0 1.3rem 1.15rem; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.65; }

/* ================================================================
   Footer — graphite, mono details, thin accent rule
   ================================================================ */
.site-footer {
  background: var(--brand);
  color: var(--paper);
  border-top: 3px solid var(--accent);
}
.site-footer .wordmark { color: var(--paper); }
.site-footer .wordmark .spark { color: var(--accent); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .eyebrow { color: color-mix(in srgb, var(--accent) 60%, white); }
.site-footer .eyebrow::before { background: color-mix(in srgb, var(--accent) 60%, white); }
.footer-links a { display: block; padding: 0.25rem 0; font-size: 0.9rem; opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-fine { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; opacity: 0.6; }

/* big ghost wordmark at the very bottom */
.footer-ghost {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 232, 225, 0.16);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.01em;
}

/* ================================================================
   Misc
   ================================================================ */
.tick { color: var(--accent); font-weight: 700; font-family: var(--font-mono); }

.reveal { animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-1 { animation-delay: 90ms; }
.reveal-2 { animation-delay: 200ms; }
.reveal-3 { animation-delay: 320ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .map-pin, .reveal { animation: none !important; }
  html { scroll-behavior: auto; }
}
