/* ============================================================
   VMEDIA — Brand styles
   Design tokens + custom component layer on top of Tailwind
   ============================================================ */

:root {
  --v-red: #c8102e;
  --v-red-dark: #8b0000;
  --v-red-soft: #fdf0f2;
  --v-ink: #1a1a1a;
  --v-gray: #4a4a4a;
  --v-muted: #6b7280;
  --v-bg-soft: #f8f9fa;
  --v-line: #e5e7eb;
  --v-shadow: 0 10px 30px -12px rgba(26, 26, 26, 0.18);
  --v-shadow-lg: 0 24px 48px -16px rgba(26, 26, 26, 0.28);
  --font-head: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--v-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

/* ---------- Brand helpers ---------- */
.font-head { font-family: var(--font-head); }

.text-red-brand { color: var(--v-red); }
.bg-red-brand { background-color: var(--v-red); }
.bg-red-dark { background-color: var(--v-red-dark); }
.bg-red-soft { background-color: var(--v-red-soft); }
.bg-soft { background-color: var(--v-bg-soft); }
.text-ink { color: var(--v-ink); }
.text-gray-brand { color: var(--v-gray); }

.gradient-red {
  background: linear-gradient(120deg, var(--v-red) 0%, var(--v-red-dark) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--v-red);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--v-red);
}
.eyebrow.center::after {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--v-red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-red {
  background: var(--v-red);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(200, 16, 46, 0.55);
}
.btn-red:hover {
  background: var(--v-red-dark);
  box-shadow: 0 12px 24px -8px rgba(139, 0, 0, 0.55);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--v-red);
  border-color: var(--v-red);
}
.btn-ghost-dark:hover {
  background: var(--v-red);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--v-red);
}
.btn-white:hover {
  background: var(--v-red-soft);
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--v-line);
  box-shadow: var(--v-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift { position: relative; overflow: hidden; }
.card-lift::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--v-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--v-shadow-lg);
}
.card-lift:hover::after { transform: scaleX(1); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Client marquee ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track.reverse { animation-direction: reverse; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: #fff;
  box-shadow: 0 4px 20px -10px rgba(26, 26, 26, 0.15);
}
.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--v-ink);
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--v-red);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--v-red); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--v-ink);
  border-bottom: 1px solid var(--v-line);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-link:hover, .mobile-link.active { color: var(--v-red); padding-left: 0.75rem; }

.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 10px; }
.hamburger span {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--v-ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(120deg, var(--v-red-dark) 0%, var(--v-red) 60%, #d3243f 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 24px);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-head);
}
.hero-kicker::before {
  content: '';
  width: 40px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
}
.hero-title .amp { color: #ffd7dc; }
.hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
  max-width: 34rem;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 320px at 90% -20%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(120deg, var(--v-red-dark) 0%, var(--v-red) 70%);
  padding-top: 5.5rem;
  padding-bottom: 3.5rem;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 24px);
  pointer-events: none;
}
.crumb { font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.crumb a:hover { color: #fff; }

/* ---------- Expertise tabs ---------- */
.pillar-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--v-line);
  background: #fff;
  transition: all 0.25s ease;
  cursor: pointer;
}
.pillar-tab:hover { border-color: var(--v-red); transform: translateX(4px); }
.pillar-tab.active {
  background: var(--v-red);
  border-color: var(--v-red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(200, 16, 46, 0.6);
}
.pillar-tab.active .pillar-icon { background: rgba(255,255,255,0.18); color: #fff; }
.pillar-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 8px;
  background: var(--v-red-soft);
  color: var(--v-red);
  transition: all 0.25s ease;
}
.pillar-panel { display: none; }
.pillar-panel.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Portfolio ---------- */
.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--v-line);
  background: #fff;
  color: var(--v-gray);
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover { border-color: var(--v-red); color: var(--v-red); }
.filter-btn.active {
  background: var(--v-red);
  border-color: var(--v-red);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(200, 16, 46, 0.55);
}

.media-item { transition: opacity 0.35s ease, transform 0.35s ease; }
.media-item.hidden-item { display: none; }

.video-card { position: relative; cursor: pointer; overflow: hidden; border-radius: 8px; box-shadow: var(--v-shadow); }
.video-card img { transition: transform 0.45s ease; }
.video-card:hover img { transform: scale(1.06); }
.video-card .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video-card .play::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.05) 40%, rgba(20,20,20,0.72) 100%);
  transition: background 0.3s ease;
}
.video-card:hover .play::before { background: linear-gradient(180deg, rgba(20,20,20,0.12) 40%, rgba(20,20,20,0.82) 100%); }
.play-circle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--v-red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}
.video-card:hover .play-circle { transform: scale(1.12); }
.video-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8rem 1rem;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Masonry for print ads */
.masonry { columns: 2; column-gap: 1.25rem; }
.masonry .m-item { break-inside: avoid; margin-bottom: 1.25rem; }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.m-item { cursor: pointer; position: relative; border-radius: 8px; overflow: hidden; box-shadow: var(--v-shadow); }
.m-item img { transition: transform 0.45s ease; }
.m-item:hover img { transform: scale(1.03); }
.m-item .caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(20, 20, 20, 0.85));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.m-item:hover .caption { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 10, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-body { max-width: 960px; width: 100%; position: relative; }
.lightbox-close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: var(--v-red); }

/* ---------- Contact ---------- */
.form-field {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--v-line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9375rem;
  color: var(--v-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field:focus {
  outline: none;
  border-color: var(--v-red);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}
textarea.form-field { min-height: 140px; resize: vertical; }

.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 8px;
  background: var(--v-red-soft);
  color: var(--v-red);
}

/* ---------- Footer ---------- */
.site-footer { background: #171717; color: #a3a3a3; }
.site-footer a { transition: color 0.2s ease; }
.site-footer a:hover { color: #fff; }
.footer-head {
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-link { display: block; padding: 0.35rem 0; font-size: 0.9rem; }
.social-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #333;
  color: #d4d4d4;
  transition: all 0.25s ease;
}
.social-btn:hover { background: var(--v-red); border-color: var(--v-red); color: #fff; transform: translateY(-3px); }

/* ---------- Misc ---------- */
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--v-red);
  line-height: 1;
}
.tick-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.tick-item svg { flex: none; margin-top: 0.2rem; color: var(--v-red); }
