/* ==========================================================================
   BADJINGAN INDONESIA — Kustom Kulture Brand Site
   Typography: Canterbury (heading) / Gotteslob (display) / Gotham Medium (body)
   ========================================================================== */

@font-face {
  font-family: 'Canterbury';
  src: url('../fonts/Canterbury.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotteslob';
  src: url('../fonts/gotteslob.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Medium';
  src: url('../fonts/Gotham_Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   TOKENS
   -------------------------------------------------------------------------- */
:root {
  --ink:          #000000;
  --ink-panel:    #0d0d0d;
  --ink-line:     #1a1a1a;
  --flame:        #cc0000;
  --flame-deep:   #8a0000;
  --cream:        #fffdd0;
  --volt:         #f5ff2a;   /* electric yellow — hover / active pop */
  --steel:        #8a8a86;

  --font-head:  'Canterbury', 'UnifrakturMaguntia', 'MedievalSharp', serif;
  --font-disp:  'Gotteslob', 'UnifrakturMaguntia', serif;
  --font-body:  'Gotham Medium', 'Montserrat', 'Inter', sans-serif;

  --border-heavy: 4px solid var(--flame);
  --border-thin:  1px solid var(--ink-line);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--flame); color: var(--cream); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: normal;
  margin: 0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-disp);
  color: var(--flame);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------------------------------------------------
   GRUNGE WATERMARK — repeating engraved-devil texture, low opacity
   -------------------------------------------------------------------------- */
.grunge-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('../images/custom-metalwork.jpg');
  background-size: 900px;
  background-repeat: repeat;
  opacity: 0.035;
  mix-blend-mode: screen;
}

/* --------------------------------------------------------------------------
   NAV — sticky, asymmetric
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: var(--border-heavy);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand-word {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: none;
  border: 1px solid transparent;
  padding: 10px 16px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--volt);
}

.nav-link.is-active {
  color: var(--ink);
  background: var(--flame);
  border-color: var(--flame);
}

.nav-order-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--cream);
  padding: 12px 20px;
  margin-left: 10px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.nav-order-btn:hover {
  background: var(--volt);
  border-color: var(--volt);
  box-shadow: 4px 4px 0 var(--flame);
}

.nav-burger {
  display: none;
  background: none;
  border: 2px solid var(--cream);
  color: var(--cream);
  width: 44px;
  height: 44px;
  font-family: var(--font-body);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   PAGE / VIEW SWITCHING
   -------------------------------------------------------------------------- */
.view {
  display: none;
  position: relative;
  z-index: 1;
  animation: fadein .35s ease;
}

.view.is-active { display: block; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   SECTION / BLOCK PRIMITIVES
   -------------------------------------------------------------------------- */
.block {
  border: var(--border-thin);
  border-left: var(--border-heavy);
  padding: 32px;
  background: var(--ink-panel);
}

.section {
  padding: 88px 0;
  border-bottom: var(--border-thin);
}

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

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--cream);
  margin-top: 10px;
}

.section-head p {
  color: var(--steel);
  font-size: 1rem;
  max-width: 560px;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   HERO (Home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  border-bottom: var(--border-heavy);
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(35%) contrast(1.15) brightness(0.55);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.96) 4%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.55) 100%),
    linear-gradient(100deg, rgba(204,0,0,0.28), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 28px 72px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--flame);
  color: var(--flame);
  font-family: var(--font-disp);
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  padding: 8px 16px;
  margin-bottom: 26px;
  background: rgba(0,0,0,0.5);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  color: var(--cream);
  line-height: 0.92;
  max-width: 980px;
  text-shadow: 3px 3px 0 var(--flame-deep);
}

.hero-title em {
  font-style: normal;
  color: var(--flame);
}

.hero-manifesto {
  margin-top: 30px;
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--cream);
  border-left: 3px solid var(--flame);
  padding-left: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 16px 30px;
  border: 2px solid var(--flame);
  background: var(--flame);
  color: var(--cream);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}

.btn:hover {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--cream);
}

.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}

.btn-outline:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--flame);
}

/* --------------------------------------------------------------------------
   MANIFESTO SECTION
   -------------------------------------------------------------------------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: var(--border-thin);
}

.manifesto-copy {
  padding: 56px;
  border-right: var(--border-heavy);
}

.manifesto-copy p {
  font-size: 1.05rem;
  color: var(--cream);
  margin: 0 0 22px;
}

.manifesto-copy p:last-child { margin-bottom: 0; }

.manifesto-copy .lede {
  font-family: var(--font-disp);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--flame);
  line-height: 1.35;
  margin-bottom: 28px;
}

.manifesto-side {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  background: repeating-linear-gradient(135deg, var(--ink-panel), var(--ink-panel) 18px, var(--ink) 18px, var(--ink) 36px);
}

.manifesto-stat {
  border-left: 3px solid var(--flame);
  padding-left: 16px;
}

.manifesto-stat .num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--cream);
  display: block;
}

.manifesto-stat .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

/* --------------------------------------------------------------------------
   CREDENTIAL STRIP (patch / seal row)
   -------------------------------------------------------------------------- */
.seal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
}

.seal-item {
  padding: 26px 22px;
  border-right: var(--border-thin);
  text-align: center;
  font-family: var(--font-disp);
  color: var(--steel);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.seal-item:last-child { border-right: none; }

.seal-item strong {
  display: block;
  color: var(--flame);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   CARD GRID (Shop / Gallery)
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 0;
  border-top: var(--border-thin);
  border-left: var(--border-thin);
}

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  background: var(--ink-panel);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .15s ease;
}

