/* ==========================================================================
   TITANIUM EVENTS — LEAD GENERATION SYSTEM
   floating-cta.css  |  v3.0
   Applies to all pages via <link rel="stylesheet" href="floating-cta.css" />
   ========================================================================== */

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --fc-navy:       #0A1628;
  --fc-navy-mid:   #1E2D3D;
  --fc-gold:       #C9A84C;
  --fc-gold-bg:    rgba(201,168,76,0.10);
  --fc-gold-bdr:   rgba(201,168,76,0.28);
  --fc-white:      #FFFFFF;
  --fc-off:        #F8F7F4;
  --fc-text:       #1C2B3A;
  --fc-muted:      #6B7280;
  --fc-border:     #E5E0D8;
  --fc-success:    #16A34A;
  --fc-shadow:     0 16px 48px rgba(10,22,40,0.22);
  --fc-shadow-sm:  0 4px 16px rgba(10,22,40,0.12);
  --fc-r-sm:       8px;
  --fc-r-md:       16px;
  --fc-r-lg:       24px;
  --fc-ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --fc-dur:        360ms;
}

/* ==========================================================================
   1. FLOATING CALLBACK CARD  (CTA 1 / 5 / 7)
   Position: bottom-right, above sticky bar
   ========================================================================== */

.fc-card-wrap {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 8800;
  width: 320px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity var(--fc-dur) var(--fc-ease),
              transform var(--fc-dur) var(--fc-ease);
}
.fc-card-wrap--in {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Minimised: hide body, shrink card */
.fc-card-wrap--min .fc-card__body   { display: none; }
.fc-card-wrap--min .fc-card         { border-radius: var(--fc-r-md); }

.fc-card {
  background: var(--fc-white);
  border-radius: var(--fc-r-md);
  box-shadow: var(--fc-shadow);
  border: 1px solid var(--fc-border);
  overflow: hidden;
}

/* Gold top accent */
.fc-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--fc-gold), rgba(201,168,76,0.35));
}

.fc-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px 0;
  gap: 8px;
}

.fc-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--fc-gold-bg);
  border: 1px solid var(--fc-gold-bdr);
  color: var(--fc-gold);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  line-height: 1.4;
}

.fc-card__actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  margin-top: 1px;
}

.fc-card__min,
.fc-card__close {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fc-muted);
  border-radius: 5px;
  padding: 0;
  line-height: 1;
  transition: color 0.18s, background 0.18s;
}
.fc-card__min:hover,
.fc-card__close:hover {
  color: var(--fc-text);
  background: var(--fc-off);
}
.fc-card__min svg,
.fc-card__close svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.fc-card__body {
  padding: 10px 16px 16px;
}

.fc-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--fc-navy);
  line-height: 1.3;
  margin: 8px 0 3px;
}

.fc-card__sub {
  font-size: 0.78rem;
  color: var(--fc-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.fc-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fc-card__bullets li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.77rem;
  color: var(--fc-text);
  line-height: 1.4;
}
.fc-card__bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--fc-gold-bg) url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l3 3 5-5' stroke='%23C9A84C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
  border: 1px solid var(--fc-gold-bdr);
}

/* ==========================================================================
   SHARED — Form fields, button, trust badges, hint, success
   ========================================================================== */

