/* ============================================================
   I Want That Media Group
   Site stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  color: var(--c-navy);
  margin: 0 0 var(--space-4);
}

p { margin: 0 0 var(--space-4); max-width: var(--measure); }

a { color: var(--c-navy-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-brass-deep); }

img, svg, video { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--c-brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-navy);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 200;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--c-brass);
  margin: 0 0 var(--space-3);
}

.lede { font-size: var(--fs-md); color: var(--c-ink-muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-target);
  padding: var(--space-3) var(--space-5);
  border: 2px solid var(--c-brass);
  border-radius: var(--radius-pill);
  background: var(--c-brass);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--c-brass-deep); border-color: var(--c-brass-deep); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--c-navy);
}
.btn-ghost:hover { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

.btn-on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-on-dark:hover { background: #fff; border-color: #fff; color: var(--c-navy); }

/* ---------- Site header ----------
   Transparent over the hero, solid once the page scrolls, which is
   the only piece of behaviour on the home page. */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding-top: var(--safe-top);
  transition: background 220ms var(--ease), box-shadow 220ms var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-header.is-transparent { background: transparent; }
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.brand .brand-light { display: none; }
.site-header.is-transparent .brand .brand-light { display: block; }
.site-header.is-transparent .brand .brand-dark { display: none; }

.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav a:not(.btn) {
  color: var(--c-ink);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.site-nav a:not(.btn):hover { color: var(--c-brass-deep); }
.site-header.is-transparent .site-nav a:not(.btn) { color: #fff; }
.site-header.is-transparent .site-nav a:not(.btn):hover { color: var(--c-brass); }

.nav-toggle {
  display: none;
  width: var(--tap-target);
  height: var(--tap-target);
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--c-ink);
}
.site-header.is-transparent .nav-toggle { color: #fff; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  content: "";
  position: relative;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ----------
   Full width and full viewport height. 100dvh rather than 100vh, so
   the hero does not jump when a mobile address bar retracts. */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-navy-deep);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media .placeholder,
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Two layers over the footage. A dark wash so white text holds at any
   frame, and a navy gradient from the left so the copy column stays
   legible while the right side of the image remains visible. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(1, 42, 58, 0.94) 0%, rgba(1, 42, 58, 0.72) 45%, rgba(1, 42, 58, 0.35) 100%),
    linear-gradient(180deg, rgba(1, 42, 58, 0.55) 0%, rgba(1, 42, 58, 0.15) 40%, rgba(1, 42, 58, 0.75) 100%);
}

.hero-crest {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: min(60vw, 720px);
  z-index: 1;
  opacity: 0.08;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-inner {
  max-width: 940px;
  padding: calc(var(--header-height) + var(--space-7)) 0 var(--space-8);
}

.hero h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: var(--space-5);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--c-brass);
}

.hero-lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.375rem);
  color: var(--c-ink-inverse-muted);
  max-width: 58ch;
  margin-bottom: var(--space-6);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(var(--space-5) + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--c-ink-inverse-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
}
.hero-scroll span:last-child {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  animation: scroll-hint 2.4s var(--ease) infinite;
}
@keyframes scroll-hint {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Sections ---------- */

.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-8) 0; }
.section-alt { background: var(--c-canvas-alt); }
.section-dark { background: var(--c-navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--c-ink-inverse-muted); }

.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head h2 { font-size: var(--fs-3xl); }

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--c-canvas);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-line-strong);
}
.service-card .card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card .card-media svg,
.service-card .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card .card-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1 1 auto; }
.service-card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.service-card p { font-size: var(--fs-sm); color: var(--c-ink-muted); flex: 1 1 auto; }
.service-card .price {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-brass-deep);
}

/* ---------- Case studies ---------- */

.case-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.case-card .card-media {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.case-card .card-media svg,
.case-card .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }

/* The measured result, which is the point of a case study. */
.result-figure {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-brass);
  line-height: 1;
  display: block;
}
.result-label {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  display: block;
  margin-top: var(--space-1);
}

/* ---------- Placeholders ---------- */

.placeholder { display: block; width: 100%; height: auto; background: var(--c-navy); }

/* ---------- Forms ---------- */

.form-row { margin-bottom: var(--space-4); }
.form-row label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-2);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], select, textarea {
  width: 100%;
  min-height: var(--tap-target);
  padding: var(--space-3);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  background: #fff;
  color: var(--c-ink);
}
textarea { min-height: 160px; resize: vertical; }
.form-hint { display: block; font-size: var(--fs-xs); color: var(--c-ink-muted); margin-top: var(--space-1); }
.form-error { display: block; font-size: var(--fs-xs); color: var(--c-critical); margin-top: var(--space-1); }

/* A field no person sees. Position rather than display none, because
   some bots skip anything hidden outright. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
}
.flash-success { background: #E6F4EE; border-left: 3px solid var(--c-positive); }
.flash-error   { background: #F8E6E8; border-left: 3px solid var(--c-critical); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-navy-deep);
  color: var(--c-ink-inverse-muted);
  padding: var(--space-8) 0 var(--space-5);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--c-brass); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
.site-footer h4 {
  color: #fff;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  margin-bottom: var(--space-3);
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: var(--space-2); font-size: var(--fs-sm); }
.footer-brand img { height: 40px; width: auto; margin-bottom: var(--space-4); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--fs-xs);
}

/* ---------- Application shell ---------- */

.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; min-height: 100dvh; }
.app-rail { background: var(--c-navy); color: #fff; padding: var(--space-5); }
.app-rail .brand img { height: 30px; }
.app-main { background: var(--c-canvas-alt); }
.app-topbar {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-content { padding: var(--space-5); }
.tile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.tile {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.tile-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--c-ink-muted);
}
.tile-value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--c-navy); }

.panel { background: #fff; border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); margin-top: var(--space-5); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.data th, table.data td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--c-line); }
table.data th {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--c-ink-muted);
}
.empty { padding: var(--space-6); text-align: center; color: var(--c-ink-muted); font-size: var(--fs-sm); }

/* ---------- Sign in ---------- */

.bare-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--c-navy-deep);
  padding: var(--space-5);
}
.bare-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.bare-card .brand { justify-content: center; display: flex; margin-bottom: var(--space-5); }
.bare-card .brand img { height: 44px; }

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-rail { display: none; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--c-navy-deep);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-5);
    transform: translateX(100%);
    transition: transform 260ms var(--ease);
    padding: var(--space-6);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a:not(.btn),
  .site-header.is-solid .site-nav a:not(.btn) {
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--fs-xl);
  }

  .hero-inner { padding-top: calc(var(--header-height) + var(--space-6)); }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(1, 42, 58, 0.72) 0%, rgba(1, 42, 58, 0.55) 40%, rgba(1, 42, 58, 0.92) 100%);
  }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-crest { right: -30%; bottom: -8%; width: 110vw; }

  .section { padding: var(--space-8) 0; }
}
