/* ---------------------------------------------------------------------
   WJC Media — styles.css
   Dark cinematic theme with a warm gradient accent. Mobile-first. All
   tunable colors/fonts/spacing live in :root custom properties — change
   --accent / --accent-2 in one place to re-theme every gradient, glow,
   and highlight sitewide.
   --------------------------------------------------------------------- */

:root {
  --bg: #0a0a0d;
  --bg-elevated: #15161c;
  --bg-elevated-2: #1d1f28;
  --fg: #f5f5f3;
  --fg-muted: #9a9fab;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.18);

  /* Gradient accent system — change these two stops to re-theme the site. */
  --accent: #ffb23d;
  --accent-2: #ff4d8d;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --accent-contrast: #15110a;
  --glow: 0 0 50px rgba(255, 130, 90, 0.35);

  --font-display: "Unbounded", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;

  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
}
.skip-link:focus-visible {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: var(--space-4);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn--primary {
  background: var(--accent-gradient);
  color: var(--accent-contrast);
  box-shadow: 0 8px 24px rgba(255, 90, 120, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-bright);
}
.btn--ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.link-secondary {
  color: var(--fg);
  text-underline-offset: 4px;
  text-decoration: underline;
  text-decoration-color: var(--border-bright);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.link-secondary:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}
.nav__menu {
  list-style: none;
  display: none;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}
.nav__menu a {
  position: relative;
  color: var(--fg);
  font-weight: 500;
  padding-bottom: 4px;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent-gradient);
  transition: width 0.25s ease;
}
.nav__menu a:hover::after,
.nav__menu a.is-active::after {
  width: 100%;
}
.nav__menu a.is-active {
  color: var(--accent);
}
.nav__menu.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 760px) {
  .nav__toggle {
    display: none;
  }
  .nav__menu {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    flex-direction: row;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #1d1620 0%, #0a0a0d 60%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  filter: blur(140px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.8));
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-3);
  max-width: 820px;
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 8vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

/* ---------- Modal (reel facade player) ---------- */
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(90vw, 960px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 2rem;
  line-height: 1;
}
.modal__body {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.modal__body.modal__body--image {
  aspect-ratio: auto;
  background: var(--bg-elevated-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal__body--image img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Facade player (shared: work cards + reels) ---------- */
.player {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}
.player__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.player--vertical .player__cover {
  aspect-ratio: 9 / 16;
}
.player__cover:hover,
.player__cover:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.player__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.player__cover:hover img {
  transform: scale(1.06);
}
.player__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player__play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(10, 10, 13, 0.55);
  border: 2px solid var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  font-size: 1.4rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.player__cover:hover .player__play-icon {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--accent-contrast);
  transform: scale(1.08);
}
.player__captions-toggle {
  position: absolute;
  bottom: var(--space-1);
  right: var(--space-1);
  font-size: 0.7rem;
  padding: 0.3em 0.6em;
  background: rgba(0, 0, 0, 0.6);
  color: var(--fg);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  z-index: 2;
}
.player__frame-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}
.player--vertical .player__frame-wrap {
  aspect-ratio: 9 / 16;
}
.player__frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Logo ticker ---------- */
.logos {
  overflow: hidden;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.logos__track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  animation: ticker 30s linear infinite;
}
.logos__track:hover,
.logos__track:focus-within {
  animation-play-state: paused;
}
.logos__item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
}
.logos__track img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.logos__item:hover img,
.logos__item:focus-visible img {
  opacity: 1;
  transform: scale(1.06);
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .logos__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---------- Shared section container ---------- */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-3);
}

/* ---------- Work ---------- */
.work__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
  margin-bottom: var(--space-4);
}
.filter-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  padding: 0.55em 1.2em;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--border-bright);
  color: var(--fg);
  transform: translateY(-1px);
}
.filter-btn[aria-pressed="true"] {
  background: var(--accent-gradient);
  color: var(--accent-contrast);
  border-color: transparent;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}
.work-card {
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.work-card[hidden] {
  display: none;
}
.work-card__meta {
  padding-top: var(--space-1);
}
.work-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin: 0.5em 0 0.3em;
}
.work-card__sub {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0;
}
.work__reels-heading {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.work__reels {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
}
.work__reels .player {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

/* ---------- Process ---------- */
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.process-step {
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.process-step img {
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.process-step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}
.process-step__desc {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin: 0;
}
.process__gear-heading {
  text-align: center;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.process__gear {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.gear-card {
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.gear-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.gear-card img {
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gear-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.4em;
}
.gear-card__desc {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0;
}
.gear-card__note {
  display: inline-block;
  margin-top: 0.6em;
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2em 0.6em;
  border-radius: 999px;
}

/* ---------- Reviews ---------- */
.reviews__testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.testimonial-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-2);
  border: 2px solid var(--border-bright);
}
.testimonial-card__quote {
  font-style: italic;
  margin: 0 0 var(--space-2);
}
.testimonial-card__name {
  font-weight: 600;
  margin: 0;
}
.testimonial-card__company {
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin: 0;
}
.reviews__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  text-align: center;
  margin-bottom: var(--space-4);
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.reviews__google-slot {
  text-align: center;
  padding: var(--space-3);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-lg);
  color: var(--fg-muted);
}

/* ---------- Contact / estimator ---------- */
.estimator {
  max-width: 560px;
  margin: 0 auto var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.estimator__progress {
  height: 6px;
  background: var(--bg-elevated-2);
  border-radius: 999px;
  margin-bottom: var(--space-4);
  overflow: hidden;
  position: relative;
}
.estimator__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--progress-pct, 25%);
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}
.estimator-step[hidden] {
  display: none;
}
.estimator-step legend,
.estimator-step__label {
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: block;
}
.estimator-step .field {
  margin-bottom: var(--space-2);
}
.estimator-step label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 0.2em;
  border-bottom: 1px solid var(--border);
}
.estimator-step input[type="text"],
.estimator-step input[type="email"],
.estimator-step input[type="tel"],
.estimator-step textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 0.7em;
  color: var(--fg);
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.estimator-step input:focus,
.estimator-step textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 130, 90, 0.2);
}
.estimator-step .field-error {
  color: #ff8a8a;
  font-size: 0.8rem;
  min-height: 1.1em;
  display: block;
}
.estimator__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.estimator__status {
  margin-top: var(--space-2);
  min-height: 1.2em;
  color: var(--accent);
}
.contact__calendly {
  max-width: 800px;
  margin: 0 auto;
  min-height: 60px;
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  text-align: center;
  padding: var(--space-3);
}
.contact__calendly iframe {
  width: 100%;
  height: 630px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.site-footer a {
  color: var(--fg-muted);
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--accent);
}
.footer__social {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-2);
}
.footer__line {
  margin: 0.3em 0;
}
