/* ==========================================================================
   Industry Landing Funnels: shared component styles
   --------------------------------------------------------------------------
   Loaded after tailwind.css + styles.css on every /industry/<slug> page.
   The heritage-luxe base (cream/ivory ground, deep canopy green, terracotta)
   always dominates. Each vertical only swaps one variable, --iv-accent, so the
   13 pages read as one brand with a single calibrated accent per page.

   Usage: the page wrapper gets class="iv iv-<key>" (e.g. "iv iv-medical").
   iv-<key> sets --iv-accent; the iv-* component rules below consume it via
   color-mix() so tints derive from the one hex, no per-vertical tint upkeep.
   ========================================================================== */

/* --- Per-vertical accent (design.md §4). One hex per vertical. ----------- */
.iv-law          { --iv-accent: #B5944E; } /* Gold        */
.iv-medical      { --iv-accent: #0D9488; } /* Teal        */
.iv-wealth       { --iv-accent: #1E3A5F; } /* Navy        */
.iv-realestate   { --iv-accent: #7C9A6E; } /* Sage        */
.iv-accounting   { --iv-accent: #475569; } /* Slate       */
.iv-consulting   { --iv-accent: #4F46E5; } /* Indigo      */
.iv-architecture { --iv-accent: #78716C; } /* Warm gray   */
.iv-agency       { --iv-accent: #F97316; } /* Coral       */
.iv-ecommerce    { --iv-accent: #7C3AED; } /* Violet      */
.iv-saas         { --iv-accent: #06B6D4; } /* Cyan        */
.iv-hospitality  { --iv-accent: #D97706; } /* Amber       */
.iv-franchise    { --iv-accent: #059669; } /* Emerald     */
.iv-fintech      { --iv-accent: #2563EB; } /* Blue        */

/* Fallback so component rules never render un-accented if a key is missing. */
.iv { --iv-accent: #2E4438; }

/* --- Shared tokens (align with styles.css heritage-luxe palette) --------- */
.iv {
  --iv-ink:        #1F2E2A;
  --iv-ink-soft:   #4A5651;
  --iv-ivory:      #FBFAF6;
  --iv-canopy:     #2E4438;
  --iv-line:       rgba(31, 46, 42, 0.10);
}

/* --- Vertical illustrations (hero / pain / service) ----------------------- */
/* Square line-art is capped and centered so it never dominates the column,
   at any breakpoint. Reliable CSS (not an arbitrary Tailwind utility, which
   this project's precompiled build would drop). */
.iv-art {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  background: var(--iv-ivory, #FBFAF6);
}

/* --- Hero ----------------------------------------------------------------- */
.iv-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% -10%,
      color-mix(in srgb, var(--iv-accent) 12%, transparent) 0%,
      transparent 55%),
    var(--iv-ivory);
}
.iv-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--iv-accent) 78%, #000);
}
.iv-hero-kicker::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--iv-accent);
}
.iv-accent-word {
  font-style: italic;
  color: var(--iv-accent);
}
.iv-hero-rule {
  height: 3px;
  width: 4rem;
  border-radius: 3px;
  background: var(--iv-accent);
}

/* --- Pain grid ------------------------------------------------------------ */
.iv-pain-card {
  background: #fff;
  border: 1px solid var(--iv-line);
  border-radius: 0.9rem;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.iv-pain-card:hover {
  border-color: color-mix(in srgb, var(--iv-accent) 40%, transparent);
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--iv-accent) 55%, transparent);
  transform: translateY(-2px);
}
.iv-pain-stat {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--iv-accent);
}

/* --- Diagnostic entry module (the free scan) ----------------------------- */
.iv-diagnostic {
  position: relative;
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--iv-accent) 6%, var(--iv-ivory)) 0%,
      var(--iv-ivory) 100%);
  border: 1px solid color-mix(in srgb, var(--iv-accent) 22%, transparent);
}
.iv-diagnostic-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: color-mix(in srgb, var(--iv-accent) 80%, #000);
  background: color-mix(in srgb, var(--iv-accent) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--iv-accent) 28%, transparent);
}
/* Single-path rule: ONE primary CTA in the diagnostic module. */
.iv-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  color: #fff;
  background: var(--iv-accent);
  border-radius: 999px;
  padding: 0.95rem 2rem;
  border: none;
  cursor: pointer;
  transition: filter .25s ease, box-shadow .25s ease, transform .1s ease;
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--iv-accent) 70%, transparent);
}
.iv-cta-primary:hover { filter: brightness(1.05); box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--iv-accent) 75%, transparent); }
.iv-cta-primary:active { transform: scale(0.985); }
/* Book-a-call fallback is quiet, text-only, never a parallel primary button. */
.iv-cta-fallback {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--iv-ink-soft);
  text-decoration: none;
}
.iv-cta-fallback:hover { color: var(--iv-accent); }

/* --- Service mapping (4 pillars, primary first) -------------------------- */
.iv-service-card {
  background: #fff;
  border: 1px solid var(--iv-line);
  border-radius: 0.9rem;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.iv-service-card--primary {
  border-color: color-mix(in srgb, var(--iv-accent) 45%, transparent);
  box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--iv-accent) 60%, transparent);
}
.iv-service-icon {
  color: var(--iv-accent);
  background: color-mix(in srgb, var(--iv-accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--iv-accent) 22%, transparent);
}

/* --- Why Aday cards ------------------------------------------------------- */
.iv-why-card {
  background: color-mix(in srgb, var(--iv-accent) 4%, #fff);
  border: 1px solid var(--iv-line);
  border-radius: 0.9rem;
}
.iv-why-num { color: var(--iv-accent); font-weight: 800; }

/* --- FAQ ------------------------------------------------------------------ */
.iv-faq-item { border-bottom: 1px solid var(--iv-line); }
.iv-faq-q {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--iv-ink);
}
.iv-faq-q::-webkit-details-marker { display: none; }
.iv-faq-item[open] .iv-faq-q { color: var(--iv-accent); }

/* --- Compliance strip ----------------------------------------------------- */
.iv-compliance {
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--iv-accent) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--iv-accent) 18%, transparent);
}
.iv-compliance-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--iv-accent) 75%, #000);
}
.iv-compliance-text { font-size: 12px; line-height: 1.7; color: var(--iv-ink-soft); }

/* --- Dark closing CTA ----------------------------------------------------- */
.iv-cta-band {
  background:
    radial-gradient(120% 140% at 15% -20%,
      color-mix(in srgb, var(--iv-accent) 30%, transparent) 0%,
      transparent 55%),
    var(--iv-canopy);
  color: var(--iv-ivory);
}
.iv-cta-band .iv-cta-primary {
  background: #fff;
  color: var(--iv-canopy);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.4);
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .iv-pain-card, .iv-cta-primary { transition: none; }
  .iv-pain-card:hover { transform: none; }
}
