/* ==========================================================================
   Catbird × Japanese Breakfast — NYC Wild Posting Campaign
   Silbermann Media Group · Spring 2026
   Format mirrors catbird-mothers-day.silbermannmediagroup.com
   ========================================================================== */

:root {
  --gold: #C9A86C;
  --gold-dim: #8a7548;
  --gold-soft: rgba(201, 168, 108, 0.08);
  --black: #0a0a0a;
  --charcoal: #141414;
  --panel: #1a1a1a;
  --panel-hover: #232323;
  --text: #e8e4dc;
  --text-dim: #9a958c;
  --text-faint: #5a564f;
  --border: rgba(201, 168, 108, 0.18);
  --border-strong: rgba(201, 168, 108, 0.4);
  --status-live: #6dbf80;
  --status-pending: #b8a878;
  --status-makegood: #d49a5c;
  --status-complete: #6dbf80;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.campaign-mark {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  text-align: center;
  padding: 80px 0 96px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-art {
  max-width: 960px;
  margin: 0 auto 48px;
  border: 1px solid var(--border);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-art-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--panel) 100%);
  aspect-ratio: 3 / 2;
}

.hero-art-fallback-inner {
  text-align: center;
  padding: 48px;
  border: 1px solid var(--border);
  max-width: 80%;
}

.hero-art-fallback-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-art-fallback-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text-dim);
}

.hero-anchor {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
}

.hero-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.hero-frame {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: 0;
  max-width: 800px;
  margin: 0 auto 28px;
}

.hero-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.hero-credit {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text-faint);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
  text-align: center;
}

.section-lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 56px;
}

.locations-table-label {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 16px;
}

.subsection-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin: 64px 0 24px;
  text-align: center;
}

/* ==========================================================================
   NEIGHBORHOOD COVERAGE
   ========================================================================== */

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-right: none;
  border-bottom: none;
}

.neighborhood-item {
  background: var(--panel);
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.neighborhood-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.neighborhood-count {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
}

/* ==========================================================================
   DEPLOYMENT FOOTPRINT — Locations table
   ========================================================================== */

.locations-details {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  max-width: 100%;
  overflow: hidden;
}

.locations-summary {
  padding: 20px 28px;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
}

.locations-summary:hover {
  background: var(--panel-hover);
}

.locations-summary::-webkit-details-marker { display: none; }

.locations-summary-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 14px;
}

.locations-details[open] .locations-summary-arrow {
  transform: rotate(90deg);
}

.locations-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--border);
}

.locations-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Barlow', sans-serif;
}

.locations-table thead {
  background: var(--charcoal);
}

.locations-table th {
  padding: 16px 20px;
  text-align: left;
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}

.locations-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.locations-table .week-cell {
  color: var(--gold);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.locations-table .neighborhood-cell {
  color: var(--text-dim);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
}

.locations-table .week-divider td {
  background: var(--charcoal);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-strong);
}

/* ==========================================================================
   MAP
   ========================================================================== */

.map-frame {
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
}

.map-frame iframe {
  display: block;
  width: 100%;
  filter: contrast(1.05) saturate(1.1);
}

/* ==========================================================================
   WEEK TABS
   ========================================================================== */

.week-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 56px;
}

.week-tab {
  background: var(--panel);
  border: none;
  padding: 24px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
  font-family: inherit;
  color: var(--text);
}

.week-tab:hover {
  background: var(--panel-hover);
}

.week-tab.active {
  background: var(--charcoal);
  position: relative;
}

.week-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.week-tab-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}

.week-tab.active .week-tab-num {
  color: var(--gold);
}

.week-tab-dates {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.week-tab-status {
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid currentColor;
}

.status-live { color: var(--status-live); }
.status-pending { color: var(--status-pending); }
.status-makegood { color: var(--status-makegood); }
.status-complete { color: var(--status-complete); }

/* ==========================================================================
   WEEK PANELS
   ========================================================================== */

.week-panel {
  display: none;
}

.week-panel.active {
  display: block;
}

.week-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}

.week-panel-lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   WEEK GRID — numbered photo cards
   ========================================================================== */

.week-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: border-color 0.3s ease;
}

.photo-card:hover {
  border-color: var(--border-strong);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: saturate(0.95);
}

.photo-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.photo-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 18px 14px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
  pointer-events: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.photo-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

.photo-card-text {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}

.photo-card-text .addr {
  font-weight: 500;
  display: block;
}

.photo-card-text .nbhd {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

.photo-placeholder {
  background: var(--panel);
  border: 1px dashed var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
}

.photo-placeholder-num {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold-dim);
}

.photo-placeholder-icon {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--gold-dim);
  margin-bottom: 12px;
}

.photo-placeholder-text {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.photo-placeholder-addr {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.photo-placeholder-nbhd {
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* ==========================================================================
   APPROVED CREATIVE
   ========================================================================== */

.creative-section {
  background: var(--charcoal);
}

.creative-display {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.creative-image-wrap {
  position: relative;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 32px;
}

.creative-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.creative-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--panel) 100%);
  aspect-ratio: 3 / 2;
}

.creative-fallback-inner {
  text-align: center;
  padding: 48px;
  border: 1px solid var(--border);
  max-width: 80%;
}

.creative-fallback-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 16px;
}

.creative-fallback-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.creative-fallback-note {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.creative-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 12px;
}

.creative-spec {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid var(--border);
}

.lightbox-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text-dim);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 56px 0 48px;
  text-align: center;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
  .wrap { padding: 0 32px; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }

  .hero-anchor { letter-spacing: 0.18em; }

  .week-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .week-tab {
    padding: 18px 12px;
  }

  .week-tab-status {
    letter-spacing: 0.14em;
    text-align: center;
    line-height: 1.3;
  }

  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .campaign-mark {
    letter-spacing: 0.16em;
    font-size: 10px;
  }

  .neighborhood-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-frame iframe {
    height: 480px;
  }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }

  .hero-anchor {
    letter-spacing: 0.12em;
    font-size: 10px;
    margin-bottom: 20px;
  }

  .hero-tag { margin-bottom: 24px; }

  .hero-frame {
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 24px;
  }

  .hero-meta {
    font-size: 11px;
    letter-spacing: 0.12em;
    line-height: 1.7;
  }

  .section-title { margin-bottom: 16px; }

  .section-lede {
    font-size: 17px;
    margin-bottom: 40px;
  }

  .subsection-title {
    font-size: 22px;
    margin: 48px 0 20px;
  }

  .locations-table-label {
    letter-spacing: 0.14em;
    line-height: 1.5;
  }

  .locations-summary {
    padding: 16px 20px;
    letter-spacing: 0.14em;
    font-size: 12px;
  }

  .week-tabs {
    grid-template-columns: 1fr;
  }

  .week-tab-status {
    letter-spacing: 0.12em;
  }

  .week-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .neighborhood-grid {
    grid-template-columns: 1fr;
  }

  .neighborhood-item { padding: 18px 16px; }

  .locations-table {
    table-layout: fixed;
  }

  .locations-table th {
    letter-spacing: 0.1em;
  }

  .locations-table th,
  .locations-table td {
    padding: 10px 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .locations-table th:nth-child(1),
  .locations-table td:nth-child(1) {
    width: 32px;
  }

  .locations-table th:nth-child(2),
  .locations-table td:nth-child(2) {
    width: 38%;
  }

  .locations-table th:nth-child(3),
  .locations-table td:nth-child(3) {
    width: auto;
  }

  .map-frame iframe {
    height: 400px;
  }

  .footer-meta {
    font-size: 10px;
    letter-spacing: 0.14em;
    line-height: 1.6;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}
