/*
Theme Name: What Makes It Pay
Theme URI: https://whatmakesitpay.com
Author: What Makes It Pay
Description: Premium video + article theme for the What Makes It Pay business documentary site.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: wmp
*/

:root {
  --wmp-bg: #06111f;
  --wmp-bg-2: #0a1728;
  --wmp-bg-3: #050b14;
  --wmp-card: rgba(255,255,255,0.06);
  --wmp-card-2: rgba(255,255,255,0.035);
  --wmp-card-border: rgba(255,255,255,0.12);
  --wmp-text: #f5f7fa;
  --wmp-muted: #a9b6c8;
  --wmp-soft: #d7e2ef;
  --wmp-cyan: #2dd4ff;
  --wmp-gold: #f4b740;
  --wmp-white: #ffffff;
  --wmp-dark-text: #111827;
  --wmp-radius: 24px;
  --wmp-shadow: 0 22px 70px rgba(0,0,0,.28);
  --wmp-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wmp-bg-3);
  color: var(--wmp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.wmp-site-wrap {
  background:
    radial-gradient(circle at top right, rgba(45,212,255,0.15), transparent 35%),
    radial-gradient(circle at 10% 8%, rgba(244,183,64,0.09), transparent 28%),
    linear-gradient(180deg, var(--wmp-bg) 0%, #091827 45%, var(--wmp-bg-3) 100%);
  color: var(--wmp-text);
  min-height: 100vh;
}

.wmp-container {
  width: min(var(--wmp-max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.wmp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 20, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wmp-header-inner {
  width: min(var(--wmp-max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wmp-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none !important;
  font-weight: 950;
  letter-spacing: -0.04em;
  font-size: 22px;
}
.wmp-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wmp-cyan), var(--wmp-gold));
  display: grid;
  place-items: center;
  color: #06111f;
  font-weight: 1000;
  box-shadow: 0 10px 30px rgba(45,212,255,.18);
}
.wmp-nav { display: flex; align-items: center; gap: 20px; }
.wmp-nav a {
  color: var(--wmp-soft);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
  opacity: .9;
}
.wmp-nav a:hover { color: var(--wmp-cyan); }
.wmp-nav .wmp-nav-cta {
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(45,212,255,.12);
  color: var(--wmp-cyan);
  border: 1px solid rgba(45,212,255,.25);
}

/* Common */
.wmp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wmp-cyan);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.wmp-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--wmp-cyan);
  display: inline-block;
  border-radius: 99px;
}
.wmp-section { padding: 58px 0; }
.wmp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.wmp-section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--wmp-white);
}
.wmp-section-desc {
  margin: 8px 0 0;
  color: var(--wmp-muted);
  max-width: 700px;
  line-height: 1.72;
  font-size: 16px;
}
.wmp-button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wmp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none !important;
  transition: .2s ease;
  border: 1px solid transparent;
}
.wmp-btn-primary {
  background: linear-gradient(135deg, var(--wmp-cyan), #4f8cff);
  color: #04101d !important;
}
.wmp-btn-secondary {
  border-color: var(--wmp-card-border);
  color: var(--wmp-text) !important;
  background: rgba(255,255,255,0.05);
}
.wmp-btn:hover { transform: translateY(-2px); }

/* Hero */
.wmp-hero { padding: 84px 0 56px; }
.wmp-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 38px;
  align-items: center;
}
.wmp-hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: .96;
  letter-spacing: -0.065em;
  margin: 0 0 22px;
  color: var(--wmp-white);
}
.wmp-hero h1 span { color: var(--wmp-gold); }
.wmp-hero p {
  color: var(--wmp-muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 0 28px;
}
.wmp-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--wmp-radius);
  background: #020712;
  border: 1px solid rgba(45,212,255,0.22);
  box-shadow: var(--wmp-shadow);
}
.wmp-video-frame iframe,
.wmp-video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Cards */
.wmp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.wmp-card {
  background: linear-gradient(180deg, var(--wmp-card), var(--wmp-card-2));
  border: 1px solid var(--wmp-card-border);
  border-radius: 22px;
  overflow: hidden;
  color: var(--wmp-text);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  transition: .22s ease;
}
.wmp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45,212,255,.32);
}
.wmp-card-thumb {
  position: relative;
  display: block;
  padding-bottom: 56.25%;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.wmp-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wmp-card-body { padding: 20px; }
.wmp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--wmp-muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.wmp-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(45,212,255,.1);
  color: var(--wmp-cyan);
  font-weight: 900;
  font-size: 12px;
}
.wmp-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.03em;
}
.wmp-card h3 a { color: var(--wmp-white); text-decoration: none !important; }
.wmp-card p { color: var(--wmp-muted); line-height: 1.65; margin: 0 0 18px; }
.wmp-read { color: var(--wmp-gold) !important; font-weight: 950; text-decoration: none !important; }
.wmp-featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(45,212,255,.10), rgba(244,183,64,.08));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 34px;
}

