/* ============================================================
   SEO ENHANCEMENTS — Super Metal Manufacturing Co.
   Floating CTAs, Modals, Exit Intent, Trust Badges, FAQ
   ============================================================ */


/* ----------------------------------------------------------
   QUICK ANSWER BLOCK — AEO Featured Snippet targeting
   ---------------------------------------------------------- */
.quick-answer {
  background: #fff8e1;
  border: 1.5px solid #ffe082;
  border-left: 5px solid #f59e0b;
  border-radius: 6px;
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.quick-answer h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #b45309;
  margin: 0 0 10px;
}
.quick-answer p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
}
.quick-answer p:last-child { margin-bottom: 0; }

/* Screen-reader only utility — visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------
   1. FLOATING WHATSAPP BUTTON
   ---------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.floating-whatsapp a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(37,211,102,0.5);
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: pulse-green 2.5s infinite;
}

.floating-whatsapp a:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37,211,102,0.7);
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.85); }
}

/* ----------------------------------------------------------
   2. FLOATING QUOTE BUTTON (left side)
   ---------------------------------------------------------- */
.floating-quote {
  position: fixed;
  bottom: 30px;
  left: 0;
  z-index: 9990;
}

.floating-quote a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d5322d;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px 12px 18px;
  border-radius: 0 30px 30px 0;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 3px 3px 14px rgba(213,50,45,0.45);
  transition: background 0.2s, transform 0.2s;
  text-transform: uppercase;
}

.floating-quote a:hover {
  background: #b02220;
  transform: translateX(4px);
}

/* ----------------------------------------------------------
   3. STICKY TOP CALL BAR (mobile only)
   ---------------------------------------------------------- */
.sticky-call-bar {
  display: none;
}

