/**
 * Advertise / partnerships landing page
 */

body.page-advertise,
body.page-template-page-advertise {
  overflow-x: clip;
  --hg-adv-accent: #ff6b35;
  --hg-adv-accent-dark: #e85a28;
  --hg-adv-ink: #0f1419;
  --hg-adv-muted: #5c6570;
  --hg-adv-surface: #f6f4f1;
  --hg-adv-card: #ffffff;
  --hg-adv-radius: 14px;
  --hg-adv-shadow: 0 12px 40px rgba(15, 20, 25, 0.08);
}

body.page-advertise #mvp-side-wrap,
body.page-advertise #mvp-woo-side-wrap,
body.page-advertise .mvp-side-wrap,
body.page-template-page-advertise #mvp-side-wrap,
body.page-template-page-advertise #mvp-woo-side-wrap,
body.page-template-page-advertise .mvp-side-wrap {
  display: none !important;
}

body.page-advertise #mvp-home-widget-wrap,
body.page-template-page-advertise #mvp-home-widget-wrap {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* Zox .left = float:left — breaks firewall/CTA stack on narrow viewports */
body.page-advertise #mvp-home-widget-wrap > .left,
body.page-template-page-advertise #mvp-home-widget-wrap > .left {
  float: none !important;
  clear: both !important;
  width: 100% !important;
}

body.page-advertise #mvp-home-widget-wrap > .mvp-widget-home .mvp-main-box,
body.page-template-page-advertise #mvp-home-widget-wrap > .mvp-widget-home .mvp-main-box {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

body.page-advertise #mvp-foot-wrap .mvp-main-box,
body.page-template-page-advertise #mvp-foot-wrap .mvp-main-box {
  max-width: 1200px !important;
  margin: 0 auto !important;
}

body.page-advertise .hg-advertise-trending .mvp-main-box,
body.page-template-page-advertise .hg-advertise-trending .mvp-main-box {
  max-width: 1200px !important;
}

/* Breadcrumbs sit above hero */
.hg-advertise-crumb-wrap {
  padding-top: 8px;
  padding-bottom: 4px;
  background: #ffffff;
}

.hg-advertise-crumb-wrap .homegear-breadcrumb-wrapper {
  text-align: left;
}

.hg-advertise-crumb-wrap .breadcrumb-nav {
  margin: 0 0 12px;
}

/* Full-bleed hero */
.hg-advertise-hero-band {
  position: relative;
  clear: both;
  float: none;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 56px 24px 64px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2a26 45%, #3d2914 100%);
  color: #fff;
  overflow: hidden;
}

@media (min-width: 901px) {
  .hg-advertise-hero-band {
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
  }
}

.hg-advertise-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(255, 107, 53, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}

/* Strong overlay preserves hero tint; photo layer is lighter so texture still reads through */
.hg-advertise-hero-band.has-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.86) 0%,
    rgba(45, 42, 38, 0.84) 45%,
    rgba(61, 41, 20, 0.82) 100%
  );
  pointer-events: none;
}

.hg-advertise-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.55;
  filter: brightness(1.12) saturate(0.95);
}

.hg-advertise-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1120px;
  margin: 0 auto;
}

.hg-advertise-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 107, 53, 0.9);
  border-radius: 999px;
}

.hg-advertise-hero-band .hg-advertise-hero-title {
  font-family: Oswald, sans-serif !important;
  font-size: clamp(2.25rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  color: #fff !important;
  margin: 0 0 20px !important;
  max-width: 18em;
}

.hg-advertise-hero-dek {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42rem;
  margin: 0 0 28px;
}

.hg-advertise-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hg-advertise-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--hg-adv-accent) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hg-advertise-btn-primary:hover {
  background: var(--hg-adv-accent-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.5);
}

.hg-advertise-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hg-advertise-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff !important;
}

/* Font Awesome 5 (theme ships FA5 — use .fas, not .fa-solid) */
.hg-advertise-page .fas {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
  line-height: 1;
}

.hg-advertise-btn-primary .fas,
.hg-advertise-btn-ghost .fas {
  font-size: 0.95em;
}

/* Warm content band below hero (initial intent: surface tone, not flat white) */
body.page-advertise #mvp-home-widget-wrap,
body.page-template-page-advertise #mvp-home-widget-wrap {
  background: var(--hg-adv-surface) !important;
}

