/* ============================================================
   IPS26 Dubai Edition: CTA band + WhatsApp float
   Pairs with partials/cta-and-whatsapp.html.
   Brand: RT golden standard. Dark surface => pure #fff text, gold #c5a55a
   at full brightness, border-radius 0, 180ms ease transitions,
   container min(1160px, calc(100vw - 2rem)).
   ============================================================ */

/* ---- A. CTA band ------------------------------------------------ */
.ips-cta {
  background: #1a1a1a;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3.5rem 0 3.25rem;
  margin: 3rem 0 0;
  width: 100%;
}
/* The footer already adds its own 3rem top margin; collapse the seam so the
   two dark surfaces sit flush. */
.ips-cta ~ .cf-footer { margin-top: 0; }

.ips-cta-container {
  width: min(1160px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 0 1rem;
}
.ips-cta-eyebrow {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c5a55a;
  margin: 0 0 0.75rem;
}
.ips-cta-heading {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 2rem;
}
.ips-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.ips-cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f0f0f;
  padding: 1.75rem 1.75rem 1.6rem;
  transition: border-color 180ms ease;
}
.ips-cta-card:hover { border-color: rgba(197, 165, 90, 0.5); }
.ips-cta-card-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 0.75rem;
}
.ips-cta-card-text {
  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 1.4rem;
  flex: 1 1 auto;
}
.ips-cta-btn,
.ips-cta-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #c5a55a;
  background: rgba(197, 165, 90, 0.12);
  border: 1px solid #c5a55a;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
  border-radius: 0;
  transition: background 180ms ease, color 180ms ease;
}
.ips-cta-btn:hover,
.ips-cta-btn:focus-visible {
  background: #c5a55a;
  color: #0f0f0f;
  outline: none;
}

@media (max-width: 768px) {
  .ips-cta { padding: 2.75rem 0 2.5rem; }
  .ips-cta-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ips-cta-card { padding: 1.4rem 1.25rem 1.3rem; }
  .ips-cta-heading { margin-bottom: 1.5rem; }
  /* CTA buttons are left-aligned; the collapsed 56px WhatsApp icon sits
     bottom-right (1rem inset), so the two never overlap. The expanded
     full-width bar is transient (MSN26 behaviour: 5s on load, then 3x3s on
     scroll) and dismisses itself. */
}

/* ---- B. WhatsApp floating button, gold ---------------------------
   Copied verbatim from events/msn26-warsaw/website/css/overrides.css
   (".wa-float" block). Do not restyle. */
.wa-float {
  box-sizing: border-box; /* the site reset already sets this; repeated so the standalone preview matches */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid rgba(197, 165, 90, 0.4);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.wa-float, .wa-float:hover, .wa-float:visited, .wa-float:active {
  text-decoration: none !important;
  color: #c5a55a !important;
}
.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 24px rgba(197, 165, 90, 0.4);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}
/* WhatsApp expanded state: shows label, then collapses to icon only */
.wa-float.wa-expanded {
  width: auto;
  border-radius: 28px;
  padding: 0.6rem 1.2rem 0.6rem 0.8rem;
  gap: 0.6rem;
}
.wa-float .wa-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c5a55a;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 400ms ease, opacity 300ms ease, margin 300ms ease;
  margin-left: 0;
}
.wa-float.wa-expanded .wa-label {
  max-width: 300px;
  opacity: 1;
  margin-left: 0.4rem;
}
@media (max-width: 768px) {
  .wa-float {
    bottom: 1rem;
    right: 1rem;
  }
  .wa-float.wa-expanded {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-top: 1px solid rgba(197, 165, 90, 0.3);
  }
  .wa-float.wa-expanded .wa-label {
    font-size: 0.85rem;
  }
}
