/*
Theme Name: Sew Right Upholstery
Version: 1.0.0
Text Domain: kit
*/

:root {
  --ink: #241c17;
  --mute: rgba(36, 28, 23, .72);
  --saddle: #a0602c;
  --saddle-deep: #7a4419;
  --ox: #6e1d1c;
  --thread: #f2e6c9;
  --cream: #faf4e8;
  --red: #d4312b;
  --wrap: 1200px;
  --gap: 24px;
  --head: 'Alfa Slab One', 'Rockwell', serif;
  --west: 'Rye', 'Alfa Slab One', serif;
  --body: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --grain: radial-gradient(circle at 20% 30%, rgba(0,0,0,.09) 0 1px, transparent 2px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.06) 0 1px, transparent 2px), radial-gradient(circle at 40% 80%, rgba(0,0,0,.07) 0 1.5px, transparent 2.5px);
  --stitch: repeating-linear-gradient(90deg, var(--thread) 0 10px, transparent 10px 18px);
}

body { font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; position: relative; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.02; margin: 0 0 .35em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.kicker { font: 400 1rem/1.2 var(--west); color: var(--saddle); margin: 0 0 12px; letter-spacing: .04em; }
.proto-note { margin: 0; padding: 7px var(--gap); background: var(--ink); color: var(--thread); font: 500 .88rem/1.3 var(--body); text-align: center; }

.masthead { background: var(--ink); color: var(--thread); background-image: var(--grain); background-size: 13px 13px, 17px 17px, 23px 23px; border-bottom: 3px dashed var(--thread); }
.masthead-in { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gap); min-height: 74px; }
.brand-name { display: grid; font: 400 1.7rem/1 var(--head); color: var(--thread); }
.brand-name em { font: 400 .78rem/1.2 var(--west); font-style: normal; color: var(--saddle); margin-top: 4px; letter-spacing: .06em; }
.nav-list a { font: 600 1rem/1 var(--body); color: var(--thread); padding: 8px 0; border-bottom: 2px dashed transparent; }
.nav-list a:hover { border-color: var(--thread); }
.nav-call { font: 700 1.05rem/1 var(--body); text-decoration: none; background: var(--saddle); color: #fff; padding: 13px 16px; border-radius: 8px; outline: 2px dashed var(--thread); outline-offset: -6px; }
.nav-toggle { background: none; border: 2px solid var(--thread); color: var(--thread); border-radius: 8px; padding: 0 14px; font: 600 1rem var(--body); }
.top-call { display: none; }
@media (max-width: 1080px) {
  .site-nav { background: var(--ink); padding: 8px var(--gap) 22px; }
  .nav-list a { font-size: 1.2rem; border-bottom: 1px solid rgba(242,230,201,.15); }
  .top-call { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 14px; background: var(--saddle); color: #fff; font: 700 1rem/1 var(--body); text-decoration: none; border-radius: 8px; }
  .nav-toggle { margin-left: 10px; }
}
@media (max-width: 520px) { .brand-name { font-size: 1.3rem; } .masthead-in { gap: 8px; } }

/* the running thread */
.thread { position: absolute; z-index: 5; left: max(6px, calc((100vw - var(--wrap)) / 2 - 30px)); top: 120px; width: 40px; height: calc(100% - 240px); pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--saddle); stroke-width: 3; stroke-dasharray: .006 .006; vector-effect: non-scaling-stroke; opacity: .55; mask: none; }
.thread path { stroke-dasharray: 9 7; }
@media (max-width: 900px) { .thread { display: none; } }

.tag-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; font: 700 1.1rem/1 var(--body); text-decoration: none; color: #fff; background: var(--red); border-radius: 10px; outline: 2px dashed rgba(255,255,255,.75); outline-offset: -7px; box-shadow: 0 5px 0 #8f1c18; transition: transform .15s; }
.tag-btn:hover { transform: translateY(-2px); }
.ghost-btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 22px; color: var(--thread); text-decoration: none; font-weight: 700; border: 2px dashed var(--thread); border-radius: 10px; }
.acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* hero: leather panel left, the bench right */
.sru-hero { position: relative; min-height: calc(100svh - 112px); max-height: 940px; display: flex; align-items: stretch; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero-media { position: absolute; inset: 0 0 0 34%; z-index: -1; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hide { position: relative; width: min(560px, 48vw); margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); padding: clamp(40px, 7vh, 80px) clamp(26px, 3vw, 46px); background: linear-gradient(160deg, #8a5426, #6b3c17 70%, #5a3112); background-image: var(--grain), linear-gradient(160deg, #8a5426, #6b3c17 70%, #5a3112); background-size: 13px 13px, 17px 17px, 23px 23px, auto; color: var(--thread); display: flex; flex-direction: column; justify-content: center; clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%); box-shadow: 30px 0 60px rgba(0,0,0,.5); }
.hide::before { content: ''; position: absolute; inset: 14px 9% 14px 14px; border: 2px dashed rgba(242,230,201,.7); clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%); pointer-events: none; }
.hide-kicker { font: 400 1.1rem/1 var(--west); color: var(--thread); opacity: .85; margin: 0 0 16px; }
.sru-hero h1 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 1.04; margin: 0 0 18px; }
.st { display: block; }
.st-alt { color: #ffd38a; }
.js .st { opacity: 0; transform: translateX(-30px); animation: sew .8s cubic-bezier(.2,.8,.2,1) forwards; }
.js .st:nth-child(2) { animation-delay: .2s; } .js .st:nth-child(3) { animation-delay: .4s; }
@keyframes sew { to { opacity: 1; transform: none; } }
.hide-lead { max-width: 30em; color: rgba(242,230,201,.88); margin: 0; }

/* badges */
.sr-badges { background: var(--ox); background-image: var(--grain); background-size: 13px 13px, 17px 17px, 23px 23px; padding: 30px 0; }
.bd-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.badge { margin: 0; text-align: center; color: var(--thread); padding: 16px 12px 14px; border-radius: 50% / 22%; background: rgba(0,0,0,.18); outline: 2px dashed rgba(242,230,201,.7); outline-offset: -8px; transform: rotate(var(--r)); display: grid; gap: 2px; }
.badge b { font: 400 2rem/1 var(--head); }
.badge span { font: 400 .85rem/1.2 var(--west); opacity: .85; }
.js .badge.pop { opacity: 0; transform: scale(.6) rotate(var(--r)); transition: opacity .4s, transform .6s cubic-bezier(.3,1.5,.4,1); }
.js .badge.pop.in { opacity: 1; transform: rotate(var(--r)); }

.band { padding: clamp(64px, 9vw, 110px) 0; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 3/4; border-radius: 14px; text-decoration: none; color: #fff; background: var(--ink); outline: 2px dashed rgba(242,230,201,.0); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.07); }
.tile::after { content: ''; position: absolute; inset: 8px; border: 2px dashed rgba(242,230,201,.65); border-radius: 9px; pointer-events: none; z-index: 2; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(25,18,14,.88), rgba(25,18,14,0) 60%); }
.own { position: absolute; z-index: 3; top: 18px; left: 18px; font: 400 .8rem/1 var(--west); background: var(--thread); color: var(--ink); padding: 6px 9px; border-radius: 3px; }
.tile-t { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 22px; }
.tile-t b { display: block; font: 400 1.5rem/1.05 var(--head); margin-bottom: 8px; }
.tile-t span { font-size: .92rem; color: rgba(255,255,255,.88); }

/* our work */
.work { background: var(--ink); color: var(--thread); background-image: var(--grain); background-size: 13px 13px, 17px 17px, 23px 23px; }
.work-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.work p { color: rgba(242,230,201,.82); }
.link { color: #ffd38a; font-weight: 700; text-decoration-style: dashed; text-underline-offset: 6px; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.snap { margin: 0; background: var(--cream); padding: 9px 9px 0; border-radius: 4px; transform: rotate(var(--r)); box-shadow: 0 18px 30px -16px rgba(0,0,0,.7); }
.snap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.snap figcaption { color: var(--ink); font: 400 .82rem/1.2 var(--west); padding: 9px 2px 10px; }
.js .snap.pop { opacity: 0; transform: translateY(30px) rotate(0); transition: opacity .5s, transform .7s cubic-bezier(.3,1.4,.4,1); }
.js .snap.pop.in { opacity: 1; transform: rotate(var(--r)); }

/* visit */
.vs-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.city { font: 400 1.6rem/1 var(--head); color: var(--saddle); margin: -4px 0 20px; }
.hours-tag { position: relative; background: var(--saddle); background-image: var(--grain); background-size: 13px 13px, 17px 17px, 23px 23px; color: var(--thread); border-radius: 12px; padding: 22px 22px 18px 52px; max-width: 360px; outline: 2px dashed rgba(242,230,201,.7); outline-offset: -8px; transform: rotate(-1.5deg); }
.grommet { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px #c9b28a, inset 0 2px 3px rgba(0,0,0,.4); }
.hours-tag p { margin: 0; display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.hours-tag b { font-weight: 700; }
.v-acts { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 24px; }
.visit .link { color: var(--saddle-deep); }
.map { border-radius: 14px; overflow: hidden; border: 8px solid #fff; box-shadow: 0 26px 50px -26px rgba(0,0,0,.5); outline: 2px dashed var(--saddle); outline-offset: 6px; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* quote */
.quote { background: #fff; }
.q-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote p { color: var(--mute); }
.quote p a { color: var(--saddle-deep); font-weight: 700; }
.q-form { background: var(--cream); padding: clamp(22px, 3vw, 34px); border-radius: 16px; outline: 2px dashed var(--saddle); outline-offset: -10px; }
.kit-form label { font-weight: 600; font-size: .95rem; }
.kit-form input, .kit-form select, .kit-form textarea { border: 2px solid #dccdb2; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); }
.kit-form input:focus, .kit-form select:focus, .kit-form textarea:focus { outline: none; border-color: var(--saddle); box-shadow: 0 0 0 3px rgba(160,96,44,.22); }
.kit-form input.touched:invalid { border-color: #b3261e; }
.btn-solid { background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 0 24px; font: 700 1.08rem/1 var(--body); box-shadow: 0 5px 0 #8f1c18; outline: 2px dashed rgba(255,255,255,.75); outline-offset: -7px; }
.form-note { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.form-note.ok { background: #e7f2e4; color: #2c6a22; }
.form-note.err { background: #fbe5e3; color: #8a1c14; }

.foot { background: var(--ink); color: rgba(242,230,201,.78); padding: 48px 0 0; border-top: 3px dashed var(--thread); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-title { font: 400 1.6rem/1 var(--head); color: var(--thread); }
.foot a { text-decoration: none; } .foot a:hover { color: #ffd38a; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-base { max-width: var(--wrap); margin: 36px auto 0; padding: 18px var(--gap) 26px; border-top: 1px solid rgba(242,230,201,.12); font-size: .88rem; }

.js .from-l { opacity: 0; transform: translateX(-60px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.js .from-r { opacity: 0; transform: translateX(60px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.js .from-l.in, .js .from-r.in { opacity: 1; transform: none; }
html { overflow-x: clip; }

@media (max-width: 900px) {
  .sru-hero { flex-direction: column; min-height: 0; max-height: none; }
  .hero-media { position: relative; inset: auto; height: 60vw; min-height: 230px; z-index: 0; }
  .hide { width: auto; margin: 0; clip-path: none; padding: 30px 22px 34px; }
  .hide::before { clip-path: none; inset: 10px; }
  .bd-in { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .work-in, .vs-in, .q-in { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; } .strip .snap:last-child { grid-column: span 2; }
  .foot-in { grid-template-columns: 1fr; }
  .js .from-l { transform: translateX(-26px); } .js .from-r { transform: translateX(26px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .st { animation: none; opacity: 1; transform: none; }
  .js .from-l, .js .from-r, .js .badge.pop, .js .snap.pop { opacity: 1; transform: none; }
}
