/* style.css
   - Global styling + header/nav + homepage sections + PHC form system
   - Anchor jump fix support:
     * html scroll-padding-top compensates for sticky header
     * explicit scroll-margin-top on anchor targets
*/

:root{
  --bg-page: #e5f3ff;
  --text-main: #0b1220;
  --text-soft: rgba(15,23,42,0.78);
  --text-muted: rgba(15,23,42,0.62);

  --accent: #2563eb;
  --accent-2: #0ea5e9;

  --radius: 16px;
  --radius-lg: 22px;

  --shadow-soft: 0 18px 45px rgba(15,23,42,0.10);
  --shadow-deep: 0 28px 70px rgba(15,23,42,0.14);

  --header-h: 72px;

  --s-1: 6px;
  --s-2: 10px;
  --s-3: 14px;
  --s-4: 18px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 44px;
  --s-8: 64px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.5;
}

a{ color: inherit; }

.container, .page-shell{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* Anchor targets offset for sticky header */
#top,
#services-anchor,
#methodology-anchor,
#contact-anchor{
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* =========================
   Header / Nav
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148,163,184,0.45);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: var(--header-h);
}

.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  text-decoration:none;
  font-weight: 950;
  letter-spacing: -0.02em;
}

/* If you're using the gradient square mark somewhere, keep it */
.brand-mark{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 16px 40px rgba(37,99,235,0.22);
}

/* ✅ NEW: enlarge the actual logo image in the upper-left */
.brand-logo{
  width: 56px;
  height: 56px;
  display: block;
}

/* ✅ NEW: enlarge the text next to the logo */
.brand > span{
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height: 1.05;
}
.brand-text small{
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav{
  display:flex;
  align-items:center;
  gap: 16px;
}

.nav a{
  text-decoration:none;
  font-weight: 850;
  color: rgba(15,23,42,0.86);
  padding: 10px 12px;
  border-radius: 14px;
  transition: background .12s ease, transform .08s ease;
}
.nav a:hover{
  background: rgba(255,255,255,0.76);
  transform: translateY(-1px);
}

.site-header .nav-toggle{
  display:none;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(255,255,255,0.80);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
}
.site-header .nav-toggle-lines{
  display: block !important;
  width: 22px;
  height: 14px;
  position: relative;
  line-height: 0 !important;
}
.site-header .nav-toggle-lines span{
  position:absolute;
  left:0; right:0;
  height: 2px;
  border-radius: 2px;
  background: rgba(15,23,42,0.70);
}
.site-header .nav-toggle-lines span:nth-child(1){ top: 0; }
.site-header .nav-toggle-lines span:nth-child(2){ top: 6px; }
.site-header .nav-toggle-lines span:nth-child(3){ top: 12px; }

@media (max-width: 960px){
  .nav{ display:none; }
  .site-header .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  /* ✅ NEW: keep the brand from getting huge on mobile */
  .brand-logo{ width: 48px; height: 48px; }
  .brand > span{ font-size: 18px; }
}

/* =========================
   Buttons
========================= */

/* Base button */
.btn,
.btn-primary,
.btn-secondary,
.btn-submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration:none;
  font-weight: 850;
  border-radius: 14px;
  padding: 12px 16px;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .08s ease, filter .08s ease;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

/* Primary: make it stand out (applies everywhere consistently) */
.btn-primary{
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 40%, var(--accent-2) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 18px 45px rgba(37,99,235,0.22);
}
.btn-primary:hover{ filter: brightness(1.02); }

/* Secondary: calm, supporting */
.btn-secondary,
.btn{
  background: rgba(255,255,255,0.86);
  color: var(--text-main);
  border: 1px solid rgba(148,163,184,0.55);
}

/* =========================
   Homepage / Sections (existing)
========================= */
.hero{
  padding: calc(var(--s-8) + 10px) 0 var(--s-8);
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(1000px 380px at 20% 0%, rgba(59,130,246,0.22), transparent 60%),
    radial-gradient(900px 340px at 90% 10%, rgba(14,165,233,0.18), transparent 65%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: var(--s-6);
}
.hero-card{
  flex: 1;
  padding: var(--s-7);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.76);
  box-shadow: var(--shadow-deep);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.hero-kicker{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.8);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-title{
  margin: var(--s-4) 0 var(--s-3);
  letter-spacing: -0.03em;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05;
}

.hero-body{
  margin: 0 0 var(--s-5);
  color: var(--text-soft);
  font-size: 16px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}

@media (max-width: 900px){
  .hero-inner{ flex-direction:column; }
  .hero-card{ padding: var(--s-6); }
}

/* =========================
   Contact section (existing)
========================= */
.contact{
  padding: var(--s-8) 0;
}
.contact-card{
  padding: var(--s-7);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-soft);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: var(--s-4);
}
.contact-card h2{
  margin: 0 0 var(--s-3);
  letter-spacing: -0.02em;
}
.contact-card p{
  margin: 0 0 var(--s-4);
  color: var(--text-soft);
}

.contact-form{
  width: min(520px, 100%);
}
.contact-form .field{
  margin-bottom: var(--s-4);
}
.contact-form label{
  display:block;
  font-weight: 850;
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.92);
  font-size: 16px;
}
.contact-form textarea{ min-height: 120px; }

