/* The Four Crows Guitars — styles
   Palette: near-black, warm off-white, brass. Phone-first. */

:root {
  --bg: #0e0d0b;
  --bg-2: #15130f;
  --bg-3: #1d1a15;
  --line: #2a261f;
  --text: #f2eadb;
  --muted: #a99f8e;
  --brass: #c9973b;
  --brass-2: #e2b65a;
  --heading: "Bebas Neue", "Oswald", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; letter-spacing: .02em; line-height: .95; margin: 0; }
h2 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--brass); color: #000; padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--heading); font-size: 1.15rem; letter-spacing: .08em;
  padding: .7em 1.4em .6em; border-radius: var(--radius);
  border: 1.5px solid transparent; transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--brass); color: #140f06; border-color: var(--brass); }
.btn-solid:hover { background: var(--brass-2); border-color: var(--brass-2); }
.btn-outline { border-color: var(--brass); color: var(--brass-2); }
.btn-outline:hover { background: var(--brass); color: #140f06; }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { font-size: 1.4rem; padding: .8em 1.8em .7em; }

.placeholder { color: var(--brass-2); background: rgba(201,151,59,.08); border: 1px dashed rgba(201,151,59,.5); padding: .35em .6em; border-radius: 4px; font-size: .95em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,13,11,.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn) { color: var(--muted); transition: color .15s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-cta { font-size: 1rem; padding: .55em 1.1em .45em; }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--bg-2); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .95; }
@media (min-width: 900px) { .hero-photo { object-position: 70% 35%; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(14,13,11,.82) 30%, rgba(14,13,11,.35) 65%, rgba(14,13,11,.5) 100%),
    linear-gradient(to right, rgba(14,13,11,.7) 0%, rgba(14,13,11,.2) 55%, rgba(14,13,11,0) 100%);
}
/* fallback when there is no hero photo yet */
.hero-media.is-fallback .hero-photo { display: none; }
.hero-media.is-fallback {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(201,151,59,.18), transparent 55%),
    url("/assets/logo/four-crows-stacked-white.png") no-repeat right -8% center / auto 110%,
    var(--bg-2);
}
.hero-media.is-fallback::before {
  content: ""; position: absolute; inset: 0; background: var(--bg); opacity: .78; mix-blend-mode: multiply;
}
.hero-inner { padding-top: 120px; padding-bottom: 72px; max-width: calc(var(--wrap)); }
.eyebrow { font-family: var(--heading); color: var(--brass); letter-spacing: .22em; font-size: 1rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(3.6rem, 13vw, 8rem); max-width: 10ch; }
.lede { max-width: 48ch; color: var(--muted); font-size: 1.05rem; margin: 20px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Collection ---------- */
.collection { padding: 72px 0 56px; }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 10px 0 0; }
.section-head h2::after { content: ""; display: block; width: 48px; height: 2px; background: var(--brass); margin-top: 14px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.card a { display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .18s, transform .18s; height: 100%; }
.card a:hover { border-color: var(--brass); transform: translateY(-3px); }
.card figure { margin: 0; aspect-ratio: 11 / 12; background: var(--bg-3); overflow: hidden; position: relative; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card a:hover img { transform: scale(1.04); }
.card figure.is-fallback img { display: none; }
.card figure.is-fallback::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/img/icon-512.png") center / 46% no-repeat; opacity: .18;
}
.card figure.is-fallback::after {
  content: "Photo coming soon"; position: absolute; left: 0; right: 0; bottom: 12px;
  text-align: center; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.card h3 { font-size: 1.45rem; padding: 14px 14px 2px; }
.card-cta { display: block; padding: 0 14px 14px; font-size: .8rem; color: var(--brass); letter-spacing: .06em; text-transform: uppercase; }
.collection-note { color: var(--muted); font-size: .9rem; margin-top: 28px; }

/* ---------- About ---------- */
.about { padding: 72px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-inner { display: grid; gap: 40px; align-items: center; }
.about-logo img { width: min(240px, 55%); margin: 0 auto; }
.about-copy p { color: var(--muted); max-width: 58ch; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy .placeholder { display: inline-block; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.facts strong { display: block; font-family: var(--heading); font-size: 1.8rem; color: var(--text); letter-spacing: .03em; }
@media (min-width: 820px) {
  .about-inner { grid-template-columns: 1fr 1.6fr; gap: 72px; }
  .about-logo img { width: 100%; max-width: 340px; }
}

/* ---------- CTA ---------- */
.cta { padding: 96px 0; text-align: center; background: radial-gradient(ellipse at center, rgba(201,151,59,.10), transparent 60%); }
.cta h2 { font-size: clamp(2.8rem, 8vw, 5rem); }
.cta p { color: var(--muted); margin: 14px 0 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer-inner p { margin: 0; }
.footer-inner a:hover { color: var(--text); }
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card a, .card img, .btn { transition: none; }
}
