/* =========================================================================
   Hybrid CTV Sales House — legacy site styles
   Temporary migration from sites.google.com to mihybrid.com Active24 hosting.
   ========================================================================= */

@font-face {
  font-family: 'PP Mori';
  font-style: normal;
  font-weight: 450;
  font-display: swap;
  src: url('../fonts/PPMori-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'PP Mori';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/PPMori-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'PP Mori';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/PPMori-Bold.ttf') format('truetype');
}

:root {
  --hy-red: #C1051B;
  --hy-yellow: #EFB22B;
  --hy-green: #44B524;
  --hy-blue: #294CCC;
  --hy-purple: #9913A1;
  --hy-purple-800: #6D0C75;
  --hy-ink: #0A0A0B;
  --hy-ink-3: #3A3A40;
  --hy-ink-4: #6B6B73;
  --hy-line: #E6E6EA;
  --hy-bg-2: #FAFAFB;
  --hy-paper: #FBFBFC;

  --hy-gradient: linear-gradient(90deg,
    var(--hy-purple) 0%,
    var(--hy-blue) 25%,
    var(--hy-green) 50%,
    var(--hy-yellow) 75%,
    var(--hy-red) 100%);

  --font-sans: 'PP Mori', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 450;
  line-height: 1.5;
  color: var(--hy-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--hy-purple); color: #fff; }

a { color: var(--hy-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5vw, 72px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
p { margin: 0 0 1em; }
p.lead { font-size: clamp(18px, 1.4vw, 22px); color: var(--hy-ink-3); }

/* ─────────── Header ─────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: #fff;
}
.site-logo:hover { text-decoration: none; }
.site-logo img { height: 44px; width: auto; }
.site-logo__label {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a:hover {
  color: #fff;
  text-decoration: none;
}
.site-nav a.is-active {
  color: #fff;
}

/* ─────────── Layout helpers ─────────── */

.section {
  padding: clamp(64px, 8vw, 120px) 28px;
}
.section--dark {
  background: var(--hy-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(153, 19, 161, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 80%, rgba(41, 76, 204, 0.12) 0%, transparent 55%);
  pointer-events: none;
}
.section--paper { background: var(--hy-paper); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gradient-bar { height: 6px; background: var(--hy-gradient); }
.gradient-bar--thin { height: 3px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}
.section--paper .kicker,
.section:not(.section--dark) .kicker {
  color: var(--hy-ink-4);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--hy-gradient);
}

.gradient-text {
  background: var(--hy-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─────────── Buttons ─────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--hy-purple);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(153, 19, 161, 0.35), 0 8px 28px rgba(153, 19, 161, 0.22);
}
.btn--primary:hover { background: var(--hy-purple-800); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn--light {
  background: #fff;
  color: var(--hy-ink);
}

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  padding: clamp(120px, 14vw, 200px) 28px clamp(80px, 9vw, 120px);
  text-align: left;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.72) 35%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(0, 0, 0, 0.05) 85%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("/assets/img/hero.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* extra vertical wash so headline + cta read on any aspect ratio */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(44px, 5.6vw, 84px);
  margin-bottom: 24px;
  max-width: 14ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero .lead {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 760px) {
  .hero {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.72) 45%,
        rgba(0, 0, 0, 0.85) 100%
      ),
      url("/assets/img/hero.jpg");
    background-position: center center;
  }
}

/* ─────────── Footer ─────────── */

.site-footer {
  background: var(--hy-ink);
  color: #fff;
  padding: 56px 28px 24px;
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer img { height: 36px; }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}
.site-footer__links a:hover { color: #fff; }
.site-footer__copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  width: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─────────── Page-specific ─────────── */

/* Markets table */
.markets-list {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--hy-line);
  border-radius: 16px;
  overflow: hidden;
}
.market-row {
  display: grid;
  grid-template-columns: 72px 1fr 200px 140px;
  align-items: center;
  padding: 22px 28px;
  gap: 24px;
  border-top: 1px solid var(--hy-line);
}
.market-row:first-child { border-top: none; }
.market-row__flag { width: 40px; height: 26px; border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.market-row__flag svg { width: 100%; height: 100%; display: block; }
.market-row__name { font-size: 20px; font-weight: 600; }
.market-row__bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--hy-bg-2);
  overflow: hidden;
}
.market-row__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--pct, 0%);
  background: var(--hy-gradient);
  border-radius: 999px;
}
.market-row__count {
  font-size: 22px;
  font-weight: 600;
  text-align: right;
  letter-spacing: -0.02em;
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.contact-card {
  padding: 28px;
  border: 1px solid var(--hy-line);
  border-radius: 16px;
  background: var(--hy-bg-2);
}
.contact-card h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hy-ink-4);
  margin-bottom: 12px;
}
.contact-card a.email {
  display: inline-block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
  word-break: break-all;
}
.entity-block {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hy-line);
}
.entity-block h3 { color: var(--hy-ink); font-size: 18px; letter-spacing: 0; text-transform: none; margin-bottom: 8px; }
.entity-block dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 16px;
  font-size: 15px;
  margin: 0;
}
.entity-block dt { color: var(--hy-ink-4); }
.entity-block dd { margin: 0; }

/* Bullet list with brand check */
.brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.brand-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--hy-line);
}
.brand-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 2px;
  background: var(--hy-gradient);
  border-radius: 2px;
}
.brand-list li:last-child { border-bottom: none; }

/* Privacy article */
.prose {
  max-width: 72ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--hy-ink-3);
}
.prose h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--hy-ink);
}
.prose p { margin: 0 0 1em; }

/* ─────────── Responsive ─────────── */

@media (max-width: 880px) {
  .site-header__inner { flex-wrap: wrap; gap: 12px; }
  .site-nav { gap: 18px; width: 100%; order: 2; flex-wrap: wrap; }
  .site-nav a { font-size: 13px; letter-spacing: 0.08em; }
  .site-logo__label { display: none; }

  .hero h1 { font-size: clamp(36px, 9vw, 56px); max-width: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .market-row { grid-template-columns: 40px 1fr 80px; padding: 16px 18px; gap: 14px; }
  .market-row__bar { display: none; }
  .market-row__name { font-size: 17px; }
  .market-row__count { font-size: 18px; }

  .entity-block dl { grid-template-columns: 1fr; gap: 2px; }
  .entity-block dt { margin-top: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
}

/* ─────────── Cookie banner ─────────── */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: var(--hy-ink);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 360ms var(--ease-standard, cubic-bezier(0.22, 0.61, 0.36, 1)),
              opacity 220ms ease-out;
}
.cookie-banner.is-open {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hy-gradient);
  pointer-events: none;
}
.cookie-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cookie-banner__copy {
  flex: 1 1 360px;
  min-width: 0;
}
.cookie-banner__copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}
.cookie-banner__copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.cookie-banner__copy a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.cookie-banner__copy a:hover {
  text-decoration-thickness: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner__reject {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.cookie-banner__reject:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
  .cookie-banner__inner { padding: 18px 20px; gap: 18px; }
  .cookie-banner__copy p { font-size: 14px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; text-align: center; }
}