.contact-link{
  color: var(--accent);
  font-weight: 800;
  text-decoration:none;
}
.contact-link:hover{ text-decoration: underline; }

/* =========================
   Process Health Check (PHC)
========================= */
.phc{ position: relative; }

/* anchor targets are invisible */
#health-check-anchor,
#contact-anchor,
#top{
  display:block;
  height: 0;
}

.phc-title{
  margin: 0 0 var(--s-4);
  letter-spacing: -0.02em;
}

.phc-intro-card{
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.75);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--s-6);
}

.phc-intro-line{
  margin: 0 0 var(--s-4);
  color: var(--text-soft);
  font-weight: 750;
}

.phc-intro-bullets{
  margin: 0 0 var(--s-4);
  padding-left: 1.25rem;
  color: var(--text-soft);
}
.phc-intro-bullets li{ margin-bottom: 8px; }

.phc-intro-benefits{
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
  margin: 0 0 var(--s-4);
}

/* Benefit “tags” are non-interactive */
.phc-benefit{
  display:inline-flex;
  align-items:center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  padding: 0 !important;
  border-radius: 0 !important;

  color: var(--text-muted) !important;
  font-weight: 750;
  font-size: 13px;
  line-height: 1.25;

  cursor: default;
  user-select: none;
}
.phc-intro-benefits .phc-benefit + .phc-benefit{
  position: relative;
  padding-left: 16px !important;
}
.phc-intro-benefits .phc-benefit + .phc-benefit::before{
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: rgba(15,23,42,0.28);
}

.phc-intro-cta{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.phc-microcopy{
  margin: 0;
  color: var(--text-muted);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.35;
}

.phc-progress{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s-4);
  padding: var(--s-4);
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.72);
  margin-bottom: var(--s-5);
}

.phc-progress-steps{
  display:flex;
  gap: 10px;
  align-items:center;
}

.phc-step-dot{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(255,255,255,0.85);
  color: rgba(15,23,42,0.70);
}
.phc-step-dot.is-active{
  border-color: rgba(37,99,235,0.40);
  background: rgba(37,99,235,0.12);
  color: rgba(37,99,235,0.95);
}

.phc-progress-label{
  color: var(--text-muted);
  font-weight: 800;
}

.phc-step{
  display:none;
  padding: var(--s-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.70);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--s-6);
}
.phc-step.is-active{ display:block; }

.phc-step-title{
  margin: 0 0 var(--s-3);
  letter-spacing: -0.015em;
}

.phc-step-why{
  margin: 0 0 var(--s-4);
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.45;
}

.phc-field{ margin-bottom: var(--s-4); }
.phc-field label{
  display:block;
  font-weight: 750;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.phc-req{
  color: rgba(37,99,235,0.95);
  font-weight: 900;
}

.phc-q-why{
  margin: 6px 0 0;
  color: var(--text-muted);
  font-weight: 650;
  font-size: 13px;
}

.phc-help{
  margin: 0 0 var(--s-4);
  color: var(--text-muted);
  font-weight: 700;
}

.phc-field select,
.phc-field input[type="text"],
.phc-field input[type="email"],
.phc-field input[type="tel"],
.phc-field textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.92);
  font-size: 16px;
}

.phc-field textarea{
  min-height: 110px;
}

.phc-inline-error{
  margin: 0 0 var(--s-4);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.08);
  color: rgba(15,23,42,0.85);
  font-weight: 800;
}