.card:hover { background: #141414; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: var(--border-thin);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform .5s ease, filter .5s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
  filter: saturate(1.2) contrast(1.1);
}

.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--flame);
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  z-index: 2;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--cream);
  margin-bottom: 10px;
}

.card-body p {
  color: var(--steel);
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: var(--border-thin);
}

.card-price {
  font-family: var(--font-head);
  color: var(--flame);
  font-size: 1.1rem;
}

.card-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--flame);
  padding-bottom: 2px;
  cursor: pointer;
}

.card-link:hover { color: var(--volt); border-color: var(--volt); }

/* --------------------------------------------------------------------------
   CUSTOM VIEW
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--border-thin);
}

.split-media {
  position: relative;
  min-height: 480px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.split-copy {
  padding: 60px;
  border-left: var(--border-heavy);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-copy p {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 18px;
}

.split-copy p:last-child { margin-bottom: 0; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--border-thin);
  margin-top: 0;
}

.hub-item {
  padding: 34px 28px;
  border-right: var(--border-thin);
}

.hub-item:last-child { border-right: none; }

.hub-item .mark {
  font-family: var(--font-disp);
  color: var(--flame);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.hub-item h4 {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--cream);
  font-size: 1.1rem;
  margin: 0 0 10px;
  text-transform: none;
}

.hub-item p {
  color: var(--steel);
  font-size: 0.9rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   GALLERY VIEW
   -------------------------------------------------------------------------- */
.gallery-grid {
  columns: 3;
  column-gap: 0;
  border-top: var(--border-thin);
  border-left: var(--border-thin);
}

.gallery-item {
  break-inside: avoid;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  display: block;
  filter: contrast(1.08) saturate(1.05);
  transition: transform .5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.92), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-caption .eyebrow { font-size: 0.62rem; }
.gallery-caption h4 {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--cream);
  margin: 4px 0 0;
  font-size: 0.98rem;
  text-transform: none;
}

/* --------------------------------------------------------------------------
   PROFILE VIEW
   -------------------------------------------------------------------------- */
.mag-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border: var(--border-thin);
}

.mag-media {
  position: relative;
  min-height: 560px;
  border-right: var(--border-heavy);
}

.mag-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: grayscale(100%) contrast(1.1);
}

.mag-copy { padding: 60px; }

.mag-kicker {
  font-family: var(--font-disp);
  color: var(--flame);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: block;
}

.mag-copy h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 26px;
}

.mag-copy p {
  color: var(--cream);
  font-size: 1.02rem;
  margin-bottom: 20px;
}

.mag-credit {
  margin-top: 34px;
  padding-top: 26px;
  border-top: var(--border-thin);
  display: flex;
  gap: 22px;
  align-items: center;
}

.mag-credit .badge {
  width: 54px;
  height: 54px;
  border: 2px solid var(--flame);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  color: var(--flame);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.mag-credit .who strong {
  display: block;
  color: var(--cream);
  font-size: 1rem;
}

.mag-credit .who span {
  color: var(--steel);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   ORDER NOW VIEW
   -------------------------------------------------------------------------- */
.order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--border-thin);
}

.order-card {
  padding: 44px 34px;
  border-right: var(--border-thin);
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.order-card:last-child { border-right: none; }

.order-card .idx {
  font-family: var(--font-disp);
  color: var(--flame);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  margin-bottom: 20px;
}

.order-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.order-card p {
  color: var(--steel);
  font-size: 0.92rem;
  flex: 1;
}

.order-card .channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: var(--border-thin);
  padding-top: 18px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--cream);
}

.order-card .channel-val {
  color: var(--flame);
  font-weight: 500;
}

.order-form {
  border: var(--border-thin);
  border-top: none;
  padding: 56px;
  background: var(--ink-panel);
}

.order-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.order-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-bottom: 2px solid var(--flame);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 14px;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-bottom-color: var(--volt);
  background: #111;
}

.order-form textarea { resize: vertical; min-height: 100px; }

.order-form .submit-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--steel);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: var(--border-heavy);
  padding: 56px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 14px;
}

.footer-grid p { color: var(--steel); font-size: 0.9rem; }

.footer-col h5 {
  font-family: var(--font-disp);
  color: var(--flame);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--cream);
  font-size: 0.9rem;
  margin-bottom: 10px;
  cursor: pointer;
}

.footer-col a:hover { color: var(--flame); }

.footer-bottom {
  border-top: var(--border-thin);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--steel);
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   TOAST (order form submit feedback)
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--flame);
  color: var(--cream);
  padding: 16px 22px;
  border: 2px solid var(--cream);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  z-index: 500;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}

.toast.is-shown {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .manifesto-grid,
  .split,
  .mag-layout { grid-template-columns: 1fr; }

  .manifesto-copy { border-right: none; border-bottom: var(--border-heavy); }
  .split-copy { border-left: none; border-top: var(--border-heavy); order: 2; }
  .split-media { order: 1; min-height: 340px; }
  .mag-media { border-right: none; border-bottom: var(--border-heavy); min-height: 340px; }

  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .seal-strip { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: 1fr; }
  .order-card { border-right: none; border-bottom: var(--border-thin); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: var(--border-heavy);
    padding: 10px;
    gap: 0;
  }
  .nav-links.is-open .nav-link,
  .nav-links.is-open .nav-order-btn { width: 100%; margin: 4px 0; text-align: left; }

  .grid.cols-3,
  .grid.cols-2 { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .order-form .form-row { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-item { border-right: none; border-bottom: var(--border-thin); }
  .hero-title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
