/* HC Tradie Funnel — brand tokens: Black #0D0D0D, Electric Blue #2563EB, White #FFFFFF, Mid-grey #6B7280 */

/* ---------- Theme-collision fixes ----------
   WordPress themes wrap page content in a narrow container and print their own
   page title above it. This funnel needs to be full-bleed and title-free, so:
   1) break the hero/form-section out of whatever container width the theme
      imposes (the calc(50% - 50vw) trick works regardless of theme markup);
   2) hide the theme's own title element wherever the page also contains our
      shortcode, using :has() (Safari 15.4+/Chrome 105+/Firefox 121+ — modern
      enough for this audience). Belt-and-braces: also set the page template to
      "Blank"/"Full Width"/"No Title" in the theme if one is available — see
      README §2.
------------------------------------------------------------------------- */
/* Hide the theme's page title regardless of what it names it: a well-formed WP
   page has exactly one h1 (the title), and this shortcode never outputs an h1
   of its own outside .hc-tf-root — so "any h1 outside our root" IS the title.
   Hiding the h1 alone still leaves a blank gap if the theme wraps it in a
   header/container that has its own padding — so hide that immediate WRAPPER
   too, not just the heading text inside it.
   IMPORTANT: only go one level up, and explicitly exclude any element that
   also contains .hc-tf-root — a two-level (grandparent) version briefly
   matched <main> itself (main > .page-header > h1), which hid the whole page
   including our own hero since main is also an ancestor of .hc-tf-root. */
body:has(.hc-tf-root) h1:not(.hc-tf-root .hc-tf-h1),
body:has(.hc-tf-root) *:has(> h1:not(.hc-tf-root .hc-tf-h1)):not(:has(.hc-tf-root)) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
}
/* Belt-and-braces for the common named containers too. */
body:has(.hc-tf-root) .entry-title,
body:has(.hc-tf-root) .page-title,
body:has(.hc-tf-root) .entry-header,
body:has(.hc-tf-root) .page-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
}

/* Strip WordPress's global content-width clamp (block themes set
   --wp--style--global--content-size ~650-800px on .entry-content and its
   direct children) at every level between <main> and our root, not just on
   .entry-content itself — otherwise the desktop view (wider than that clamp)
   squeezes the full-bleed sections back into a narrow column while mobile
   looks fine (mobile viewport is already narrower than the clamp). */
body:has(.hc-tf-root) .entry-content,
body:has(.hc-tf-root) .site-content,
body:has(.hc-tf-root) main,
body:has(.hc-tf-root) .entry-content > *,
body:has(.hc-tf-root) main > *,
body:has(.hc-tf-root) .wp-site-blocks > * {
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.hc-tf {
  --hc-black: #0D0D0D;
  --hc-black-soft: #161616;
  --hc-blue: #2563EB;
  --hc-blue-light: #60A5FA;
  --hc-blue-dark: #1D4ED8;
  --hc-blue-tint: #EFF4FF;
  --hc-white: #FFFFFF;
  --hc-grey: #6B7280;
  --hc-grey-light: #E5E7EB;
  --hc-grey-lighter: #F3F4F6;
  --hc-bg: #F7F8FA;
  --hc-shadow-sm: 0 1px 2px rgba(13,13,13,0.06), 0 1px 1px rgba(13,13,13,0.04);
  --hc-shadow-md: 0 6px 16px rgba(13,13,13,0.08), 0 2px 6px rgba(13,13,13,0.05);
  --hc-shadow-lg: 0 24px 60px -12px rgba(13,13,13,0.35), 0 8px 24px rgba(13,13,13,0.1);
  --hc-spring: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--hc-black);
  box-sizing: border-box;
}
.hc-tf *, .hc-tf *::before, .hc-tf *::after { box-sizing: inherit; }

.hc-tf-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

.hc-tf-h1 {
  font-family: 'Rubik', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
  color: var(--hc-black);
}

.hc-tf-sub {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--hc-grey);
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

/* ---------- Hero ---------- */

