/* Foundation 7 | Archives & Gallery */
:root {
  --red: #9b1928;
  --red-dark: #7d121e;
  --gold: #dfab18;
  --dark: #1c1917;
  --gray: #6b6560;
  --muted: #8a847c;
  --light: #f7f5f2;
  --white: #ffffff;
  --border: rgba(28, 25, 23, 0.1);
  --font: "Outfit", sans-serif;
  --ease: 0.25s ease;
}

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

body {
  font-family: var(--font);
  background: var(--light);
  color: var(--dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Coming soon ── */
.archives-soon {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: #f4f1ec;
}
.archives-soon-card {
  max-width: 480px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  padding: 2.4rem 2rem 2.1rem;
}
.archives-soon-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9b1928;
  margin-bottom: 0.7rem;
}
.archives-soon-card h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: #1c1917;
}
.archives-soon-card p {
  color: #6b6560;
  font-size: 0.98rem;
  line-height: 1.55;
}
.archives-soon-card a {
  color: #9b1928;
  text-decoration: underline;
}

/* ── Hero ── */
.archives-hero {
  background:
    linear-gradient(160deg, rgba(28, 25, 23, 0.55) 0%, rgba(155, 25, 40, 0.72) 100%),
    url("../assets/photos/m-bg.jpg") center / cover no-repeat;
  padding: 3.75rem 1.5rem 3.25rem;
  text-align: center;
  color: var(--white);
}

.archives-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.archives-hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.4rem 0.85rem;
  margin-bottom: 1rem;
}

.archives-hero h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.15rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.archives-hero h1 span { color: var(--gold); }

.archives-hero p {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Tabs ── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 88px;
  z-index: 50;
}

.filter-tabs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.15rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
}

.filter-tab:hover { color: var(--dark); }

.filter-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.filter-tab .tab-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--light);
  padding: 0.15rem 0.45rem;
  min-width: 1.4rem;
  text-align: center;
}

.filter-tab.active .tab-count {
  background: rgba(155, 25, 40, 0.1);
  color: var(--red);
}

/* ── Main ── */
.archives-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.archives-section {
  margin-bottom: 3.25rem;
}

.archives-section[hidden] { display: none !important; }

.section-head {
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.section-head p {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--gray);
}

/* All Media summary cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 2.75rem;
}

.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.35rem 1.25rem;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
  text-align: left;
  font-family: var(--font);
  width: 100%;
}

.summary-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.summary-card-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.45rem;
}

.summary-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.summary-card p {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 0.85rem;
}

.summary-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
}

/* Press articles */
.press-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.press-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color var(--ease);
  overflow: hidden;
}

.press-item:hover { border-color: rgba(155, 25, 40, 0.45); }

.press-thumb {
  min-height: 120px;
  background-size: cover;
  background-position: center;
}

.press-body {
  padding: 1rem 1.15rem 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.press-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.press-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.press-body p {
  font-size: 0.88rem;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Testimonials layout */
.video-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1c1917;
  overflow: hidden;
}

.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.video-frame .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  background: rgba(28, 25, 23, 0.25);
  pointer-events: none;
}

.video-card-body {
  padding: 0.85rem 1rem 1rem;
}

.video-card-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.video-card-body p {
  font-size: 0.8rem;
  color: var(--gray);
}

.video-placeholder-label {
  position: absolute;
  left: 0.65rem;
  bottom: 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(155, 25, 40, 0.9);
  padding: 0.25rem 0.45rem;
}

.written-reviews-wrap {
  margin-top: 0.5rem;
}

.written-reviews-wrap .reviews-section {
  background: transparent;
  padding: 0;
}

.written-reviews-wrap .reviews-section .section-header {
  display: none;
}

/* Gallery */
.gallery-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gallery-subnav button {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.gallery-subnav button:hover {
  color: var(--dark);
  border-color: rgba(28, 25, 23, 0.25);
}

.gallery-subnav button.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.gallery-block { margin-bottom: 2.25rem; }

.gallery-block[hidden] { display: none !important; }

.gallery-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 0.75rem;
}

.gallery-year:first-child { margin-top: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
  border: 1px solid var(--border);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.04);
}

.gallery-item-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(transparent, rgba(28, 25, 23, 0.75));
}

.gallery-item--video .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(28, 25, 23, 0.35);
  font-size: 0.95rem;
  pointer-events: none;
}

/* Footer CTA */
.archives-footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
}

.archives-footer h3 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.archives-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}

.archives-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn-solid,
.btn-ghost {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  display: inline-block;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-solid {
  background: var(--red);
  color: var(--white);
}

.btn-solid:hover { background: var(--red-dark); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 900px) {
  .summary-grid,
  .video-testimonials,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .filter-bar { top: 72px; }
  .press-item { grid-template-columns: 1fr; }
  .press-thumb { min-height: 160px; }
  .press-body { padding: 1rem; }
  .summary-grid,
  .video-testimonials,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .archives-hero { padding: 2.75rem 1.15rem 2.35rem; }
  .archives-main { padding: 1.75rem 1.15rem 3rem; }
}