body.page-advertise .hg-advertise-page,
body.page-template-page-advertise .hg-advertise-page {
  background: var(--hg-adv-surface);
}

/* Theme adds 60px margin-top on .mvp-widget-home — kills hero-to-content flow */
body.page-advertise .hg-advertise-main.mvp-widget-home,
body.page-template-page-advertise .hg-advertise-main.mvp-widget-home {
  margin-top: 0 !important;
}

.hg-advertise-main {
  padding-top: 64px;
  padding-bottom: 72px;
  background: var(--hg-adv-surface);
  position: relative;
  z-index: 1;
}

body.page-advertise .hg-advertise-main .hg-advertise-section-head h2,
body.page-template-page-advertise .hg-advertise-main .hg-advertise-section-head h2 {
  color: #111111 !important;
}

body.page-advertise .hg-advertise-main .hg-advertise-section-head p,
body.page-template-page-advertise .hg-advertise-main .hg-advertise-section-head p {
  color: #5c6570 !important;
}

/* Stats strip */
.hg-advertise-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: -36px auto 64px;
  position: relative;
  z-index: 2;
  max-width: 900px;
  background: var(--hg-adv-card);
  border-radius: var(--hg-adv-radius);
  box-shadow: var(--hg-adv-shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.hg-advertise-stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid #eee;
}

.hg-advertise-stat:last-child {
  border-right: none;
}

.hg-advertise-stat-value {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--hg-adv-ink);
  line-height: 1.1;
}

.hg-advertise-stat-value span {
  color: var(--hg-adv-accent);
}

.hg-advertise-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--hg-adv-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Section headers */
.hg-advertise-section-head {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.hg-advertise-main > .mvp-main-box > .hg-advertise-section-head:first-of-type {
  padding-top: 32px;
}

.hg-advertise-section-head h2 {
  font-family: Oswald, sans-serif !important;
  font-size: 2rem !important;
  text-align: center !important;
  color: var(--hg-adv-ink) !important;
  margin-bottom: 12px !important;
}

.hg-advertise-section-head p {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--hg-adv-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Audience cards */
.hg-advertise-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
  padding-bottom: 16px;
}

.hg-advertise-audience-card {
  background: var(--hg-adv-card);
  border: 1px solid #e8e4df;
  border-radius: var(--hg-adv-radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hg-advertise-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hg-adv-shadow);
}

.hg-advertise-audience-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff5f0, #ffe8dc);
  color: var(--hg-adv-accent);
  border-radius: 50%;
  font-size: 1.35rem;
}

.hg-advertise-audience-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--hg-adv-ink);
}

.hg-advertise-audience-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--hg-adv-muted);
}

/* Format cards */
.hg-advertise-formats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 80px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.hg-advertise-format-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--hg-adv-surface);
  border-radius: var(--hg-adv-radius);
  padding: 22px 24px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hg-advertise-format-card:hover {
  background: var(--hg-adv-card);
  border-color: #e8e4df;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.hg-advertise-format-card.is-wide {
  grid-column: 1 / -1;
}

.hg-advertise-format-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hg-adv-ink);
  color: #fff;
  border-radius: 10px;
  font-size: 1.1rem;
}

.hg-advertise-format-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--hg-adv-ink);
}

.hg-advertise-format-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--hg-adv-muted);
}

/* Firewall band */
.hg-advertise-firewall {
  clear: both;
  float: none;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 80px 24px;
  background: var(--hg-adv-ink);
  color: #fff;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  .hg-advertise-firewall {
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
  }
}

.hg-advertise-firewall-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.hg-advertise-firewall h2 {
  font-family: Oswald, sans-serif !important;
  font-size: 1.85rem !important;
  text-align: left !important;
  color: #fff !important;
  margin-bottom: 12px !important;
}

.hg-advertise-firewall-lead {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

.hg-advertise-firewall-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hg-advertise-firewall-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.98rem;
  line-height: 1.45;
}

.hg-advertise-firewall-list li:last-child {
  border-bottom: none;
}

.hg-advertise-firewall-list i {
  color: #ff8c66;
  margin-top: 3px;
  flex-shrink: 0;
}