.hc-tf-hero {
  position: relative;
  background: var(--hc-black);
  padding: 3rem 1.25rem 6rem;
  overflow: hidden;
  /* full-bleed breakout regardless of the theme's content container width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hc-tf-hero-glow {
  position: absolute;
  top: -22%;
  right: -20%;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(37,99,235,0.55) 0%, rgba(37,99,235,0) 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hc-tf-hero-inner { position: relative; max-width: 40rem; margin: 0 auto; text-align: center; }

.hc-tf-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc-blue-light);
  background: rgba(37,99,235,0.14);
  border: 1px solid rgba(96,165,250,0.28);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.25rem;
}

.hc-tf-hero .hc-tf-h1 { color: var(--hc-white); text-transform: uppercase; }
.hc-tf-accent { color: var(--hc-blue-light); }
.hc-tf-hero .hc-tf-sub { color: #A8AEB8; }

.hc-tf-trust {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0 0 2rem;
}
.hc-tf-trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hc-white);
}
.hc-tf-trust-item .hc-tf-icon { color: var(--hc-blue-light); }

.hc-tf-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--hc-blue);
  color: var(--hc-white);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 1rem 1.5rem;
  border-radius: 0.85rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(37,99,235,0.55);
  transition: background-color 0.2s var(--hc-spring), transform 0.15s var(--hc-spring), box-shadow 0.2s var(--hc-spring);
}
.hc-tf-cta-link .hc-tf-icon { transition: transform 0.2s var(--hc-spring); }
.hc-tf-cta-link:hover, .hc-tf-cta-link:focus-visible {
  background: var(--hc-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(37,99,235,0.6);
}
.hc-tf-cta-link:hover .hc-tf-icon, .hc-tf-cta-link:focus-visible .hc-tf-icon { transform: translateX(3px); }
.hc-tf-cta-link:active { transform: translateY(0) scale(0.98); }

.hc-tf-hero-meta {
  text-align: center;
  font-size: 0.8125rem;
  color: #7C8390;
  margin-top: 0.85rem;
}

/* ---------- Form section ---------- */

.hc-tf-form-section {
  background: var(--hc-bg);
  padding: 0 1.25rem 3.5rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hc-tf-card {
  max-width: 34rem;
  margin: -3.5rem auto 0;
  position: relative;
  background: var(--hc-white);
  border-radius: 1.25rem;
  box-shadow: var(--hc-shadow-lg);
  padding: 1.75rem 1.5rem 2rem;
}

.hc-tf-progress-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hc-tf-step-num {
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hc-grey);
  white-space: nowrap;
}
.hc-tf-step-current { color: var(--hc-black); }

.hc-tf-progress {
  flex: 1;
  background: var(--hc-grey-light);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}
.hc-tf-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--hc-blue) 0%, var(--hc-blue-light) 100%);
  border-radius: 999px;
  transition: width 0.35s var(--hc-spring);
  width: 0%;
}

.hc-tf-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.hc-tf-step { display: none; }
.hc-tf-step.is-active { display: block; animation: hc-tf-step-in 0.32s var(--hc-spring); }

@keyframes hc-tf-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hc-tf-q {
  font-family: 'Rubik', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.28;
  letter-spacing: -0.005em;
  margin: 0 0 1.5rem;
  color: var(--hc-black);
}
.hc-tf-q-sub {
  font-size: 0.9375rem;
  color: var(--hc-grey);
  margin: -1.1rem 0 1.5rem;
}
.hc-tf-q:focus { outline: none; }

.hc-tf-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.hc-tf-options-stack { grid-template-columns: 1fr; }

