/* Shaashvat Films - cinematic "Let's Create" floating CTA (sf-create) */

.sf-create {
  --sf-cr-gold: #c4a574;
  --sf-cr-amber: #e8b86d;
  --sf-cr-accent: #e9204f;
  --sf-cr-bg: rgba(10, 10, 14, 0.94);
  --sf-cr-border: rgba(255, 255, 255, 0.1);
  --sf-cr-text: #f4f4f5;
  --sf-cr-muted: rgba(255, 255, 255, 0.62);
  --sf-cr-ease: cubic-bezier(0.22, 0.9, 0.22, 1);
  position: fixed;
  right: 1.25rem;
  bottom: 1.35rem;
  z-index: 10100;
  display: block;
  font-family: 'Open Sans', sans-serif;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sf-create.is-ready {
  opacity: 1;
  visibility: visible;
}

.sf-create__backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--sf-cr-ease), visibility 0.4s;
  pointer-events: none;
}

.sf-create.is-open .sf-create__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Expanded panel */
.sf-create__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 2rem));
  border-radius: 20px;
  overflow: hidden;
  background: var(--sf-cr-bg);
  border: 1px solid var(--sf-cr-border);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.45s var(--sf-cr-ease),
    transform 0.45s var(--sf-cr-ease),
    visibility 0.45s;
  pointer-events: none;
}

.sf-create.is-open .sf-create__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sf-create__media {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.sf-create__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s var(--sf-cr-ease);
}

.sf-create.is-open .sf-create__media img {
  transform: scale(1.12);
}

.sf-create__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 8, 0.15) 0%,
    rgba(5, 5, 8, 0.75) 55%,
    rgba(5, 5, 8, 0.95) 100%
  );
  pointer-events: none;
}

.sf-create__grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.sf-create__shine {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 165, 116, 0.55), transparent);
  z-index: 2;
}

.sf-create__body {
  position: relative;
  padding: 1rem 1.15rem 1.1rem;
  margin-top: -2.5rem;
}

.sf-create__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.sf-create__close:hover {
  background: rgba(233, 32, 79, 0.35);
  color: #fff;
}

.sf-create__eyebrow {
  margin: 0 0 0.35rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sf-cr-gold);
}

.sf-create__title {
  margin: 0 0 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--sf-cr-text);
  letter-spacing: 0.02em;
}

.sf-create__lead {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--sf-cr-muted);
}

.sf-create__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sf-create__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition:
    transform 0.35s var(--sf-cr-ease),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.sf-create__btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--sf-cr-accent), #b81842);
  border: 1px solid transparent;
  box-shadow: 0 8px 28px rgba(233, 32, 79, 0.35);
}

.sf-create__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(233, 32, 79, 0.45);
  color: #fff !important;
}

.sf-create__btn--ghost {
  color: var(--sf-cr-gold) !important;
  background: transparent;
  border: 1px solid rgba(196, 165, 116, 0.45);
  box-shadow: none;
}

.sf-create__btn--ghost:hover {
  background: rgba(196, 165, 116, 0.08);
  transform: translateY(-1px);
  color: var(--sf-cr-gold) !important;
}

.sf-create__stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sf-create__stat {
  flex: 1;
  min-width: 0;
}

.sf-create__stat strong {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sf-cr-text);
  line-height: 1.2;
}

.sf-create__stat span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* Launcher pill - premium glass CTA */
.sf-create__launcher {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px 13px 16px;
  border: 1px solid rgba(196, 165, 116, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(232, 184, 109, 0.14) 0%,
      rgba(14, 12, 10, 0.88) 38%,
      rgba(8, 8, 12, 0.94) 100%
    );
  box-shadow:
    0 14px 48px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(196, 165, 116, 0.18),
    0 0 60px rgba(232, 184, 109, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.45s var(--sf-cr-ease),
    border-color 0.45s var(--sf-cr-ease),
    box-shadow 0.45s var(--sf-cr-ease);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: sf-create-cta-glow 4.5s var(--sf-cr-ease) infinite;
}

.sf-create__launcher::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    125deg,
    rgba(232, 184, 109, 0.9) 0%,
    rgba(196, 165, 116, 0.35) 28%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(196, 165, 116, 0.4) 72%,
    rgba(232, 184, 109, 0.75) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.sf-create__launcher-ambient {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 184, 109, 0.22), transparent 62%);
  opacity: 0.55;
  pointer-events: none;
  z-index: -2;
  animation: sf-create-ambient-drift 6s ease-in-out infinite;
}

