/**
 * Fusion Foams — Promotional Flyer & Innovation Poster Popup
 * Inspired by Official Product Innovation Flyers (Cork Texture EVA & EVA Foam Sheets)
 * High Performance, 60fps GPU Transitions, Fully Responsive (Mobile to 4K)
 */

/* ==============================================================================
   1. Poster Modal Overlay & Backdrop
   ============================================================================== */
.ff-poster-overlay {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(12, 18, 28, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, visibility;
}

.ff-poster-overlay.ff-poster-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==============================================================================
   2. Poster Container & Entrance Animations
   ============================================================================== */
.ff-poster-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  margin: auto;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.ff-poster-overlay.ff-poster-active .ff-poster-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ==============================================================================
   3. Close "Cross Cut" Button (Top Right Floating)
   ============================================================================== */
.ff-poster-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 10600;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: linear-gradient(135deg, #d80b32 0%, #a00723 100%);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.25s ease;
}

.ff-poster-close:hover {
  transform: scale(1.12) rotate(90deg);
  background: #111827;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.ff-poster-close:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

/* ==============================================================================
   4. The Physical Flyer / Poster Card Styling
   ============================================================================== */
.ff-poster-card {
  position: relative;
  background: linear-gradient(180deg, #fcfbf7 0%, #f5efe1 100%);
  border: 2px solid #cca474;
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow-y: auto;
  max-height: 92vh;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cca474 transparent;
}

.ff-poster-card::-webkit-scrollbar {
  width: 6px;
}
.ff-poster-card::-webkit-scrollbar-thumb {
  background-color: #cca474;
  border-radius: 4px;
}

/* Top Decorative Accent Line */
.ff-poster-card::before {
  content: "";
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #d80b32 0%, #e07a5f 25%, #2d6a4f 75%, #1b4332 100%);
  z-index: 20;
  display: block;
}

/* ==============================================================================
   5. Poster Header Section
   ============================================================================== */
.ff-poster-header {
  padding: 20px 24px 12px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(240, 230, 210, 0.8), transparent 70%);
  border-bottom: 1px dashed rgba(180, 140, 90, 0.4);
}

.ff-poster-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.ff-poster-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.ff-badge--innovation {
  background: linear-gradient(135deg, #d80b32 0%, #b30827 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(216, 11, 50, 0.3);
}

.ff-badge--comfort {
  background: #1b4332;
  color: #d8f3dc;
}

.ff-poster-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6b4f2c;
  text-transform: uppercase;
}

.ff-poster-title {
  margin: 0 0 4px;
  line-height: 1.05;
}

.ff-title-cork {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #6c3f15;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8), 3px 4px 6px rgba(108, 63, 21, 0.25);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ff-title-sub {
  display: block;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #1f3d2b;
  text-transform: uppercase;
  margin-top: 2px;
}

.ff-poster-subtitle {
  display: inline-block;
  background-color: #244837;
  color: #ffffff;
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 16px;
  border-radius: 20px;
  margin: 6px auto 0;
}

/* ==============================================================================
   6. Poster Body & Hero Media Showcase
   ============================================================================== */
.ff-poster-body {
  padding: 16px 22px 20px;
}

.ff-poster-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(90, 60, 20, 0.08);
  border: 1px solid rgba(200, 165, 120, 0.35);
}

.ff-hero-img-col {
  flex: 1 1 58%;
  position: relative;
}

.ff-hero-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ff-hero-cork-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ff-hero-img-wrap:hover .ff-hero-cork-img {
  transform: scale(1.05);
}

.ff-smart-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ff-smart-badge i {
  font-size: 1.15rem;
  color: #74c69d;
}

.ff-smart-badge-text strong {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.ff-smart-badge-text span {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.ff-hero-insole-col {
  flex: 1 1 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ff-insole-showcase {
  text-align: center;
  padding: 8px;
  background: #fbf7ee;
  border-radius: 10px;
  border: 1px dashed #d4a373;
  width: 100%;
}

.ff-insole-img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18));
  transition: transform 0.4s ease;
}

.ff-insole-showcase:hover .ff-insole-img {
  transform: translateY(-4px) rotate(-2deg);
}

.ff-insole-caption {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6c3f15;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==============================================================================
   7. Why This Innovation Is Special (Comparison Box)
   ============================================================================== */
.ff-poster-why-box {
  background: #ffffff;
  border: 1.5px solid #2d6a4f;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.08);
}

.ff-why-header {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #1b4332;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ff-why-header i {
  color: #eab308;
}

.ff-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ff-why-item {
  padding: 10px 12px;
  border-radius: 8px;
}

.ff-why-old {
  background: #fff5f5;
  border-left: 3px solid #dc2626;
}

.ff-why-old .ff-why-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ff-why-old .ff-why-desc {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.35;
  margin: 0;
}

.ff-why-new {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
}

.ff-why-new .ff-why-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ff-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ff-why-list li {
  font-size: 0.74rem;
  color: #1f2937;
  line-height: 1.3;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.ff-why-list li i {
  font-size: 0.68rem;
  color: #16a34a;
  margin-top: 2px;
}

.ff-why-list li strong {
  color: #064e3b;
}

/* ==============================================================================
   8. Can Be Used In (4 Applications Grid)
   ============================================================================== */
.ff-poster-apps {
  margin-bottom: 16px;
}

.ff-apps-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #78350f;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}

.ff-apps-header::before,
.ff-apps-header::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background-color: #d4a373;
}
.ff-apps-header::before { left: 0; }
.ff-apps-header::after { right: 0; }

.ff-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ff-app-box {
  background: #ffffff;
  border: 1px solid #e5d5be;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ff-app-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(100, 60, 20, 0.12);
  border-color: #2d6a4f;
}

.ff-app-img-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.ff-app-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.ff-app-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.2;
}

/* ==============================================================================
   9. EVA Foam Sheet Specs Strip (from Poster 1)
   ============================================================================== */
.ff-poster-specs-banner {
  background: #fbf8ee;
  border: 1px dashed #bfa075;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.ff-specs-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #5c3d11;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ff-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ff-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #ffffff;
  color: #1f2937;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.ff-chip i {
  color: #2d6a4f;
  font-size: 0.65rem;
}

/* ==============================================================================
   10. Contact Details & Factory Address Bar
   ============================================================================== */
.ff-poster-contact-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #14281d;
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.ff-contact-col {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ff-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #74c69d;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ff-contact-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #a7f3d0;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ff-phone-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ff-phone-link {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ff-phone-link:hover {
  color: #facc15;
  text-decoration: underline;
}

.ff-phone-sep {
  color: #74c69d;
  font-size: 0.7rem;
}

.ff-address {
  font-style: normal;
  font-size: 0.72rem;
  color: #e5e7eb;
  line-height: 1.25;
  margin: 0;
}

/* ==============================================================================
   11. Action Buttons (WhatsApp & Free Sample / Quote)
   ============================================================================== */
.ff-poster-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}

