/* IALT Footwear — warm-minimalist luxury system
   Palette: ivory/greige paper, espresso ink, stone, brushed brass.
   Type: Cormorant Garamond (display serif) + Jost (light geometric sans). */
:root {
  --bg: #ece6dc;
  --paper: #f3efe7;
  --surface: #f5f2ea;
  --surface-2: #e6dfd2;
  --stone: #8c877c;
  --text: #2a231c;
  --ink-soft: #4a4238;
  --muted: #5b5343;
  --accent: #9a7a4b;      /* brushed brass */
  --accent-2: #c2a26b;
  --espresso: #2c241d;
  --line: rgba(58, 46, 34, 0.14);
  --line-strong: rgba(58, 46, 34, 0.26);
  --shadow: 0 22px 60px -32px rgba(52, 40, 28, 0.4);
  --radius: 2px;
  --max-width: 1240px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--max-width), calc(100% - 3rem)); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  background-color: #745539;
  background-image:
    linear-gradient(rgba(74, 55, 36, 0.06), rgba(52, 38, 24, 0.16)),
    url("/assets/textures/leather-brown-fine.jpg");
  background-size: cover, 300px auto;
  background-repeat: no-repeat, repeat;
  background-position: center, center;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: url("/assets/textures/brass.jpg") center / cover;
  opacity: 0.85;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
}

/* Retire the old raster logo for a clean wordmark + minimal brass mark. */
.brand-mark {
  width: 9px;
  height: 9px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  background-image: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav { display: flex; gap: 1.7rem; flex-wrap: wrap; align-items: center; }

.nav a {
  position: relative;
  padding: 0.35rem 0;
  color: rgba(243, 239, 231, 0.82);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent-2);
  transition: width 0.28s ease;
}

.nav a:hover, .nav a.active { color: var(--paper); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0 0 1rem; color: var(--text); }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }

h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 1.3rem;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.72;
  max-width: 54ch;
}

.muted { color: var(--muted); font-weight: 400; }
.card .muted { color: #4f4738; }

/* ---------- Buttons ---------- */
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  border-radius: 0;
  border: 1px solid var(--espresso);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.btn.primary { background: var(--espresso); border-color: var(--espresso); color: var(--paper); }
.btn.primary:hover { background: transparent; color: var(--espresso); }

.btn.secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--espresso); background: var(--espresso); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding: 7rem 0 4.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.showcase {
  border: none;
  background: var(--surface-2);
  border-radius: var(--radius);
  min-height: 460px;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.media-showcase { padding: 0; }
.media-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.grid { display: grid; gap: 2.5rem; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Cards: no boxes — hairline top rule + air. */
.card {
  border: none;
  border-top: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 1.6rem 0 0;
}

.card h3 { margin-bottom: 0.7rem; }
.card .muted { font-size: 1.08rem; line-height: 1.72; }

.tag {
  display: inline-flex;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0.9rem;
}

/* ---------- Metrics: editorial figures with hairline dividers ---------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.metric-grid article {
  border: none;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 2.2rem 1.4rem;
  min-height: 0;
}
.metric-grid article:first-child { border-left: none; }

.metric-grid strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--espresso);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Product photos / gallery ---------- */
.product-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--surface-2);
  border: none;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  padding: 1rem;
}

.product-section { padding: 3rem 0; }

/* 3D product cards */
.product-3d-card { display: flex; flex-direction: column; }
.product-3d-card h3 { margin-top: 1.3rem; }
.product-3d-card .btn { margin-top: 1.4rem; align-self: flex-start; }

.mini-viewer {
  height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 0;
}
.mini-viewer iframe { display: block; width: 100%; height: 100%; border: 0; }

.shoe-gallery { align-items: stretch; }
.shoe-card { display: flex; flex-direction: column; }
.shoe-card h3 { margin-bottom: 0; margin-top: 1rem; font-weight: 400; font-size: 0.98rem; }