.hc-tf-opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hc-black);
  background: var(--hc-white);
  border: 1.5px solid var(--hc-grey-light);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--hc-shadow-sm);
  transition: border-color 0.15s var(--hc-spring), background-color 0.15s var(--hc-spring), box-shadow 0.15s var(--hc-spring), transform 0.12s var(--hc-spring);
  min-height: 3rem;
}
.hc-tf-opt-radio {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--hc-grey-light);
  position: relative;
  transition: border-color 0.15s var(--hc-spring);
}
.hc-tf-opt-radio::after {
  content: '';
  position: absolute;
  inset: 0.2rem;
  border-radius: 999px;
  background: var(--hc-blue);
  transform: scale(0);
  transition: transform 0.18s var(--hc-spring);
}
.hc-tf-opt:hover, .hc-tf-opt:focus-visible {
  border-color: var(--hc-blue-light);
  box-shadow: var(--hc-shadow-md);
  transform: translateY(-1px);
  outline: none;
}
.hc-tf-opt:active { transform: translateY(0) scale(0.99); }
.hc-tf-opt.is-selected {
  border-color: var(--hc-blue);
  background: var(--hc-blue-tint);
  color: var(--hc-blue-dark);
  box-shadow: var(--hc-shadow-md);
}
.hc-tf-opt.is-selected .hc-tf-opt-radio { border-color: var(--hc-blue); }
.hc-tf-opt.is-selected .hc-tf-opt-radio::after { transform: scale(1); }
.hc-tf-opt-muted { color: var(--hc-grey); }
.hc-tf-opt-muted.is-selected { color: var(--hc-blue-dark); }

.hc-tf-fields { display: flex; flex-direction: column; gap: 0.35rem; }
.hc-tf-label { font-size: 0.875rem; font-weight: 600; color: var(--hc-black); margin-top: 0.85rem; }
.hc-tf-label-optional { font-weight: 400; color: var(--hc-grey); }

.hc-tf-input-wrap { position: relative; display: flex; align-items: center; }
.hc-tf-input-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--hc-grey);
  pointer-events: none;
}
.hc-tf-input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  border: 1.5px solid var(--hc-grey-light);
  border-radius: 0.7rem;
  color: var(--hc-black);
  background: var(--hc-white);
  transition: border-color 0.15s var(--hc-spring), box-shadow 0.15s var(--hc-spring);
}
.hc-tf-input:focus {
  outline: none;
  border-color: var(--hc-blue);
  box-shadow: 0 0 0 3.5px rgba(37,99,235,0.15);
}

.hc-tf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.6rem;
  background: var(--hc-blue);
  color: var(--hc-white);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(37,99,235,0.5);
  transition: background-color 0.2s var(--hc-spring), transform 0.15s var(--hc-spring), box-shadow 0.2s var(--hc-spring);
}
.hc-tf-submit .hc-tf-icon { transition: transform 0.2s var(--hc-spring); }
.hc-tf-submit:hover, .hc-tf-submit:focus-visible {
  background: var(--hc-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(37,99,235,0.55);
}
.hc-tf-submit:hover .hc-tf-icon { transform: translateX(3px); }
.hc-tf-submit:active { transform: translateY(0) scale(0.98); }
.hc-tf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.hc-tf-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--hc-grey);
  margin-top: 0.9rem;
  line-height: 1.4;
}
.hc-tf-privacy .hc-tf-icon { margin-top: 0.1rem; color: var(--hc-grey); }

.hc-tf-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: var(--hc-grey);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
}
.hc-tf-back .hc-tf-icon { transform: rotate(180deg); }
.hc-tf-back:hover, .hc-tf-back:focus-visible { color: var(--hc-black); outline: none; }

.hc-tf-error {
  color: #B91C1C;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 1rem;
  min-height: 1.25rem;
}

/* ---------- Thanks pages ---------- */

.hc-tf-thanks {
  background: var(--hc-bg);
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 3.5rem 1.25rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hc-tf-thanks-inner { max-width: 30rem; margin: 0 auto; text-align: left; }
.hc-tf-thanks-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--hc-blue-tint);
  color: var(--hc-blue);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  animation: hc-tf-badge-in 0.5s var(--hc-spring);
}
@keyframes hc-tf-badge-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
.hc-tf-thanks .hc-tf-h1 { color: var(--hc-black); }
.hc-tf-thanks .hc-tf-trust { margin-top: 1.75rem; }
.hc-tf-thanks .hc-tf-trust-item { color: var(--hc-black); }
.hc-tf-thanks .hc-tf-trust-item .hc-tf-icon { color: var(--hc-blue); }

