/* =========================================================================
   Iron Horn Guitars
   ========================================================================= */
:root {
  --bg: #0f0e0c;
  --bg-2: #15130f;
  --surface: #1c1915;
  --surface-2: #24201a;
  --line: #322d25;
  --text: #ede7db;
  --muted: #a69e8f;
  --accent: #c4722f;       /* copper, sampled from the logo woodgrain */
  --accent-hover: #d6843f;
  --green: #8f9d62;        /* savanna olive */
  --danger: #d0705a;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-display);
  font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.95em 1.8em;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent); color: #17120a;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #17120a; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 14, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-text { font-family: var(--font-display); line-height: 1; text-transform: uppercase; }
.brand-text strong { display: block; font-weight: 600; font-size: 1.25rem; letter-spacing: 0.08em; }
.brand-text span { display: block; font-size: 0.7rem; letter-spacing: 0.42em; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { padding: 0.6em 1.2em; color: #17120a; font-size: 0.9rem; }
.nav .btn:hover { color: #17120a; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; padding: 0.9em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  overflow: hidden;
  /* Drop a photo at images/hero.jpg and it appears behind the gradient. */
  background:
    linear-gradient(90deg, rgba(15,14,12,.96) 0%, rgba(15,14,12,.82) 45%, rgba(15,14,12,.35) 100%),
    radial-gradient(ellipse at 75% 40%, rgba(201,138,61,.18), transparent 60%),
    url("../images/hero.jpg") center / cover no-repeat,
    var(--bg);
}
.hero-art {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%) rotate(-18deg);
  height: 125%; width: auto; color: var(--accent); opacity: .12; pointer-events: none;
}
.hero .wrap { position: relative; width: 100%; }
.hero-content { max-width: 680px; padding: 80px 0; }
.hero h1 span { color: var(--accent); }
.hero .lead { color: #cfc7b8; margin-bottom: 2rem; }

.page-hero {
  padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 64px);
  background: radial-gradient(ellipse at 80% 0%, rgba(201,138,61,.14), transparent 55%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.pillar { padding: 36px var(--gutter); border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar h3 { font-size: 1.1rem; letter-spacing: .08em; margin-bottom: .35em; }
.pillar p { color: var(--muted); margin: 0; font-size: .95rem; }
.pillar svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.media-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder used wherever a photo hasn't been added yet */
.placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--line);
  background:
    radial-gradient(ellipse at 50% 35%, rgba(201,138,61,.10), transparent 65%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.placeholder svg { height: 70%; width: auto; color: #3d362c; }
.placeholder small {
  font-family: var(--font-display); letter-spacing: .2em; text-transform: uppercase;
  font-size: .7rem; color: #5a5144;
}

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts li::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: .6em;
  background: var(--accent); transform: rotate(45deg);
}

/* ---------- Conservation ---------- */
.conservation {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 100%, rgba(143,157,98,.16), transparent 55%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.conservation .eyebrow { color: var(--green); }
.conservation-rhino {
  position: absolute; right: -30px; top: 90px; width: min(560px, 52vw);
  color: var(--green); opacity: .09; pointer-events: none;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 40px; counter-reset: step; }
.step {
  position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(15,14,12,.5);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--green); line-height: 1; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; letter-spacing: .06em; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.pledge {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 28px 32px; border-radius: var(--radius);
  border: 1px solid rgba(143,157,98,.4); background: rgba(143,157,98,.08);
}
.pledge p { margin: 0; max-width: 62ch; }
.pledge strong { color: var(--text); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gallery-item {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  cursor: zoom-in; padding: 0; color: inherit; text-align: left; font: inherit;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption, .gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(10,9,7,.92));
}
.gallery-item .cap strong {
  display: block; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}
.gallery-item .cap span { font-size: .85rem; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  font: inherit; font-size: .9rem;
  padding: .5em 1.1em; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #17120a; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,7,6,.95);
  display: none; align-items: center; justify-content: center;
  padding: 60px 16px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); width: 100%; }
.lightbox .lb-media { position: relative; height: min(75vh, 900px); }
.lightbox .lb-media img { width: 100%; height: 100%; object-fit: contain; }
.lightbox .lb-media .placeholder { border-radius: var(--radius); }
.lightbox figcaption { text-align: center; padding-top: 16px; }
.lightbox figcaption strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.lb-btn {
  position: absolute; background: rgba(28,25,21,.8); border: 1px solid var(--line); color: var(--text);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(201,138,61,.22), transparent 60%),
    var(--bg);
}
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-display); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea[readonly] { color: var(--muted); background: var(--bg-2); font-size: .9rem; }
.hp { position: absolute; left: -9999px; }   /* spam honeypot */
.form-status { min-height: 1.5em; margin: 0; font-size: .95rem; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--danger); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list a { display: inline-flex; gap: 12px; align-items: center; color: var(--text); }
.contact-list a:hover { color: var(--accent); }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* ---------- Custom builder ---------- */
.series-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.series-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.series-card:hover { border-color: #4a4235; }
.series-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.series-card .media-frame { aspect-ratio: 4 / 3; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.series-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.series-card h3 { margin-bottom: .25em; }
.series-card .tag { color: var(--muted); font-size: .95rem; margin-bottom: 1.2em; }
.series-card .price { font-family: var(--font-display); letter-spacing: .06em; color: var(--accent); margin-top: auto; margin-bottom: 16px; }

.builder { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }
.builder-intro { display: grid; grid-template-columns: 160px 1fr; gap: 24px; margin-bottom: 36px; align-items: start; }
.builder-intro .media-frame { aspect-ratio: 3 / 4; }
@media (max-width: 600px) { .builder-intro { grid-template-columns: 1fr; } .builder-intro .media-frame { max-width: 220px; } }

.opt-group { border: 0; padding: 0; margin: 0 0 30px; }
.opt-group legend {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 12px; padding: 0;
}
.opt-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-flex; gap: 8px; align-items: baseline;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; font-size: .95rem;
  transition: border-color .15s, background .15s;
}
.opt span em { font-style: normal; font-size: .8rem; color: var(--muted); }
.opt:hover span { border-color: var(--muted); }
.opt input:checked + span { border-color: var(--accent); background: rgba(201,138,61,.12); }
.opt input:checked + span em { color: var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.summary {
  position: sticky; top: 96px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 26px;
}
.summary h3 { font-size: 1.15rem; letter-spacing: .08em; margin-bottom: 16px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .92rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary .total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px;
}
.summary .total strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--accent); }
.summary .btn { width: 100%; margin-top: 20px; }
.summary .note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 960px) { .summary { position: static; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--bg); }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--muted); font-size: .95rem; }
.footer-nav a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

[hidden] { display: none !important; }
.gallery-item .placeholder small { display: none; }
@media (max-width: 1100px) { .conservation-rhino { opacity: .045; } }
/* Body-shape label on series cards and the builder */
.shape-tag {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-display); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: .3em .9em; margin-bottom: .9em;
}
#builder-shape { margin: 0; }

/* ---------- Brand artwork (logos are on solid black; 'lighten' blends the black away on the dark site) ---------- */
.brand-emblem, .brand-mono, .hero-logo { mix-blend-mode: lighten; }
.brand-emblem { width: 46px; height: 46px; flex: none; }
.brand-mono { width: 70px; height: auto; }
.hero { background:
    radial-gradient(ellipse at 72% 45%, rgba(196,114,47,.16), transparent 55%),
    #050505; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero-content { padding: 64px 0; }
.hero-logo { order: 2; width: 100%; height: auto; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-logo { order: 0; max-width: 360px; margin: 32px auto 0; }
  .hero-content { padding: 8px 0 56px; }
}

/* Gallery switch (js/config.js → showGallery) */
.no-gallery [data-gallery-only] { display: none !important; }
