/*
 Theme Name:   TPC Exchange Child
 Theme URI:    https://dev.tpcexchange.com
 Description:  Divi child theme for TPC Exchange
 Author:       TPC
 Template:     Divi
 Version:      2.0.0
*/

/* ===== CSS VARIABLES ===== */
:root {
  --forest:    #2B6B47;
  --forest-lt: #348056;
  --green-bg:  #f0f7f3;
  --green-pale:#e6f2eb;
  --heading:   #1a2a1f;
  --text:      #444;
  --text-lt:   #666;
  --text-muted:#888;
  --border:    #e2e2e2;
  --bg-light:  #f7f9f8;
  --bg-white:  #ffffff;
  --bg-cream:  #fafaf7;
}

html { scroll-behavior: smooth; }

/* ===== GREEN TOP ACCENT (matches TPC Direct Care) ===== */
body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--forest); z-index: 10000;
}

/* ===== GLOBAL DIVI OVERRIDES ===== */
body,
#page-container {
  font-family: 'Poppins', sans-serif !important;
  background: var(--bg-white) !important;
  color: var(--text);
  overflow-x: hidden;
}
#main-content { padding-top: 0 !important; }
#main-content .container { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
#content-area, #left-area { width: 100% !important; padding: 0 !important; float: none !important; }
.entry-title { display: none !important; }
#sidebar { display: none !important; }
.et_pb_section { padding: 0 !important; }
.et_pb_row { padding: 0 !important; width: 100% !important; max-width: 100% !important; }
.et_pb_text_inner > * { position: relative; }

/* Kill Divi default header/footer */
#main-header, #top-header, #et-footer-nav, #footer-bottom { display: none !important; }
#et-main-area { padding-top: 0 !important; }

/* ===== NAV — White bg, matching TPC family ===== */
.tpcx-nav {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 9999;
  padding: 16px 48px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-mark {
  width: 36px; height: 36px; border-radius: 7px; background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 900; font-size: 16px; color: white;
}
.nav-name { font-size: 14px; font-weight: 600; color: var(--heading); }
.nav-name span { color: var(--forest); }
.nav-btn {
  background: var(--forest); color: white !important; border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 6px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em; transition: all 0.2s; font-family: 'Poppins', sans-serif;
  text-decoration: none !important;
}
.nav-btn:hover { background: var(--forest-lt); transform: translateY(-1px); }

/* ===== HERO — White bg with green accents ===== */
.tpcx-hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 48px 80px !important; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, var(--green-pale) 50%, var(--bg-cream) 100%) !important;
}
.tpcx-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: 0.04;
  background-image: linear-gradient(var(--forest) 1px, transparent 1px),
                    linear-gradient(90deg, var(--forest) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.tpcx-hero .et_pb_text_inner > * { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(43,107,71,0.08); border: 1px solid rgba(43,107,71,0.2);
  color: var(--forest); padding: 6px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 28px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--forest); animation: tpcxPulse 2s infinite; }
