/*
 * Media Partners — Custom CSS
 * Handles: wave dividers, animations, hover effects, utility classes
 */

/* ── DESIGN TOKENS (mirrors theme.json + functions.php) ──────────────────────── */
:root {
  --mp-ink:       #1a1c24;
  --mp-cream:     #f5f0e8;
  --mp-white:     #ffffff;
  --mp-red:       #d42020;
  --mp-red-dark:  #a81818;
  --mp-orange:    #e09010;
  --mp-orange-bg: #f5a623;
  --mp-muted:     #6e717a;
  --mp-border:    rgba(26,28,36,0.10);
  --mp-ff-head:   'Fraunces', serif;
  --mp-ff-body:   'Manrope', sans-serif;
}

/* ── RESET & BASE ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--mp-ff-body);
  color: var(--mp-ink);
  background: var(--mp-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── SCROLL REVEAL ANIMATIONS ─────────────────────────────────────────────────── */
.mp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.mp-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.mp-reveal-delay-1 { transition-delay: 0.10s; }
.mp-reveal-delay-2 { transition-delay: 0.20s; }
.mp-reveal-delay-3 { transition-delay: 0.30s; }
.mp-reveal-delay-4 { transition-delay: 0.40s; }
.mp-reveal-delay-5 { transition-delay: 0.50s; }

/* ── HERO ENTRANCE ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes mp-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mp-hero-enter-1 { animation: mp-fade-up 0.6s ease both; animation-delay: 0.05s; }
.mp-hero-enter-2 { animation: mp-fade-up 0.7s ease both; animation-delay: 0.18s; }
.mp-hero-enter-3 { animation: mp-fade-up 0.6s ease both; animation-delay: 0.32s; }
.mp-hero-enter-4 { animation: mp-fade-up 0.6s ease both; animation-delay: 0.44s; }
.mp-hero-enter-5 { animation: mp-fade-up 0.6s ease both; animation-delay: 0.54s; }
.mp-hero-enter-right { animation: mp-fade-up 0.75s ease both; animation-delay: 0.35s; }

/* ── WAVE DIVIDERS ────────────────────────────────────────────────────────────── */
.mp-wave-wrap {
  position: relative;
  overflow: visible;
}
.mp-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}
.mp-wave-bottom svg {
  display: block;
  width: 100%;
}

/* Extra bottom padding on sections that have wave dividers */
.mp-has-wave-bottom {
  padding-bottom: 88px !important;
}

/* ── NAV ──────────────────────────────────────────────────────────────────────── */
.wp-block-template-part.header-template,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  animation: mp-fade-in 0.5s ease both;
}

.site-header .wp-block-group {
  background: var(--mp-white);
  border-bottom: 1px solid var(--mp-border);
}

/* Navigation link styles */
.wp-block-navigation .wp-block-navigation-item__content {
  font-family: var(--mp-ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mp-muted);
  transition: color 0.2s;
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
  color: var(--mp-ink);
}

/* CTA nav button */
.nav-cta .wp-block-navigation-item__content,
a.nav-cta-link {
  background: var(--mp-red) !important;
  color: var(--mp-white) !important;
  padding: 11px 24px !important;
  border-radius: 4px;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  font-size: 12px !important;
  text-transform: uppercase;
  transition: background 0.2s !important;
}
.nav-cta .wp-block-navigation-item__content:hover,
a.nav-cta-link:hover {
  background: var(--mp-red-dark) !important;
}

/* ── LOGO ─────────────────────────────────────────────────────────────────────── */
.mp-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.mp-logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.mp-logo-the {
  font-family: var(--mp-ff-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 2px;
}
.mp-logo-media {
  font-family: var(--mp-ff-head);
  font-size: 27px;
  font-weight: 700;
  color: var(--mp-red);
  line-height: 1;
  letter-spacing: -0.01em;
}
.mp-logo-partners {
  font-family: var(--mp-ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mp-ink);
  margin-top: 2px;
}
.mp-logo-icon { display: flex; flex-direction: column; gap: 5px; opacity: 0.7; }
.mp-irow { display: flex; gap: 4px; align-items: center; }
.mp-idot { border-radius: 50%; background: var(--mp-orange); flex-shrink: 0; }

/* ── SECTION LABELS ───────────────────────────────────────────────────────────── */
.mp-section-label {
  font-family: var(--mp-ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mp-orange);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mp-orange);
  flex-shrink: 0;
}

/* ── HERO STYLES ──────────────────────────────────────────────────────────────── */
.mp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mp-ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 24px;
}
.mp-hero-eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mp-orange);
}

