/* ========================================================================
   amz-alliance — minimal design system
   ======================================================================== */

:root {
  --paper: #F4EFE6;
  --paper-deep: #EBE4D6;
  --ink: #1B1917;
  --ink-soft: #4A4540;
  --brand: #C5A47E;
  --brand-soft: #D4BC9A;
  --brand-deep: #8C6D45;
  --accent: #C5A47E;
  --hairline: #E4D9C8;
  --hairline-soft: #EDE5D8;
  --muted: #8A8073;
  --crimson: #8B2C1E;
  --surface: #FFFbf5;
  --copper: #C5A47E;
  --copper-soft: #D4BC9A;
  --footer: #1B1917;
}

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.7;
}

main, header, footer { position: relative; z-index: 2; }

/* ---- Type (serif display + Jost body, Almarkha / Furnatur kit) ---- */
.font-display, .display {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.display-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--brand-deep);
}
.font-mono, .mono {
  font-family: "Jost", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
}
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

.smallcaps, .eyebrow {
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--brand-deep);
}

/* ---- Surfaces ---- */
.surface { background: var(--surface); }
.surface-deep { background: var(--paper-deep); }
.hairline { border-color: var(--hairline) !important; }
.hairline-b { border-bottom: 1px solid var(--hairline); }
.hairline-t { border-top: 1px solid var(--hairline); }
.hairline-x { border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); }
.hairline-l { border-left: 1px solid var(--hairline); }
.hairline-y { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.dot-rule {
  background-image: radial-gradient(circle, var(--hairline) 0.5px, transparent 0.5px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  height: 1px;
}

.jaali { background-color: var(--paper); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: var(--ink);
}
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--brand); }

.ink-mark {
  background: linear-gradient(180deg, transparent 62%, rgba(13, 59, 46, 0.14) 62%);
  padding: 0 0.04em;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---- Motion (quiet) ---- */
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-delay-1 { animation-delay: 0.06s; }
.reveal-delay-2 { animation-delay: 0.12s; }
.reveal-delay-3 { animation-delay: 0.18s; }
.reveal-delay-4 { animation-delay: 0.24s; }
.reveal-delay-5 { animation-delay: 0.30s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ---- Category tiles ---- */
.category-tile {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: 0;
  overflow: hidden;
  background: var(--tile, var(--brand));
  isolation: isolate;
}
.category-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.category-tile:hover .category-tile-img { transform: scale(1.14); }
.category-tile-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--tile, #0D3B2E) 28%, transparent) 0%,
    color-mix(in srgb, var(--tile, #0D3B2E) 45%, transparent) 42%,
    var(--tile, #0D3B2E) 100%
  );
}
.category-tile-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.25rem 1.35rem 1.35rem;
}

/* ---- Product card ---- */
.editorial-card {
  position: relative;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(27, 25, 23, 0.08);
}
.editorial-card .image-wrap {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.editorial-card .image-wrap img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.editorial-card:hover .image-wrap img { transform: scale(1.03); }
.editorial-card .arrow {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}
.editorial-card:hover .arrow { opacity: 1; transform: translateY(0); }

.card-index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---- Quote / receipt ---- */
.quote {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  position: relative;
}
.quote::before, .quote::after { display: none; }
.quote-body { padding: 1.5rem 1.6rem; }

.tenure-rail {
  display: flex;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.tenure-cell {
  flex: 1;
  padding: 0.7rem 0.35rem;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-right: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.tenure-cell:last-child { border-right: 0; }
.tenure-cell:hover:not(:disabled) { background: var(--paper-deep); color: var(--ink); }
.tenure-cell.active {
  background: var(--ink);
  color: #fff;
}
.tenure-cell.active::after { display: none; }
.tenure-cell:disabled { opacity: 0.28; cursor: not-allowed; }

.receipt-row {
  display: flex;
  align-items: baseline;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.receipt-row .lbl { color: var(--muted); }
.receipt-row .lead {
  flex: 1;
  margin: 0 0.5rem;
  border-bottom: 1px dotted var(--hairline);
  transform: translateY(-3px);
}
.receipt-row .val { font-variant-numeric: tabular-nums; font-weight: 500; }
.receipt-final {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.receipt-final .lbl {
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 500;
}
.receipt-final .val {
  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.tween { transition: opacity 0.18s ease; }

/* ---- Logo ---- */
.lockup-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--brand);
  border-radius: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--brand);
  color: var(--ink);
}
.lockup-word {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.lockup-word em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand-deep);
}

/* ---- Sections ---- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 2.5rem;
  text-align: left;
}
.section-head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dial-track {
  position: relative;
  height: 1px;
  background: var(--ink);
}
.dial-tick {
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--ink);
}
.dial-tick.active {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  top: -3.5px;
  background: var(--brand);
  margin-left: -3.5px;
}

/* ---- Forms ---- */
.field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 0.75rem 1rem;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.field:focus {
  outline: none;
  border-color: var(--ink);
}

/* ---- Header ---- */
.site-header {
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-link {
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link::after { display: none; }

.cart-chip {
  font-family: "Jost", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--ink);
  color: #fff;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.mobile-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: transparent;
  border: 0;
}
.mobile-drawer {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  max-height: min(80vh, 640px);
  overflow-y: auto;
}
.mobile-link {
  display: block;
  padding: 0.7rem 0;
  font-family: "Jost", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-soft);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.arr {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arr { transform: translateX(3px); }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-kit {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-kit-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-kit-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27,25,23,0.72) 0%, rgba(27,25,23,0.28) 70%, rgba(27,25,23,0.12) 100%);
}
.stat-band {
  background: var(--ink);
  color: #fff;
}
.stat-band .num {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--brand);
  line-height: 1;
}
.offer-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  border: 1px solid var(--hairline);
}
.offer-card:hover { border-color: var(--brand); }
.quote-kit {
  background: var(--paper-deep);
}
.quote-kit blockquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.4;
}
.site-footer {
  background: var(--footer);
  color: #d9d0c4;
}
.site-footer a { color: #d9d0c4; }
.site-footer a:hover { color: var(--brand); }
.site-footer .eyebrow { color: var(--brand); }

.toast {
  font-family: "Jost", sans-serif;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.serif-figure {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { scrollbar-width: none; }
