/* ==========================================================================
   Quotation Formats — 01 Hero
   Paste into the block's WP Coder shortcode (CSS tab), or WPCode > CSS Snippet.
   Fully scoped to .vyq-hero — safe to load on any page, in any order.

   The markup is native Gutenberg blocks, so this file also has to restyle the
   core block wrappers (.wp-block-columns, .wp-block-button__link, figure) that
   WordPress emits around the content.
   ========================================================================== */

/* --- Design tokens (scoped: they never leak to the rest of the page) ------ */
.vyq-hero {
  --vyq-primary: #ED1A3B !important;
  --vyq-primary-hover: #C41530 !important;
  --vyq-text: #1F2937 !important;
  --vyq-text-mid: #4B5563 !important;
  --vyq-text-light: #6B7280 !important;
  --vyq-border-light: #F3F4F6 !important;
  --vyq-white: #FFFFFF !important;
  --vyq-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  --vyq-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  --vyq-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* --- Base ----------------------------------------------------------------- */
.vyq-hero,
.vyq-hero * {
  box-sizing: border-box !important;
  /* Reset only has to beat the theme defaults. Equal specificity to the
     rules below, so it must stay first in the file — they re-apply the
     spacing this block actually wants. */
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Classic-theme group wrapper ------------------------------------------
   On a classic theme (Sydney), WordPress wraps every group block's children in
   an extra .wp-block-group__inner-container div at render time — it is not in
   the pasted markup. That wrapper would be the only child of our grid/flex
   containers, so every layout below would collapse to one column.
   display: contents takes it out of the layout without removing it. */
.vyq-hero .wp-block-group__inner-container {
  display: contents !important;
}

.vyq-hero {
  font-family: var(--vyq-font) !important;
  color: var(--vyq-text) !important;
  line-height: 1.6 !important;
  background: var(--vyq-white) !important;
  border-bottom: 1px solid var(--vyq-border-light) !important;
  /* Full-bleed: the hero ignores the theme's content width. Delete this block
     to keep the hero inside the normal page container. */
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 -50vw !important;
  padding: 56px 0 48px !important;
  overflow-x: hidden !important;
}

/* --- Layout (core columns block) ------------------------------------------ */
.vyq-hero-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px !important;
  align-items: center !important;
}

/* WordPress writes inline flex-basis on .wp-block-column — the grid above owns
   the widths, so neutralise it */
.vyq-hero-inner > .wp-block-column {
  flex-basis: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* --- Trust badge ---------------------------------------------------------- */
.vyq-hero-trust {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(237, 26, 59, 0.1) !important;
  color: var(--vyq-primary) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
}

/* Star icon as a data URI so the paragraph stays plain text for editors */
.vyq-hero-trust::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23ED1A3B'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") !important;
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  line-height: 0 !important;
  flex-shrink: 0 !important;
}

/* --- Headline ------------------------------------------------------------- */
.vyq-hero-title {
  font-family: var(--vyq-font) !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  color: var(--vyq-text) !important;
  line-height: 1.15 !important;
  margin-bottom: 10px !important;
}

/* The red words are <strong> — Gutenberg's rich text keeps bold across edits,
   whereas it can strip a bare <span class="…"> */
.vyq-hero-title strong {
  color: var(--vyq-primary) !important;
  font-weight: 700 !important;
}

.vyq-hero-tagline {
  font-size: 18px !important;
  color: var(--vyq-text-mid) !important;
  font-weight: 500 !important;
  margin-bottom: 16px !important;
}

.vyq-hero-desc {
  font-size: 15px !important;
  color: var(--vyq-text-light) !important;
  line-height: 1.7 !important;
  margin-bottom: 24px !important;
  max-width: 560px !important;
}

/* --- CTA (core button block) ---------------------------------------------- */
.vyq-hero-ctas {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.vyq-hero-cta-primary .wp-block-button__link,
.vyq-hero-cta-primary .wp-block-button__link:hover,
.vyq-hero-cta-primary .wp-block-button__link:focus,
.vyq-hero-cta-primary .wp-block-button__link:visited {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--vyq-primary) !important;
  color: var(--vyq-white) !important;
  padding: 13px 26px !important;
  /* Sydney Pro forces border-radius: 25px on buttons — override it */
  border-radius: 8px !important;
  border: none !important;
  font-family: var(--vyq-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: var(--vyq-shadow-sm) !important;
  transition: all 0.2s ease !important;
}

.vyq-hero-cta-primary .wp-block-button__link:hover,
.vyq-hero-cta-primary .wp-block-button__link:focus {
  background: var(--vyq-primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--vyq-shadow-md) !important;
}

.vyq-hero-cta-primary .wp-block-button__link::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 8l4 4m0 0l-4 4m4-4H3'/%3E%3C/svg%3E") !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  line-height: 0 !important;
  flex-shrink: 0 !important;
}

/* --- Visual (core image block) -------------------------------------------- */
.vyq-hero-visual {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.vyq-hero-image {
  width: 100% !important;
}

/* The class sits on the <figure>; WordPress writes width/height attributes on
   the <img> itself, so both need overriding */
.vyq-hero-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  object-fit: contain !important;
  display: block !important;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 992px) {
  .vyq-hero-inner {
    grid-template-columns: 1fr !important;
  }
  .vyq-hero-visual {
    display: none !important;
  }
  .vyq-hero-title {
    font-size: 32px !important;
  }
}

@media (max-width: 640px) {
  .vyq-hero {
    padding: 36px 0 32px !important;
  }
  .vyq-hero-inner {
    padding: 0 16px !important;
  }
  .vyq-hero-title {
    font-size: 26px !important;
  }
  .vyq-hero-tagline {
    font-size: 15px !important;
  }
}
