/* ==========================================================================
   SEPATU BANJAR — TASTESKILL V2 DIRECTION STYLESHEET
   Direction: The specimen catalogue
   Palette: Walnut and tan (Ground: #2b2216, Surface: #382d1e, Ink: #e4e2da, Accent: #bda38b)
   Type: Hanken Grotesk (500 display, 400 text)
   ========================================================================== */

:root {
  --bg: #2b2216;
  --surface: #382d1e;
  --surface-lift: #443725;
  --ink: #f5f4ef;
  /* 11:1 high contrast full ink */
  --muted: #b8af9f;
  /* 6.5:1 contrast muted */
  --accent: #bda38b;
  --accent-ink: #1c150d;

  --font-display: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-text: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  /* min 13px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  /* min 17px full body */
  --step-lead: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-head: clamp(1.85rem, 1.35rem + 2.2vw, 3rem);
  --step-display: clamp(2.4rem, 1.6rem + 4vw, 5rem);

  --margin: clamp(1.25rem, 3.5vw, 3.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(4.5rem, 7vw, 8rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 700ms;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
  background-color: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--surface);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Typography Helpers */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.display {
  font-size: var(--step-display);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 22ch;
}

.head {
  font-size: var(--step-head);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 26ch;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.4;
  color: var(--ink);
  max-width: 48ch;
}

.small {
  font-size: var(--step-small);
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

p {
  max-width: 60ch;
}

p+p {
  margin-top: 1rem;
}

/* Layout Containers */
.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section {
  padding-block: var(--section);
}

.section-tight {
  padding-block: calc(var(--section) * 0.65);
}

.surface-block {
  background: var(--surface);
}

.tan-block {
  background: var(--accent);
  color: var(--accent-ink);
}

.tan-block h1,
.tan-block h2,
.tan-block h3 {
  color: var(--accent-ink);
}

.tan-block .muted {
  color: #574431;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding-block: 1.25rem;
  border-bottom: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: var(--step-small);
  color: var(--muted);
  transition: color var(--t-hover) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: var(--step-small);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background var(--t-hover) ease;
}

.button:active {
  transform: scale(0.98);
}

.button-dark {
  background: var(--surface);
  color: var(--ink);
}

.button-dark:hover {
  background: var(--surface-lift);
}

.button-tan {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-tan:hover {
  background: #cfb79f;
}

.button-outline {
  background: transparent;
  color: var(--ink);
  outline: 1px solid var(--accent);
}

.button-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step-small);
}

/* 10-Menu Modal Drawer */
.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 16, 11, 0.96);
  display: none;
  overflow-y: auto;
  padding: var(--margin);
}

.menu-drawer.is-open {
  display: block;
}

.menu-drawer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-block: 2rem;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.drawer-link {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  transition: background var(--t-hover) ease, transform var(--t-hover) ease;
}

.drawer-link:hover {
  background: var(--surface-lift);
  transform: translateY(-2px);
}

.drawer-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.drawer-desc {
  font-size: var(--step-small);
  color: var(--muted);
}

/* Specimen Grid / Catalogue Tiles */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gutter);
}

.specimen-tile {
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.specimen-tile-tan {
  background: var(--accent);
  color: #1c150d;
}

.specimen-tile-tan h3,
.specimen-tile-tan .specimen-name,
.specimen-tile-tan .specimen-price {
  color: #1c150d;
}

.specimen-tile-tan .specimen-fact,
.specimen-tile-tan .muted,
.specimen-tile-tan p {
  color: #3b2c1d;
}

.specimen-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1e170f;
}

.specimen-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-soft);
}

.specimen-tile:hover .specimen-media img {
  transform: scale(1.04);
}

.specimen-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.specimen-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.specimen-fact {
  color: var(--ink);
  font-size: var(--step-body);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.specimen-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
}

.specimen-price {
  font-size: 1.15rem;
  font-weight: 500;
}

/* Plinth Hero (Hero Object on Plinth) */
.plinth-hero {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.plinth-cluster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .plinth-cluster {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.plinth-visual {
  position: relative;
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plinth-media {
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}

/* Two Column Editorial Split */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

@media (min-width: 860px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.split-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Steps / How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gutter);
}

.step-card {
  background: var(--surface);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* Accordion / FAQ Tiles */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 800px;
}

.faq-tile {
  background: var(--surface);
  padding: 1.5rem;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  color: var(--muted);
  font-size: var(--step-body);
}

/* Form Fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 640px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: var(--step-small);
  color: var(--muted);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--surface);
  color: var(--ink);
  border: 0;
  padding: 0.9rem 1.2rem;
  font-size: var(--step-body);
  border-radius: var(--radius);
  outline: 1px solid var(--surface-lift);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--accent);
}

/* Interactive Size Estimator Widget */
.estimator-card {
  background: var(--surface);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  max-width: 720px;
}

.slider-group {
  margin-block: 1.5rem;
}

.slider-range {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
  cursor: pointer;
}

.estimator-output {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  background: var(--bg);
  padding: 1.25rem;
}

.estimator-stat-val {
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}

.estimator-stat-label {
  font-size: var(--step-small);
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Footer & Sitemaps */
.site-footer {
  background: #1a140d;
  padding-block: var(--section);
  margin-top: calc(var(--section) * 0.5);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 860px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  color: var(--muted);
  font-size: var(--step-small);
  transition: color var(--t-hover) ease;
}

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

.credits-box {
  margin-top: 3rem;
  padding-top: 2rem;
  font-size: var(--step-small);
  color: #b8af9f;
  line-height: 1.6;
}

.credits-box a {
  color: var(--ink);
  text-decoration: underline;
}

/* Motion & Reveal */
[data-rise] {
  opacity: 1;
}

[data-reveal] {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    opacity: 0;
    transform: translateY(16px);
    animation: riseUp var(--t-reveal) var(--ease-out) forwards;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes riseUp {
  to {
    opacity: 1;
    transform: none;
  }
}