.fc-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fc-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--fc-border);
  border-radius: var(--fc-r-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  color: var(--fc-text);
  background: var(--fc-off);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.fc-field input:focus {
  outline: none;
  border-color: var(--fc-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.13);
  background: var(--fc-white);
}
.fc-field input::placeholder { color: #A0A8B4; }
.fc-field input.fc-err       { border-color: #EF4444; }
.fc-field input.fc-err:focus  { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }

.fc-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--fc-navy);
  color: var(--fc-white);
  border: none;
  border-radius: var(--fc-r-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.fc-btn:hover   { background: var(--fc-navy-mid); transform: translateY(-1px); }
.fc-btn:active  { transform: translateY(0); }
.fc-btn--gold   { background: var(--fc-gold); color: var(--fc-navy); }
.fc-btn--gold:hover { background: #b8963e; }

.fc-hint {
  font-size: 0.68rem;
  color: var(--fc-muted);
  text-align: center;
  margin-top: 7px;
  line-height: 1.4;
}

/* Trust badges */
.fc-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--fc-border);
}
.fc-trust__item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.67rem;
  color: var(--fc-muted);
  line-height: 1.3;
}
.fc-trust__item svg {
  width: 11px;
  height: 11px;
  stroke: var(--fc-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Success state */
.fc-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  gap: 8px;
}
.fc-success--show { display: flex !important; }

.fc-success__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(22,163,74,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.fc-success__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--fc-success);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fc-success__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fc-navy);
}
.fc-success__msg {
  font-size: 0.79rem;
  color: var(--fc-muted);
  line-height: 1.6;
}

/* ==========================================================================
   2. STICKY BOTTOM BAR  (CTA 2)
   ========================================================================== */

.fc-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8700;
  background: var(--fc-navy);
  border-top: 2px solid var(--fc-gold);
  transform: translateY(100%);
  transition: transform var(--fc-dur) var(--fc-ease);
  will-change: transform;
}
.fc-bar--in { transform: translateY(0); }

.fc-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fc-bar__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.fc-bar__label {
  font-size: 0.62rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.fc-bar__msg {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--fc-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.fc-bar__trust {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.67rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.fc-bar__trust svg {
  width: 11px;
  height: 11px;
  stroke: var(--fc-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.fc-bar__btn {
  padding: 9px 20px;
  background: var(--fc-gold);
  color: var(--fc-navy);
  border: none;
  border-radius: var(--fc-r-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.fc-bar__btn:hover { background: #b8963e; transform: translateY(-1px); }

.fc-bar__dismiss {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.fc-bar__dismiss:hover {
  background: rgba(255,255,255,0.15);
  color: var(--fc-white);
}
.fc-bar__dismiss svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ==========================================================================
   3. EXIT INTENT POPUP  (CTA 3)
   ========================================================================== */

.fc-exit-bd {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.70);
  z-index: 9200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fc-dur) var(--fc-ease);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.fc-exit-bd--in {
  opacity: 1;
  pointer-events: auto;
}

.fc-exit {
  position: fixed;
  inset: 0;
  z-index: 9300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.94) translateY(16px);
  transition: opacity var(--fc-dur) var(--fc-ease),
              transform var(--fc-dur) var(--fc-ease);
}
.fc-exit--in {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.fc-exit__box {
  background: var(--fc-white);
  border-radius: var(--fc-r-lg);
  box-shadow: var(--fc-shadow);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  position: relative;
}

/* Navy header */
.fc-exit__top {
  background: var(--fc-navy);
  padding: 26px 26px 20px;
  position: relative;
  border-bottom: 3px solid var(--fc-gold);
}

.fc-exit__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  transition: background 0.2s, color 0.2s;
}
.fc-exit__close:hover  { background: rgba(255,255,255,0.16); color: #fff; }
.fc-exit__close:focus-visible { outline: 2px solid var(--fc-gold); outline-offset: 2px; }
.fc-exit__close svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.fc-exit__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fc-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.fc-exit__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--fc-white);
  line-height: 1.25;
  margin-bottom: 7px;
}

.fc-exit__sub {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.55;
}

/* Body */
.fc-exit__body {
  padding: 22px 26px 26px;
}

.fc-exit__offers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.fc-exit__offer {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--fc-text);
  font-weight: 500;
  line-height: 1.4;
}
.fc-exit__offer::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fc-gold-bg) url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l3 3 5-5' stroke='%23C9A84C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid var(--fc-gold-bdr);
}

/* All 5 trust signals in exit */
.fc-exit__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--fc-border);
}

/* ==========================================================================
   9. INLINE GALLERY CTA  (CTA 9)
   Injected after .portfolio-grid sections
   ========================================================================== */

.fc-gallery-cta {
  margin: 56px 0 24px;
  background: linear-gradient(135deg, var(--fc-navy) 0%, #112040 100%);
  border-radius: var(--fc-r-md);
  padding: 44px 52px;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.fc-gallery-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fc-gold), rgba(201,168,76,0.3));
}
/* decorative gold circle */
.fc-gallery-cta::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 40px solid rgba(201,168,76,0.07);
  pointer-events: none;
}

