/**
 * Italy Made Easy — Component Library
 * Reusable classes. Apply to HTML — never rewrite these patterns per page.
 * Source of truth: pai-core/brand/design-visual-standards.md
 */

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

/* Base — applied to all buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-7);
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-normal);
}

.btn:hover {
  text-decoration: none;
}

/* Primary — gradient CTA (blue→pink) */
.btn-primary {
  background: var(--grad-primary);
  background-origin: border-box;
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 144, 255, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 144, 255, 0.35);
  color: var(--color-white);
}

/* Secondary — blue outline */
.btn-secondary {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-secondary:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

/* Pill modifier — add to any button variant */
.btn-pill {
  border-radius: var(--r-pill);
}

/* Large modifier */
.btn-lg {
  padding: var(--sp-4) var(--sp-9);
  font-size: var(--font-size-body-lg);
}

/* Small modifier */
.btn-sm {
  padding: var(--sp-2) var(--sp-5);
  font-size: 0.72rem;
  border-radius: var(--r-xs);
}

/* Shimmer — animated light sweep across gradient (self-contained) */
.btn-shimmer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-white);
  background: var(--grad-primary);
  background-origin: border-box;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 144, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: ime-shimmer 3s infinite;
}

.btn-shimmer:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 144, 255, 0.4);
  color: var(--color-white);
  text-decoration: none;
}

@keyframes ime-shimmer {
  to { left: 100%; }
}

/* Orbit — rotating conic gradient border, dark fill variant */
.btn-orbit {
  color: #ffffff;
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-orbit::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: conic-gradient(var(--color-blue), var(--color-pink), var(--color-yellow), var(--color-blue));
  animation: ime-orbit 3s linear infinite;
  z-index: -1;
}

.btn-orbit::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--r-sm) - 2px);
  background: rgba(28, 52, 71, 0.90);
  z-index: -1;
  transition: background 0.25s ease;
}

@keyframes ime-orbit {
  to { transform: rotate(360deg); }
}

/* Hover: the gradient glows outward — blue primary, pink whisper */
.btn-orbit:hover {
  color: #ffffff;
  filter: none;
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(0, 144, 255, 0.45),
    0 2px 10px rgba(233, 61, 130, 0.22);
}

.btn-orbit:hover::after {
  background: rgba(28, 52, 71, 0.72);
}

/* ═══════════════════════════════════════════════════════════
   CARD HOVER EFFECTS
   Apply to any card element alongside your card styles.
   ═══════════════════════════════════════════════════════════ */

/* Lift — rises up with deeper shadow */
.hover-lift {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Glow — blue border + soft glow ring */
.hover-glow {
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
  border: 1px solid var(--color-border);
}
.hover-glow:hover {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 144, 255, 0.15), var(--shadow-md);
}

/* Scale — subtle grow */
.hover-scale {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.hover-scale:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-md);
}

/* Bar — blue→pink gradient bar slides in from left at bottom */
.hover-bar {
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-slow);
}
.hover-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  transition: left var(--transition-slow);
}
.hover-bar:hover::after {
  left: 0;
}

/* Tint — background shifts to light blue */
.hover-tint {
  transition: background-color var(--transition-slow);
}
.hover-tint:hover {
  background-color: var(--color-blue-tint);
}

/* Pop — icon bounces (apply .icon class to the icon element inside) */
.hover-pop .icon,
.hover-pop svg,
.hover-pop img {
  transition: transform var(--transition-slow);
}
.hover-pop:hover .icon,
.hover-pop:hover svg,
.hover-pop:hover img {
  transform: scale(1.15) rotate(-3deg);
}

/* Bar + Tint — combines bar and tint */
.hover-bar-tint {
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-slow), box-shadow var(--transition-slow);
}
.hover-bar-tint::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  transition: left var(--transition-slow);
}
.hover-bar-tint:hover {
  background-color: var(--color-blue-tint);
}
.hover-bar-tint:hover::after {
  left: 0;
}

