@charset "utf-8";
/**
 * Replacement Engines Page – Custom Styles
 *
 * Covers:
 *  §2  Request Quote CTA button
 *  §3  Engine images (top left + process right columns)
 *  §4  Tech Tips section (3 columns)
 *  §1.2 Brand-page "View Replacement Engines" link
 *  §1.3/1.4 Sidebar "Replacement Engines" widget
 */

/* ══════════════════════════════════════════════════════════════
   Page rhythm – Replacement Engines only
   ══════════════════════════════════════════════════════════════ */

.reman-engines-page {
  --reman-gallery-gutter: 0.5rem;
  --reman-gallery-row-gutter: 0.625rem;
  --reman-block-gap: clamp(1.25rem, 3vw, 2rem);
  --reman-section-y: clamp(2rem, 4.5vw, 3.25rem);
}

/* Vertical rhythm between column sections (avoid double gap between stacked sections) */
.reman-engines-page .ft-page-sections > .ftps.page-section-columns {
  padding-top: var(--reman-section-y);
  padding-bottom: var(--reman-section-y);
}

.reman-engines-page .ft-page-sections > .ftps.page-section-columns + .ftps.page-section-columns {
  padding-top: 0;
}

/* First content block after hero: align with theme section spacing */
.reman-engines-page #need-a-replacement-engine.ftps.page-section-columns {
  padding-top: var(--ftps_space_v, var(--reman-section-y));
}

/* Copy column: comfortable paragraph rhythm */
.reman-engines-page .column-text > p,
.reman-engines-page .column-text > ol {
  margin-top: 0;
  margin-bottom: var(--reman-block-gap);
}

.reman-engines-page .column-text > ol {
  padding-left: 1.25em;
}

.reman-engines-page .column-text > *:last-child {
  margin-bottom: 0;
}

/* Two-column rows: slightly wider gutter than default theme (--space_small) */
@media (min-width: 45em) {
  .reman-engines-page #need-a-replacement-engine .ftps-columns-wrapper > .ftps-column:nth-child(odd),
  .reman-engines-page #our-replacement-engine-process .ftps-columns-wrapper > .ftps-column:nth-child(odd) {
    padding-right: var(--space_normal, 1rem);
  }

  .reman-engines-page #need-a-replacement-engine .ftps-columns-wrapper > .ftps-column:nth-child(even),
  .reman-engines-page #our-replacement-engine-process .ftps-columns-wrapper > .ftps-column:nth-child(even) {
    padding-left: var(--space_normal, 1rem);
  }

  .reman-engines-page .layout-normal .ftps-columns-wrapper > .ftps-column {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* Stacked columns on small screens: clear separation */
@media (max-width: 44.99em) {
  .reman-engines-page #need-a-replacement-engine .ftps-columns-wrapper > .ftps-column + .ftps-column {
    margin-top: var(--space_xlarge, 2rem);
  }

  .reman-engines-page #our-replacement-engine-process .ftps-columns-wrapper > .ftps-column + .ftps-column {
    margin-top: var(--space_large, 1.5rem);
  }
}

