/* ================================================================
   MIGHTY FINE — HERO WIDGET
   Fully scoped to .mf-hero-widget
   No global selectors. No CSS bleeding outside.
   Colors are CSS variables and overridable per widget instance.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..700,30..100;1,9..144,300..700,30..100&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ============== SCOPED TOKENS (defaults; overridable inline) ============== */
.mf-hero-widget {
  /* Brand color tokens — overridden via inline `style` from PHP per widget */
  --mf-navy-deep: #060c2e;
  --mf-navy: #0c1750;
  --mf-navy-bright: #2d44e8;
  --mf-cyan: #56c8f5;
  --mf-cyan-soft: #8fd7f4;
  --mf-cyan-glow: rgba(86, 200, 245, 0.4);
  --mf-pearl: #f0f9ff;
  --mf-text-light: #cfd9f0;
  --mf-text-muted: #a4b1d4;
  --mf-text-dim: #7b88ad;
  --mf-border-soft: rgba(143, 215, 244, 0.12);
  --mf-border-bright: rgba(143, 215, 244, 0.3);

  /* Typography tokens */
  --mf-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mf-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout tokens */
  --mf-radius-sm: 12px;
  --mf-radius-md: 18px;

  /* ============== FULL-BLEED BREAKOUT ============== */
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box;
}

/* Reset inside the widget only */
.mf-hero-widget,
.mf-hero-widget *,
.mf-hero-widget *::before,
.mf-hero-widget *::after {
  box-sizing: border-box;
}

/* ============== TYPOGRAPHY (scoped) ============== */
.mf-hero-widget h1,
.mf-hero-widget h2,
.mf-hero-widget h3,
.mf-hero-widget h4,
.mf-hero-widget h5,
.mf-hero-widget h6 {
  font-family: var(--mf-font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--mf-pearl);
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.mf-hero-widget p { margin: 0; }
.mf-hero-widget a { color: inherit; text-decoration: none; }
.mf-hero-widget img { display: block; max-width: 100%; height: auto; }

/* ============== EYEBROW ============== */
.mf-hero-widget .mf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mf-font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--mf-cyan);
  margin-bottom: 18px;
}

/* ============== BUTTONS ============== */
.mf-hero-widget .mf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--mf-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.mf-hero-widget .mf-btn-primary {
  background: linear-gradient(135deg, var(--mf-cyan) 0%, var(--mf-navy-bright) 100%);
  color: #fff;
  box-shadow: 0 12px 30px -8px var(--mf-cyan-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}

.mf-hero-widget .mf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px var(--mf-cyan-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}

.mf-hero-widget .mf-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.mf-hero-widget .mf-btn-primary:hover::after { left: 100%; }

.mf-hero-widget .mf-btn-ghost {
  background: transparent;
  color: var(--mf-pearl);
  border: 1.5px solid var(--mf-border-bright);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mf-hero-widget .mf-btn-ghost:hover {
  background: rgba(143, 215, 244, 0.08);
  border-color: var(--mf-cyan);
  color: var(--mf-cyan);
  transform: translateY(-2px);
}

.mf-hero-widget .mf-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mf-hero-widget .mf-btn-icon svg {
  width: 16px;
  height: 16px;
}

/* ============== HERO SECTION ============== */
.mf-hero-widget .mf-hero {
  position: relative;
  min-height: 80vh;
  padding: 90px 0 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--mf-navy-deep);
  color: var(--mf-pearl);
}

.mf-hero-widget .mf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mf-hero-widget .mf-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-hero-widget .mf-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at top right, rgba(45, 68, 232, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(86, 200, 245, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6, 12, 46, 0.7) 0%, rgba(6, 12, 46, 0.85) 100%);
}

.mf-hero-widget .mf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

.mf-hero-widget .mf-hero-content {
  max-width: 820px;
}

.mf-hero-widget .mf-hero-title {
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 300;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.mf-hero-widget .mf-hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--mf-cyan-soft);
  background: linear-gradient(135deg, var(--mf-cyan) 0%, var(--mf-cyan-soft) 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.mf-hero-widget .mf-hero-subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--mf-text-light);
  max-width: 620px;
  margin-bottom: 38px;
  font-weight: 400;
}

.mf-hero-widget .mf-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.mf-hero-widget .mf-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--mf-border-soft);
  max-width: 720px;
}

.mf-hero-widget .mf-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mf-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--mf-text-light);
  letter-spacing: 0.02em;
}

.mf-hero-widget .mf-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mf-cyan);
  flex-shrink: 0;
}

.mf-hero-widget .mf-trust-icon svg {
  width: 18px;
  height: 18px;
}

/* ============== SPARKLES ============== */
.mf-hero-widget .mf-sparkle {
  position: absolute;
  z-index: 2;
  color: var(--mf-cyan);
  pointer-events: none;
  animation: mf-twinkle 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px var(--mf-cyan-glow));
}

.mf-hero-widget .mf-sparkle svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes mf-twinkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* ============== WATER BEADS BG ============== */
.mf-hero-widget .mf-beads-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 28%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 1px, transparent 1.5px),
    radial-gradient(circle at 78% 18%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 1.5px, transparent 2px),
    radial-gradient(circle at 38% 78%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 0.8px, transparent 1.2px),
    radial-gradient(circle at 88% 62%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 1.2px, transparent 1.8px),
    radial-gradient(circle at 22% 88%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 1px, transparent 1.5px),
    radial-gradient(circle at 62% 42%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 1.5px, transparent 2px);
  background-size: 100% 100%;
  opacity: 0.4;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .mf-hero-widget .mf-hero-inner { padding: 0 24px; }
}

@media (max-width: 768px) {
  .mf-hero-widget .mf-hero {
    padding: 70px 0 80px;
    min-height: auto;
  }
  .mf-hero-widget .mf-hero-inner { padding: 0 28px; }
  .mf-hero-widget .mf-hero-title { font-size: clamp(34px, 5.8vw, 46px); line-height: 1.08; }
  .mf-hero-widget .mf-hero-overlay {
    background:
      radial-gradient(ellipse at top right, rgba(45, 68, 232, 0.4) 0%, transparent 50%),
      radial-gradient(ellipse at bottom left, rgba(86, 200, 245, 0.22) 0%, transparent 55%),
      linear-gradient(180deg, rgba(6, 12, 46, 0.85) 0%, rgba(6, 12, 46, 0.94) 100%);
  }
  .mf-hero-widget .mf-hero-ctas {
    flex-direction: column;
    gap: 10px;
  }
  .mf-hero-widget .mf-hero-ctas .mf-btn {
    width: 100%;
    justify-content: center;
  }
  .mf-hero-widget .mf-hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    padding-top: 26px;
  }
  .mf-hero-widget .mf-trust-item {
    font-size: 12px;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.35;
  }
  .mf-hero-widget .mf-trust-icon { flex-shrink: 0; }
}

@media (max-width: 480px) {
  .mf-hero-widget .mf-hero { padding: 50px 0 64px; }
  .mf-hero-widget .mf-hero-title { font-size: clamp(28px, 7vw, 36px); }
  .mf-hero-widget .mf-hero-subtitle { font-size: 15px; }
  .mf-hero-widget .mf-eyebrow { font-size: 11px; letter-spacing: 0.18em; }
  .mf-hero-widget .mf-btn {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }
}

/* ============== ELEMENTOR CONTAINER FIX ============== */
/* When this widget is dropped into Elementor, the container should not constrain it. */
.elementor-widget-mf-hero,
.elementor-widget-mf-hero .elementor-widget-container {
  padding: 0 !important;
}
