/* ============================================
   BAD APPLE DESIGNS — shared styles
   Dark & gritty, modern rat rod aesthetic
   ============================================ */

:root {
  --bg: #0a0c09;
  --bg-alt: #121510;
  --panel: #191d16;
  /* Bad Apple green — pulled from the logo */
  --rust: #6faf2e;
  --rust-bright: #8cc63e;
  --rust-dark: #3d6318;
  --bone: #e8e6dc;
  --steel: #8a8f80;
  --line: #262b22;
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Barlow', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.6;
  /* subtle grain texture */
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(140, 198, 62, 0.05), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

a { color: var(--rust-bright); text-decoration: none; }
a:hover { color: var(--bone); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo span { color: var(--rust-bright); }

.nav-logo img { height: 56px; width: auto; }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  color: var(--steel);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--rust-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(10,12,9,0.5) 0%, rgba(10,12,9,0.92) 70%),
    linear-gradient(20deg, #1c2b10 0%, #10150a 45%, #0a0c09 100%);
}

.hero::after {
  /* diagonal green streak */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 55%, rgba(140, 198, 62, 0.08) 55.2%, rgba(140, 198, 62, 0.08) 62%, transparent 62.2%);
  pointer-events: none;
}

/* rat rod silhouette blended into the hero background —
   anchored bottom-left, wide enough that the floating logo
   on the right drifts over its tail end */
.hero-ratrod {
  position: absolute;
  bottom: -2%;
  left: -4%;
  width: min(1100px, 96vw);
  height: auto;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(140, 198, 62, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text { flex: 1 1 420px; min-width: 0; max-width: 620px; }

/* big free-floating logo — drifts and tilts, but owns its own column
   so it can never sit on top of the text at any screen width */
.hero-logo {
  flex: 0 1 auto;
  width: clamp(240px, 34vw, 460px);
  min-width: 200px;
  height: auto;
  margin-right: -28px; /* bleeds toward the page edge, away from the words */
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 50px rgba(140, 198, 62, 0.45));
  animation: logoFloat 7s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  from { transform: translateY(-10px) rotate(-4deg); }
  to   { transform: translateY(10px) rotate(-1deg); }
}

.hero-kicker {
  color: var(--rust-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
}

.hero h1 .accent { color: var(--rust-bright); display: block; }

/* "Rust." — mottled oxidized iron: rust-tone gradient with baked-in noise texture */
.word-rust {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.32' numOctaves='4' seed='7'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.38  0 0 0 0 0.16  0 0 0 0 0.04  0 0 0 0.75 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23r)'/%3E%3C/svg%3E"),
    linear-gradient(172deg, #e07a33 0%, #b34d18 26%, #7c3410 48%, #c25c1f 66%, #8a3a0f 82%, #5c2408 100%);
  background-blend-mode: multiply;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

/* "Steel." — polished chrome: mirror gradient with a hard horizon line */
.word-steel {
  background-image: linear-gradient(180deg,
    #fdfeff 0%,
    #d9e0e7 22%,
    #aab4bf 38%,
    #78828d 47%,
    #2f353c 50%,
    #9aa4af 53%,
    #d2dae1 66%,
    #f4f8fb 78%,
    #79838e 92%,
    #a9b3bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(220, 235, 250, 0.18));
}

.hero p.lede {
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--steel);
}

.hero-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  border: 2px solid var(--rust-bright);
  transition: all 0.2s;
}

.btn-solid { background: var(--rust-bright); color: #0a0c09; }
.btn-solid:hover { background: transparent; color: var(--rust-bright); }
.btn-ghost { color: var(--bone); border-color: var(--steel); }
.btn-ghost:hover { border-color: var(--rust-bright); color: var(--rust-bright); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
section.alt { background: var(--bg-alt); }

.section-head { margin-bottom: 48px; }

.section-head .kicker {
  color: var(--rust-bright);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  font-weight: 700;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 6px;
}

.section-head p { color: var(--steel); max-width: 640px; margin-top: 10px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.art-card {
  display: block;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.art-card:hover { transform: translateY(-4px); border-color: var(--rust); color: inherit; }

.art-card:hover .tag { background: var(--rust-bright); color: #0a0c09; border-color: var(--rust-bright); }

.art-img {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #222a1c 0%, #131710 60%, #1a2112 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 2px solid var(--rust-dark);
}

.art-card .art-info { padding: 18px 20px; }

.art-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.art-card p { color: var(--steel); font-size: 0.9rem; margin-top: 4px; }

.tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rust-bright);
  border: 1px solid var(--rust-dark);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-text p { color: var(--steel); margin-bottom: 18px; font-size: 1.05rem; }
.about-text p strong { color: var(--bone); }

.about-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #222a1c, #10140c);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* solid white backdrop — the stencil hangs like a print on the dark wall */
  background: #fff;
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--rust-dark);
  pointer-events: none;
}

.stat-row { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }

.stat .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--rust-bright);
  line-height: 1;
}

.stat .label {
  color: var(--steel);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 4px;
}

/* ---------- Events ---------- */
.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rust-bright);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.event-date {
  font-family: var(--font-display);
  text-align: center;
  min-width: 80px;
}

.event-date .month { color: var(--rust-bright); font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; }
.event-date .day { font-size: 2.4rem; line-height: 1; }

.event-card h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.04em; text-transform: uppercase; }
.event-card p { color: var(--steel); font-size: 0.95rem; margin-top: 4px; }

.event-flag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0a0c09;
  background: var(--rust-bright);
  padding: 5px 12px;
  white-space: nowrap;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.contact-list { list-style: none; margin-top: 20px; }

.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.contact-list .label {
  color: var(--rust-bright);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  min-width: 90px;
}

.commission-box {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
}

.commission-box h3 { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.04em; }
.commission-box p { color: var(--steel); margin: 14px 0 24px; }

/* ---------- Inventory page ---------- */
.inv-toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.inv-toolbar input[type="search"], .inv-toolbar select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-width: 220px;
}