@media (max-width: 767px) {
  /* Hide floating elements — sticky bar handles all mobile CTAs */
  .floating-whatsapp { display: none; }
  .floating-quote    { display: none; }
  /* Urgency bar causes layout shift (CLS) on mobile — hidden to fix it */
  .urgency-bar       { display: none; }

  .sticky-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9985;
    background: #111;
  }

  .sticky-call-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
  }

  .sticky-call-bar .btn-call   { background: #d5322d; }
  .sticky-call-bar .btn-wa     { background: #25D366; }
  .sticky-call-bar .btn-quote  { background: #0046ad; }

  /* push page content so it's not covered */
  body { padding-bottom: 52px; }
}

/* ----------------------------------------------------------
   4. ENQUIRY MODAL
   ---------------------------------------------------------- */
.enquiry-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.enquiry-overlay.active { display: flex; }

@keyframes modalIn {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Modal container — flex column so header stays fixed, body scrolls */
.enquiry-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.28s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Sticky header — always visible, never scrolls away */
.enquiry-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1.5px solid #f0f0f0;
  flex-shrink: 0;
  background: #fff;
}

.enquiry-modal .modal-header-text { flex: 1; }

.enquiry-modal h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 2px;
}

.enquiry-modal p.subtitle {
  color: #777;
  font-size: 0.8rem;
  margin: 0;
}

/* Circular close button — always in the sticky header */
.enquiry-modal .close-modal {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #f2f2f2;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.enquiry-modal .close-modal:hover { background: #e0e0e0; color: #111; }

/* Scrollable form body */
.enquiry-modal .modal-body {
  overflow-y: auto;
  padding: 14px 18px 16px;
  flex: 1;
}

.enquiry-modal .form-group { margin-bottom: 9px; }

.enquiry-modal input,
.enquiry-modal select,
.enquiry-modal textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.enquiry-modal input:focus,
.enquiry-modal select:focus,
.enquiry-modal textarea:focus {
  border-color: #d5322d;
  outline: none;
}

.enquiry-modal textarea { resize: vertical; min-height: 64px; }

.enquiry-modal .submit-btn {
  width: 100%;
  background: #d5322d;
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  margin-top: 4px;
}

.enquiry-modal .submit-btn:hover { background: #b02220; }

.enquiry-modal .modal-trust {
  text-align: center;
  margin-top: 10px;
  font-size: 11px;
  color: #aaa;
}

/* ----------------------------------------------------------
   5. EXIT INTENT POPUP
   ---------------------------------------------------------- */
.exit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.exit-overlay.active { display: flex; }

.exit-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  position: relative;
  animation: modalIn 0.3s ease;
}

.exit-popup .exit-header {
  background: #d5322d;
  padding: 28px 30px 22px;
  color: #fff;
  text-align: center;
}

.exit-popup .exit-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.exit-popup .exit-header p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
}

.exit-popup .exit-body {
  padding: 28px 30px 24px;
  text-align: center;
}

.exit-popup .exit-body p {
  color: #444;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.exit-popup .exit-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.exit-popup .exit-ctas a {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.exit-popup .btn-wa-exit   { background: #25D366; color: #fff; }
.exit-popup .btn-call-exit { background: #d5322d; color: #fff; }

.exit-popup .close-exit {
  position: absolute;
  top: 12px;
  right: 16px;
  color: rgba(255,255,255,0.8);
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.exit-popup .no-thanks {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #aaa;
  cursor: pointer;
  text-decoration: underline;
}

/* ----------------------------------------------------------
   6. INLINE CTA BLOCKS
   ---------------------------------------------------------- */
.cta-block {
  background: linear-gradient(135deg, #d5322d 0%, #8b0000 100%);
  padding: 50px 20px;
  text-align: center;
  color: #fff;
}

.cta-block h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff !important;
}

.cta-block p {
  font-size: 1.05rem;
  margin-bottom: 28px;
  opacity: 0.92;
}

.cta-block .cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-block .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s, opacity 0.2s;
}

.cta-block .cta-btn:hover { transform: translateY(-2px); opacity: 0.9; }

.cta-block .btn-white  { background: #fff; color: #d5322d; }
.cta-block .btn-green  { background: #25D366; color: #fff; }
.cta-block .btn-dark   { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.5); }

/* ----------------------------------------------------------
   7. TRUST BADGES
   ---------------------------------------------------------- */
.trust-section {
  background: #f8f8f8;
  padding: 30px 20px;
  border-top: 3px solid #d5322d;
  border-bottom: 1px solid #eee;
}

.trust-section .trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
}

.trust-item .trust-icon {
  font-size: 2rem;
  color: #d5322d;
  min-width: 40px;
}

.trust-item .trust-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
}

.trust-item .trust-text span {
  font-size: 0.82rem;
  color: #666;
}

/* ----------------------------------------------------------
   8. FAQ SECTION
   ---------------------------------------------------------- */
.faq-section {
  background: #fff;
  padding: 60px 20px;
}

.faq-section .faq-title {
  text-align: center;
  margin-bottom: 40px;
}

.faq-section .faq-title .before_title {
  display: inline-block;
  background: #d5322d;
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.faq-section .faq-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
}

.faq-accordion {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  border: 1.5px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 15px;
  color: #111;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  transition: background 0.2s;
  user-select: none;
}

.faq-question:hover { background: #fff4f4; }

.faq-question.open {
  background: #d5322d;
  color: #fff;
}

.faq-question .faq-icon {
  font-style: normal;
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 10px;
}

.faq-question.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 16px 24px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  background: #fff;
}

.faq-answer.open { display: block; }

/* FAQ .faq-item pattern used on product sub-pages (h4 heading + p answer) */
.faq-item h4 {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: #fafafa;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
  transition: background 0.2s, color 0.2s;
  -webkit-user-select: none;
  user-select: none;
}
.faq-item h4::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  margin-left: 10px;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item h4:hover { background: #fff4f4; }
.faq-item.open h4 { background: #d5322d; color: #fff; }
.faq-item.open h4::after { transform: rotate(45deg); }
.faq-item > p {
  display: none;
  padding: 16px 24px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  background: #fff;
  margin: 0;
}
.faq-item.open > p { display: block; }

/* ----------------------------------------------------------
   9. URGENCY / SOCIAL PROOF BAR
   ---------------------------------------------------------- */
.urgency-bar {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.urgency-bar a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 700;
}

/* ----------------------------------------------------------
   10. EXPORT COUNTRIES SECTION
   ---------------------------------------------------------- */
.export-section {
  background: #0a1628;
  padding: 55px 20px;
  color: #fff;
}

.export-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.export-section .subtitle {
  text-align: center;
  color: #aaa;
  margin-bottom: 35px;
  font-size: 0.95rem;
}

.export-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto 35px;
}

.export-countries .country-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #eee;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ----------------------------------------------------------
   11. SPECIFICATIONS TABLE
   ---------------------------------------------------------- */
.specs-section {
  background: #f8f8f8;
  padding: 60px 20px;
}

.specs-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.specs-table-wrap {
  overflow-x: auto;
  max-width: 900px;
  margin: 0 auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.specs-table th {
  background: #d5322d;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}

.specs-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #e5e5e5;
  color: #333;
}

.specs-table tr:nth-child(even) td { background: #fff; }
.specs-table tr:nth-child(odd)  td { background: #fafafa; }
.specs-table tr:hover td { background: #fff4f4; }

/* ----------------------------------------------------------
   Responsive tweaks
   ---------------------------------------------------------- */
@media (max-width: 576px) {
  .floating-quote a { font-size: 12px; padding: 11px 14px 11px 14px; }
  .enquiry-modal .modal-header { padding: 12px 14px 10px; }
  .enquiry-modal .modal-body { padding: 12px 14px 14px; }
  .exit-popup .exit-header h3 { font-size: 1.3rem; }
  .cta-block h2 { font-size: 1.5rem; }
  .trust-item .trust-icon { font-size: 1.5rem; }
}
