/* 357 WORX — v2.
   Our original look (dark, Playfair + Inter, bronze, the seal) with Singer-style restraint:
   few words, lots of space, small letter-spaced labels, text links instead of heavy buttons,
   and the photographs doing the work. */

:root {
  --bg:        #101010;
  --bg-alt:    #161514;
  --ink:       #ecebe7;
  --ink-soft:  #a3a099;
  --bronze:    #9c7a4e;
  --bronze-lt: #c9a877;
  --line:      #2a2620;
  --maxw:      1280px;
  --pad:       clamp(1.1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 16px/1.7 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .wordmark, .footer-brand, .statement-quote { font-family: "Playfair Display", Georgia, serif; font-weight: 400; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 860px; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p:not(.label) { color: var(--ink-soft); margin-top: 1rem; }

/* small letter-spaced capitals — labels only, never copy */
.label { color: var(--bronze-lt); font: 400 0.72rem/1.4 "Inter", sans-serif; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1rem; }

/* text links instead of filled buttons */
.link {
  display: inline-block; text-decoration: none; color: var(--ink);
  font: 400 0.78rem/1 "Inter", sans-serif; letter-spacing: 0.2em; text-transform: uppercase;
  padding-bottom: 0.55rem; border-bottom: 1px solid var(--bronze); transition: color .2s, border-color .2s;
}
.link::after { content: "  →"; color: var(--bronze-lt); }
.link:hover { color: var(--bronze-lt); border-color: var(--bronze-lt); }

.btn {
  display: inline-block; cursor: pointer; background: transparent; color: var(--ink);
  font: 400 0.78rem/1 "Inter", sans-serif; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.05rem 2.2rem; border: 1px solid var(--bronze-lt); transition: background .2s, color .2s;
}
.btn:hover { background: var(--bronze-lt); color: var(--bg); }

/* ---------- wordmark ---------- */
.wm-dot  { color: var(--ink); letter-spacing: 0.06em; }
.wm-worx { color: var(--bronze); letter-spacing: 0.14em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16,16,16,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { font-size: 1.35rem; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a { text-decoration: none; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--ink); border-bottom: 1px solid var(--bronze); padding-bottom: 0.3rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 6px 0; }

/* ---------- hero: Green Bronco at sunset, full-bleed ---------- */
.hero {
  position: relative; min-height: calc(100vh - 68px);
  display: flex; align-items: flex-end;
  background:
    linear-gradient(0deg, rgba(16,16,16,0.92) 0%, rgba(16,16,16,0.55) 26%, rgba(16,16,16,0) 52%),
    linear-gradient(90deg, rgba(16,16,16,0.45) 0%, rgba(16,16,16,0) 45%),
    url('images/hero-bronco-sunset.jpg') center 45% / cover no-repeat,
    var(--bg);
}
.hero-text { padding-block: 0 clamp(3rem, 7vh, 5.5rem); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 500; }
.hero .rule { display: block; width: 72px; height: 1px; background: var(--bronze-lt); margin: 1.5rem 0; }
.hero-sub { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.55rem); }
.hero-links { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.2rem; }

/* ---------- statement ---------- */
.statement { padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; }
.statement-emblem { width: 88px; margin: 0 auto 2.2rem; opacity: 0.9; }
.statement-quote { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-style: italic; }
.statement-body { color: var(--ink-soft); max-width: 36rem; margin: 1.6rem auto 0; }

/* ---------- builds: image-led, no boxes ---------- */
.build-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 2.5vw, 2.5rem); }
.build { display: flex; flex-direction: column; }
.build-media { margin-bottom: 1.4rem; overflow: hidden; }
.build-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.build:hover .build-media img { transform: scale(1.03); }
.build-media-open { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.build-media-open img { width: 46%; aspect-ratio: auto; opacity: 0.85; }
.build .label { margin-bottom: 0.6rem; }
.build-line { color: var(--ink-soft); font-size: 0.92rem; margin: 0.7rem 0 1.2rem; }

.spec-head { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 0.3rem; }
.keyspecs { margin: 0 0 1rem; }
.keyspecs div { display: grid; grid-template-columns: 5.4rem 1fr; gap: 0.6rem; padding: 0.45rem 0; font-size: 0.86rem; }
.keyspecs dt { color: var(--ink-soft); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 0.2rem; }
.keyspecs dd { margin: 0; }

.more { margin-bottom: 1.6rem; }
.more summary { cursor: pointer; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-lt); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "  +"; }
.more[open] summary::after { content: "  −"; }
.more ul { margin: 0.8rem 0 0; padding-left: 1rem; font-size: 0.84rem; color: var(--ink-soft); }
.more li { margin: 0.3rem 0; }
.build .link { margin-top: auto; align-self: flex-start; }

/* ---------- process: plain text ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.steps p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- work row ---------- */
.work-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.work-row { grid-auto-flow: row dense; }
.work-row figure { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.work-row .big-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.work-row .big-b { grid-column: 3 / 5; grid-row: 3 / 5; }
.work-row .big img { flex: 1; height: 0; min-height: 0; aspect-ratio: auto; }
.work-row .big-b img { object-position: 15% 60%; }
.work-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-row figcaption { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.7rem; }

/* ---------- form ---------- */
.inquire-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-wide { grid-column: 1 / -1; }
.field label, .choose legend { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.opt { text-transform: none; letter-spacing: 0; color: #6f6b64; }
input, select, textarea {
  font: inherit; font-weight: 300; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid #3a352d; border-radius: 0; padding: 0.6rem 0; width: 100%;
}
select { background: var(--bg-alt); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--bronze-lt); }
textarea { border: 1px solid #3a352d; padding: 0.9rem 1rem; min-height: 8.5rem; resize: vertical; line-height: 1.6; }
textarea:focus { border-color: var(--bronze-lt); }
::placeholder { color: #6f6b64; opacity: 1; }

.choose { border: 0; padding: 0; margin: 0 0 0.6rem; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.6rem; min-width: 0; }
.choose legend { margin-bottom: 0.8rem; padding: 0; }
.choose label { position: relative; text-transform: none; letter-spacing: 0; font-size: inherit; }
.choose input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choose span {
  display: inline-block; padding: 0.6rem 1.1rem; border: 1px solid #3a352d;
  font-size: 0.86rem; color: var(--ink); cursor: pointer; transition: all .15s;
}
.choose span:hover { border-color: var(--bronze); }
.choose input:checked + span { border-color: var(--bronze-lt); color: var(--bronze-lt); }
.choose input:focus-visible + span { outline: 1px solid var(--bronze-lt); outline-offset: 2px; }
.form-note { font-size: 0.84rem; color: var(--ink-soft); margin-top: 1rem; }
.form-note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--bronze); white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: #0a0a0a; color: var(--ink-soft); padding: 3rem 0; font-size: 0.86rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--bronze-lt); }
.footer-inner { display: flex; align-items: center; gap: 2rem; }
.footer-emblem { width: 84px; flex-shrink: 0; }
.footer-text p + p { margin-top: 0.3rem; }
.footer-brand { font-size: 1.1rem; color: var(--ink); }
.footer-legal { color: #6a665f; font-size: 0.78rem; }

/* ---------- thank-you page ---------- */
.thanks { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.thanks p { color: var(--ink-soft); margin: 1rem auto 2rem; max-width: 34rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .build-grid { grid-template-columns: repeat(2, 1fr); row-gap: 3.5rem; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem var(--pad) 1.2rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { border-bottom: 0; }
  .hero { min-height: 82vh; background-position: 0 0, 0 0, 62% 40%, 0 0; }
}
@media (max-width: 600px) {
  .build-grid { grid-template-columns: 1fr; }
  .build-media img, .build-media-open { aspect-ratio: 4 / 3; }
  .inquire-form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .work-row { grid-template-columns: repeat(2, 1fr); }
  .work-row .big-a, .work-row .big-b { grid-column: 1 / -1; grid-row: auto; }
  .work-row .big img { flex: none; height: auto; aspect-ratio: 4 / 3; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* spam trap field, hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- light version (html data-theme="light") ---------- */
[data-theme="light"] {
  --bg:        #f4f1ea;
  --bg-alt:    #ebe6dc;
  --ink:       #1b1a17;
  --ink-soft:  #5f5a51;
  --bronze:    #8a6a3f;
  --bronze-lt: #8a6a3f;
  --line:      #d9d2c4;
}
[data-theme="light"] .site-header { background: rgba(244,241,234,0.92); }
[data-theme="light"] .opt { color: #8b857a; }
[data-theme="light"] ::placeholder { color: #9a9488; }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea,
[data-theme="light"] .choose span { border-color: #c9c1b1; }
[data-theme="light"] .btn:hover { color: #f4f1ea; }
/* hero keeps its dark photo treatment, so its text stays light */
[data-theme="light"] .hero { --ink: #ecebe7; --ink-soft: #d8d4cc; --bronze-lt: #c9a877; --bronze: #9c7a4e; color: #ecebe7; }
[data-theme="light"] .hero .hero-sub, [data-theme="light"] .hero .label { color: inherit; }
[data-theme="light"] .hero .label { color: #c9a877; }
/* footer stays dark as an anchor */
[data-theme="light"] .site-footer { background: #1b1a17; color: #a3a099; border-top: 0; }
[data-theme="light"] .site-footer a { color: #a3a099; }
[data-theme="light"] .footer-brand { color: #ecebe7; }
[data-theme="light"] .footer-brand .wm-dot { color: #ecebe7; }
[data-theme="light"] .footer-brand .wm-worx { color: #c9a877; }