/* Italia — Italian flag tricolor bar */
.hover-italia {
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-slow);
}
.hover-italia::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--grad-italia);
  transition: left var(--transition-slow);
}
.hover-italia:hover::after {
  left: 0;
}

/* ═══════════════════════════════════════════════════════════
   GRADIENT UTILITIES
   ═══════════════════════════════════════════════════════════ */

/* Gradient text — blue→pink on any text element */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient background section */
.gradient-bg {
  background: var(--grad-subtle);
}

/* ═══════════════════════════════════════════════════════════
   SECTION SPACING UTILITIES
   ═══════════════════════════════════════════════════════════ */

.section {
  padding: var(--sp-11) var(--sp-10);
}

.section-sm {
  padding: var(--sp-9) var(--sp-10);
}

@media (max-width: 768px) {
  .section,
  .section-sm {
    padding: var(--sp-9) var(--sp-4);
  }
}

/* ═══════════════════════════════════════════════════════════
   CARD BASE
   Combine with a hover-* class for interaction.
   ═══════════════════════════════════════════════════════════ */

.card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}


/* ═══════════════════════════════════════════════════════════
   IME UNIFIED COMPONENTS
   Extracted from inline CSS across 28 templates.
   Prefix: ime-  — replaces per-page prefixes (ab-, tm2-, cm-, etc.)
   ═══════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────────────
   1. BUTTONS — ime-btn-*
   Replaces: ab-btn-*, tm2-btn-*, cm-btn-*, jn-btn-*, jc-btn-*,
   pr-btn-*, mb-btn-*, bmc-btn-*, fp-btn-*, liwa-btn-*,
   lm-btn-*, pod-btn-*, exp-btn-*, comp-btn, pron-btn, imm-btn
   ─────────────────────────────────────────────────────────── */

.ime-btn-primary {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 1.0rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 100, 255, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.ime-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 100, 255, 0.4);
  color: #fff;
  text-decoration: none;
}

.ime-btn-secondary {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--color-blue);
  background: transparent;
  border: 2px solid var(--color-blue);
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.ime-btn-secondary:hover {
  background: rgba(0, 144, 255, 0.08);
  transform: translateY(-2px);
  color: var(--color-blue);
  text-decoration: none;
}

.ime-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease;
}
.ime-btn-ghost::after {
  content: '\2192';
  transition: transform 0.25s ease;
}
.ime-btn-ghost:hover {
  color: var(--color-blue);
  text-decoration: none;
}
.ime-btn-ghost:hover::after {
  transform: translateX(4px);
}

.ime-btn-ghost-inv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease;
}
.ime-btn-ghost-inv::after {
  content: '\2192';
  transition: transform 0.25s ease;
}
.ime-btn-ghost-inv:hover {
  color: #fff;
  text-decoration: none;
}
.ime-btn-ghost-inv:hover::after {
  transform: translateX(4px);
}

/* Button modifiers */
.ime-btn-sm { padding: 14px 36px; font-size: var(--font-size-md); }
.ime-btn-flex { display: inline-flex; align-items: center; gap: 8px; }
.ime-btn-full { width: 100%; text-align: center; }

/* ── Mobile: buttons + pills ── */
@media(max-width:640px) {
  .btn-shimmer,
  .ime-btn-primary,
  .ime-btn-secondary {
    padding: 14px 28px;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
    width: fit-content;
    max-width: 100%;
  }
  .ime-pill {
    text-align: center;
    justify-content: center;
  }
}

/* ───────────────────────────────────────────────────────────
   2. PILLS / BADGES — ime-pill
   Replaces: ab-pill-*, tm2-pill-*, cm-pill-*, jn-pill-*,
   jc-pill-*, pr-pill, pod-pill-*, exp-pill-*, lm-pill-*,
   crs-pill, fp-pill, wol-pill, mb-pill, etc.
   ─────────────────────────────────────────────────────────── */