@keyframes tpcxPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-content h1 {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(40px, 5.5vw, 72px) !important; font-weight: 900 !important;
  line-height: 1.06 !important; letter-spacing: -0.02em; color: var(--heading) !important;
  padding-bottom: 0 !important;
}
.hero-content h1 .green { color: var(--forest); }
.hero-content h1 .warm  { color: var(--forest-lt); }
.hero-sub {
  margin-top: 22px; font-size: 16px; line-height: 1.75;
  color: var(--text-lt); max-width: 540px; font-weight: 300;
}
.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--forest); line-height: 1; }
.stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.hero-btns { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.btn-p {
  background: var(--forest); color: white !important; border: none; cursor: pointer;
  padding: 14px 30px; border-radius: 7px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; transition: all 0.25s; font-family: 'Poppins', sans-serif;
  text-decoration: none !important; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(43,107,71,0.25);
}
.btn-p:hover { background: var(--forest-lt); transform: translateY(-2px); }
.btn-p svg path { stroke: white; }
.btn-s {
  background: transparent; color: var(--forest) !important; border: 2px solid var(--forest);
  cursor: pointer; padding: 13px 28px; border-radius: 7px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; transition: all 0.25s; font-family: 'Poppins', sans-serif;
  text-decoration: none !important;
}
.btn-s:hover { background: var(--forest); color: white !important; }

/* ===== STORY (The Challenge) — White bg ===== */
.tpcx-story {
  padding: 80px 48px !important; background: var(--bg-white) !important;
  color: var(--text); position: relative;
}
.tpcx-story::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--forest);
}
.tpcx-story .et_pb_row { max-width: 1060px !important; margin: 0 auto !important; }
.lbl {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 14px;
}
.tpcx-story h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(26px, 3.2vw, 42px) !important; font-weight: 900 !important;
  line-height: 1.1 !important; letter-spacing: -0.02em; color: var(--heading) !important;
  padding-bottom: 0 !important;
}
.tpcx-story h2 em { font-style: normal; color: var(--forest); }
.story-p { margin-top: 16px; font-size: 15px; line-height: 1.75; color: var(--text-lt); font-weight: 300; }
.story-p.emphasis { color: var(--heading); font-weight: 500; margin-top: 12px; }
.story-card {
  background: var(--forest); border-radius: 18px; padding: 32px;
  position: relative; overflow: hidden;
}
.story-card::after {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
}
.story-quote {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
  color: white; line-height: 1.55; position: relative; z-index: 1;
}
.story-quote::before {
  content: '\201C'; font-size: 64px; color: rgba(255,255,255,0.3);
  line-height: 0; vertical-align: -0.4em; margin-right: 2px;
}
.story-attr { margin-top: 18px; font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 500; position: relative; z-index: 1; }
.story-bullets { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; }
.s-bullet {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 14px;
  font-size: 12px; color: rgba(255,255,255,0.85);
}
.s-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); flex-shrink: 0; }

/* ===== BUCKETS (Five Ways) — Light gray bg ===== */
.tpcx-buckets {
  padding: 80px 48px !important; background: var(--bg-light) !important;
  position: relative; overflow: hidden;
}
.tpcx-buckets::before { display: none; }
.tpcx-buckets .et_pb_row { max-width: 1160px !important; margin: 0 auto !important; position: relative; z-index: 1; }
.sec-hd { text-align: center; margin-bottom: 52px; }
.sec-hd .lbl { color: var(--forest); }
.sec-hd h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(26px, 3.2vw, 44px) !important; font-weight: 900 !important;
  line-height: 1.1 !important; letter-spacing: -0.02em; color: var(--heading) !important;
  padding-bottom: 0 !important;
}
.sec-hd h2 em { font-style: normal; color: var(--forest); }
.sec-hd p { margin-top: 14px; font-size: 14px; color: var(--text-lt); max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; font-weight: 300; }
.buckets-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.b-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 13px; padding: 26px 18px; transition: all 0.3s;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.b-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--b-top, var(--forest)); transform: scaleX(0);
  transition: transform 0.3s; transform-origin: left;
}
.b-card:hover { box-shadow: 0 6px 20px rgba(43,107,71,0.12); transform: translateY(-3px); }
.b-card:hover::before { transform: scaleX(1); }
.b-icon {
  width: 40px; height: 40px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px; background: var(--green-bg);
}
.b-card h3 {
  font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700;
  color: var(--heading); margin-bottom: 9px; line-height: 1.25;
}
.b-card p { font-size: 11.5px; color: var(--text-lt); line-height: 1.65; font-weight: 300; }
.b-tag {
  display: inline-block; margin-top: 12px;
  background: var(--green-bg); color: var(--forest); border: 1px solid rgba(43,107,71,0.15);
  padding: 3px 9px; border-radius: 100px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
}
.b-partner {
  display: flex; align-items: center; gap: 5px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 10px; color: var(--text-muted); font-weight: 500;
}
.b-partner-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--forest); flex-shrink: 0; }