.mp-stat-number {
  font-family: var(--mp-ff-head);
  font-size: 50px;
  font-weight: 700;
  color: var(--mp-ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.mp-hero-stat {
  padding: 24px 0;
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.mp-hero-stat:first-child { border-top: 1px solid var(--mp-border); }

/* ── BUTTONS ──────────────────────────────────────────────────────────────────── */
.mp-btn-red,
.wp-block-button.is-style-mp-red .wp-block-button__link {
  background: var(--mp-red);
  color: var(--mp-white) !important;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--mp-ff-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  border: none;
}
.mp-btn-red:hover,
.wp-block-button.is-style-mp-red .wp-block-button__link:hover {
  background: var(--mp-red-dark);
  transform: translateY(-1px);
}

.mp-btn-outline {
  border: 2px solid rgba(26,28,36,0.25);
  color: var(--mp-ink);
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--mp-ff-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.mp-btn-outline:hover { border-color: var(--mp-ink); transform: translateY(-1px); }

.mp-btn-white {
  background: var(--mp-white);
  color: var(--mp-red);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--mp-ff-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}
.mp-btn-white:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── PILLAR CARDS ─────────────────────────────────────────────────────────────── */
.mp-pillar {
  padding: 48px 38px;
  background: var(--mp-white);
  transition: background 0.25s, transform 0.25s;
  cursor: default;
}
.mp-pillar:hover { background: var(--mp-cream); transform: translateY(-3px); }

.mp-pillar-number {
  font-family: var(--mp-ff-head);
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  color: rgba(26,28,36,0.06);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

/* ── SERVICE CARDS ────────────────────────────────────────────────────────────── */
.mp-service-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  padding: 30px 26px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  cursor: default;
}
.mp-service-card:hover {
  border-color: rgba(212,32,32,0.35);
  box-shadow: 0 6px 24px rgba(212,32,32,0.08);
  transform: translateY(-3px);
}

.mp-service-tag {
  display: inline-block;
  background: rgba(245,166,35,0.10);
  border: 1px solid rgba(245,166,35,0.25);
  color: #9a6800;
  font-family: var(--mp-ff-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ── TEAM CARDS ───────────────────────────────────────────────────────────────── */
.mp-team-card {
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--mp-white);
  transition: box-shadow 0.25s, transform 0.25s;
}
.mp-team-card:hover {
  box-shadow: 0 6px 20px rgba(26,28,36,0.09);
  transform: translateY(-3px);
}

.mp-avatar {
  width: 58px;
  height: 58px;
  background: var(--mp-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mp-ff-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--mp-white);
  position: relative;
  z-index: 1;
}

/* ── PROMISE BAR ──────────────────────────────────────────────────────────────── */
.mp-promise {
  background: var(--mp-cream);
  border-radius: 10px;
  border-left: 4px solid var(--mp-red);
  padding: 44px 48px;
}

/* ── ABOUT QUOTE ──────────────────────────────────────────────────────────────── */
.mp-about-quote {
  font-family: var(--mp-ff-head) !important;
  font-size: clamp(21px, 2.4vw, 34px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--mp-ink) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 28px !important;
  padding-bottom: 28px !important;
  border-bottom: 2px solid var(--mp-border) !important;
  font-style: normal !important;
}
.mp-about-quote em {
  font-style: italic;
  color: var(--mp-red);
}

/* ── CTA PHONE LINK ───────────────────────────────────────────────────────────── */
.mp-cta-phone {
  font-family: var(--mp-ff-body);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.mp-cta-phone:hover { color: var(--mp-white); }
.mp-cta-phone::before { content: '→'; }

/* ── FOOTER ───────────────────────────────────────────────────────────────────── */
.mp-footer-tagline {
  font-family: var(--mp-ff-body);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.38);
  margin-top: 16px;
  max-width: 220px;
}
.mp-footer-col-heading {
  font-family: var(--mp-ff-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 18px;
}

/* ── DECORATIVE DOTS (logo motif) ─────────────────────────────────────────────── */
.mp-dots {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  opacity: 0.35;
}
.mp-dot { display: block; border-radius: 50%; background: var(--mp-orange-bg); }

/* ── UTILITY ──────────────────────────────────────────────────────────────────── */
.mp-font-head  { font-family: var(--mp-ff-head) !important; }
.mp-font-body  { font-family: var(--mp-ff-body) !important; }
.mp-text-ink   { color: var(--mp-ink) !important; }
.mp-text-muted { color: var(--mp-muted) !important; }
.mp-text-red   { color: var(--mp-red) !important; }
.mp-text-orange{ color: var(--mp-orange) !important; }
.mp-text-white { color: var(--mp-white) !important; }
.mp-bg-ink     { background: var(--mp-ink) !important; }
.mp-bg-cream   { background: var(--mp-cream) !important; }
.mp-bg-white   { background: var(--mp-white) !important; }
.mp-bg-red     { background: var(--mp-red) !important; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────────── */
/* ── MOBILE RESPONSIVE (max-width: 768px) ────────────────────────────────────── */
/* -- CONTACT PAGE -------------------------------------------------------------------- */
.mp-contact-form-section { margin-top: 48px; }

@media (max-width: 768px) {

  /* --- Hero section --- */
  .wp-block-columns.are-vertically-aligned-center.is-layout-flex,
  [class*="wp-container-core-columns-is-layout"] {
    flex-wrap: wrap !important;
    gap: 32px !important;
  }
  .wp-block-columns .wp-block-column {
    flex-basis: 100% !important;
    min-width: 100% !important;
  }
  .mp-hero-enter-right { display: none !important; }
  section h1 { font-size: clamp(32px, 8vw, 44px) !important; line-height: 1.15 !important; }

  /* --- Pillar grid --- */
  div:has(> .mp-pillar) { grid-template-columns: 1fr !important; gap: 2px !important; }
  .mp-pillar { padding: 32px 24px !important; }

  /* --- Service card grid --- */
  div:has(> .mp-service-card) { grid-template-columns: 1fr !important; gap: 12px !important; }
  .mp-service-card { padding: 28px 24px !important; }

  /* --- Footer --- */
  .mp-footer-cols {
    flex-wrap: wrap !important;
    gap: 40px !important;
  }
  .mp-footer-cols .wp-block-column {
    flex-basis: 100% !important;
    min-width: 100% !important;
  }

  /* --- Wave / section padding --- */
  .mp-has-wave-bottom { padding-bottom: 60px !important; }
  .mp-wave-bottom svg { height: 48px; }

}