.hg-advertise-firewall-about {
  margin-top: 16px;
}

.hg-advertise-firewall-about a {
  color: var(--hg-adv-accent) !important;
  font-weight: 600;
}

/* Integrity quote */
.hg-advertise-quote {
  margin-top: 24px;
  margin-bottom: 0;
  padding: 44px 48px;
  background: linear-gradient(135deg, #fff9f6 0%, #fff 100%);
  border-left: 4px solid var(--hg-adv-accent);
  border-radius: 0 var(--hg-adv-radius) var(--hg-adv-radius) 0;
  box-shadow: 0 4px 24px rgba(255, 107, 53, 0.08);
}

.hg-advertise-quote p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--hg-adv-ink);
  font-style: italic;
}

.hg-advertise-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--hg-adv-muted);
}

/* Coverage pills */
.hg-advertise-coverage {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 56px;
  margin-bottom: 0;
}

.hg-advertise-coverage .hg-pill-group {
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 0;
}

/* Final CTA */
.hg-advertise-cta-band {
  clear: both;
  float: none;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 88px 24px 160px;
  text-align: center;
  background: linear-gradient(180deg, var(--hg-adv-surface) 0%, #ebe6e0 100%);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

@media (min-width: 901px) {
  .hg-advertise-cta-band {
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
  }
}

.hg-advertise-cta-inner {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hg-advertise-cta-band h2 {
  font-family: Oswald, sans-serif !important;
  font-size: 2.25rem !important;
  margin: 0 0 16px !important;
  color: var(--hg-adv-ink) !important;
}

.hg-advertise-cta-dek {
  max-width: 32rem;
  margin: 0 0 40px;
  padding: 0;
  color: var(--hg-adv-muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.hg-advertise-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.hg-advertise-cta-actions .hg-advertise-btn-primary {
  margin: 0;
}

.hg-advertise-cta-secondary {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--hg-adv-muted);
}

.hg-advertise-cta-secondary a {
  color: var(--hg-adv-ink) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hg-advertise-wp-content {
  margin-top: 56px;
  padding-top: 56px;
  padding-bottom: 24px;
  border-top: 1px solid #e8e4df;
}

.hg-advertise-trending {
  padding-top: 56px;
  padding-bottom: 40px;
}

@media (max-width: 900px) {
  .hg-advertise-main {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hg-advertise-audience {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 0;
    padding-bottom: 40px;
  }

  .hg-advertise-audience-card {
    position: relative;
    z-index: auto;
  }

  .hg-advertise-audience-card:hover {
    transform: none;
  }

  /* Hard stop before Partnership formats — no card overlap */
  .hg-advertise-audience + .hg-advertise-section-head {
    margin-top: 0;
    padding-top: 48px;
    border-top: 1px solid #e8e4df;
  }

  .hg-advertise-formats {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-top: 8px;
  }

  .hg-advertise-format-card.is-wide {
    grid-column: auto;
  }

  .hg-advertise-firewall-inner {
    grid-template-columns: 1fr;
  }

  .hg-advertise-stats {
    grid-template-columns: 1fr;
    margin-top: -16px;
    margin-bottom: 40px;
  }

  .hg-advertise-stat {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .hg-advertise-stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  body.page-advertise #mvp-home-widget-wrap > .mvp-widget-home .mvp-main-box,
  body.page-template-page-advertise #mvp-home-widget-wrap > .mvp-widget-home .mvp-main-box {
    padding: 0 16px !important;
  }

  body.page-advertise .hg-advertise-main.mvp-widget-home,
  body.page-template-page-advertise .hg-advertise-main.mvp-widget-home {
    margin-top: 0 !important;
    background: var(--hg-adv-surface) !important;
  }

  .hg-advertise-hero-band {
    padding: 40px 20px 48px;
    margin-bottom: 0;
  }

  .hg-advertise-hero-band .hg-advertise-hero-title {
    max-width: none;
  }

  .hg-advertise-section-head {
    padding-top: 40px;
  }

  .hg-advertise-main > .mvp-main-box > .hg-advertise-section-head:first-of-type {
    padding-top: 24px;
  }

  .hg-advertise-audience {
    padding-bottom: 48px;
  }

  .hg-advertise-audience + .hg-advertise-section-head {
    padding-top: 56px;
  }
}
