/* =====================================================
   REVOLUTION SLIDER – FULL RESPONSIVE REWORK
   Compatible with RevSlider 5.4.8+ HTML structure
   ===================================================== */

/* =====================================
   BASE TYPOGRAPHY & GENERAL SETTINGS
   ===================================== */
#main-banner .tp-caption {
  color: #fff;
  font-family: "Roboto", sans-serif;
  line-height: 1.3em;
  word-wrap: break-word;
  hyphens: auto;
}

/* =====================================
   CAPTION TYPES
   ===================================== */

/* Subheading */
#main-banner .tp-caption.subheading {
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 22px);
  opacity: 0.95;
  margin-bottom: 0.3em;
  display: block;
}

/* Heading (Hero Title) */
#main-banner .tp-caption.heading {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.15em;
  letter-spacing: 0.5px;
  max-width: 900px;
  display: block;
  margin: 0.1em auto 0.3em auto;
}

/* Text / Paragraph */
#main-banner .tp-caption.text {
  font-weight: 400;
  font-size: clamp(16px, 1.2vw, 22px);
  line-height: 1.6em;
  max-width: 700px;
  opacity: 0.9;
  display: block;
  margin: 12px auto 20px auto;
}

/* Unified vertical rhythm */
#main-banner .tp-caption.subheading,
#main-banner .tp-caption.heading,
#main-banner .tp-caption.text {
  margin-bottom: 10px !important;
  line-height: 1.4em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* =====================================
   ALIGNMENT & CONTAINER RULES
   ===================================== */

/* Remove global centering and allow per-slide alignment */
#main-banner li[data-index] {
  display: block !important;
  min-height: 100vh;
  padding: 0 5%;
  text-align: initial !important;
}

/* Reset positioning for RevSlider layers */
#main-banner li[data-index] .tp-caption {
  position: relative !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 1000px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---------- Custom Alignment Classes ---------- */

/* Left-aligned slides (e.g. Thanksgiving) */
.tp-caption.left-fix {
  text-align: left !important;
  margin-left: 80px !important;
  margin-right: auto !important;
  max-width: 700px;
}

/* Right-aligned slides (e.g. Prime Ribeye, Butcher Shop) */
.tp-caption.right-fix {
  text-align: right !important;
  margin-right: 80px !important;
  margin-left: auto !important;
  max-width: 700px;
}

/* =====================================
   BUTTONS (CTA)
   ===================================== */
#main-banner .tp-caption a,
#main-banner .tp-caption .btn,
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

#main-banner .tp-caption a:hover,
#main-banner .tp-caption .btn:hover,
.cta-btn:hover {
  background: #f3f3f3;
  transform: translateY(-2px);
}

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

/* Large Tablets / Small Desktops */
@media (max-width: 1024px) {
  #main-banner .tp-caption.heading {
    font-size: clamp(32px, 4vw, 48px);
  }
  #main-banner .tp-caption.text {
    font-size: 18px;
  }
  #main-banner .tp-caption.subheading {
    font-size: 16px;
  }
  #main-banner .tp-caption a {
    padding: 12px 26px;
    font-size: 16px;
  }
}

/* Tablets Portrait / Large Phones */
@media (max-width: 768px) {
  #main-banner li[data-index] {
    padding: 0 8%;
    text-align: center !important;
  }
  #main-banner .tp-caption.heading {
    font-size: clamp(28px, 6vw, 40px);
  }
  #main-banner .tp-caption.text {
    font-size: 17px;
    max-width: 90%;
  }
  #main-banner .tp-caption.subheading {
    font-size: 15px;
  }
  #main-banner .tp-caption a {
    padding: 10px 22px;
    font-size: 15px;
  }

  /* Center align on mobile */
  .tp-caption.left-fix,
  .tp-caption.right-fix {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 90% !important;
  }
}

/* ===========================================================
   FINAL PATCH – Mobile text wrapping for Revolution Slider
   =========================================================== */
@media (max-width: 600px) {
  /* Disable transform wrappers that prevent wrapping */
  #main-banner .tp-parallax-wrap,
  #main-banner .tp-loop-wrap,
  #main-banner .tp-mask-wrap {
    transform: none !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    white-space: normal !important;
    overflow: visible !important;
    display: block !important;
    text-align: center !important;
  }

  /* Let caption text flow naturally */
  #main-banner .tp-caption {
    position: relative !important;
    display: block !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 95% !important;
    margin: 0 auto 12px auto !important;
    transform: none !important;
  }

  /* Heading (wider, multi-word lines) */
  #main-banner .tp-caption.heading {
    font-size: clamp(22px, 6vw, 32px) !important;
    line-height: 1.25em !important;
    max-width: 92% !important;
    display: inline-block !important;
    white-space: normal !important;
    word-spacing: normal !important;
  }

  /* Subheading */
  #main-banner .tp-caption.subheading {
    font-size: clamp(16px, 4.5vw, 22px) !important;
    line-height: 1.4em !important;
    font-weight: 600 !important;
  }

  /* Paragraph text */
  #main-banner .tp-caption.text {
    font-size: clamp(15px, 3.8vw, 18px) !important;
    line-height: 1.55em !important;
    opacity: 0.9 !important;
    margin-top: 10px !important;
  }

  /* CTA button */
  #main-banner .tp-caption a,
  #main-banner .tp-caption .btn {
    display: inline-block !important;
    padding: 10px 22px !important;
    font-size: 15px !important;
    text-align: center !important;
    margin: 10px auto 0 auto !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  /* Reset alignment classes */
  .tp-caption.left-fix,
  .tp-caption.right-fix {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 95% !important;
  }
}