/* ===== PSMA Partnership — White bg ===== */
.tpcx-psma {
  padding: 80px 48px !important; background: var(--bg-white) !important;
  position: relative; overflow: hidden;
}
.tpcx-psma::before { display: none; }
.tpcx-psma .et_pb_row { max-width: 1060px !important; margin: 0 auto !important; position: relative; z-index: 1; }
.tpcx-psma h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(26px, 3.2vw, 42px) !important; font-weight: 900 !important;
  line-height: 1.1 !important; letter-spacing: -0.02em; color: var(--heading) !important;
  padding-bottom: 0 !important;
}
.tpcx-psma h2 em { font-style: normal; color: var(--forest); }
.psma-p { margin-top: 16px; font-size: 15px; line-height: 1.75; color: var(--text-lt); font-weight: 300; }
.psma-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.psma-item { display: flex; gap: 11px; align-items: flex-start; }
.psma-chk {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: var(--green-bg); border: 1px solid rgba(43,107,71,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--forest);
}
.psma-item p { font-size: 13px; color: var(--text); line-height: 1.5; }
.psma-item p strong { color: var(--heading); font-weight: 600; }
.psma-card {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px; position: relative; overflow: hidden;
}
.psma-card::after {
  content: 'PSMA'; position: absolute; bottom: -16px; right: -6px;
  font-family: 'Playfair Display', serif; font-size: 80px; font-weight: 900;
  color: rgba(43,107,71,0.04); letter-spacing: -0.05em; pointer-events: none;
}
.psma-clbl { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); margin-bottom: 10px; }
.psma-ctitle { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 14px; color: var(--heading); }
.psma-card > p { font-size: 13px; color: var(--text-lt); line-height: 1.7; font-weight: 300; }
.partner-rows { margin-top: 22px; display: flex; flex-direction: column; gap: 9px; }
.p-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-white); border-radius: 9px; padding: 10px 13px;
  border: 1px solid var(--border);
}
.p-icon {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--green-bg); display: flex; align-items: center;
  justify-content: center; font-size: 13px; flex-shrink: 0;
}
.p-name { font-size: 12px; font-weight: 600; color: var(--heading); }
.p-sub { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.p-badge {
  margin-left: auto; font-size: 9px; color: var(--forest); font-weight: 600;
  background: var(--green-bg); padding: 3px 8px; border-radius: 100px; flex-shrink: 0;
}

/* ===== PROOF (Savings) — Light bg ===== */
.tpcx-proof {
  padding: 80px 48px !important; background: var(--bg-light) !important;
  color: var(--text); position: relative;
}
.tpcx-proof::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--forest);
}
.tpcx-proof .et_pb_row { max-width: 1060px !important; margin: 0 auto !important; }
.tpcx-proof .lbl { color: var(--forest); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 32px; }
.proof-left h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(24px, 2.8vw, 38px) !important; font-weight: 900 !important;
  line-height: 1.12 !important; letter-spacing: -0.02em; color: var(--heading) !important;
  margin-bottom: 28px; padding-bottom: 0 !important;
}
.proof-left h2 em { font-style: normal; color: var(--forest); }
.savings-row { display: flex; flex-direction: column; gap: 14px; }
.s-card {
  background: var(--bg-white); border-radius: 12px; padding: 22px 22px 22px 26px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.06); border: 1px solid var(--border);
  position: relative;
}
.s-card::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--s-left, var(--forest));
}
.s-num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--forest); line-height: 1; }
.s-num span { font-size: 14px; color: var(--text-muted); margin-left: 3px; }
.s-card h4 { font-size: 13px; font-weight: 600; color: var(--heading); margin-top: 7px; }
.s-card p { font-size: 12px; color: var(--text-lt); line-height: 1.6; margin-top: 3px; font-weight: 300; }
.proof-right h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--heading); margin-bottom: 20px; }
.rev-bars { display: flex; flex-direction: column; gap: 15px; }
.rb { display: flex; flex-direction: column; gap: 6px; }
.rb-top { display: flex; justify-content: space-between; font-size: 12px; }
.rb-name { color: var(--text-lt); }
.rb-val { color: var(--forest); font-weight: 600; }
.rb-track { height: 7px; background: rgba(43,107,71,0.1); border-radius: 100px; overflow: hidden; }
.rb-fill { height: 100%; border-radius: 100px; }
.proof-note {
  margin-top: 24px; padding: 18px;
  background: var(--green-bg); border: 1px solid rgba(43,107,71,0.12);
  border-radius: 10px; font-size: 13px; color: var(--text-lt); line-height: 1.65; font-weight: 300;
}

