/* =============================================================================
   page-media-center.css
   Scoped to template-media-center.php only.
   Omits: global elements, nav, breadcrumb, footer, .seo-h1, .hero-headline
          — those live in main.css.
   ============================================================================= */


/* ── PAGE HERO ──────────────────────────────────────────────────────────────── */

/* Decorative "Media" watermark — unique to this template.                       */
/* .page-hero base styles (padding, border, overflow) are in main.css.           */
.page-hero::before {
  content: "Media";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 184, 184, 0.05);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.hero-lead{
  margin-bottom:0;
}

.press-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--silver);
}

.press-contact a {
  color: var(--silver-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.press-contact a:hover {
  color: var(--white);
}


/* ── TAB BAR ────────────────────────────────────────────────────────────────── */

.tab-bar {
  background: var(--black-2);
  border-bottom: 1px solid rgba(184, 184, 184, 0.1);
  position: sticky;
  top: 96px; /* matches desktop nav height */
  z-index: 50;
}

.tab-bar-inner {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.tab-bar-inner::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  /* +1px keeps the active underline flush with the .tab-bar border-bottom */
  position: relative;
  top: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
  color: var(--silver-light);
}

.tab-btn.is-active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.tab-btn svg {
  opacity: 0.75;
  transition: opacity 0.2s;
}

.tab-btn.is-active svg,
.tab-btn:hover svg {
  opacity: 1;
}


/* ── TAB PANELS ─────────────────────────────────────────────────────────────── */

.tab-panel {
  display: none;
  padding: 64px 0 96px;
}

.tab-panel.is-active {
  display: block;
}

.panel-section-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.panel-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(184, 184, 184, 0.1);
}

/* Used when a tab has no content yet */
.panel-empty-state {
  font-size: 14px;
  color: var(--silver-dark);
  font-weight: 300;
  padding: 48px 0;
  text-align: center;
  letter-spacing: 0.02em;
}


/* ── PRESS RELEASES ─────────────────────────────────────────────────────────── */

.press-list {
  display: flex;
  flex-direction: column;
}

.press-item {
  padding: 36px 0;
  border-bottom: 1px solid rgba(184, 184, 184, 0.1);
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 32px;
  align-items: start;
}

.press-item:first-child {
  padding-top: 0;
}

.press-date-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}

.press-date-block .p-month {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 600;
}

.press-date-block .p-day {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.press-date-block .p-year {
  font-size: 11px;
  color: var(--silver-dark);
}

.press-content .press-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.press-content h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 10px;
}

.press-content p {
  font-size: 13px;
  color: var(--silver);
  line-height: 1.7;
  font-weight: 300;
  max-width: 680px;
}

.press-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(184, 184, 184, 0.5);
  color: var(--silver);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.press-download:hover {
  border-color: var(--silver);
  color: var(--white);
}


/* ── PHOTO GRID ─────────────────────────────────────────────────────────────── */

/* Intro blurb above the grid (media_photos_intro field).                        */
/* Distinguishes press-grade assets from the Community Gallery.                  */
.photos-tab-intro {
  font-size: 14px;
  color: var(--silver-dark);
  line-height: 1.75;
  font-weight: 300;
  max-width: 680px;
  margin-bottom: 32px;
}

.photos-tab-intro a {
  color: var(--silver);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.photos-tab-intro a:hover {
  color: var(--white);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(184, 184, 184, 0.08);
  border: 1px solid rgba(184, 184, 184, 0.1);
}

.photo-card {
  background: var(--black-2);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Fills the card when media_photo_image is populated */
.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--black-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(184, 184, 184, 0.2);
  transition: background 0.2s;
}

.photo-card:hover .photo-card-placeholder {
  background: #1e1e1e;
}

.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: opacity 0.25s;
}

.photo-card:hover .photo-card-overlay {
  opacity: 1;
}