.product-image-trigger {
  height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  cursor: zoom-in;
}
.product-image-trigger img { height: 260px; margin-bottom: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 1.75rem;
  align-items: start;
}

.gallery-grid figure {
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  display: grid;
  grid-template-rows: auto auto;
}

.gallery-trigger {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: var(--surface-2);
  border-radius: var(--radius);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-trigger img, .gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-trigger:hover img, .gallery-trigger:focus-visible img { transform: scale(1.05); }
.gallery-trigger:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.shoe-gallery .product-image-trigger { height: auto; }
.shoe-gallery .product-image-trigger img { height: 240px; object-fit: contain; background: var(--surface-2); border-radius: var(--radius); }

.gallery-grid figcaption {
  padding: 0.9rem 0 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  background: rgba(28, 22, 17, 0.94);
  padding: clamp(1rem, 3vw, 2rem);
}
.lightbox-top { display: flex; justify-content: flex-end; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lightbox-image {
  max-width: min(100%, 1400px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-caption { margin: 0; color: var(--paper); text-align: center; font-weight: 300; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; }
.lightbox-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}
.lightbox-button:hover, .lightbox-button:focus-visible { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: clamp(0.25rem, 2vw, 1rem); }
.lightbox-next { right: clamp(0.25rem, 2vw, 1rem); }

/* ---------- Logo wall ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 1.25rem;
}
.logo-grid img {
  width: 100%;
  height: 108px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
  padding: 1.4rem 1.6rem;
  filter: grayscale(1) opacity(0.62);
  transition: filter 0.35s ease;
}
.logo-grid img:hover { filter: grayscale(0) opacity(1); }

.list-inline { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.7rem; }
.chip { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 0; border: 1px solid var(--line-strong); color: var(--muted); padding: 0.3rem 0.7rem; }

/* ---------- Product detail ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2.5rem;
}

.viewer-shell {
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 110% at 50% 34%, rgba(255, 253, 248, 0.42) 0%, rgba(70, 60, 48, 0.12) 68%, rgba(44, 36, 28, 0.34) 100%),
    url("/assets/textures/stone.jpg") center / cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
}
.viewer-shell iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: none; }

.specs { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.specs th, .specs td {
  text-align: left;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
  vertical-align: top;
}
.specs th {
  color: var(--muted);
  font-weight: 400;
  width: 34%;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-right: 1.2rem;
}
.specs td { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }

.contact-list { margin: 0; }
.contact-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt { color: var(--muted); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; align-self: center; }
.contact-list dd { margin: 0; font-size: 1rem; }

.location-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
  border: none;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 3rem 0 0;
}
.location-panel img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }

/* ---------- Material statement band (leather + brass inlay) ---------- */
.material-band {
  position: relative;
  margin: 2rem 0;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background:
    linear-gradient(100deg, rgba(28, 23, 18, 0.78) 0%, rgba(34, 28, 22, 0.6) 55%, rgba(28, 23, 18, 0.74) 100%),
    url("/assets/textures/leather.jpg") center / cover no-repeat;
  color: var(--paper);
}
.material-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: url("/assets/textures/brass.jpg") center / cover;
}
.material-band .eyebrow { color: var(--accent-2); margin-bottom: 1.6rem; }
.statement {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.32;
  letter-spacing: 0.004em;
  max-width: 30ch;
  margin: 0;
  color: var(--paper);
}
.statement em { font-style: italic; color: var(--accent-2); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-strong);
  margin-top: 4rem;
  padding: 3rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .product-layout,
  .split,
  .location-panel,
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid article:nth-child(-n+2) { border-top: none; }
  .metric-grid article { border-left: none; border-top: 1px solid var(--line); }
  .hero { padding: 4rem 0 3rem; }
  .hero-grid { gap: 2.5rem; }
  .section { padding: 3rem 0; }
  .grid { gap: 2rem; }
  .lightbox { padding: 0.75rem; }
  .lightbox-image { max-height: 72vh; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 3.25rem; transform: none; }
}