.fc-gallery-cta__text { flex: 1; min-width: 0; }

.fc-gallery-cta__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fc-gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.fc-gallery-cta__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--fc-white);
  line-height: 1.2;
  margin-bottom: 7px;
}
.fc-gallery-cta__sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.5;
}

.fc-gallery-cta__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
  flex-shrink: 0;
}

.fc-gallery-cta .fc-field input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: var(--fc-white);
}
.fc-gallery-cta .fc-field input::placeholder { color: rgba(255,255,255,0.38); }
.fc-gallery-cta .fc-field input:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--fc-gold);
}
.fc-gallery-cta .fc-trust {
  border-top-color: rgba(255,255,255,0.12);
}
.fc-gallery-cta .fc-trust__item { color: rgba(255,255,255,0.42); }

/* ==========================================================================
   10. BLOG MID-CONTENT CTA  (CTA 10)
   Injected halfway through blog card list
   ========================================================================== */

.fc-blog-cta {
  margin: 32px 0;
  background: var(--fc-off);
  border: 1px solid var(--fc-border);
  border-left: 4px solid var(--fc-gold);
  border-radius: 0 var(--fc-r-sm) var(--fc-r-sm) 0;
  padding: 26px 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.fc-blog-cta__icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.fc-blog-cta__body { flex: 1; min-width: 0; }
.fc-blog-cta__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fc-navy);
  margin-bottom: 3px;
  line-height: 1.3;
}
.fc-blog-cta__sub {
  font-size: 0.78rem;
  color: var(--fc-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.fc-blog-cta__row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.fc-blog-cta__row .fc-field { flex: 1; }
.fc-blog-cta__row .fc-field + .fc-field { flex: 1; }
.fc-blog-cta__row .fc-btn  { width: auto; padding: 11px 18px; flex-shrink: 0; }
.fc-blog-cta .fc-trust { border-top: none; padding-top: 8px; margin-top: 8px; }

/* ==========================================================================
   BODY LOCK  (when exit popup open)
   ========================================================================== */
body.fc-locked { overflow: hidden; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet and below */
@media (max-width: 1024px) {
  .fc-bar__trust { display: none; }
}

@media (max-width: 768px) {
  /* Card: full-width above bar */
  .fc-card-wrap {
    bottom: 68px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  /* Bar shorter on mobile */
  .fc-bar__inner {
    height: 55px;
    padding: 0 16px;
  }
  .fc-bar__msg { font-size: 0.85rem; }
  .fc-bar__btn { padding: 8px 14px; font-size: 0.78rem; }

  /* Exit: tighter padding */
  .fc-exit__top  { padding: 20px 20px 16px; }
  .fc-exit__body { padding: 18px 20px 22px; }
  .fc-exit__title { font-size: 1.3rem; }

  /* Gallery CTA stacks */
  .fc-gallery-cta {
    flex-direction: column;
    padding: 28px 24px 32px;
    gap: 24px;
  }
  .fc-gallery-cta__side { min-width: auto; width: 100%; }
  .fc-gallery-cta__title { font-size: 1.45rem; }

  /* Blog CTA stacks */
  .fc-blog-cta { flex-direction: column; gap: 14px; padding: 20px 20px 22px; }
  .fc-blog-cta__row { flex-direction: column; }
  .fc-blog-cta__row .fc-btn { width: 100%; }
}

@media (max-width: 480px) {
  .fc-exit__title  { font-size: 1.2rem; }
  .fc-bar__msg     { font-size: 0.80rem; }
}