.ime-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 12px;
  padding: 6px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ime-pill--blue {
  background: rgba(0, 144, 255, 0.06);
  border: 1px solid rgba(0, 144, 255, 0.20);
  color: rgba(0, 144, 255, 0.85);
}

.ime-pill--blue-strong {
  background: rgba(0, 144, 255, 0.14);
  border: 1px solid rgba(0, 144, 255, 0.45);
  color: rgba(0, 144, 255, 0.95);
}

.ime-pill--pink {
  background: rgba(233, 61, 130, 0.06);
  border: 1px solid rgba(233, 61, 130, 0.20);
  color: rgba(233, 61, 130, 0.85);
}

.ime-pill--dark {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
}

.ime-pill--white {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: var(--color-text);
}


/* ───────────────────────────────────────────────────────────
   3. TRICOLOR DOTS — ime-tricolor-dots
   Replaces: all *-tricolor-dots, .tdots/.dg/.dw/.dr,
   .footer-italia, .wol-tricolor .g/.w/.r, etc.
   ─────────────────────────────────────────────────────────── */

.ime-tricolor-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ime-tricolor-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}
.ime-dot-green { background: var(--color-italia-green); }
.ime-dot-white { background: #fff; border: 1px solid #ddd; }
.ime-dot-red { background: var(--color-italia-red); }

/* Large variant — 9px dots */
.ime-tricolor-dots--lg span {
  width: 9px;
  height: 9px;
}
.ime-tricolor-dots--lg .ime-dot-white {
  border: none;
  box-shadow: 0 0 0 1px #ccc;
}


/* ───────────────────────────────────────────────────────────
   4. GRADIENT TEXT — ime-gradient-text
   Replaces: ab-gradient-word, cm-gradient-word, jn-gradient-word,
   tm2-grad, comp-gradient-text, pron-gradient-text, etc.
   ─────────────────────────────────────────────────────────── */

.ime-gradient-text {
  background: linear-gradient(135deg, var(--color-blue), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ime-gradient-text--pink {
  background: linear-gradient(90deg, var(--color-pink), #FF8CB4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ───────────────────────────────────────────────────────────
   5. CARD BASE — ime-card
   Replaces: ab-trust__card, tm2-stat-card, cm-meet-card,
   jn-feat-card, pr-included-card, etc.
   ─────────────────────────────────────────────────────────── */

.ime-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ime-card--tight    { padding: 24px 28px; }
.ime-card--normal   { padding: 32px; }
.ime-card--spacious { padding: 40px; }

.ime-card--elevated {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.ime-card--quote {
  border-left: 3px solid var(--color-blue);
  padding: 28px 24px;
}


/* ───────────────────────────────────────────────────────────
   6. FAQ ACCORDION — ime-faq-*
   Replaces: tm2-faq__*, jn-faq-*, jc-faq-*, pr-faq-*,
   liwa-faq__*, fzti-faq-*, comp-faq-*, mb-faq-*
   ─────────────────────────────────────────────────────────── */

/* Variant A: card-style item */
.ime-faq-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* Variant B: line-separator item */
.ime-faq-item--line {
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ime-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.25s ease;
}
.ime-faq-question:hover {
  color: var(--color-blue);
}

.ime-faq-chevron,
.ime-faq-question > svg {
  flex-shrink: 0;
  transition: transform 0.35s ease;
  width: 20px;
  height: 20px;
}
.ime-faq-item.is-open .ime-faq-chevron,
.ime-faq-item.is-open .ime-faq-question > svg {
  transform: rotate(180deg);
}

.ime-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.ime-faq-item.is-open .ime-faq-answer {
  max-height: 500px;
}

.ime-faq-answer-inner {
  padding: 0 24px 20px;
  font-size: var(--font-size-md);
  line-height: 1.7;
  color: var(--color-muted);
}


/* ───────────────────────────────────────────────────────────
   7. VIDEO PROOF CAROUSEL — ime-vid-*
   Replaces: tm2-vid-*, jn-vid-*, jc-vid-*, pr-vid-*
   (pixel-perfect clones across 4 templates)
   ─────────────────────────────────────────────────────────── */

.ime-vidproof {
  padding: var(--sp-11) 0;
  background: var(--grad-subtle);
  overflow: hidden;
}

.ime-vidproof-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--sp-10);
}

.ime-vidproof-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.ime-vidproof-header h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  color: var(--color-text);
  margin-top: var(--sp-3);
}

.ime-vidproof-header p {
  color: var(--color-muted);
  font-size: var(--font-size-body-lg);
  margin-top: var(--sp-3);
}

.ime-vidproof-carousel-wrap {
  position: relative;
}

.ime-vidproof-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ime-vidproof-carousel::-webkit-scrollbar { display: none; }

.ime-vid-card {
  flex: 0 0 calc(50% - 12px);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  scroll-snap-align: start;
}

.ime-vid-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .ime-vid-card { flex: 0 0 85%; }
}
@media (max-width: 640px) {
  .ime-vid-card { flex: 0 0 92%; }
}

.ime-vid-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
}
.ime-vid-play:hover {
  background: rgba(0, 0, 0, 0.4);
}

.ime-vid-play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.ime-vid-play:hover .ime-vid-play-btn {
  transform: scale(1.08);
}

.ime-vid-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-md);
  color: var(--color-white);
  font-size: 1.4rem;
  line-height: 1;
}
.ime-vid-arrow:hover {
  background: var(--color-blue);
  box-shadow: var(--shadow-lg);
}
.ime-vid-arrow.prev { left: -54px; }
.ime-vid-arrow.next { right: -54px; }