.phc-nav{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  align-items:center;
  margin-top: var(--s-5);
}

/* Results area base (existing) */
.phc-results{
  padding: var(--s-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.75);
}

.phc-evaluating{
  margin: 0 0 var(--s-3);
  color: var(--text-muted);
  font-weight: 800;
}

.phc-verdict{
  margin: 0 0 var(--s-3);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.phc-so-what{
  margin: 0 0 var(--s-4);
  color: var(--text-soft);
  font-weight: 700;
}

.phc-why{
  margin: 0 0 var(--s-4);
  color: var(--text-muted);
  font-weight: 750;
}

.phc-signals{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 0 0 var(--s-4);
}
.phc-signal{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.14);
  color: rgba(37,99,235,0.95);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .03em;
  cursor: default;
  user-select: none;
}

.phc-subhead{
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
}

/* Review step (existing) */
.phc-review{
  border: 1px solid rgba(148,163,184,0.30);
  background: rgba(255,255,255,0.72);
  border-radius: var(--radius);
  padding: var(--s-4);
}
.phc-review-list{
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
}
.phc-review-list li{ margin-bottom: 8px; }

/* Plan (older markup compatibility) */
.phc-plan-item{
  padding: var(--s-4) 0;
  border-top: 1px solid rgba(148,163,184,0.28);
}
.phc-plan-item:first-child{
  border-top: none;
  padding-top: 0;
}
.phc-plan-when{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.14);
  color: rgba(37,99,235,0.95);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.phc-plan-lines{
  margin: var(--s-3) 0 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
}
.phc-plan-lines li{ margin-bottom: 8px; }

/* Details appendix */
.phc-details{ margin-top: var(--s-5); }
.phc-details summary{
  cursor:pointer;
  font-weight: 900;
  color: var(--text-soft);
}
.phc-detail-block{ margin-top: var(--s-4); }

.phc-linklike{
  border:none;
  background: none;
  color: var(--accent);
  font-weight: 900;
  padding: 0;
  cursor:pointer;
}
.phc-linklike:hover{ text-decoration: underline; }

.phc-scoregrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
.phc-score{
  padding: var(--s-4);
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.75);
}
.phc-score-k{
  color: var(--text-muted);
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.phc-score-v{
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.phc-email-card{
  padding: var(--s-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-soft);
}
.phc-email-status{
  margin-top: var(--s-4);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.75);
  color: rgba(15,23,42,0.78);
  font-weight: 750;
}
.phc-email-status.is-success{
  border-color: rgba(34,197,94,0.25);
  background: rgba(34,197,94,0.08);
}
.phc-email-status.is-error{
  border-color: rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.08);
}
.phc-email-status.is-info{
  border-color: rgba(59,130,246,0.22);
  background: rgba(59,130,246,0.08);
}

/* Prevent background scroll when modal open */
body.phc-modal-open{ overflow:hidden; }

/* Modal (existing) */
.phc-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(6px);
}
.phc-modal-panel{
  position: fixed;
  inset: auto 14px 14px 14px;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-deep);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.phc-modal-header{
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid rgba(148,163,184,0.35);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: var(--s-4);
}
.phc-modal-x{
  border: 1px solid rgba(148,163,184,0.45);
  background: rgba(255,255,255,0.75);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
}
.phc-modal-body{
  padding: var(--s-5);
  overflow:auto;
}
.phc-modal-list{
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}
.phc-modal-list li{ margin-bottom: 10px; }
.phc-modal-example{
  margin-top: var(--s-4);
  padding: var(--s-4);
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.75);
  color: var(--text-soft);
  font-weight: 700;
}

/* =========================
   Footer (existing)
========================= */
.site-footer{
  padding: var(--s-7) 0 var(--s-8);
  color: rgba(15,23,42,0.70);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s-4);
  border-top: 1px solid rgba(148,163,184,0.40);
  padding-top: var(--s-5);
}
.footer-inner a{
  text-decoration:none;
  color: var(--accent);
  font-weight: 800;
}
.footer-inner a:hover{ text-decoration: underline; }

@media (max-width: 900px){
  .contact-card{
    flex-direction: column;
    padding: var(--s-6);
  }
  .phc-intro-card{ padding: var(--s-5); }
  .phc-step{ padding: var(--s-5); }
  .phc-scoregrid{ grid-template-columns: 1fr; }
}