.ff-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.ff-btn-whatsapp:hover {
  background-color: #1ebd5b;
  color: #ffffff;
  transform: translateY(-2px);
}

.ff-btn-sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #d80b32 0%, #a90726 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(216, 11, 50, 0.35);
}

.ff-btn-sample:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(216, 11, 50, 0.5);
}

/* ==============================================================================
   12. Poster Footer Ribbon & Dismissal
   ============================================================================== */
.ff-poster-footer {
  padding: 10px 20px 14px;
  text-align: center;
  background: #f1ebd9;
  border-top: 1px solid rgba(180, 140, 90, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.ff-tagline {
  margin: 0;
  font-size: 0.78rem;
  color: #4b3621;
  font-weight: 600;
}

.ff-btn-dismiss-text {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.74rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s ease;
}

.ff-btn-dismiss-text:hover {
  color: #111827;
}

/* ==============================================================================
   13. Floating Reopen Trigger Pill (Bottom Corner of Screen)
   ============================================================================== */
/* ==============================================================================
   13. Floating Innovation Trigger Badge (Corporate Industrial Theme)
   ============================================================================== */
.ff-innov-trigger-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #2c3138;
  border: 1px solid #e4e6e9;
  border-left: 4px solid #d80b32;
  padding: 8px 16px 8px 12px;
  border-radius: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(26, 29, 35, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.ff-innov-trigger-btn:hover {
  transform: translateY(-3px);
  border-color: #d80b32;
  box-shadow: 0 14px 30px -4px rgba(216, 11, 50, 0.22), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.ff-innov-trigger-btn:focus-visible {
  outline: 2px solid #d80b32;
  outline-offset: 3px;
}

.ff-innov-tag {
  display: inline-block;
  background: #d80b32;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1;
}

.ff-innov-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1d23;
  letter-spacing: -0.01em;
}

.ff-innov-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #d80b32;
  padding-left: 8px;
  border-left: 1px solid #e4e6e9;
  transition: gap 0.2s ease;
}

.ff-innov-trigger-btn:hover .ff-innov-action {
  gap: 7px;
}

.ff-innov-action i {
  font-size: 0.7rem;
}

/* ==============================================================================
   14. Responsive Layout Fixes (Mobile Screens < 600px)
   ============================================================================== */
@media (max-width: 600px) {
  .ff-poster-container {
    max-width: 100%;
    max-height: 95vh;
  }

  .ff-poster-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .ff-poster-header {
    padding: 16px 14px 10px;
  }

  .ff-title-cork {
    font-size: 2.2rem;
  }

  .ff-title-sub {
    font-size: 0.95rem;
  }

  .ff-poster-body {
    padding: 12px 14px 16px;
  }

  .ff-poster-hero-media {
    flex-direction: column;
    gap: 12px;
  }

  .ff-hero-img-col,
  .ff-hero-insole-col {
    width: 100%;
    flex: 1 1 100%;
  }

  .ff-hero-cork-img {
    height: 140px;
  }

  .ff-insole-img {
    max-height: 100px;
  }

  .ff-why-grid {
    grid-template-columns: 1fr;
  }

  .ff-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ff-poster-contact-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ff-poster-actions {
    grid-template-columns: 1fr;
  }

  .ff-poster-footer {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .ff-innov-trigger-btn {
    bottom: 16px;
    left: 16px;
    padding: 6px 12px 6px 10px;
    gap: 8px;
  }

  .ff-innov-title {
    font-size: 0.75rem;
  }

  .ff-innov-action {
    display: none;
  }
}

