/* ==========================================================================
   Alterations.com Tailor Shop — Redesign
   Typography-forward: no authentic photography exists in the source archive.
   Signature device: dashed indigo "stitch line" + mono numerals for hard facts.
   ========================================================================== */

:root {
  --ink: #0f0e17;
  --paper: #f7f5f0;
  --paper-raised: #efece4;
  --indigo: #4d32db;
  --indigo-deep: #392399;
  --lilac: #dcd6f2;
  --taupe: #726d60;
  --brass: #c9a227;

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Source Serif 4", "PT Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --radius: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
p { margin: 0 0 1em; }
ul { padding-left: 0; list-style: none; margin: 0; }

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  display: inline-block;
  margin-bottom: 0.9rem;
}

/* Visually-hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus {
  left: var(--gutter);
  top: 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

/* ---------- Stitch line signature ---------- */
.stitch {
  border: none;
  height: 1px;
  margin: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--indigo) 0 10px,
    transparent 10px 18px
  );
}
.stitch--wide { height: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--lilac);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark svg {
  width: 30px;
  height: 30px;
  color: var(--indigo);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.main-nav ul {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.main-nav a:not(.btn) {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--indigo);
  transition: right 0.22s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn):focus-visible::after {
  right: 0;
}

.phone-link {
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75em 1.4em;
  border-radius: var(--radius);
  border: 1.5px solid var(--indigo);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn--primary {
  background: var(--indigo);
  color: #fff;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--indigo-deep);
  border-color: var(--indigo-deep);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--lilac);
}
.hero .container {
  display: grid;
  gap: 2rem;
}
.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  border: 1px solid var(--taupe);
  display: inline-block;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 0.15em;
}
.hero h1 span {
  display: block;
}
.hero h1 .accent-quote {
  color: var(--indigo);
}
.hero .stitch {
  margin: 1.6rem 0 1.8rem;
  max-width: 420px;
}
.hero-lede {
  max-width: 62ch;
  font-size: 1.15rem;
  color: #2a2820;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

/* ---------- Section rhythm ---------- */
section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}
section + section {
  border-top: 1px solid var(--lilac);
}
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.service-col h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3em;
}
.service-col .eyebrow { margin-bottom: 0.4rem; }
.service-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.55rem;
}
.service-list li {
  padding-left: 1.1rem;
  position: relative;
  color: #2a2820;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--indigo);
  border-radius: 50%;
}
.service-note {
  margin-top: 1.3rem;
  font-size: 0.95rem;
  color: var(--taupe);
  border-left: 2px solid var(--brass);
  padding-left: 1rem;
}
.brand-roster {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--lilac);
  font-size: 1rem;
  color: var(--taupe);
}
.brand-roster strong { color: var(--ink); }

/* ---------- Guarantee ---------- */
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 700px) {
  .guarantee-grid { grid-template-columns: 1fr 1fr; }
}
.guarantee-card {
  background: var(--paper-raised);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--lilac);
}
.guarantee-num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--indigo);
  display: block;
  margin-bottom: 0.3rem;
}
.guarantee-card h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.guarantee-card p {
  font-size: 0.96rem;
  color: #2a2820;
}
.guarantee-restriction {
  font-size: 0.8rem;
  color: var(--taupe);
  margin-top: 0.7rem;
  margin-bottom: 0;
}
.guarantee-juan {
  margin-top: 2.2rem;
  font-size: 1rem;
  padding: 1.1rem 1.3rem;
  border-left: 2px solid var(--indigo);
  background: var(--lilac);
  border-radius: var(--radius);
}

/* ---------- Pricing ---------- */
.pricing-copy {
  max-width: 62ch;
  margin-bottom: 2.2rem;
}
.pricing-figures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}
@media (min-width: 700px) {
  .pricing-figures { grid-template-columns: repeat(3, 1fr); }
}
.pricing-figure {
  border: 1px solid var(--lilac);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.pricing-figure .mono {
  font-size: 1.6rem;
  color: var(--indigo);
  display: block;
  margin-bottom: 0.4rem;
}
.pricing-figure p {
  font-size: 0.92rem;
  color: var(--taupe);
  margin-bottom: 0;
}
.pricing-cta {
  border-top: 1px dashed var(--lilac);
  padding-top: 1.6rem;
  font-size: 1.05rem;
}

/* ---------- Discounts ---------- */
.discount-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .discount-grid { grid-template-columns: 1fr 1fr; }
}
.discount-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
}
.discount-card .mono {
  font-size: 2.4rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.5rem;
}
.discount-card p {
  margin-bottom: 0.6rem;
}
.discount-card small {
  color: #b9b6ab;
  font-size: 0.8rem;
}

/* ---------- Community ---------- */
.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 700px) {
  .community-grid { grid-template-columns: 1fr 1fr; }
}
.community-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.community-card a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--indigo);
  text-decoration: underline;
  word-break: break-word;
}

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .visit-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.visit-block h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.hours-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--lilac);
}
.hours-table td:last-child {
  text-align: right;
}
.transit-list li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
}
.press-quote {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  border-left: 2px solid var(--indigo);
  padding-left: 1.2rem;
}
.press-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--taupe);
}
.address-block {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.address-block .mono {
  font-size: 1.3rem;
  display: block;
  margin-top: 0.3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--lilac);
  padding: 3rem 0 2.5rem;
  background: var(--paper-raised);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--taupe);
}
.footer-nav a:hover { color: var(--indigo); }
.footer-meta {
  font-size: 0.85rem;
  color: var(--taupe);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.footer-credit {
  font-size: 0.78rem;
  color: var(--taupe);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--lilac);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .main-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 2rem;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    width: 100%;
  }
  .main-nav a:not(.btn) { font-size: 1.05rem; padding: 0.5rem 0; }
}

/* No-JS fallback: keep nav visible on small screens if JS never runs */
.no-js .main-nav {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  padding: 1rem 0 0;
}
.no-js .nav-toggle { display: none; }
@media (max-width: 860px) {
  .no-js .main-nav ul { flex-direction: column; align-items: flex-start; }
}

/* ---------- Scroll reveal ----------
   Content is visible by default (no-JS / no-motion safe). JS opts INTO the
   hide-then-reveal animation only after it has attached an observer for a given
   element (via .reveal-armed), so there is never a window where content depends
   on a script callback to become visible. */
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.reveal-armed.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-armed { opacity: 1; transform: none; }
}