/* =========================
   PHC vNext patch (2025-12-21)
   - Aligns styles to updated dynamic-form.php + forms.js
   - Improves mobile results scanning + link-style snapshot CTA
   - Fixes “pill labels look like buttons”
   - Guards against descender/underscore clipping
========================= */

/* Global guardrails for descenders/underscores in interactive controls */
.btn,
.btn-primary,
.btn-secondary,
.btn-submit,
.phc-linklike,
.phc-reset-link,
.phc-field input,
.phc-field select,
.phc-field textarea{
  line-height: 1.2;
  overflow: visible;
}

/* Make primary actions visually obvious */
.btn-submit{
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 40%, var(--accent-2) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 18px 45px rgba(37,99,235,0.22);
}
.btn-submit:hover{ filter: brightness(1.02); }
.btn-submit:active{ transform: translateY(1px); }
.btn-submit:focus-visible{
  outline: 3px solid rgba(37,99,235,0.35);
  outline-offset: 3px;
}

/* Subtle container tint so the PHC area pops (without being loud) */
.phc-wizard{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  background:
    radial-gradient(900px 260px at 12% 0%, rgba(37,99,235,0.10), transparent 55%),
    radial-gradient(700px 240px at 88% 8%, rgba(14,165,233,0.10), transparent 55%),
    rgba(255,255,255,0.60);
  box-shadow: var(--shadow-soft);
  padding: var(--s-5);
}

/* Progress row: stay readable on mobile */
.phc-progress{
  background: rgba(255,255,255,0.78);
}
.phc-progress-label{
  font-weight: 800;
  white-space: nowrap;
}

/* JS creates .phc-dot; original CSS used .phc-step-dot */
.phc-dot{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(255,255,255,0.85);
  color: rgba(15,23,42,0.70);
}
.phc-dot.is-active{
  border-color: rgba(37,99,235,0.40);
  background: rgba(37,99,235,0.12);
  color: rgba(37,99,235,0.95);
}

/* Reset link should look like a link, not a button */
.phc-reset-link{
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.phc-reset-link:hover{ text-decoration: underline; }

/* Step cards: slightly calmer inside the tinted wizard */
.phc-step{
  background: rgba(255,255,255,0.74);
}

/* RESULTS: pain-first, punchy, fast to scan */
.phc-results{
  background: rgba(255,255,255,0.78);
}

.phc-painblock{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37,99,235,0.16);
  background: rgba(37,99,235,0.06);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
}

.phc-painhead{
  margin: 0 0 var(--s-3);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.phc-top-driver{
  margin: 0 0 var(--s-3);
  color: var(--text-soft);
  font-weight: 850;
}

.phc-bullets{
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
}
.phc-bullets li{ margin-bottom: 8px; }

/* Short “I can help” message */
.phc-helpblock{
  margin: 0 0 var(--s-4);
}
.phc-i-can-help{
  margin: 0 0 10px;
  font-weight: 850;
  color: var(--text-main);
}
.phc-automation-note{
  margin: 0;
  color: var(--text-soft);
}

/* Today / This week / Ongoing cards */
.phc-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
.phc-card{
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.78);
  padding: var(--s-4);
}
.phc-card h4{
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
}
.phc-card ul{
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}
.phc-card li{ margin-bottom: 8px; }

/* Make non-interactive “pill labels” read like tags (not buttons) */
.phc-plan-when,
.phc-signal{
  cursor: default;
  box-shadow: none;
  filter: none;
}
.phc-plan-when:hover,
.phc-signal:hover{
  filter: none;
}

/* Additional information should be less prominent */
.phc-details{
  margin-top: var(--s-5);
  opacity: 0.96;
}
.phc-details summary{
  font-weight: 900;
  color: rgba(15,23,42,0.78);
}
.phc-details[open] summary{
  color: var(--text-main);
}

/* Score summary as bullets (new markup) */
.phc-score-bullets{
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
}
.phc-score-bullets li{ margin-bottom: 8px; }

/* Snapshot CTA (link + reveal) */
.phc-cta{
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(148,163,184,0.28);
}
.phc-cta-link{
  display:inline-block;
  color: var(--accent);
  font-weight: 950;
  text-decoration: none;
}
.phc-cta-link:hover{ text-decoration: underline; }
.phc-cta-sub{
  margin-top: 6px;
  color: var(--text-muted);
  font-weight: 750;
  font-size: 13px;
}

