/* ============================================================
   HOLISTIC SOUL JOURNEY — tools.css
   /tools hub and /tools/{slug} calculator pages.
   Reuses .card, .btn, .form-control and .cta-box from components.css.
   ============================================================ */

/* ---------------- Hero section with background image ---------------- */

/* Full-bleed hero: the image fills the section; text is overlaid on the
   darkened lower portion via a linear gradient scrim.
   flex + justify-content lets us maximise the visible image area above
   the text without hard-coding a padding-top pixel value. */
.section-hero-tool {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(480px, 72vh, 820px);
  padding: 0 0 clamp(3rem, 5vw, 5rem);
}

/* section-hero-simple sets its own padding — reset it for this variant. */
.section-hero-simple.section-hero-tool {
  padding-top: 0;
}

/* Picture sits behind everything, covering the full section. */
.hero-tool-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: -2;
}

.hero-tool-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the subject (spirals, angel, portal) in the upper-to-middle
     zone of the hero where the scrim is light — images were generated
     with their focal point at roughly 55 % down from the top. */
  object-position: center 55%;
}

/* Two-layer scrim:
   0–40 % (upper image area): nearly transparent so the subject shows.
   65–100 % (text zone at the bottom): opaque dark so gold text reads. */
.section-hero-tool::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(13, 5, 32, 0.00)  0%,
    rgba(13, 5, 32, 0.05) 20%,
    rgba(13, 5, 32, 0.18) 40%,
    rgba(13, 5, 32, 0.55) 62%,
    rgba(13, 5, 32, 0.88) 78%,
    rgba(13, 5, 32, 1.00) 100%
  );
}

/* Mobile: smaller min-height. */
@media (max-width: 768px) {
  .section-hero-tool {
    min-height: clamp(340px, 55vh, 520px);
  }
}

/* ---------------- Hub cards ---------------- */
.tool-card-icon {
  display: block;
  font-size: 1.9rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  line-height: 1;
}

.tool-card h3 a { color: inherit; text-decoration: none; }
.tool-card h3 a:hover { color: var(--gold-light); }

/* ---------------- Calculator form ---------------- */
.tool-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.tool-form .btn { justify-self: start; }

/* Native date pickers render dark-on-dark in some browsers. */
.tool-form input[type="date"] { color-scheme: dark; }

/* ---------------- Result ---------------- */
.tool-result {
  margin-top: 2.75rem;
  scroll-margin-top: 6rem;
}

.tool-headline {
  font-size: var(--fs-h2);
  margin: 0.35rem 0 1.25rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tool-extras {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.tool-extras li { display: grid; gap: 0.2rem; }

.tool-extras span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.tool-extras strong {
  font-size: 1.3rem;
  color: var(--gold-light);
}

.tool-block { margin-bottom: 2.25rem; }
.tool-block h3 { margin-bottom: 0.5rem; }

.tool-essence {
  font-style: italic;
  color: var(--muted-bright);
  margin-bottom: 1rem;
}

.tool-reading { line-height: 1.85; }
.tool-reading + .tool-reading { margin-top: 1rem; }

.tool-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.tool-section h4 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* ---------------- Email gate ---------------- */
.tool-gate {
  margin: 2.75rem 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: var(--glow-gold-soft);
}

.tool-gate h3 { margin: 0.75rem 0 0.5rem; }
.tool-gate p { color: var(--muted-bright); }

.tool-gate-form {
  display: grid;
  gap: 1rem;
  max-width: 26rem;
  margin: 1.5rem auto 0;
  text-align: left;
}

.tool-gate-form .btn { width: 100%; }
.tool-gate-form .micro { text-align: center; }

/* Honeypot: reachable to bots, invisible and unfocusable for people. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------- Related links and product handoff ---------------- */
.tool-links {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.5rem;
}

.tool-links a { color: var(--gold-light); }

.tool-reco { margin-top: 2.5rem; }

/* ---------------- Explainer section ---------------- */
.tool-explainer-wrap {
  margin-bottom: 3.5rem;
}

/* Pull quote: a single high-signal sentence pulled from the explainer,
   visually anchored with the gold accent line. */
.tool-pullquote {
  margin: 1.25rem 0 2.25rem;
  padding: 1.1rem 1.5rem 1.1rem 1.4rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm, 10px) var(--radius-sm, 10px) 0;
  background: rgba(240, 208, 128, 0.06);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-style: italic;
  line-height: 1.65;
  color: var(--gold-light);
}

/* Paragraph prose */
.tool-explainer p {
  margin-bottom: 1.3rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
}

/* First paragraph gets slightly more emphasis — it sets context */
.tool-explainer p:first-child {
  font-size: 1.03rem;
  color: rgba(255, 255, 255, 0.85);
}

.tool-explainer p:last-child { margin-bottom: 0; }

.tool-explainer strong { color: var(--gold-light); font-weight: 600; }
.tool-explainer em     { color: rgba(255, 255, 255, 0.85); font-style: italic; }

/* ---------------- FAQ ---------------- */
.tool-faq-wrap {
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}

.tool-faq-heading {
  margin-bottom: 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.tool-faq {
  border-bottom: 1px solid var(--glass-border);
}

.tool-faq summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  list-style: none;
  user-select: none;
  transition: color var(--t-fast) var(--ease);
}

.tool-faq summary::-webkit-details-marker { display: none; }

/* Icon that rotates open */
.tool-faq summary::before {
  content: "✦";
  font-size: 0.7rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--t-mid) var(--ease);
}

.tool-faq[open] summary {
  color: var(--gold-light);
}

.tool-faq[open] summary::before {
  transform: rotate(45deg);
  color: var(--gold-light);
}

.tool-faq summary:hover { color: var(--white); }

.tool-faq-body {
  padding-bottom: 1.1rem;
}

.tool-faq-body p {
  margin: 0;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}