.inv-toolbar input:focus, .inv-toolbar select:focus { outline: 1px solid var(--rust); }

.inv-count { color: var(--steel); font-size: 0.85rem; margin-left: auto; }

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.inv-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}

.inv-card:hover { border-color: var(--rust); }

.inv-card h3 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; }
.inv-card .desc { color: var(--steel); font-size: 0.9rem; flex: 1; }

.inv-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

.inv-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--rust-bright); }

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 1px solid;
}

.badge-available { color: #7fbf6a; border-color: #3d5c34; }
.badge-sold { color: var(--steel); border-color: var(--line); text-decoration: line-through; }
.badge-onetofakind, .badge-oneofakind { color: var(--rust-bright); border-color: var(--rust-dark); }

.inv-status-msg { color: var(--steel); padding: 40px 0; text-align: center; }

/* category section headers on the inventory page */
.inv-cat-head {
  margin: 56px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rust-dark);
  scroll-margin-top: 90px; /* clears the sticky nav when jumping */
}

.inv-cat-head:first-child { margin-top: 8px; }

.inv-cat-head h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bone);
}

.inv-cat-head p { color: var(--steel); font-size: 0.9rem; margin-top: 2px; }

/* coming-soon banner for categories with nothing in stock */
.coming-soon {
  border: 2px dashed var(--rust-dark);
  background:
    repeating-linear-gradient(-45deg,
      rgba(140, 198, 62, 0.05) 0 18px,
      transparent 18px 36px),
    var(--panel);
  padding: 40px 32px;
  text-align: center;
}

.coming-soon .cs-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-bright);
  text-shadow: 0 0 24px rgba(140, 198, 62, 0.35);
}

.coming-soon p { color: var(--steel); margin-top: 8px; max-width: 480px; margin-inline: auto; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
  color: var(--steel);
  font-size: 0.85rem;
}

footer .foot-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--bone);
  margin-bottom: 8px;
}

footer .foot-logo span { color: var(--rust-bright); }

footer .foot-logo img { height: 56px; width: auto; margin: 0 auto 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* stack: logo centered above the text */
  .hero-content { flex-direction: column; gap: 36px; padding: 56px 0; }
  .hero-logo { width: min(60vw, 300px); min-width: 0; margin: 0 auto; }
  .hero-text { max-width: none; flex: initial; }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .nav-toggle { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: auto 1fr; }
  .event-flag { grid-column: 2; justify-self: start; }
  section { padding: 60px 0; }
}
