/*
Theme Name: TestNivo
Theme URI: https://nivo.testosteronelevels.org/
Author: TestNivo
Description: Lightweight conversion-focused theme for independent men's health testing guides.
Version: 1.0.20
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: testnivo
*/

:root {
  --tn-navy: #102a43;
  --tn-blue: #1f6feb;
  --tn-blue-dark: #1558bd;
  --tn-teal: #0f8b8d;
  --tn-ink: #243b53;
  --tn-muted: #5d7083;
  --tn-line: #dbe7f0;
  --tn-soft: #f3f8fc;
  --tn-white: #ffffff;
  --tn-warm: #fff9ed;
  --tn-success: #166534;
  --tn-radius: 18px;
  --tn-shadow: 0 18px 50px rgba(16, 42, 67, 0.12);
  --tn-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tn-ink);
  background: var(--tn-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--tn-blue); }
a:hover { color: var(--tn-blue-dark); }
.tn-wrap { width: min(calc(100% - 40px), var(--tn-width)); margin-inline: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tn-disclosure-bar {
  padding: 9px 20px;
  color: #425466;
  background: #eef5fb;
  border-bottom: 1px solid var(--tn-line);
  font-size: 13px;
  text-align: center;
}
.tn-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(219,231,240,.9);
  backdrop-filter: blur(12px);
}
.tn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}
.tn-brand {
  display: inline-flex;
  align-items: center;
  color: var(--tn-navy);
  text-decoration: none;
}
.tn-brand-logo {
  display: block;
  width: 178px;
  height: auto;
}
.tn-header .tn-brand-logo {
  filter: drop-shadow(0 7px 14px rgba(31,111,235,.12));
}
.tn-nav { display: flex; align-items: center; gap: 26px; }
.tn-nav a {
  color: var(--tn-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}
.tn-nav a:hover { color: var(--tn-blue); }
.tn-nav .tn-nav-cta {
  padding: 10px 17px;
  color: white;
  background: var(--tn-blue);
  border-radius: 10px;
}
.tn-nav .tn-nav-cta:hover { color: white; background: var(--tn-blue-dark); }
.tn-menu-toggle {
  display: none;
  padding: 9px 11px;
  color: var(--tn-navy);
  background: white;
  border: 1px solid var(--tn-line);
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
}

.tn-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: #f4f8fb;
}
.tn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(244,248,251,1) 0%, rgba(244,248,251,.98) 35%, rgba(244,248,251,.72) 52%, rgba(244,248,251,0) 72%);
}
.tn-hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 67%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.tn-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 650px;
  padding: 74px 0;
}
.tn-hero-copy { max-width: 660px; }
.tn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--tn-teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tn-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--tn-navy);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h1 { margin-bottom: 24px; font-size: clamp(43px, 5.3vw, 72px); }
.tn-product-title { max-width: 700px; font-size: clamp(42px, 4.6vw, 62px); }
h2 { margin-bottom: 18px; font-size: clamp(32px, 3.5vw, 48px); }
h3 { margin-bottom: 10px; font-size: 22px; }
.tn-lead {
  max-width: 635px;
  margin: 0 0 28px;
  color: #425466;
  font-size: 20px;
  line-height: 1.6;
}
.tn-coupon-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  max-width: 570px;
  margin: 24px 0;
  padding: 15px 16px 15px 18px;
  color: var(--tn-navy);
  background: rgba(255,255,255,.94);
  border: 1px solid #b9d8ce;
  border-left: 5px solid var(--tn-teal);
  border-radius: 13px;
  box-shadow: 0 14px 34px rgba(23,55,74,.12);
}
.tn-coupon-offer {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}
.tn-coupon-note {
  display: block;
  margin-top: 3px;
  color: #5a6d7c;
  font-size: 12px;
  font-weight: 600;
}
.tn-provider-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 9px;
  background: var(--tn-navy);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(16,42,67,.16);
}
.tn-provider-logo img {
  display: block;
  width: 118px;
  height: auto;
}
.tn-coupon-code {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 126px;
  min-height: 46px;
  padding: 8px 15px;
  color: #0f4d47;
  background: linear-gradient(125deg, #fff1a8, #e8f6f1, #dff4ff, #fff1a8);
  background-size: 240% 240%;
  border: 2px solid #f2a51a;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(15,139,141,.28);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  animation: tn-coupon-pulse 2.2s ease-in-out infinite, tn-coupon-shift 3.4s linear infinite;
}
.tn-coupon-code:hover,
.tn-coupon-code:focus-visible {
  color: #0b5c52;
  background: #d9f2e9;
  box-shadow: 0 10px 22px rgba(15,139,141,.2);
  transform: translateY(-2px);
}
.tn-coupon-code:focus-visible {
  outline: 3px solid rgba(31,111,235,.35);
  outline-offset: 3px;
}
.tn-coupon-code.is-copied {
  color: #14532d;
  background: #dcfce7;
  border-color: #4ca66a;
  animation: none;
}
.tn-coupon-code-value {
  font-size: 21px;
  letter-spacing: .08em;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.tn-coupon-discount {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 2;
  padding: 3px 9px;
  color: white;
  background: #e5484d;
  border: 2px solid white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 5px 13px rgba(197,45,51,.3);
  transform: translateX(-50%);
}
.tn-coupon-action {
  color: #2f7469;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}
@keyframes tn-coupon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15,139,141,.28); }
  50% { box-shadow: 0 0 0 7px rgba(15,139,141,0); }
}
@keyframes tn-coupon-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.tn-price-coupon {
  margin: 26px 0 18px;
  padding: 18px;
  color: var(--tn-navy);
  background: #f4fbff;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  line-height: 1.45;
  box-shadow: 0 14px 30px rgba(4,31,56,.18);
}
.tn-price-coupon strong {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
  line-height: 1.3;
}
.tn-price-coupon .tn-coupon-code {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  margin-top: 17px;
  padding: 10px 16px;
  flex-direction: row;
  gap: 10px;
}
.tn-price-coupon .tn-coupon-code-value {
  font-size: 21px;
}
.tn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin: 28px 0 24px; }
.tn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 21px;
  color: white;
  background: var(--tn-blue);
  border: 1px solid var(--tn-blue);
  border-radius: 11px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(31,111,235,.2);
  transition: .2s ease;
}
.tn-button:hover {
  color: white;
  background: var(--tn-blue-dark);
  transform: translateY(-1px);
}
.tn-button-secondary {
  color: var(--tn-navy);
  background: rgba(255,255,255,.8);
  border-color: #bed0df;
  box-shadow: none;
}
.tn-button-secondary:hover { color: var(--tn-navy); background: white; }
.tn-microcopy { margin: 0; color: var(--tn-muted); font-size: 13px; }
.tn-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.tn-fact {
  padding: 8px 11px;
  color: #334e68;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--tn-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.tn-section { padding: 92px 0; }
.tn-section-soft { background: var(--tn-soft); }
.tn-section-dark { color: #e8f1f8; background: var(--tn-navy); }
.tn-section-dark h2, .tn-section-dark h3 { color: white; }
.tn-section-head { max-width: 760px; margin-bottom: 44px; }
.tn-section-head p { margin: 0; color: var(--tn-muted); font-size: 19px; }
.tn-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tn-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tn-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tn-card {
  padding: 30px;
  background: white;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius);
  box-shadow: 0 8px 30px rgba(16,42,67,.06);
}
.tn-card p:last-child { margin-bottom: 0; }
.tn-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  place-items: center;
  color: var(--tn-blue);
  background: #eaf3ff;
  border: 1px solid rgba(31,111,235,.12);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(16,42,67,.08);
}
.tn-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tn-icon-hormone { color: #6d4bc3; background: #f2edff; border-color: #ddd0ff; }
.tn-icon-thyroid { color: #087f7b; background: #e6f7f4; border-color: #c5eae3; }
.tn-icon-heart { color: #d1435b; background: #fff0f2; border-color: #ffd4da; }
.tn-icon-screening { color: #1769c2; background: #eaf4ff; border-color: #cce2fb; }
.tn-verdict {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}
.tn-verdict-main { padding: 38px; }
.tn-verdict-main ul, .tn-card ul { padding-left: 20px; }
.tn-verdict-main li, .tn-card li { margin-bottom: 9px; }
.tn-price-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px;
  color: white;
  background: linear-gradient(145deg, var(--tn-navy), #164b6c);
  border: 1px solid rgba(137,207,235,.3);
  border-radius: var(--tn-radius);
  box-shadow: var(--tn-shadow);
}
.tn-price-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 25px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(190,216,232,.25);
}
.tn-price-brand img {
  display: block;
  width: min(240px, 78%);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}
.tn-price-label { margin: 0 0 6px; color: #bed8e8; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tn-price { margin: 0 0 10px; font-size: 56px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.tn-price-note { margin: 0; color: #d5e4ee; font-size: 13px; line-height: 1.55; }
.tn-price-card .tn-button { width: 100%; min-height: 56px; background: white; border-color: white; color: var(--tn-navy); box-shadow: none; }
.tn-price-card .tn-button:hover { color: var(--tn-navy); background: #edf6fb; }

.tn-steps { counter-reset: tn-steps; }
.tn-step { position: relative; padding-top: 64px; }
.tn-step::before {
  counter-increment: tn-steps;
  content: counter(tn-steps);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: var(--tn-teal);
  border-radius: 50%;
  font-weight: 900;
}
.tn-note {
  padding: 24px 26px;
  background: var(--tn-warm);
  border: 1px solid #f0dba8;
  border-left: 5px solid #d6a62c;
  border-radius: 12px;
}
.tn-note p { margin: 0; }
.tn-checklist { list-style: none; padding: 0; margin: 0; }
.tn-checklist li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 28px;
}
.tn-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tn-success);
  font-weight: 900;
}
.tn-faq { border-top: 1px solid var(--tn-line); }
.tn-faq details { border-bottom: 1px solid var(--tn-line); }
.tn-faq summary {
  padding: 22px 0;
  color: var(--tn-navy);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.tn-faq summary::-webkit-details-marker { display: none; }
.tn-faq summary::after { content: "+"; float: right; color: var(--tn-blue); font-size: 24px; }
.tn-faq details[open] summary::after { content: "−"; }
.tn-faq details p { max-width: 840px; margin: 0 0 24px; color: var(--tn-muted); }
.tn-cta-band {
  padding: 54px;
  background: linear-gradient(135deg, #eaf4ff, #eefaf8);
  border: 1px solid #cfe1ee;
  border-radius: 24px;
  text-align: center;
}
.tn-cta-band p { max-width: 700px; margin: 0 auto 24px; color: var(--tn-muted); }

.tn-content { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 70px 0 90px; }
.tn-content-header { margin-bottom: 38px; }
.tn-content h1 { font-size: clamp(38px, 5vw, 58px); }
.tn-content h2 { margin-top: 44px; font-size: 30px; }
.tn-content h3 { margin-top: 30px; }
.tn-content p, .tn-content li { color: #425466; }
.tn-content .tn-contact-form { margin-top: 34px; }
.tn-contact-form label { display: block; margin-bottom: 16px; font-weight: 750; }
.tn-contact-form input, .tn-contact-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  color: var(--tn-ink);
  background: white;
  border: 1px solid #b8c9d6;
  border-radius: 9px;
  font: inherit;
}
.tn-contact-form textarea { min-height: 150px; resize: vertical; }
.tn-contact-form button { cursor: pointer; }
.tn-alert { margin: 20px 0; padding: 15px 17px; border-radius: 10px; }
.tn-alert-success { color: #14532d; background: #ecfdf3; border: 1px solid #bbf7d0; }
.tn-alert-error { color: #7f1d1d; background: #fef2f2; border: 1px solid #fecaca; }

.tn-footer { padding: 52px 0 26px; color: #c8d8e5; background: #0c2235; }
.tn-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.tn-footer .tn-brand-logo { width: 170px; }
.tn-footer p { max-width: 480px; color: #a9bdcb; font-size: 14px; }
.tn-footer h3 { color: white; font-size: 15px; letter-spacing: .02em; }
.tn-footer ul { margin: 0; padding: 0; list-style: none; }
.tn-footer li { margin-bottom: 9px; }
.tn-footer a { color: #c8d8e5; text-decoration: none; font-size: 14px; }
.tn-footer a:hover { color: white; }
.tn-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #8fa8b9;
  font-size: 12px;
}

@media (max-width: 900px) {
  .tn-nav { display: none; position: absolute; top: 75px; left: 20px; right: 20px; padding: 20px; background: white; border: 1px solid var(--tn-line); border-radius: 14px; box-shadow: var(--tn-shadow); }
  .tn-nav.is-open { display: grid; }
  .tn-menu-toggle { display: inline-flex; }
  .tn-hero { min-height: auto; padding-top: 340px; }
  .tn-hero::after { background: linear-gradient(0deg, #f4f8fb 0%, #f4f8fb 46%, rgba(244,248,251,.2) 68%, rgba(244,248,251,0) 100%); }
  .tn-hero-image { width: 100%; height: 390px; object-position: center; }
  .tn-hero-inner { min-height: auto; padding: 54px 0 70px; }
  .tn-hero-copy { max-width: none; }
  .tn-grid-4, .tn-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tn-verdict { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .tn-wrap { width: min(calc(100% - 28px), var(--tn-width)); }
  .tn-disclosure-bar { font-size: 11px; }
  .tn-header-inner { min-height: 68px; }
  .tn-brand-logo { width: 156px; }
  .tn-nav { top: 67px; left: 14px; right: 14px; }
  .tn-hero { padding-top: 120px; }
  .tn-hero-image { height: 220px; }
  .tn-hero-inner { padding: 30px 0 48px; }
  h1 { margin-bottom: 18px; font-size: 36px; }
  .tn-product-title { font-size: 34px; }
  .tn-lead { margin-bottom: 18px; font-size: 17px; line-height: 1.5; }
  .tn-coupon-banner { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px 12px; margin: 18px 0; padding: 14px; }
  .tn-coupon-offer { grid-column: 1 / -1; }
  .tn-coupon-offer { font-size: 15px; }
  .tn-provider-logo { grid-column: 1; justify-self: start; padding: 7px 8px; }
  .tn-provider-logo img { width: 104px; }
  .tn-coupon-code { min-width: 118px; min-height: 48px; padding: 7px 11px; }
  .tn-coupon-code-value { font-size: 18px; }
  .tn-actions { align-items: stretch; flex-direction: column; margin: 18px 0 10px; }
  .tn-microcopy { font-size: 12px; line-height: 1.4; }
  .tn-button { width: 100%; }
  .tn-fact-row { gap: 7px; }
  .tn-section { padding: 68px 0; }
  .tn-grid-4, .tn-grid-3, .tn-grid-2 { grid-template-columns: 1fr; }
  .tn-card, .tn-verdict-main, .tn-price-card { padding: 25px; }
  .tn-price-brand { margin-bottom: 21px; padding-bottom: 20px; }
  .tn-price-brand img { width: min(210px, 76%); }
  .tn-price { font-size: 48px; }
  .tn-price-coupon { margin-top: 22px; padding: 16px; }
  .tn-cta-band { padding: 34px 22px; text-align: left; }
  .tn-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .tn-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .tn-coupon-code { animation: none; }
}
