/* ── Service Hero Block ─────────────────────────────────────────────────────
   Dark full-width hero for service pages.
   Background + gradient on .wp-block-imagewize-service-hero
   Content constrained inside .service-hero__content
   ────────────────────────────────────────────────────────────────────────── */

.wp-block-imagewize-service-hero {
  background: #0e0e0e;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Dual radial blue gradient overlay */
.wp-block-imagewize-service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(37, 99, 235, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 10% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Content wrapper — constrained to wideSize (64rem), left-aligned */
.service-hero__content {
  max-width: var(--wp--style--global--wide-size, 64rem);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-left: var(--wp--preset--spacing--50);
  padding-right: var(--wp--preset--spacing--50);
}

/* Reset WP flow layout top margin on all direct children */
.service-hero__content > * {
  margin-top: 0 !important;
}

/* ── Eyebrow (core/paragraph styled as pill) ─────────────────────────────── */
.service-hero__eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #93c5fd !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px !important;
  border-radius: 100px;
  margin-bottom: 28px !important;
  max-width: max-content;
  line-height: 1.4;
}

/* Search icon via ::before */
.service-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2393c5fd' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Title ───────────────────────────────────────────────────────────────── */
.service-hero__title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #ffffff;
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 24px !important;
}

/* Italic em → blue highlight */
.service-hero__title em {
  font-style: italic;
  color: #93c5fd;
}

/* ── Lead paragraph ──────────────────────────────────────────────────────── */
.service-hero__lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-bottom: 36px !important;
  line-height: 1.8;
  font-weight: 300;
}

/* ── CTA Buttons ─────────────────────────────────────────────────────────── */
.service-hero__ctas.wp-block-buttons {
  gap: 12px;
  flex-wrap: wrap;
}

/* Primary button — design accent #2563eb */
.service-hero__ctas .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-hero__ctas .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

/* Arrow icon after primary button label */
.service-hero__ctas .wp-block-button:not(.is-style-outline) .wp-block-button__link::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Outline / ghost button */
.service-hero__ctas .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.service-hero__ctas .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* ── Entrance animations ─────────────────────────────────────────────────── */
@keyframes service-hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-hero__eyebrow {
  animation: service-hero-fade-up 0.5s ease both;
}

.service-hero__title {
  animation: service-hero-fade-up 0.5s 0.1s ease both;
}

.service-hero__lead {
  animation: service-hero-fade-up 0.5s 0.2s ease both;
}

.service-hero__ctas.wp-block-buttons {
  animation: service-hero-fade-up 0.5s 0.3s ease both;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .wp-block-imagewize-service-hero {
    padding: 56px 0 52px;
  }
}
