/*
 * v5.53 — Enquiry CTAs (App\Site\EnquiryCta) between the sections of a Tour, Destination or Destination hub page.
 * Linked once, from the first CTA a page draws, so pages without CTAs load nothing new. Scoped to .iv-ecta: no other part of
 * the site changes. Buttons follow the v5.51 enquiry buttons (deep navy for Contact, bright green for WhatsApp).
 *   strip  — a slim band: heading and line on the left, the buttons on the right
 *   card   — a featured navy card with a gold icon, for key points of a long page
 *   simple — heading, description and the buttons under them, centred
 * v5.53.1: every CTA text is the site's Manrope (fonts.css; Tour pages already re-point their heading font to it, Destination
 * pages do not, so the heading no longer follows the page's heading font); strip and simple take the placement's background
 * (--ecta-bg, default #edf2f2) and, on a dark one (.iv-ecta--on-dark), white text.
 */
.iv-ecta {
  --ecta-navy: var(--iv-navy, #25304a);
  --ecta-navy-top: #1c3370;
  --ecta-navy-mid: #10224f;
  --ecta-navy-bottom: #0a1838;
  --ecta-green-top: #2fc25a;
  --ecta-green: #1fa843;
  --ecta-green-bottom: #138a33;
  --ecta-gold: var(--iv-gold, #bd9144);
  --ecta-gold-light: var(--iv-gold-light, #d8ac73);
  --ecta-text: var(--iv-text, #626262);
  --ecta-font: var(--iv-font-body, 'Manrope', system-ui, sans-serif);
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) 0;
  background: var(--iv-white, #fff);
  font-family: var(--ecta-font);
}
.iv-ecta__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
/* the text takes the room; when the buttons no longer fit beside it, they move under it (no squeezed column) */
.iv-ecta__text { flex: 1 1 22rem; min-width: 0; }
.iv-ecta__heading { margin: 0; font-family: var(--ecta-font); font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); font-weight: 600; line-height: 1.25; color: var(--ecta-navy); }
.iv-ecta__description { margin: .35rem 0 0; font-size: 1rem; line-height: 1.55; color: var(--ecta-text); }
.iv-ecta__actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

/* the buttons */
.iv-ecta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.125rem; margin: 0; padding: .7rem 1.4rem; border: 2px solid transparent; border-radius: 10px;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap;
  color: #fff; cursor: pointer; transition: transform .12s ease, filter .15s ease, background-color .15s ease, color .15s ease;
}
.iv-ecta__btn-icon { flex: none; width: 1.3rem; height: 1.3rem; fill: currentColor; }
.iv-ecta__btn--whatsapp { background: linear-gradient(180deg, var(--ecta-green-top) 0%, var(--ecta-green) 55%, var(--ecta-green-bottom) 100%); }
.iv-ecta__btn--contact { background: linear-gradient(180deg, var(--ecta-navy-top) 0%, var(--ecta-navy-mid) 55%, var(--ecta-navy-bottom) 100%); }
.iv-ecta__btn:hover { color: #fff; filter: brightness(1.1) saturate(1.05); transform: translateY(-1px); text-decoration: none; }
.iv-ecta__btn:active { transform: translateY(0); filter: brightness(.96); }
.iv-ecta__btn:focus-visible { outline: 3px solid var(--ecta-gold); outline-offset: 3px; }
.iv-ecta__btn--contact .iv-ecta__btn-icon { fill: none; stroke: currentColor; }

/* Style A: compact strip */
.iv-ecta--strip { background: var(--ecta-bg, #edf2f2); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) 0; }
.iv-ecta--strip .iv-ecta__description { font-size: .95rem; }

/* Style B: featured card */
.iv-ecta--card .iv-ecta__inner {
  max-width: 64rem; margin: 0 auto; padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) clamp(1.25rem, .75rem + 2vw, 2.5rem);
  border-radius: var(--iv-radius, 15px);
  background: linear-gradient(135deg, #2b3856 0%, var(--ecta-navy) 45%, #1b2338 100%);
}
.iv-ecta--card .iv-ecta__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: rgba(216, 172, 115, .16); color: var(--ecta-gold-light);
}
.iv-ecta--card .iv-ecta__icon .iv-icon { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; }
.iv-ecta--card .iv-ecta__heading { color: #fff; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); }
.iv-ecta--card .iv-ecta__description { color: rgba(255, 255, 255, .82); }
.iv-ecta--card .iv-ecta__btn--contact { background: transparent; border-color: rgba(255, 255, 255, .7); }
.iv-ecta--card .iv-ecta__btn--contact:hover { background: #fff; color: var(--ecta-navy); filter: none; }

/* Style C: simple — heading, then description, then the buttons under them; centred */
.iv-ecta--simple { background: var(--ecta-bg, #edf2f2); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0; }
.iv-ecta--simple .iv-ecta__inner { flex-direction: column; flex-wrap: nowrap; align-items: center; text-align: center; gap: 1rem; }
.iv-ecta--simple .iv-ecta__text { flex: 0 0 auto; max-width: 44rem; }
.iv-ecta--simple .iv-ecta__heading { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
.iv-ecta--simple .iv-ecta__actions { justify-content: center; }
.iv-ecta--simple .iv-ecta__btn--contact { background: transparent; border-color: var(--ecta-navy); color: var(--ecta-navy); }
.iv-ecta--simple .iv-ecta__btn--contact:hover { background: var(--ecta-navy); color: #fff; filter: none; }

/* strip and simple on a dark background: white text; Contact as a white outline (WhatsApp keeps its green) */
.iv-ecta--on-dark .iv-ecta__heading { color: #fff; }
.iv-ecta--on-dark .iv-ecta__description { color: rgba(255, 255, 255, .88); }
.iv-ecta--on-dark .iv-ecta__btn--contact, .iv-ecta--simple.iv-ecta--on-dark .iv-ecta__btn--contact { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.iv-ecta--on-dark .iv-ecta__btn--contact:hover, .iv-ecta--simple.iv-ecta--on-dark .iv-ecta__btn--contact:hover { background: #fff; color: var(--ecta-navy); filter: none; }
.iv-ecta--on-dark .iv-ecta__btn:focus-visible { outline-color: #fff; }

/* tablet: under the text, the buttons line up with it */
@media (max-width: 900px) {
  .iv-ecta--card .iv-ecta__inner { align-items: flex-start; }
}
/* phone: stacked, full-width buttons, compact */
@media (max-width: 600px) {
  .iv-ecta__inner { flex-direction: column; align-items: stretch; gap: .9rem; text-align: left; }
  .iv-ecta__text, .iv-ecta--simple .iv-ecta__text { flex: 0 0 auto; } /* in a column the basis would be a height */
  .iv-ecta--card .iv-ecta__inner { align-items: flex-start; }
  .iv-ecta--card .iv-ecta__icon { display: none; } /* decoration only: kept off phones to keep the card short */
  .iv-ecta__actions { flex-direction: column; align-items: stretch; width: 100%; gap: .6rem; }
  .iv-ecta__btn { width: 100%; white-space: normal; }
  .iv-ecta__btn { min-height: 3rem; }
  .iv-ecta--simple .iv-ecta__inner { text-align: center; align-items: center; }
  .iv-ecta--simple .iv-ecta__actions { max-width: 26rem; }
}
@media (prefers-reduced-motion: reduce) {
  .iv-ecta__btn { transition: none; }
  .iv-ecta__btn:hover { transform: none; }
}