/* Email capture block should feel like the next step (not a download) */
.phc-email{
  margin-top: var(--s-4);
}
.phc-email-card{
  background: rgba(255,255,255,0.78);
}

/* Mobile-first protections */
@media (max-width: 900px){
  .phc-wizard{ padding: var(--s-4); }
  .phc-step{ padding: var(--s-4); }
  .phc-results{ padding: var(--s-4); }
  .phc-painblock{ padding: var(--s-4); }
  .phc-cards{ grid-template-columns: 1fr; }
  .phc-progress{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .phc-progress-label{ white-space: normal; }
}
/* =========================================================
   COMPAT LAYER: current header.php + index.php markup
   Fixes:
   - site-nav/nav-links list bullets + spacing
   - mobile nav open state (app.js toggles .nav-open on #siteHeader)
   - restores big rounded section container (.section)
   - restores hero background panel (.hero-bg)
   - restores offer cards grid (.offer-grid / .offer-card / .offer-pill)
   - hamburger lines when nav-toggle-lines has no inner spans
   ========================================================= */

/* ---------- Layout shell used by index.php ---------- */
.page-shell{
  width: min(var(--container, 1120px), calc(100% - 44px));
  margin: 0 auto;
}

/* Big rounded container “behind the cards” */
.section{
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(148,163,184,0.45);
  border-radius: var(--radius-lg, 22px);
  box-shadow: var(--shadow-soft, 0 18px 45px rgba(15,23,42,0.10));
  padding: clamp(18px, 3vw, 34px);
  position: relative;
  overflow: hidden;
  margin: clamp(18px, 3vw, 34px) 0;
}

/* Hero panel background (matches your “should look like” screenshot) */
.hero.hero-bg{
  background:
    radial-gradient(1200px 620px at 78% 22%,
      rgba(14,165,233,0.18) 0%,
      rgba(14,165,233,0.06) 52%,
      rgba(255,255,255,0) 74%),
    radial-gradient(900px 480px at 96% 18%,
      rgba(37,99,235,0.16) 0%,
      rgba(37,99,235,0.05) 56%,
      rgba(255,255,255,0) 78%);
}

/* Your existing .hero has a ::before overlay — disable it when using hero-bg */
.hero.hero-bg::before{ display:none; }

/* Hero typography helpers used by index.php */
.hero-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.78);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(15,23,42,0.78);
}

.hero-title{
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 14px 0 10px;
}

.hero-subtitle{
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  max-width: 72ch;
  color: rgba(15,23,42,0.78);
}

.hero-expect{
  margin-top: clamp(18px, 3vw, 30px);
}

/* ---------- Offer cards (“What you can expect”) ---------- */
.offer-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.offer-card{
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(148,163,184,0.50);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 14px 30px rgba(15,23,42,0.08);
}

.offer-pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.08);
  color: rgba(37,99,235,0.95);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;

  /* don’t look clickable */
  cursor: default;
  box-shadow: none;
}

.offer-card h3{
  margin: 10px 0 8px;
  line-height: 1.15;
}

.offer-card p{
  margin: 0;
  color: rgba(15,23,42,0.78);
  line-height: 1.55;
}

/* Mobile: stack cards */
@media (max-width: 960px){
  .offer-grid{ grid-template-columns: 1fr; }
}

/* ---------- Header/nav markup from header.php ---------- */
.site-nav{ display:flex; align-items:center; }

.nav-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a{
  text-decoration:none;
  font-weight: 850;
  color: rgba(15,23,42,0.86);
  padding: 10px 12px;
  border-radius: 14px;
  transition: background .12s ease, transform .08s ease;
}

.nav-links a:hover{
  background: rgba(255,255,255,0.76);
  transform: translateY(-1px);
}

/* Hamburger lines: header.php doesn’t provide inner spans — draw them with CSS */
.site-header .nav-toggle-lines span{ display:none !important; }

.site-header .nav-toggle-lines{
  position: relative;
  width: 22px;
  height: 14px;
}

.site-header .nav-toggle-lines::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top: 6px;
  height: 2px;
  border-radius: 2px;
  background: rgba(15,23,42,0.70);
  box-shadow:
    0 -6px 0 rgba(15,23,42,0.70),
    0  6px 0 rgba(15,23,42,0.70);
}

/* Mobile nav behavior:
   app.js toggles .nav-open on #siteHeader */