.ime-vid-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.ime-vid-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(28, 52, 71, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ime-vid-dot.active {
  background: var(--color-blue);
  transform: scale(1.3);
}

.ime-vid-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
}
.ime-vid-modal.active {
  display: flex;
}

.ime-vid-modal-content {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
}
.ime-vid-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--r-md);
}

.ime-vid-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.ime-vid-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}


/* ───────────────────────────────────────────────────────────
   8. FADE ANIMATIONS — ime-fade
   Replaces: cm-fade, jn-fade, jc-fade, pod-fade,
   exp-fade, lm-fade, etc.
   ─────────────────────────────────────────────────────────── */

@keyframes imeFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ime-fade {
  animation: imeFadeUp 0.7s ease forwards;
}

.ime-fade-d1 { animation-delay: 0.1s; opacity: 0; }
.ime-fade-d2 { animation-delay: 0.2s; opacity: 0; }
.ime-fade-d3 { animation-delay: 0.3s; opacity: 0; }
.ime-fade-d4 { animation-delay: 0.4s; opacity: 0; }
.ime-fade-d5 { animation-delay: 0.5s; opacity: 0; }
.ime-fade-d6 { animation-delay: 0.6s; opacity: 0; }


/* ───────────────────────────────────────────────────────────
   9. HERO PATTERNS — ime-hero-*
   Replaces: ab-hero, tm2-hero, cm-hero, jn-hero, jc-hero,
   pr-hero, pod-hero, exp-hero, comp-hero, pron-hero, etc.
   ─────────────────────────────────────────────────────────── */

/* Cinematic hero — full-bleed photo + overlay */
.ime-hero-cinematic {
  position: relative;
  min-height: clamp(560px, 80vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Dark gradient hero — no background photo */
.ime-hero-dark {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 120px 0 100px;
}

/* Hero background image layer */
.ime-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

/* Hero overlay layer (gradient on top of bg) */
.ime-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Hero inner container */
.ime-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width-site);
  margin: 0 auto;
  padding: 100px 32px;
}
.ime-hero-inner--narrow { max-width: 720px; }
.ime-hero-inner--mid    { max-width: 820px; }
.ime-hero-inner--wide   { max-width: var(--max-width-site); }

@media (max-width: 768px) {
  .ime-hero-inner {
    padding: 80px 24px;
  }
  .ime-hero-dark {
    padding: 100px 0 80px;
  }
}