/* ---------- Skip link (hero) ---------- */

.hc-tf-skip-link { color: #7C8390; text-decoration: underline; text-underline-offset: 2px; }
.hc-tf-skip-link:hover, .hc-tf-skip-link:focus-visible { color: var(--hc-white); }

/* Tight trust strip in the hero — three short facts directly under the subhead. */
.hc-tf-trust-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 1.75rem 0 1.5rem;
}
.hc-tf-trust-strip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hc-white);
}
.hc-tf-trust-strip-item .hc-tf-icon { color: var(--hc-blue-light); flex-shrink: 0; }

/* ---------- Trust stack ---------- */

.hc-tf-trust-stack {
  background: var(--hc-bg);
  padding: 3rem 1.25rem;
}
.hc-tf-trust-stack-inner {
  max-width: 34rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hc-tf-trust-h2 {
  font-family: 'Rubik', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.28;
  margin: 0 0 0.6rem;
  color: var(--hc-black);
}
.hc-tf-trust-h3 {
  font-family: 'Rubik', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 1rem;
  color: var(--hc-black);
}

.hc-tf-founder-block { display: flex; gap: 1.1rem; align-items: flex-start; }
.hc-tf-founder-avatar {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--hc-blue);
  color: var(--hc-white);
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-tf-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.hc-tf-process-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--hc-black);
  line-height: 1.45;
}
.hc-tf-process-list .hc-tf-icon { color: var(--hc-blue); margin-top: 0.15rem; flex-shrink: 0; }

.hc-tf-guarantee-block {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--hc-white);
  border: 1.5px solid var(--hc-grey-light);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--hc-shadow-sm);
}
.hc-tf-guarantee-icon { width: 1.75rem; height: 1.75rem; color: var(--hc-blue); flex-shrink: 0; }
.hc-tf-guarantee-text { margin: 0; font-size: 1rem; font-style: italic; line-height: 1.55; color: var(--hc-black); }

.hc-tf-faq-item {
  border-bottom: 1px solid var(--hc-grey-light);
  padding: 1rem 0;
}
.hc-tf-faq-item:first-of-type { border-top: 1px solid var(--hc-grey-light); }
.hc-tf-faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--hc-black);
  cursor: pointer;
  list-style: none;
}
.hc-tf-faq-item summary::-webkit-details-marker { display: none; }
.hc-tf-faq-item summary .hc-tf-icon { color: var(--hc-blue); flex-shrink: 0; }
.hc-tf-faq-item p { margin: 0.75rem 0 0 1.75rem; font-size: 0.9375rem; color: var(--hc-grey); line-height: 1.5; }

/* ---------- Desktop up ---------- */

@media (min-width: 640px) {
  .hc-tf-h1 { font-size: 2.5rem; }
  .hc-tf-hero { padding: 5rem 2rem 8rem; }
  .hc-tf-form-section { padding: 0 2rem 4.5rem; }
  .hc-tf-card { margin-top: -5rem; padding: 2.5rem 2.5rem 2.75rem; }
  .hc-tf-trust { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
  .hc-tf-cta-link { width: auto; padding-left: 2rem; padding-right: 2rem; }
  .hc-tf-thanks-inner { text-align: center; }
  .hc-tf-thanks .hc-tf-trust { justify-content: center; }
  .hc-tf-trust-strip { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; }
  .hc-tf-trust-stack { padding: 4rem 2rem; }
  .hc-tf-trust-stack-inner { gap: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-tf-step, .hc-tf-progress-bar, .hc-tf-thanks-badge, .hc-tf-opt, .hc-tf-cta-link, .hc-tf-submit {
    animation: none !important;
    transition: none !important;
  }
}