@media (max-width: 960px){
  .nav-toggle{ display: inline-flex; }

  .site-nav{
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15,23,42,0.10);
    box-shadow: 0 16px 46px rgba(15,23,42,0.18);
  }

  .site-header.nav-open .site-nav{ display: block; }

  .nav-links{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-links a{
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(148,163,184,0.35);
  }

  .nav-links a:hover{ background: rgba(37,99,235,0.08); }
}

/* ---------- Text clipping guard (descenders/underscores) ---------- */
button, input, select, textarea, .btn, .btn-primary, .btn-secondary, .btn-submit{
  line-height: 1.25;
  overflow: visible;
}
/* =========================================================
   MERGE LAYER: Site layout + hero/offer + nav (non-breaking)
   - Adds missing classes used by current templates (index.php/header.php)
   - Overrides only where necessary (mobile step-2 visibility, nav behavior)
   ========================================================= */

/* --- Core section container (the “big rounded panel” behind content) --- */
.section{
  max-width: 1100px;
  margin: 0 auto 44px;
  padding: 34px;
  border-radius: 24px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 18px 60px rgba(15,23,42,0.14);
}
@media (max-width: 960px){
  .section{ padding: 24px; }
}
@media (max-width: 640px){
  .section{ padding: 18px; border-radius: 20px; }
}

/* --- Hero background panel (subtle blue wash inside the big panel) --- */
.hero-bg{
  background:
    radial-gradient(1200px 520px at 20% 12%, rgba(37,99,235,0.20), rgba(255,255,255,0) 55%),
    radial-gradient(900px 520px at 78% 20%, rgba(14,165,233,0.22), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.90));
}

/* --- “What you can expect” offer cards (Step 2) --- */
.hero-subtitle{ color: rgba(15,23,42,0.75); margin: 10px 0 0; }
.hero-expect{ margin-top: 22px; }
.offer-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.offer-card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.10);
}
.offer-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.10);
  color: #1d4ed8;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
}
.offer-title{ margin: 10px 0 6px; font-size: 20px; }
.offer-desc{ margin: 0; color: rgba(15,23,42,0.76); }

/* IMPORTANT: Do NOT hide Step 2 on mobile. Make it stack. */
@media (max-width: 960px){
  .offer-grid{ grid-template-columns: 1fr; }
}

/* --- Services page (services.php) helpers --- */
.offer-header{ margin-bottom: 18px; }
.offer-subtitle{ color: rgba(15,23,42,0.72); margin-top: 10px; }

@media (min-width: 961px){
/* --- Header/Nav alignment with current markup + JS behavior (app.js) --- */
.site-nav{
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links{
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.nav-links a{
  text-decoration: none;
  color: rgba(15,23,42,0.78);
  font-weight: 600;
}
.nav-links a:hover{ color: rgba(15,23,42,0.96); }


}

/* Hamburger icon that works with <span class="nav-toggle-lines"></span> (no child spans) */
.nav-toggle-lines{
  width: 22px;
  height: 2px;
  background: rgba(15,23,42,0.78);
  position: relative;
  display: inline-block;
  border-radius: 2px;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: rgba(15,23,42,0.78);
  border-radius: 2px;
}
.nav-toggle-lines::before{ top: -7px; }
.nav-toggle-lines::after{ top: 7px; }

/* Mobile nav: app.js toggles .nav-open on #siteHeader */
/* (removed) duplicate mobile nav breakpoint block */


/* --- Text clipping protection (descenders/underscores) --- */
button, .btn, input, select, textarea{
  line-height: 1.25;
  overflow: visible;
}


/* =========================
   PHC dynamic questions (Step 2/3)
   forms.js renders these inside .phc-dynamic-questions
   Safe: scoped to PHC only
========================= */

.phc-dynamic-questions .phc-q{
  margin-bottom: var(--s-4);
}

.phc-dynamic-questions .phc-q-label{
  display:block;
  font-weight: 750;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.phc-dynamic-questions .phc-q-helper{
  margin: 0 0 8px;
  color: var(--text-muted);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.35;
}

/* Style both the “new” class and any plain selects/inputs inside Step 2/3 */
.phc-dynamic-questions .phc-input,
.phc-dynamic-questions select,
.phc-dynamic-questions input[type="text"],
.phc-dynamic-questions input[type="email"],
.phc-dynamic-questions input[type="tel"],
.phc-dynamic-questions textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.92);
  font-size: 16px;
}

.phc-dynamic-questions textarea{
  min-height: 110px;
}
/* =========================================================
   PHC Actions -> Card layout COMPAT (no JS changes)
   Works when forms.js renders:
   [data-phc-actions] > h4 + ul repeated (Today / This week / Ongoing)
   ========================================================= */

.phc-planblock [data-phc-actions]{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  align-items: start;
}

/* Make each heading+list pair visually read as ONE card */
.phc-planblock [data-phc-actions] > h4,
.phc-planblock [data-phc-actions] > h5{
  margin: 0;
  padding: var(--s-4) var(--s-4) 10px;
  border: 1px solid rgba(148,163,184,0.35);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255,255,255,0.78);
  font-weight: 950;
  letter-spacing: -0.01em;
}

