/* ===== Theme ===== */
:root {
  --font-head: Garamond, "Times New Roman", koyalf;
  --font-body:
    Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-koyalf;
  --black: #0b0b0b;
  --white: #fff;
  --text: #111;
  --muted: #888;
  --maxW: 1200px;
  --page-pad: clamp(16px, 4vw, 32px);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  min-width: 320px;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
textarea,
select {
  font: inherit;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: #fff;
  border-bottom: 1px solid #111;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 14px var(--page-pad);
  gap: clamp(16px, 3vw, 40px);
}
.header__left {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  min-width: 0;
}

.brand__mark {
  width: clamp(42px, 5vw, 48px);
  height: clamp(42px, 5vw, 48px);
  object-fit: contain;
  transition: 0.3s ease;
  flex: 0 0 auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 42px);
  flex-wrap: wrap;
}
.nav a {
  font-family: var(--font-body);
  color: #eaeaea;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.nav a:hover {
  color: #800000;
}
.nav a:active {
  color: #800000;
}
/* Current route: keep maroon (not only hover) */
.nav a.nav__link--active,
.nav a.nav__link--active:hover {
  color: #800000;
}

.nav a:focus-visible {
  outline: 2px solid #800000;
  outline-offset: 3px;
}

/* ===== Social Icons Styling ===== */
.header__social {
  display: flex;
  gap: clamp(10px, 2vw, 24px);
  align-items: center;
  flex: 0 0 auto;
}