.photo-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.photo-card-meta {
  font-size: 10px;
  color: var(--silver-dark);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.photo-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid rgba(184, 184, 184, 0.3);
  padding: 6px 12px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.photo-download-btn:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Credit / usage note below the grid (media_photo_legal field) */
.photo-grid-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--silver-dark);
  line-height: 1.6;
}

.photo-grid-note a {
  color: var(--silver);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.photo-grid-note a:hover {
  color: var(--white);
}


/* ── VIDEO GRID ─────────────────────────────────────────────────────────────── */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(184, 184, 184, 0.08);
  border: 1px solid rgba(184, 184, 184, 0.1);
  margin-bottom: 20px;
}

.video-card {
  background: var(--black-2);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.video-card:hover {
  background: var(--black-3);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--black-3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fills the thumbnail when media_video_thumb is populated */
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(184, 184, 184, 0.15);
}

.play-btn {
  position: absolute;
  z-index: 1;
  width: 52px;
  height: 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, background 0.2s;
}

.video-card:hover .play-btn {
  border-color: var(--white);
  background: rgba(0, 0, 0, 0.6);
}

.play-btn svg {
  margin-left: 3px; /* optical centre for the play triangle */
}

.video-info {
  padding: 20px 22px;
}

.video-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.video-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
}

.video-card:hover .video-title {
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.video-duration {
  font-size: 11px;
  color: var(--silver-dark);
}


/* ── BRAND ASSETS ───────────────────────────────────────────────────────────── */

/* Top-of-tab editorial intro (hardcoded copy, not ACF-backed) */
.brand-intro {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.75;
  font-weight: 300;
  max-width: 680px;
  margin-bottom: 48px;
}

.brand-intro a {
  color: var(--silver-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.brand-intro a:hover {
  color: var(--white);
}

/* Logo variation cards */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grid-gap);
  border: 1px solid var(--grid-gap);
  margin-bottom: 48px;
}

.brand-card {
  background: var(--light-card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.2s;
}

.brand-card:hover {
  background: var(--light-hover);
}

/* Preview area: light (default) or dark (when media_asset_dark is true) */
.brand-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-preview.dark {
  background: var(--black);
  border-color: rgba(184, 184, 184, 0.08);
}

.brand-preview img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05);
}

.brand-preview.dark img {
  filter: none;
}

.brand-card-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.brand-card-spec {
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}

.brand-card-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #444;
  width: fit-content;
  transition: border-color 0.2s, color 0.2s;
}

.brand-card-download:hover {
  border-color: var(--black);
  color: var(--black);
}


/* ── COLOR PALETTE ──────────────────────────────────────────────────────────── */
/* Structural CSS only. Background and label colours are inline (ACF-driven).    */

.brand-palette-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(184, 184, 184, 0.08);
  border: 1px solid rgba(184, 184, 184, 0.1);
  margin-bottom: 48px;
}

.brand-swatch {
  padding: 20px 16px;
}

.brand-swatch-name {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.brand-swatch-hex {
  font-size: 11px;
}


/* ── BRAND GUIDELINES DOWNLOAD ──────────────────────────────────────────────── */

.brand-guidelines {
  background: var(--black-2);
  border: 1px solid rgba(184, 184, 184, 0.1);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.brand-guidelines h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.brand-guidelines p {
  font-size: 13px;
  color: var(--silver-dark);
  line-height: 1.6;
  font-weight: 300;
  max-width: 480px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--white);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.btn-download:hover {
  background: var(--black);
  color: var(--white);
}


/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .press-item {
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-palette-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .tab-bar {
    top: 72px; /* matches mobile nav height */
  }

  .tab-bar-inner {
    padding: 0 20px;
  }

  .tab-panel {
    padding: 40px 0 72px;
  }

  /* Press: stack to single column, date goes inline */
  .press-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .press-date-block {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .press-date-block .p-day {
    font-size: 20px;
  }

  .press-download {
    margin-top: 0;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-palette-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-guidelines {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 540px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}