/* ===== CTA — Forest green bg (matching TPC footer style) ===== */
.tpcx-cta {
  padding: 90px 48px !important; text-align: center;
  background: var(--forest) !important;
  position: relative; overflow: hidden;
}
.tpcx-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.tpcx-cta .et_pb_row { position: relative; z-index: 1; max-width: 700px !important; margin: 0 auto !important; }
.tpcx-cta .lbl { color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.tpcx-cta h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(30px, 4vw, 52px) !important; font-weight: 900 !important;
  line-height: 1.08 !important; letter-spacing: -0.02em; color: #fff !important;
  max-width: 580px; margin: 0 auto; padding-bottom: 0 !important;
}
.tpcx-cta h2 em { font-style: normal; color: rgba(255,255,255,0.8); }
.cta-sub { margin: 16px auto 0; font-size: 15px; color: rgba(255,255,255,0.65); max-width: 420px; line-height: 1.7; font-weight: 300; }
.cta-form {
  margin: 40px auto 0; max-width: 420px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 32px;
}
.cf-title { font-size: 14px; font-weight: 600; color: white; margin-bottom: 5px; }
.cf-desc { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.cta-numbers { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.cn-num { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 900; color: #fff; }
.cn-lbl { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* WPForms styling inside CTA */
.cta-form .wpforms-container { text-align: left; }
.cta-form .wpforms-field-label { display: none !important; }
.cta-form .wpforms-field { margin-bottom: 10px !important; padding: 0 !important; }
.cta-form .wpforms-field-row { display: flex; gap: 10px; }
.cta-form .wpforms-field-row .wpforms-field-row-block { flex: 1; padding: 0 !important; }
.cta-form input.wpforms-field-medium,
.cta-form input.wpforms-field-large,
.cta-form .wpforms-field input[type="text"],
.cta-form .wpforms-field input[type="email"] {
  background: rgba(255,255,255,0.12) !important; border: 1px solid rgba(255,255,255,0.2) !important;
  color: white !important; padding: 11px 13px !important; border-radius: 7px !important;
  font-size: 13px !important; font-family: 'Poppins', sans-serif !important;
  outline: none; transition: border-color 0.2s; width: 100% !important;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.4) !important; }
.cta-form input:focus { border-color: rgba(255,255,255,0.5) !important; }
.cta-form .wpforms-field-sublabel { display: none !important; }
.cta-form .wpforms-submit-container { padding: 0 !important; margin-top: 6px !important; }
.cta-form button.wpforms-submit {
  width: 100% !important; background: #fff !important; color: var(--forest) !important;
  border: none !important; cursor: pointer; padding: 13px !important; border-radius: 7px !important;
  font-size: 14px !important; font-weight: 600 !important; font-family: 'Poppins', sans-serif !important;
  transition: all 0.25s; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  letter-spacing: 0.02em;
}
.cta-form button.wpforms-submit:hover { background: var(--green-pale) !important; transform: translateY(-1px); }
.cta-form .wpforms-field-description { display: none !important; }
.f-legal { font-size: 11px; color: rgba(255,255,255,0.35); text-align: center; margin-top: 10px; }

/* ===== FOOTER — Dark green (matching TPC family) ===== */
.tpcx-footer {
  padding: 28px 48px !important; background: #1a3a28 !important;
  display: flex; align-items: center; justify-content: space-between;
  border-top: none;
}
.tpcx-footer .et_pb_row { display: flex; align-items: center; justify-content: space-between; max-width: 100% !important; }
.f-brand { font-size: 12px; color: rgba(255,255,255,0.45); }
.f-brand strong { color: rgba(255,255,255,0.7); }
.f-links { display: flex; gap: 28px; }
.f-links a { font-size: 12px; color: rgba(255,255,255,0.45) !important; text-decoration: none !important; transition: color 0.2s; }
.f-links a:hover { color: #fff !important; }

/* ===== SCROLL REVEAL ===== */
.tpcx-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.tpcx-reveal.visible { opacity: 1; transform: translateY(0); }
.tpcx-d1 { transition-delay: 0.1s; }
.tpcx-d2 { transition-delay: 0.2s; }
.tpcx-d3 { transition-delay: 0.3s; }
.tpcx-d4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .buckets-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .proof-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .tpcx-nav { padding: 14px 20px; }
  .tpcx-hero, .tpcx-story, .tpcx-buckets, .tpcx-psma, .tpcx-proof, .tpcx-cta {
    padding: 70px 20px !important;
  }
  .buckets-grid { grid-template-columns: 1fr 1fr !important; }
  .tpcx-footer { padding: 24px 20px !important; }
  .tpcx-footer .et_pb_row { flex-direction: column; gap: 16px; text-align: center; }
  .f-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  .buckets-grid { grid-template-columns: 1fr !important; }
}
