/* ==========================================================================
   DELIVERY PAGE — 38908 NE Amboy Rd
   Timbermile Creative media delivery portal
   Warm cream editorial aesthetic from reference screenshots
   ========================================================================== */

/* ---------- TOP BAR ---------- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-medium);
  padding: 0.75rem 0;
}

.top-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.top-bar-brand {
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 132px;
  height: 50px;
  object-fit: cover;
  border-radius: 2px;
}

.top-bar-address {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--timber-black);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.top-bar-agent {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bar-btn-cta {
  padding: 0.5rem 1.25rem;
  background: var(--brand-orange);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--duration-fast) ease;
}

.bar-btn-cta:hover {
  background: var(--brand-orange-hover);
}

/* Unbranded mode */
body.mode-unbranded .agent-branded-only { display: none !important; }

/* ==========================================================================
   DOWNLOAD HUB — big, obvious, first thing you see
   ========================================================================== */
.download-hub {
  background: var(--timber-black);
  padding: 1.5rem 0;
}

.download-hub-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--timber-forest);
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.dl-card:hover {
  transform: translateY(-4px);
}

.dl-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: opacity var(--duration-normal) ease, transform var(--duration-slow) var(--ease-smooth);
}

.dl-card:hover .dl-card-bg {
  opacity: 0.6;
  transform: scale(1.05);
}

.dl-card-body {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
}

.dl-card-body-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 0.375rem;
}

.dl-card-body-center svg {
  opacity: 0.3;
  margin-bottom: 0.25rem;
}

.dl-card-label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dl-card-count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  opacity: 0.6;
  margin-top: 0.125rem;
}

.dl-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.4375rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all var(--duration-fast) ease;
}

.dl-card:hover .dl-card-action {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

.dl-card-soon {
  background: var(--bg-sand);
  border: 2px dashed var(--border-medium);
  color: var(--text-muted);
}

/* ==========================================================================
   HERO — full-width cinematic landscape (Screenshot 1 style)
   ========================================================================== */
.hero {
  background: var(--bg-cream);
}

.hero > img {
  width: 100%;
  display: block;
  aspect-ratio: 2.35 / 1;
  object-fit: cover;
  object-position: center 40%;
}

.hero-ribbon {
  text-align: center;
  padding: 1rem 2rem;
  font-family: var(--font-serif);
  font-size: clamp(0.875rem, 1.4vw, 1.0625rem);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.hero-ribbon .sep {
  color: var(--border-medium);
  margin: 0 0.25rem;
}

/* ==========================================================================
   FILMSTRIP — horizontal scroll (Screenshot 2 style)
   ========================================================================== */
.filmstrip {
  background: var(--bg-sand);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
  padding: 1rem 0;
}

.filmstrip-track {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  padding: 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-orange) transparent;
}

.filmstrip-track::-webkit-scrollbar { height: 4px; }
.filmstrip-track::-webkit-scrollbar-thumb { background: var(--brand-orange); border-radius: 2px; }

.filmstrip-frame {
  flex: 0 0 220px;
  height: 140px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.filmstrip-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.filmstrip-frame:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   3D TOUR
   ========================================================================== */
.tour {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 2rem;
}

.tour .section-title {
  margin-bottom: 1.25rem;
}

.tour-link {
  display: flex;
  min-height: 170px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 6px;
  background: var(--cream, #f4eee3);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.tour-link:hover {
  background: var(--ink, #111813);
  color: #f4eee3;
}

.tour-link span {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}

.tour-link strong {
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 2rem;
  border-top: 1px solid var(--border-medium);
}

.gallery-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-tabs {
  display: flex;
  gap: 0.375rem;
}

.tab {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.tab:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.tab.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.tab-n {
  font-size: 0.6875rem;
  opacity: 0.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.875rem;
}

.gallery-card {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-sand);
  transition: transform var(--duration-normal) var(--ease-smooth), box-shadow var(--duration-normal) ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,18,16,0.72) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
  display: flex;
  align-items: flex-end;
  padding: 0.875rem;
  color: #fff;
}

.gallery-card:hover .gallery-card-overlay { opacity: 1; }

.gallery-card-title { font-size: 0.8125rem; font-weight: 600; }
.gallery-card-cat {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.125rem;
}

.gallery-download-icon {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 30px;
  height: 30px;
  background: rgba(14,18,16,0.5);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: all var(--duration-fast) ease;
  text-decoration: none;
}

.gallery-card:hover .gallery-download-icon { opacity: 1; }
.gallery-download-icon:hover { background: var(--brand-orange); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-medium);
  padding: 2rem 0;
  background: var(--bg-cream);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: block;
  width: 150px;
  height: auto;
  border-radius: 2px;
}

.footer-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.footer-agent {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-agent a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.footer-agent a:hover { color: var(--brand-orange); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,12,11,0.96);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-fast) ease;
}

.lb-close:hover { background: var(--brand-orange); }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-fast) ease;
}

.lb-arrow:hover { background: var(--brand-orange); }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

.lb-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  padding: 2rem;
}

.lb-center > img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lb-info {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: 0.8125rem;
}

.lb-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.lb-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}

.lb-dl:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .download-hub-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar-inner { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .top-bar-right { display: none; }
  .download-hub-inner { grid-template-columns: 1fr; }
  .dl-card { height: 160px; }
  .filmstrip-frame { flex: 0 0 180px; height: 115px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-agent { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}
