/* ============================================================
   Sewlution Repairs
   Palette derived from the machines themselves:
   japanned black, ivory decal cream, brass gold, machine teal,
   heritage oxblood.
   ============================================================ */

:root {
  --ink:        #16110F;
  --ink-2:      #1F1813;
  --ink-3:      #2A211B;
  --paper:      #EFE7D8;
  --paper-soft: #cfc6b6;
  --muted:      #9c8f7e;
  --brass:      #C9A24B;
  --brass-deep: #A07C32;
  --teal:       #4DA193;
  --teal-deep:  #2E6F63;
  --oxblood:    #7A2626;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 18px 50px -20px rgba(0,0,0,.7);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* atmospheric grain + warm radial glow behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(122,38,38,.28), transparent 60%),
    radial-gradient(90% 60% at 10% 110%, rgba(46,111,99,.18), transparent 55%),
    var(--ink);
}

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 0;
  border-top: 2px dashed var(--brass-deep);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section__head { max-width: 620px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.01em; }
.section__intro { color: var(--paper-soft); font-size: 1.08rem; margin-top: 1.1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  background: var(--brass);
  color: #1a130a;
  font-weight: 600;
  padding: .85rem 1.5rem;
  border-radius: 100px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 8px 22px -10px rgba(201,162,75,.8);
}
.btn:hover { transform: translateY(-2px); background: #d9b35f; box-shadow: 0 14px 30px -10px rgba(201,162,75,.9); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--paper);
  border: 1.5px solid rgba(239,231,216,.28);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(239,231,216,.07); border-color: var(--brass); color: var(--paper); }
.btn--small { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--full { width: 100%; }

/* ---------- notice bar ---------- */
.notice {
  background: linear-gradient(90deg, var(--oxblood), #5a1c1c);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: .65rem var(--gutter);
  font-size: .92rem;
  position: relative;
  z-index: 60;
}
.notice__text { text-align: center; }
.notice strong { color: var(--brass); }
.notice__close {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--paper-soft);
  width: 32px; height: 32px; border-radius: 50%;
}
.notice__close:hover { color: var(--paper); background: rgba(0,0,0,.2); }
.notice.is-hidden { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s var(--ease), backdrop-filter .3s, box-shadow .3s;
}
.site-header.is-stuck {
  background: rgba(22,17,15,.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201,162,75,.18);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--brass); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text {
  font-family: var(--font-display); font-weight: 600; font-size: 1.32rem;
  color: var(--paper); line-height: 1; letter-spacing: -.01em;
}
.brand__sub { color: var(--brass); font-weight: 500; margin-left: .28em; }

.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  font-size: .94rem; font-weight: 500; color: var(--paper-soft);
  position: relative; padding-block: .3rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--brass); border-radius: 2px; transition: width .3s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { width: 100%; }
.nav__cta { margin-left: .5rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--paper); border-radius: 2px; transition: .3s var(--ease); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: .25rem;
  padding: 0 var(--gutter);
  max-height: 0; overflow: hidden;
  background: rgba(22,17,15,.96); backdrop-filter: blur(12px);
  transition: max-height .35s var(--ease), padding .35s var(--ease);
}
.mobile-menu.is-open { max-height: 420px; padding: 1rem var(--gutter) 1.6rem; }
.mobile-menu a { padding: .7rem 0; color: var(--paper-soft); border-bottom: 1px solid rgba(239,231,216,.08); }
.mobile-menu a:last-of-type { border: none; margin-top: .6rem; }
.mobile-menu .btn { color: #1a130a; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__title {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  letter-spacing: -.02em; margin: .4rem 0 0;
}
.hero__title span { display: block; }
.hero__title--accent { color: var(--brass); font-style: italic; font-weight: 500; }
.hero__lede {
  font-size: 1.18rem; color: var(--paper-soft);
  max-width: 30ch; margin-top: 1.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2.2rem; }

.rating { display: flex; align-items: center; gap: .6rem; }
.rating__num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.stars { color: var(--brass); letter-spacing: .08em; }
.rating__count, .reviews__sub { font-size: .85rem; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--paper-soft);
  border: 1px solid rgba(239,231,216,.18);
  padding: .4rem .8rem; border-radius: 100px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(77,161,147,.2); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,162,75,.16);
}
.hero__media figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(22,17,15,.78); backdrop-filter: blur(6px);
  color: var(--paper-soft); font-size: .82rem;
  padding: .5rem .85rem; border-radius: 100px;
  border: 1px solid rgba(201,162,75,.2);
}

/* running stitch under hero headline */
.stitch-line { width: min(420px, 100%); height: 12px; margin-top: 1.1rem; overflow: visible; }
.stitch-line__path {
  stroke: var(--brass); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 9 9;
  stroke-dashoffset: 460;
  animation: sew 2.4s var(--ease) .6s forwards;
}
@keyframes sew { to { stroke-dashoffset: 0; } }

/* ---------- seam divider ---------- */
.seam { width: 100%; height: 24px; overflow: hidden; }
.seam svg { width: 100%; height: 24px; }
.seam__path {
  stroke: var(--brass-deep); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 12 12;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.6s var(--ease);
  opacity: .55;
}
.seam.is-sewn .seam__path { stroke-dashoffset: 0; }