.sf-create__launcher-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  animation: sf-create-shine-sweep 5.5s var(--sf-cr-ease) infinite;
}

.sf-create__launcher:hover,
.sf-create__launcher:focus-visible {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(232, 184, 109, 0.85);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(196, 165, 116, 0.35),
    0 0 72px rgba(232, 184, 109, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  outline: none;
}

.sf-create.is-open .sf-create__launcher {
  border-color: rgba(233, 32, 79, 0.55);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(233, 32, 79, 0.28);
  animation: none;
}

.sf-create__launcher-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(232, 184, 109, 0.35), rgba(233, 32, 79, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--sf-cr-amber);
  font-size: 0.9rem;
  box-shadow:
    0 0 18px rgba(196, 165, 116, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 0.4s var(--sf-cr-ease),
    box-shadow 0.4s var(--sf-cr-ease);
}

.sf-create__launcher:hover .sf-create__launcher-icon,
.sf-create__launcher:focus-visible .sf-create__launcher-icon {
  transform: scale(1.06);
  box-shadow:
    0 0 26px rgba(232, 184, 109, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.sf-create__launcher-text {
  position: relative;
  z-index: 1;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sf-cr-text);
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(196, 165, 116, 0.25);
}

.sf-create__launcher-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(232, 184, 109, 0.35);
  pointer-events: none;
  animation: sf-create-pulse 3s var(--sf-cr-ease) infinite;
}

.sf-create.is-open .sf-create__launcher-ring {
  animation: none;
  opacity: 0;
}

@keyframes sf-create-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 0;
  }
}

@keyframes sf-create-cta-glow {
  0%,
  100% {
    box-shadow:
      0 14px 48px rgba(0, 0, 0, 0.55),
      0 0 28px rgba(196, 165, 116, 0.16),
      0 0 48px rgba(232, 184, 109, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  50% {
    box-shadow:
      0 16px 52px rgba(0, 0, 0, 0.58),
      0 0 38px rgba(196, 165, 116, 0.28),
      0 0 64px rgba(232, 184, 109, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
}

@keyframes sf-create-ambient-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(6%, -8%) scale(1.08);
    opacity: 0.7;
  }
}

@keyframes sf-create-shine-sweep {
  0%,
  72%,
  100% {
    left: -120%;
    opacity: 0;
  }
  78% {
    opacity: 1;
  }
  92% {
    left: 140%;
    opacity: 0;
  }
}

/* Stack with WhatsApp on right (sf-wa is appended after sf-create in DOM) */
.sf-create:has(~ .sf-wa.right) {
  bottom: 1.35rem;
}

/* Keep desktop floating widgets fixed; near-footer lift is mobile-only below */

/* Mobile only - slightly smaller floating CTA */
@media (max-width: 767px) {
  .sf-create {
    right: 0.85rem;
    bottom: 1rem;
  }

  .sf-create__launcher {
    gap: 9px;
    padding: 9px 16px 9px 12px;
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.5),
      0 0 26px rgba(196, 165, 116, 0.18),
      0 0 52px rgba(232, 184, 109, 0.10),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .sf-create__launcher-icon {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .sf-create__launcher-text {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .sf-create__launcher-ring {
    inset: -3px;
  }

  .sf-create__panel {
    width: min(340px, calc(100vw - 1.5rem));
  }

  .sf-create__media {
    height: 120px;
  }

  .sf-wa.right ~ .sf-create {
    bottom: 1rem;
  }

  body.sf-footer-near-viewport #sf-create-widget.sf-create {
    bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.sf-footer-near-viewport #sf-wa-widget.sf-wa.left {
    bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.sf-footer-near-viewport #sf-wa-widget.sf-wa.right {
    bottom: calc(12rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-create__panel,
  .sf-create__launcher,
  .sf-create__launcher-ambient,
  .sf-create__launcher-shine,
  .sf-create__media img,
  .sf-create__launcher-ring,
  body.sf-footer-near-viewport #sf-create-widget.sf-create,
  body.sf-footer-near-viewport #sf-wa-widget.sf-wa.right,
  body.sf-footer-near-viewport #sf-wa-widget.sf-wa.left {
    transition: none;
    animation: none;
  }
}