.phc-planblock [data-phc-actions] > ul{
  margin: 0;
  padding: 0 var(--s-4) var(--s-4) calc(var(--s-4) + 18px);
  border: 1px solid rgba(148,163,184,0.35);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255,255,255,0.78);
  color: var(--text-soft);
}

.phc-planblock [data-phc-actions] > ul li{ margin-bottom: 8px; }

/* Force the 1st/2nd/3rd heading+ul into columns */
.phc-planblock [data-phc-actions] > h4:nth-of-type(1),
.phc-planblock [data-phc-actions] > h5:nth-of-type(1),
.phc-planblock [data-phc-actions] > ul:nth-of-type(1){ grid-column: 1; }

.phc-planblock [data-phc-actions] > h4:nth-of-type(2),
.phc-planblock [data-phc-actions] > h5:nth-of-type(2),
.phc-planblock [data-phc-actions] > ul:nth-of-type(2){ grid-column: 2; }

.phc-planblock [data-phc-actions] > h4:nth-of-type(3),
.phc-planblock [data-phc-actions] > h5:nth-of-type(3),
.phc-planblock [data-phc-actions] > ul:nth-of-type(3){ grid-column: 3; }

/* Mobile: stack cards */
@media (max-width: 900px){
  .phc-planblock [data-phc-actions]{
    grid-template-columns: 1fr;
  }
  .phc-planblock [data-phc-actions] > h4,
  .phc-planblock [data-phc-actions] > h5,
  .phc-planblock [data-phc-actions] > ul{
    grid-column: auto !important;
  }
}


/* =========================================
   PHC Email Snapshot (Results) — Callback UI
   Add to bottom of style.css
   ========================================= */

/* Compact row used inside the email capture panel */
.phc-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Checkbox + label */
.phc-checkline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(15, 23, 42, 0.85);
  user-select: none;
}

.phc-checkline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  transform: translateY(1px);
  accent-color: var(--accent);
}

/* Callback phone row (hidden/shown by JS) */
.phc-callback-row {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.04);
}

.phc-callback-row label {
  display: block;
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
}

.phc-callback-row .phc-input {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  color: var(--text-main);
  line-height: 1.35;
}

/* Small helper text under the phone input (optional) */
.phc-callback-help {
  margin: 6px 0 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.62);
}

/* Make the email capture area feel slightly “form-like” without being loud */
.phc-email-capture {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.02);
  padding: 14px;
}

/* If your template already uses .phc-email-status, just ensures spacing */
.phc-email-status {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
}

/* Mobile: keep spacing tight */
@media (max-width: 640px) {
  .phc-email-capture { padding: 12px; }
  .phc-callback-row { padding: 10px; }
}
/* === PHC VISUAL FLATTENING: pain block (SAFE) === */
/* Contract-safe: CSS-only, no identity or behavior changes */

.phc-results .phc-painblock{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: var(--s-4);
}

/* Optional: keep a subtle separator so it doesn’t feel lost */
.phc-results .phc-painblock::before{
  content: "";
  display: block;
  height: 3px;
  width: 48px;
  background: rgba(37,99,235,0.35);
  border-radius: 999px;
  margin-bottom: var(--s-3);
}
/* =========================================================
   PHC MOBILE DECLUTTERING (v1)
   Goal: Make the blue .phc-wizard the only “card”
   Safe: CSS-only, no identity/behavior changes
   ========================================================= */