/* ---------- story ---------- */
.story__grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.story__media { position: relative; }
.story__media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(77,161,147,.22);
}
.story__media::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(239,231,216,.05);
  pointer-events: none;
}
.story__copy p { color: var(--paper-soft); margin-top: 1.1rem; font-size: 1.06rem; }
.story__copy .section__title { margin-top: 0; }
.signature {
  font-family: var(--font-display); font-style: italic;
  color: var(--brass) !important; font-size: 1.05rem; margin-top: 1.6rem !important;
}

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--ink-2);
  border: 1px solid rgba(239,231,216,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,75,.5);
  box-shadow: var(--shadow);
}
.card__media { overflow: hidden; aspect-ratio: 16 / 11; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card__head h3 { font-size: 1.5rem; }
.price {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  color: var(--brass); margin-top: .2rem; line-height: 1.1;
}
.price span { display: block; font-family: var(--font-body); font-size: .82rem; font-weight: 400; color: var(--muted); margin-top: .25rem; }
.card p { color: var(--paper-soft); font-size: .96rem; }
.ticks { display: flex; flex-direction: column; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: var(--paper-soft); font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px;
  border: 2px solid var(--teal); border-radius: 50%;
}
.card__note { font-size: .88rem !important; color: var(--muted) !important; margin-top: auto; padding-top: .4rem; }
.card__note--brass { color: var(--brass) !important; font-weight: 600; }

/* ---------- reviews ---------- */
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; flex-wrap: wrap; }
.reviews__score { text-align: right; flex: none; }
.reviews__num { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; display: block; }
.reviews__score .stars { font-size: 1.1rem; display: block; margin: .2rem 0; }
.quotes { columns: 3; column-gap: 1.5rem; }
.quote {
  break-inside: avoid; margin-bottom: 1.5rem;
  background: var(--ink-2);
  border: 1px solid rgba(239,231,216,.08);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
}
.quote p { color: var(--paper); font-size: 1rem; }
.quote p::before { content: "\201C"; color: var(--brass); font-family: var(--font-display); font-size: 1.4em; line-height: 0; vertical-align: -.2em; margin-right: .1em; }
.quote footer { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.quote__name { font-family: var(--font-display); font-weight: 600; }
.quote__tag { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(77,161,147,.4); padding: .15rem .55rem; border-radius: 100px; }
.quote footer .stars { font-size: .9rem; }
.reviews__cta { margin-top: 1rem; }

/* ---------- eddie ---------- */
.eddie__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eddie__copy p { color: var(--paper-soft); margin-top: 1.1rem; font-size: 1.06rem; }
.eddie__call {
  background: var(--ink-2); border: 1px dashed rgba(201,162,75,.4);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.6rem !important;
}
.eddie__call strong { color: var(--brass); }
.eddie__gallery {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  gap: 1rem;
}
.eddie__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(239,231,216,.08); }
.eddie__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.eddie__photo:hover img { transform: scale(1.05); }
.eddie__photo--lg { grid-row: span 2; }

/* ---------- visit ---------- */
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.info { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.5rem; }
.info__row { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed rgba(239,231,216,.14); }
.info__row:first-child { padding-top: 0; }
.info dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); padding-top: .2rem; }
.info dd { color: var(--paper); }
.info a:hover { color: var(--brass); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(239,231,216,.1); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 280px; border: 0; filter: grayscale(.25) contrast(1.05); }

/* form */
.form-card {
  background: var(--ink-2);
  border: 1px solid rgba(239,231,216,.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.6rem; }
.form-card__sub { color: var(--muted); font-size: .95rem; margin: .3rem 0 1.4rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .03em; color: var(--paper-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--paper);
  background: var(--ink); border: 1px solid rgba(239,231,216,.16);
  border-radius: 10px; padding: .72rem .9rem;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #6f6354; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(201,162,75,.18);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A24B' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem;
}
.field.has-error input, .field.has-error select { border-color: #d97a6a; }
.field__error { font-size: .78rem; color: #e08a7a; min-height: 0; }
.form-card .btn { margin-top: .4rem; }
.form-card__note { font-size: .76rem; color: var(--muted); text-align: center; margin-top: .9rem; line-height: 1.5; }

.form-success[hidden] { display: none; }
.form-success {
  position: absolute; inset: 0;
  background: var(--ink-2); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .8rem; padding: 2rem;
}
.form-success svg { width: 64px; height: 64px; color: var(--teal); }
.form-success .check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--paper-soft); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(239,231,216,.1); margin-top: 2rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand .brand { margin-bottom: 1rem; }
.footer__brand p { color: var(--paper-soft); max-width: 32ch; margin-bottom: 1.2rem; }
.footer__nav h4, .footer__contact h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.1rem; font-family: var(--font-body); }
.footer__nav { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav a { color: var(--paper-soft); width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--brass); }
.footer__contact p { color: var(--paper-soft); margin-bottom: .8rem; }
.footer__bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0 2rem; border-top: 1px dashed rgba(239,231,216,.12); font-size: .82rem; color: var(--muted); }

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .nav, .nav__cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .mobile-menu { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__lede { max-width: 46ch; }
  .story__grid { grid-template-columns: 1fr; }
  .story__media { order: -1; max-width: 480px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .quotes { columns: 2; }
  .eddie__grid { grid-template-columns: 1fr; }
  .visit__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .reviews__head { align-items: flex-start; }
  .reviews__score { text-align: left; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .quotes { columns: 1; }
  .field-row { grid-template-columns: 1fr; }
  .eddie__gallery { grid-template-columns: 1fr 1fr; }
  .eddie__photo--lg { grid-row: span 1; grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__proof { gap: 1rem; }
  .notice__text { padding-right: 1.5rem; font-size: .82rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .stitch-line__path { stroke-dashoffset: 0; }
  .seam__path { stroke-dashoffset: 0; }
}

/* focus visibility */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