/* Archive */
.wmp-archive-hero { padding: 70px 0 34px; text-align: center; }
.wmp-archive-hero h1 {
  color: var(--wmp-white);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 0 0 16px;
}
.wmp-archive-hero p {
  color: var(--wmp-muted);
  font-size: 18px;
  line-height: 1.72;
  max-width: 780px;
  margin: 0 auto;
}
.wmp-pagination {
  margin: 38px 0 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wmp-pagination a,
.wmp-pagination span {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: var(--wmp-text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.10);
}
.wmp-pagination .current { background: var(--wmp-cyan); color: #06111f; font-weight: 950; }

/* CTA / Footer */
.wmp-cta {
  margin: 60px 0 0;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(45,212,255,.13), rgba(244,183,64,.11));
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.wmp-cta h2 {
  margin: 0 0 10px;
  color: var(--wmp-white);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}
.wmp-cta p { color: var(--wmp-muted); margin: 0 auto 22px; max-width: 720px; line-height: 1.7; }
.wmp-footer {
  background: #040913;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--wmp-muted);
  padding: 42px 0;
}
.wmp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 28px;
}
.wmp-footer h3, .wmp-footer h4 { color: #fff; margin: 0 0 12px; }
.wmp-footer p { line-height: 1.7; margin: 0; }
.wmp-footer a { color: var(--wmp-muted); text-decoration: none; display: inline-block; margin: 5px 0; }
.wmp-footer a:hover { color: var(--wmp-cyan); }
.wmp-copyright { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

/* Single article */
.wmp-single-shell { padding: 70px 0; }
.wmp-single-head { max-width: 900px; margin: 0 auto 34px; }
.wmp-single-title {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #fff;
  margin: 0 0 20px;
}
.wmp-single-excerpt {
  font-size: 20px;
  line-height: 1.72;
  color: var(--wmp-muted);
  margin: 0;
}
.wmp-entry {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  color: var(--wmp-dark-text);
  border-radius: 26px;
  padding: clamp(22px,4vw,46px);
  line-height: 1.82;
  font-size: 18px;
  box-shadow: var(--wmp-shadow);
}
.wmp-entry h2 {
  color: #08111f;
  margin: 38px 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.wmp-entry h3 {
  color: #08111f;
  margin: 28px 0 10px;
  font-size: 24px;
  letter-spacing: -0.025em;
}
.wmp-entry p { margin: 0 0 18px; }
.wmp-entry a { color: #0969da; font-weight: 750; }
.wmp-entry ul, .wmp-entry ol { padding-left: 24px; margin: 0 0 22px; }
.wmp-entry li { margin: 8px 0; }
.wmp-entry blockquote {
  border-left: 4px solid var(--wmp-cyan);
  padding: 14px 18px;
  margin: 28px 0;
  background: #f7fbff;
  border-radius: 12px;
}
.wmp-entry iframe { max-width: 100%; }
.wmp-entry .wp-block-embed__wrapper,
.wmp-entry .wmp-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #07111f;
  margin: 28px 0;
}
.wmp-entry .wp-block-embed__wrapper iframe,
.wmp-entry .wmp-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Page */
.wmp-page-content { max-width: 900px; margin: 0 auto; }
.wmp-page-content .wmp-entry { margin-top: 28px; }

/* Empty states */
.wmp-empty {
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 28px;
  color: var(--wmp-muted);
  background: rgba(255,255,255,.04);
}

@media (max-width: 960px) {
  .wmp-hero-grid,
  .wmp-featured-post,
  .wmp-footer-grid { grid-template-columns: 1fr; }
  .wmp-grid { grid-template-columns: 1fr 1fr; }
  .wmp-section-head { align-items: flex-start; flex-direction: column; }
  .wmp-nav { display: none; }
}
@media (max-width: 680px) {
  .wmp-hero { padding-top: 54px; }
  .wmp-grid { grid-template-columns: 1fr; }
  .wmp-card-body { padding: 18px; }
  .wmp-featured-post { padding: 16px; }
  .wmp-header-inner { min-height: 66px; }
  .wmp-entry { font-size: 17px; }
}