.reman-engines-page .reman-form-wrap {
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   §2 – Request Quote CTA Button
   ══════════════════════════════════════════════════════════════ */

.reman-quote-btn {
  display: inline-block;
  background-color: var(--red, #d5252a);
  color: #fff !important;
  font-family: var(--heading_font, "Roboto Condensed Bold"), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75em 2em;
  border-radius: var(--button_border_radius, 0);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.reman-quote-btn:hover,
.reman-quote-btn:focus {
  background-color: #b71c20;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hero variant – sits inside the hero overlay */
.foley-request-quote-hero-btn {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  padding: 0.8em 2.25em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Hero section: make the title/button content flex-column */
.reman-engines-page .hero-inner .ftps-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ══════════════════════════════════════════════════════════════
   §3 – Engine images (top section left + process section right)
   ══════════════════════════════════════════════════════════════ */

.reman-engines-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 0.5rem;
}

/* 1-over-2 collage: one wide image on top, two half-width below (white gutters via gap on white bg) */
.reman-engines-gallery--stack-1-over-2 {
  grid-template-columns: 1fr 1fr;
  column-gap: var(--reman-gallery-gutter, 0.5rem);
  row-gap: var(--reman-gallery-row-gutter, 0.625rem);
  background-color: #fff;
}

.reman-engines-gallery--stack-1-over-2 .reman-gallery-item-0 {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.reman-engines-gallery--stack-1-over-2 .reman-gallery-item-1,
.reman-engines-gallery--stack-1-over-2 .reman-gallery-item-2 {
  aspect-ratio: 1 / 1;
}

.reman-column-gallery-wrap {
  margin-top: var(--reman-block-gap, clamp(1.25rem, 3vw, 2rem));
  padding-top: var(--reman-block-gap, clamp(1.25rem, 3vw, 2rem));
  border-top: 1px solid var(--border_color, #d6d6d6);
}

.reman-process-gallery.reman-engines-gallery--stack-1-over-2 {
  border-radius: var(--border_radius, 4px);
  overflow: hidden;
  margin: 0;
}

/* Align process-gallery top with first line of copy on wide layouts */
@media (min-width: 45em) {
  .reman-engines-page #our-replacement-engine-process .ftps-column-inner {
    display: flex;
    flex-direction: column;
  }

  .reman-engines-page #our-replacement-engine-process-column-1 .ftps-column-inner {
    justify-content: flex-start;
  }
}

.reman-gallery-item {
  margin: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #000d19;
}

/* Narrow screens: stack all three full-width */
@media (max-width: 28em) {
  .reman-engines-gallery--stack-1-over-2 {
    grid-template-columns: 1fr;
    row-gap: var(--reman-gallery-gutter, 0.5rem);
  }

  .reman-engines-gallery--stack-1-over-2 .reman-gallery-item-0 {
    grid-column: 1;
    aspect-ratio: 4 / 3;
  }

  .reman-engines-gallery--stack-1-over-2 .reman-gallery-item-1,
  .reman-engines-gallery--stack-1-over-2 .reman-gallery-item-2 {
    grid-column: 1;
  }
}

.reman-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.4s ease,
    filter 0.3s ease;
  filter: brightness(0.92);
}

.reman-gallery-item:hover .reman-gallery-img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* ══════════════════════════════════════════════════════════════
   §4 – Tech Tips section
   ══════════════════════════════════════════════════════════════ */

.reman-tech-tips-section {
  background-color: transparent;
  padding: clamp(2.25rem, 5vw, 3.5rem) var(--gutter_width, 5vw);
}

.reman-tech-tips-inner {
  max-width: var(--max_width_wide, 87.5rem);
  margin: 0 auto;
  padding: 0;
}

.reman-tech-tips-header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.reman-tech-tips-header .ftps-section-title {
  font-family: var(--heading_font, "Roboto Condensed Bold"), sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--blue, #01243c);
  margin-bottom: 0.4rem;
}

.reman-tech-tips-header .ftps-section-text {
  font-size: 1rem;
  color: #444;
  margin: 0;
}

/* 3-column grid */
.reman-tech-tips-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 52em) {
  .reman-tech-tips-columns {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: clamp(1.25rem, 2vw, 1.5rem);
  }
}

.reman-tech-tip-col {
  background: #fff;
  border-radius: var(--border_radius, 4px);
  padding: clamp(1.35rem, 2.5vw, 1.65rem) clamp(1.15rem, 2vw, 1.4rem);
  box-shadow: var(--box_shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.reman-tech-tip-col-header {
  border-bottom: 3px solid var(--red, #d5252a);
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
}

.reman-tech-tip-col-title {
  font-family: var(--heading_font, "Roboto Condensed Bold"), sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue, #01243c);
  margin: 0;
  letter-spacing: 0.03em;
}

/* §4.1 & §4.3 – article link lists */
.reman-tech-tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reman-tech-tip-list-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border_color, #d6d6d6);
  line-height: 1.45;
}

.reman-tech-tip-list-item:first-child {
  padding-top: 0;
}

.reman-tech-tip-list-item:last-child {
  border-bottom: none;
}

.reman-tech-tip-list-item a {
  color: var(--blue, #01243c);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s;
}

.reman-tech-tip-list-item a:hover,
.reman-tech-tip-list-item a:focus {
  color: var(--red, #d5252a);
  text-decoration: underline;
}

/* §4.2 – boxed video link grid */
.reman-tech-tip-boxed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  flex: 1;
}

.reman-tech-tip-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--blue, #01243c);
  color: #fff !important;
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border-radius: var(--border_radius, 4px);
  font-size: 0.9375rem;
  font-weight: 600;
  transition:
    background-color 0.18s,
    transform 0.12s;
  line-height: 1.3;
}

.reman-tech-tip-box:hover,
.reman-tech-tip-box:focus {
  background-color: var(--red, #d5252a);
  color: #fff !important;
  text-decoration: none;
  transform: translateX(3px);
}

.reman-tech-tip-box-play {
  flex-shrink: 0;
  font-size: 0.7rem;
  opacity: 0.85;
}

.reman-tech-tip-box-label {
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════
   §1.2 – Brand-page "View Replacement Engines" CTA
   ══════════════════════════════════════════════════════════════ */

.foley-view-replacement-engines-cta {
  margin: 0 var(--gutter_width, 5vw) 1.5rem;
  text-align: right;
}

/* Brand landing: WC shortcode band — drop gray panel behind products block */
body.foley-brand-engine-landing .ftps.ftps-wc-shortcode {
  background-color: transparent;
}

/* Shop By Your Brand child pages: “All … Products” + reman CTA centered, one row */
.ftps.ftps-wc-shortcode .foley-wc-shortcode-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space_normal, 1rem);
  max-width: var(--max_width_wide, 87.5rem);
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--space_normal, 1rem);
}

/* Neutralize global .menu.actions / .actions li (inline-block + baseline) so both CTAs share one axis */
.ftps.ftps-wc-shortcode .foley-wc-shortcode-actions-row .ft-actions {
  margin: 0;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
}

.ftps.ftps-wc-shortcode .foley-wc-shortcode-actions-row .ft-actions ul.menu.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
}

.ftps.ftps-wc-shortcode .foley-wc-shortcode-actions-row .ft-actions ul.menu.actions li {
  display: flex;
  align-items: center;
  margin: 0;
}

.ftps.ftps-wc-shortcode .foley-wc-shortcode-actions-row .ft-actions .ftps-actions {
  margin-top: 0;
}

.ftps.ftps-wc-shortcode .foley-wc-shortcode-actions-row .foley-brand-landing-reman-cta {
  margin: 0;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
}

@media (max-width: 36em) {
  .ftps.ftps-wc-shortcode .foley-wc-shortcode-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ftps.ftps-wc-shortcode .foley-wc-shortcode-actions-row .foley-reman-cta-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

.foley-reman-cta-btn {
  display: inline-block;
  background-color: var(--red, #d5252a);
  color: #fff !important;
  font-family: var(--heading_font, "Roboto Condensed Bold"), sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.6em 1.5em;
  border-radius: var(--button_border_radius, 0);
  text-decoration: none;
  transition: background-color 0.2s;
}

.foley-reman-cta-btn:hover,
.foley-reman-cta-btn:focus {
  background-color: #b71c20;
  color: #fff !important;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   §1.3 / 1.4 – Shop sidebar “Replacement Engines” (plain widget, no toggle)
   ══════════════════════════════════════════════════════════════ */

/* Sits inside .collapsable-sidebar-shop like other filter widgets */
.foley-shop-filters .foley-replacement-engines-widget {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
}

.foley-replacement-engines-widget .widget-title {
  font-family: var(--heading_font, "Roboto Condensed Bold"), sans-serif;
  font-size: 1.125rem;
  line-height: 1.4444;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.foley-replacement-engines-widget .widget-title a {
  color: var(--text_color, #212121);
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

.foley-replacement-engines-widget .widget-title a:hover,
.foley-replacement-engines-widget .widget-title a:focus {
  color: var(--blue, #01243c);
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   Utility – smooth scroll for anchor links
   ══════════════════════════════════════════════════════════════ */
html {
  scroll-behavior: smooth;
}