@media (max-width: 900px){

  /* Flatten the progress header card */
  .phc-wizard .phc-progress{
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: var(--s-4);
  }

  /* Flatten the step container card */
  .phc-wizard .phc-step{
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
  }

  /* Keep a little separation between header + fields */
  .phc-wizard .phc-progress + .phc-step{
    margin-top: var(--s-4);
  }
}
/* =========================
   Footer (site-wide)
   ========================= */

.site-footer{
  margin-top: var(--s-8);
  padding: var(--s-7) 0 var(--s-8);
  background:
    linear-gradient(
      180deg,
      rgba(229,243,255,0.0) 0%,
      rgba(229,243,255,0.65) 100%
    );
  border-top: 1px solid rgba(148,163,184,0.35);
}

.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: var(--s-4);
}

.footer-brand{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.footer-logo{
  display:flex;
  align-items:center;
  gap: 10px;
}

.footer-name{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-meta{
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
}

.footer-nav{
  display:flex;
  gap: 16px;
}

.footer-nav a{
  text-decoration:none;
  font-weight: 800;
  color: rgba(15,23,42,0.75);
}
.footer-nav a:hover{
  color: rgba(15,23,42,0.95);
  text-decoration: underline;
}

@media (max-width: 900px){
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
    gap: var(--s-5);
  }
}

/* =========================================================
   SERVICES: 5-second view + accordion details
   Safe add-on (CSS only)
   ========================================================= */

/* Accordion container */
.offer-details{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,23,42,0.10);
}

/* Summary (accordion toggle) */
.offer-details > summary{
  list-style: none;
  cursor: pointer;
  font-weight: 850;
  color: var(--accent, #2563eb);
  position: relative;
  padding-right: 22px;
}

/* Remove default marker */
.offer-details > summary::-webkit-details-marker{
  display: none;
}

/* Chevron indicator */
.offer-details > summary::after{
  content: "▾";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(15,23,42,0.55);
  transition: transform 0.15s ease;
}

/* Rotate chevron when open */
.offer-details[open] > summary::after{
  transform: rotate(180deg);
}

/* Accordion content */
.offer-details ul{
  margin: 12px 0 0;
  padding-left: 1.25rem;
  color: rgba(15,23,42,0.78);
}

.offer-details li{
  margin-bottom: 8px;
  line-height: 1.45;
}

/* Keep accordion visually secondary */
.offer-details summary:hover{
  text-decoration: underline;
}

/* Mobile tightening */
@media (max-width: 900px){
  .offer-details{
    margin-top: 12px;
    padding-top: 8px;
  }
}
/* ---------------------------------------------------------
   Force accordion link to bottom of service cards
   --------------------------------------------------------- */

.offer-card{
  display: flex;
  flex-direction: column;
}

/* Everything before the accordion stays natural */
.offer-card > *{
  flex-shrink: 0;
}

/* Push accordion to bottom */
.offer-details{
  margin-top: auto;
  padding-top: 14px;
}

/* =========================================================
   Services cards: vertical rhythm + bottom-aligned accordion
   Safe, additive rules only
   ========================================================= */

/* Make each service card a vertical flex container */
.offer-card{
  display: flex;
  flex-direction: column;
}

/* Normalize spacing for consistent vertical rhythm */
.offer-card h3{
  margin-bottom: 0.5rem;
}

.offer-card p{
  margin-bottom: 0.75rem;
}

/* Ensure metadata block doesn’t collapse spacing */
.offer-card p strong{
  font-weight: 700;
}

/* Push accordion to the bottom of each card */
.offer-details{
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,0.10);
}

/* Accordion toggle styling */
.offer-details > summary{
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--accent, #2563eb);
  position: relative;
  padding-right: 22px;
}

/* Remove default marker */
.offer-details > summary::-webkit-details-marker{
  display: none;
}

/* Chevron indicator */
.offer-details > summary::after{
  content: "▾";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(15,23,42,0.55);
  transition: transform 0.15s ease;
}

/* Rotate chevron when open */
.offer-details[open] > summary::after{
  transform: rotate(180deg);
}

/* Accordion content */
.offer-details ul{
  margin: 12px 0 0;
  padding-left: 1.25rem;
  color: rgba(15,23,42,0.78);
}

.offer-details li{
  margin-bottom: 8px;
  line-height: 1.45;
}

/* Mobile tightening */
@media (max-width: 900px){
  .offer-card h3{
    margin-bottom: 0.4rem;
  }
  .offer-details{
    padding-top: 12px;
  }
}