.header__social a {
  width: clamp(34px, 4vw, 42px);
  height: clamp(34px, 4vw, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

/* Unified Hover Effect for ALL icons */
.header__social a:hover {
  background: #800000;
  border-color: #800000;
  color: #fff;
}

/* Centered logo under header */
.logo-center {
  display: flex;
  justify-content: center;
  margin: clamp(14px, 3vw, 20px) 0;
  padding: 0 var(--page-pad);
}
.logo-center img {
  width: min(180px, 45vw);
  height: auto;
}

.banner {
  width: min(90%, 2200px);
  max-width: 2200px; /* safety cap */
  margin: clamp(18px, 4vw, 30px) auto;
  position: relative;
  aspect-ratio: 16/7;
  background: #f7f7f7;
  border-radius: 10px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.slide.is-active {
  opacity: 1;
}
.slide--1 {
  background-image: url("/static/images/home/01.jpg");
}
.slide--2 {
  background-image: url("/static/images/home/02.jpg");
}
.slide--3 {
  background-image: url("/static/images/home/03.jpg");
}

.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.dot.is-active {
  background: #fff;
}

.main-content {
  width: 100%;
}

.section {
  width: min(100%, var(--maxW));
  margin: clamp(28px, 5vw, 48px) auto;
  padding: 0 var(--page-pad);
}

.section h1,
.moodboards-title {
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.2;
  text-align: center;
}

.tagline {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.6;
}

.btn {
  display: inline-block;
  max-width: 100%;
  padding: 10px 18px;
  border-radius: 6px;
  background: #800000;
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Responsive header and hero */
@media (max-width: 1100px) {
  .header__inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header__left {
    justify-content: center;
    width: 100%;
  }
  .nav {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header__inner {
    padding-block: 12px;
    gap: 12px;
  }
  .header__left {
    flex-direction: column;
    gap: 12px;
  }
  .nav {
    gap: 10px 16px;
    max-width: 100%;
  }
  .nav a {
    font-size: 11px;
  }
  .header__social {
    justify-content: center;
  }
  .banner {
    width: calc(100% - 2 * var(--page-pad));
    aspect-ratio: 4/3;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    text-align: center;
  }
  .nav a {
    padding: 4px 0;
  }
  .banner {
    aspect-ratio: 1/1;
  }
}
/* ===== Footer ===== */
.site-footer {
  background: #0b0b0b;
  color: #ccc;
  padding: 20px 24px;
  font-family: Inter, sans-koyalf;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__left p,
.footer__right p {
  margin: 0;
}

.footer__right {
  color: #999;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}
.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  background: #111; /* black background */
  color: #fff; /* white text */
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.back-btn:hover {
  background: #333; /* lighter black */
  transform: translateY(-2px);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(14px, 2.5vw, 20px);
  margin-top: 20px;
}
.thumb {
  width: 100%;
  height: clamp(140px, 18vw, 220px);
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}
.card {
  display: block;
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 0;
  text-align: inherit;
}
.meta {
  padding: 10px;
  font-size: clamp(12px, 1.8vw, 13px);
  font-weight: bold;
  text-align: center;
  background: #800000;
  color: #fff;
}

@media (max-width: 900px) {
  .thumb {
    height: clamp(140px, 28vw, 190px);
  }
}
@media (max-width: 600px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
  .thumb {
    height: auto;
    aspect-ratio: 4/3;
  }
}

/* ----- Collection, Editorial, Senior detail: same two-column “lateral” layout ----- */
main.collection-grid,
main.editorial-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 2fr);
  gap: clamp(24px, 4vw, 40px);
  max-width: 1400px;
  margin: 40px auto;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  padding: 0 var(--page-pad);
}

.collection-text,
.editorial-text {
  font-family: "Inter", sans-koyalf;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  min-width: 0;
}

.collection-text h1,
.collection-text h2,
.editorial-text h1,
.editorial-text h2 {
  font-family: "Inter", sans-koyalf;
  color: #111;
}

.collection-text h1,
.editorial-text h1 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.2em;
  line-height: 1.2;
}

.collection-text h2,
.editorial-text h2 {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  margin: 0 0 1em;
}

.collection-text p,
.editorial-text p {
  margin: 0 0 1em;
}

/* Street Codes (senior): single centered column */
main.collection-grid.collection-grid--street-codes {
  display: block;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 var(--page-pad);
}

/* Street Codes (senior): EB Garamond only — same heading scale as other collections (e.g. Thom Browne) */
main.collection-grid.collection-grid--street-codes .collection-text h1,
main.collection-grid.collection-grid--street-codes .collection-text h2 {
  font-family: "EB Garamond", Garamond, koyalf;
  font-optical-sizing: auto;
}
main.collection-grid.collection-grid--street-codes .collection-text h1 {
  font-size: clamp(1.95rem, 2.85vw, 2.45rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.2em;
}
main.collection-grid.collection-grid--street-codes .collection-text h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 600;
  margin: 0 0 1em;
}

.collection-images,
.editorial-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  min-width: 0;
}

.collection-images .thumb-icon,
.editorial-images .thumb-icon {
  display: block;
  position: relative;
  width: 100%;
  cursor: pointer;
  border: 2px solid #000;
  padding: 2px;
  background: transparent;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  margin: 0;
  font: inherit;
  border-radius: 0;
}

.collection-images .thumb-icon:hover,
.editorial-images .thumb-icon:hover {
  transform: scale(1.05);
  border-color: #800000;
}

.collection-images .thumb-icon img,
.collection-images .thumb-icon video,
.editorial-images .thumb-icon img,
.editorial-images .thumb-icon video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.collection-images .video-thumb,
.editorial-images .video-thumb {
  position: relative;
}

.collection-images .play-overlay,
.editorial-images .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 10px 18px;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .collection-images .thumb-icon img,
  .collection-images .thumb-icon video,
  .editorial-images .thumb-icon img,
  .editorial-images .thumb-icon video {
    height: 200px;
  }
  .collection-images,
  .editorial-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  main.collection-grid,
  main.editorial-grid {
    grid-template-columns: 1fr;
    margin: 32px auto;
  }
}

@media (max-width: 767px) {
  .collection-images .thumb-icon img,
  .collection-images .thumb-icon video,
  .editorial-images .thumb-icon img,
  .editorial-images .thumb-icon video {
    height: 150px;
  }
  .collection-images,
  .editorial-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 520px) {
  main.collection-grid,
  main.editorial-grid {
    margin: 24px auto;
  }
  .collection-images,
  .editorial-images {
    grid-template-columns: 1fr;
  }
  .collection-images .thumb-icon img,
  .collection-images .thumb-icon video,
  .editorial-images .thumb-icon img,
  .editorial-images .thumb-icon video {
    height: auto;
    aspect-ratio: 4/3;
  }
}

.collection-images-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: #555;
  background: #fafafa;
  border: 1px dashed #ccc;
  border-radius: 8px;
  font-family: "Inter", sans-koyalf;
  font-size: 14px;
}

/* ===== Popup ===== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 1000;
  padding: var(--page-pad);
}
.popup.show {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.popup-inner {
  max-width: min(100%, 1200px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.popup-content {
  max-width: 100%;
  max-height: min(82vh, 900px);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}
.caption,
.popup-caption {
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}
.close {
  position: absolute;
  top: clamp(10px, 3vw, 20px);
  right: clamp(14px, 4vw, 30px);
  font-size: clamp(30px, 6vw, 36px);
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: bold;
  color: #000;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  padding: clamp(6px, 2vw, 10px);
  border-radius: 50%;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  z-index: 1100;
}

.arrow:hover {
  background: #800000;
  color: #fff;
}

.arrow.left {
  left: clamp(8px, 3vw, 20px);
}
.arrow.right {
  right: clamp(8px, 3vw, 20px);
}

@media (max-width: 640px) {
  .popup {
    padding: 48px 14px 28px;
  }
  .popup-content {
    max-height: 72vh;
  }
  .arrow {
    top: auto;
    bottom: 14px;
    transform: none;
  }
}