/* ───────────────────────────────────────────────────────────
   10. HERO CONTENT — ime-hero-headline, ime-hero-sub,
       ime-hero-stats, ime-hero-stat, ime-hero-actions
   Replaces: ab-hero__headline, tm2-hero__headline, cm-headline,
   jn-headline, mb-headline, etc. across all templates.
   ─────────────────────────────────────────────────────────── */

/* Hero headline — used on every page with a hero section */
.ime-hero-headline {
  font-size: var(--font-size-hero);
  font-weight: 900;
  line-height: var(--line-height-hero);
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}

/* mobile weight now matches desktop (900) — rule no longer needed */

/* Light variant for dark-background heroes */
.ime-hero-headline--light {
  color: var(--color-white);
}

/* Hero subtext paragraph */
.ime-hero-sub {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 0;
  max-width: 520px;
}

.ime-hero-sub strong {
  color: var(--color-text);
  font-weight: 700;
}

/* Light variant for dark-background heroes */
.ime-hero-sub--light {
  color: rgba(255, 255, 255, 0.75);
}
.ime-hero-sub--light strong {
  color: var(--color-white);
}

/* Hero stat pills row */
.ime-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.ime-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(0, 144, 255, 0.08);
  border: 1px solid rgba(0, 144, 255, 0.15);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-blue);
}

/* Hero CTA wrapper */
.ime-hero-actions {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  align-self: flex-start;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-4);
}


/* ───────────────────────────────────────────────────────────
   11. SECTION SPACING — ime-section
   Replaces: per-page section padding definitions.
   ─────────────────────────────────────────────────────────── */

.ime-section {
  padding: 96px 0;
}

.ime-section--sm {
  padding: 64px 0;
}

.ime-section--lg {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .ime-section { padding: 64px 0; }
  .ime-section--sm { padding: 48px 0; }
  .ime-section--lg { padding: 80px 0; }
}


/* ───────────────────────────────────────────────────────────
   12. UTILITIES — ime-eyebrow, ime-container, ime-stars
   ─────────────────────────────────────────────────────────── */

/* Eyebrow label */
.ime-eyebrow {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
}

/* Container */
.ime-container {
  max-width: var(--max-width-site);
  margin: 0 auto;
  /*padding: 0 32px;*/
  width: 100%;
}
.ime-container--wide   { max-width: var(--max-width-site); }
.ime-container--narrow { max-width: 720px; }

@media (max-width: 768px) {
  .ime-container {
    padding: 0 20px;
  }
}

/* Star ratings — SVG icons */
.ime-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--color-gold);
}
.ime-stars svg {
  width: 20px;
  height: 20px;
  fill: var(--color-gold);
}
.ime-stars--sm svg { width: 16px; height: 16px; }
.ime-stars--lg svg { width: 24px; height: 24px; }

/* Star ratings — unicode text fallback */
.ime-star-text {
  color: var(--color-gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}


/* ───────────────────────────────────────────────────────────
   13. TYPOGRAPHY — ime-section-headline, ime-card-title,
       ime-card-subtitle, ime-caption
   Replaces: pr-headline, tm2-section-title, ab-section-head,
   jn-section-head, cm-section-title, mb-section-head, etc.
   ─────────────────────────────────────────────────────────── */

/* Section headline — every H2 below the hero */
.ime-section-headline {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-snug);
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
}

/* Consistent spacing when headline follows a pill */
.ime-pill + .ime-section-headline { margin-top: var(--sp-4); }

/* Light variant for dark-background sections */
.ime-section-headline--light {
  color: var(--color-white);
}

/* Card title — H3 inside cards */
.ime-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  color: var(--color-text);
  margin-bottom: var(--sp-2);
}

/* Card subtitle — H4 or secondary text in cards */
.ime-card-subtitle {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-muted);
}

/* Caption — small muted text (disclaimers, fine print, timestamps) */
.ime-caption {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-muted);
}
