:root {
  --jfd-forest: #16251f;
  --jfd-green: #2f5f45;
  --jfd-gold: #d8b25c;
  --jfd-cream: #f7f1e5;
  --jfd-paper: #fffaf1;
  --jfd-border: #ded2bd;
}

.jfd-preview {
  color: #17211d;
}

.jfd-preview a {
  text-decoration-thickness: 2px;
}

.jfd-preview-slider {
  position: relative;
  min-height: clamp(560px, 72vw, 760px);
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  background: var(--jfd-forest);
  margin-top: 0;
}

.jfd-preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.jfd-preview-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.jfd-preview-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.jfd-preview-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 22, 18, .90), rgba(12, 22, 18, .64), rgba(12, 22, 18, .18)),
    linear-gradient(0deg, rgba(12, 22, 18, .45), rgba(12, 22, 18, .05));
}

.jfd-preview-slide-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 130px) 24px 110px;
  color: #fff;
}

.jfd-preview-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 900;
  color: #f7df9b;
  font-size: .78rem;
  margin-bottom: 14px;
}

.jfd-preview-slide h1 {
  max-width: 840px;
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: .94;
  margin: 0 0 18px;
}

.jfd-preview-slide p {
  max-width: 700px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
  margin: 0;
}

.jfd-preview-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.jfd-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  background: #fff;
  color: #15221d;
  font-weight: 900;
  text-decoration: none;
}

.jfd-preview-button.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.72);
}

.jfd-preview-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  padding: 9px;
  border-radius: 999px;
}

.jfd-preview-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}

.jfd-preview-dot.is-active {
  width: 34px;
  background: #fff;
}

.jfd-preview-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.jfd-award-strip {
  transform: translateY(-34px);
  margin-bottom: -8px;
}

.jfd-award-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--jfd-border);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
  padding: 20px;
}

.jfd-award-medal {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff4bc, var(--jfd-gold));
  color: #3e2b08;
  display: grid;
  place-items: center;
  font-weight: 1000;
  font-size: 1.5rem;
  border: 3px solid #f8e4a3;
}

.jfd-award-card h2 {
  margin: 0;
  line-height: 1.1;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.jfd-award-card p {
  margin: 5px 0 0;
}

.jfd-announcement {
  background: var(--jfd-cream);
  border: 1px solid var(--jfd-border);
  border-radius: 28px;
  padding: clamp(26px, 5vw, 54px);
  margin: 32px 0;
}

.jfd-announcement-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.jfd-announcement h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .98;
  margin: 0;
}

.jfd-announcement-card {
  background: #fff;
  border: 1px solid var(--jfd-border);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}

.jfd-announcement-card h3 {
  margin-top: 0;
}

.jfd-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin: 38px 0;
}

.jfd-service-card {
  border: 1px solid var(--jfd-border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 9px 26px rgba(0,0,0,.07);
}

.jfd-service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.jfd-service-card-content {
  padding: 21px;
}

.jfd-service-card h3 {
  margin-top: 0;
}

.jfd-tradition {
  padding: clamp(34px, 6vw, 70px) 0;
}

.jfd-tradition-inner {
  background: linear-gradient(135deg, var(--jfd-forest), var(--jfd-green));
  color: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 58px);
}

.jfd-tradition-inner h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin-top: 0;
}

.jfd-tradition-inner p {
  max-width: 840px;
  font-size: 1.15rem;
}

@media (max-width: 900px) {
  .jfd-preview-slider {
    min-height: 680px;
    border-radius: 0 0 22px 22px;
  }

  .jfd-preview-slide::after {
    background: linear-gradient(0deg, rgba(12,22,18,.92), rgba(12,22,18,.58));
  }

  .jfd-preview-slide-content {
    padding: 72px 20px 120px;
  }

  .jfd-preview-cta-row {
    display: grid;
  }

  .jfd-preview-button {
    width: 100%;
  }

  .jfd-award-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .jfd-award-medal {
    margin: 0 auto;
  }

  .jfd-announcement-grid,
  .jfd-service-grid {
    grid-template-columns: 1fr;
  }

  .jfd-service-card img {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .jfd-preview-slider {
    min-height: 720px;
  }

  .jfd-preview-slide h1 {
    font-size: 2.55rem;
  }

  .jfd-preview-controls {
    width: calc(100% - 32px);
    justify-content: center;
  }

  .jfd-announcement,
  .jfd-tradition-inner {
    border-radius: 18px;
  }
}

/* JFD_FORCE_HERO_IMAGES_START */

/* Slide 1: Fence */
.jfd-preview-slider .jfd-preview-slide:nth-of-type(1) .jfd-preview-slide-bg {
  background-image: url('https://new.justfencesanddecks.com/wp-content/uploads/2026/06/hero-pic1.png') !important;
  background-position: center center !important;
}

/* Slide 2: SaferWood Thermex-FR */
.jfd-preview-slider .jfd-preview-slide:nth-of-type(2) .jfd-preview-slide-bg {
  background-image: url('https://new.justfencesanddecks.com/wp-content/uploads/2026/06/hero-pic2.png') !important;
  background-position: center center !important;
}

/* Slide 4: Decks */
.jfd-preview-slider .jfd-preview-slide:nth-of-type(4) .jfd-preview-slide-bg {
  background-image: url('https://new.justfencesanddecks.com/wp-content/uploads/2026/06/hero-pic4.png') !important;
  background-position: center center !important;
}

/* Slide 5: Arbors / Outdoor Details */
.jfd-preview-slider .jfd-preview-slide:nth-of-type(5) .jfd-preview-slide-bg {
  background-image: url('https://new.justfencesanddecks.com/wp-content/uploads/2026/06/hero-pic5.png') !important;
  background-position: center center !important;
}

/* Slide 6: Retaining Walls / Slopes */
.jfd-preview-slider .jfd-preview-slide:nth-of-type(6) .jfd-preview-slide-bg {
  background-image: url('https://new.justfencesanddecks.com/wp-content/uploads/2026/06/hero-pic6.png') !important;
  background-position: center center !important;
}

/* JFD_FORCE_HERO_IMAGES_END */

/* JFD_FORCE_AWARD_DOWN_START */
/* Move award card down below hero/dots */
.jfd-preview .jfd-award-strip {
  transform: translateY(12px) !important;
  margin-top: 0 !important;
  margin-bottom: 58px !important;
  position: relative !important;
  z-index: 3 !important;
}

.jfd-preview .jfd-award-card {
  margin-top: 0 !important;
}

.jfd-preview .jfd-preview-slider {
  margin-bottom: 34px !important;
}

@media (max-width: 760px) {
  .jfd-preview .jfd-award-strip {
    transform: translateY(18px) !important;
    margin-bottom: 64px !important;
  }
}
/* JFD_FORCE_AWARD_DOWN_END */




/* JFD_HERO_CONTENT_UP_FIX_START */
/* Correct fix: prevent bottom clipping by moving slider content up */
.jfd-preview .jfd-preview-slider {
  overflow: hidden !important;
  margin-bottom: 46px !important;
}

.jfd-preview .jfd-preview-slide,
.jfd-preview .jfd-preview-slide-content {
  min-height: unset !important;
}

.jfd-preview .jfd-preview-slide-content {
  transform: translateY(-34px) !important;
  padding-bottom: 0 !important;
}

.jfd-preview .jfd-preview-actions {
  margin-top: 22px !important;
  margin-bottom: 0 !important;
  transform: translateY(-8px) !important;
  position: relative !important;
  z-index: 8 !important;
}

.jfd-preview .jfd-preview-controls {
  bottom: 34px !important;
  z-index: 9 !important;
}

/* Keep the award card comfortably below the hero */
.jfd-preview .jfd-award-strip {
  transform: translateY(18px) !important;
  margin-bottom: 64px !important;
}

@media (max-width: 760px) {
  .jfd-preview .jfd-preview-slide-content {
    transform: translateY(-44px) !important;
  }

  .jfd-preview .jfd-preview-actions {
    transform: translateY(-16px) !important;
  }

  .jfd-preview .jfd-preview-controls {
    bottom: 42px !important;
  }

  .jfd-preview .jfd-award-strip {
    transform: translateY(22px) !important;
    margin-bottom: 72px !important;
  }
}
/* JFD_HERO_CONTENT_UP_FIX_END */


/* JFD_HERO_BUTTON_DOT_SEPARATION_START */
/* Separate hero CTA buttons from slider page indicators */
.jfd-preview .jfd-preview-actions {
  transform: translateY(-30px) !important;
  margin-bottom: 0 !important;
  position: relative !important;
  z-index: 12 !important;
}

.jfd-preview .jfd-preview-controls {
  bottom: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 6 !important;
  pointer-events: auto !important;
}

/* keep the dots compact so they don't run into the second button visually */
.jfd-preview .jfd-preview-controls button,
.jfd-preview .jfd-preview-controls span {
  width: 32px !important;
  max-width: 32px !important;
}

@media (max-width: 760px) {
  .jfd-preview .jfd-preview-actions {
    transform: translateY(-42px) !important;
  }

  .jfd-preview .jfd-preview-controls {
    bottom: 16px !important;
  }
}
/* JFD_HERO_BUTTON_DOT_SEPARATION_END */


/* JFD_DOTS_BOTTOM_RIGHT_FIX_START */
/* Put slider dots away from CTA buttons on every hero slide */
.jfd-preview .jfd-preview-slider {
  position: relative !important;
}

.jfd-preview .jfd-preview-actions {
  position: relative !important;
  z-index: 20 !important;
  transform: translateY(-26px) !important;
  padding-right: 360px !important;
}

.jfd-preview .jfd-preview-controls {
  position: absolute !important;
  left: auto !important;
  right: 34px !important;
  bottom: 26px !important;
  transform: none !important;
  z-index: 10 !important;
  width: auto !important;
  max-width: 300px !important;
  pointer-events: auto !important;
}

.jfd-preview .jfd-preview-controls button,
.jfd-preview .jfd-preview-controls span {
  width: 34px !important;
  max-width: 34px !important;
  min-width: 34px !important;
}

/* Tablet / narrow desktop: put dots under the buttons instead of over them */
@media (max-width: 900px) {
  .jfd-preview .jfd-preview-actions {
    padding-right: 0 !important;
    transform: translateY(-34px) !important;
  }

  .jfd-preview .jfd-preview-controls {
    left: 40px !important;
    right: auto !important;
    bottom: 18px !important;
    transform: none !important;
  }
}

/* Phone: keep dots centered below the CTA row */
@media (max-width: 640px) {
  .jfd-preview .jfd-preview-actions {
    transform: translateY(-44px) !important;
  }

  .jfd-preview .jfd-preview-controls {
    left: 50% !important;
    right: auto !important;
    bottom: 14px !important;
    transform: translateX(-50%) !important;
  }
}
/* JFD_DOTS_BOTTOM_RIGHT_FIX_END */






/* JFD_HOME_HERO_TOP_RADIUS_FIX_START */
/* Give homepage hero breathing room and restore visible rounded top corners */
body.home .jfd-preview {
  padding-top: 24px !important;
}

body.home .jfd-preview-wrap {
  padding-top: 0 !important;
  overflow: visible !important;
}

body.home .jfd-preview-slider {
  margin-top: 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

body.home .jfd-preview-slide,
body.home .jfd-preview-slide-bg {
  border-radius: 28px !important;
  overflow: hidden !important;
}

/* Slightly smaller radius on mobile */
@media (max-width: 760px) {
  body.home .jfd-preview {
    padding-top: 12px !important;
  }

  body.home .jfd-preview-slider,
  body.home .jfd-preview-slide,
  body.home .jfd-preview-slide-bg {
    border-radius: 18px !important;
  }
}
/* JFD_HOME_HERO_TOP_RADIUS_FIX_END */












/* JFD_EXPAND_BACK_PAGE_INNER_CONTENT_START */
/* Keep white shell reasonable, but widen the actual custom page content */

body.page:not(.home) .content-container.site-container {
  width: calc(100% - 24px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page:not(.home) .entry-content-wrap {
  padding: 8px !important;
}

/* Override hidden inner max-width caps */
body.page:not(.home) .entry-content > *,
body.page:not(.home) .entry-content .jfd-page,
body.page:not(.home) .entry-content .jfd-service-page,
body.page:not(.home) .entry-content .jfd-interior,
body.page:not(.home) .entry-content .jfd-back-page,
body.page:not(.home) .entry-content .jfd-service-hero,
body.page:not(.home) .entry-content .jfd-feature-section,
body.page:not(.home) .entry-content .jfd-announcement,
body.page:not(.home) .entry-content .jfd-service-grid,
body.page:not(.home) .entry-content .jfd-tradition {
  max-width: 100% !important;
  width: 100% !important;
}

/* Make the main image/text hero use more horizontal space */
body.page:not(.home) .entry-content .jfd-service-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

/* Reduce padding inside the right text card so headings wrap less */
body.page:not(.home) .entry-content .jfd-service-hero > * {
  min-width: 0 !important;
}

body.page:not(.home) .entry-content .jfd-service-hero h1,
body.page:not(.home) .entry-content .jfd-service-hero h2 {
  max-width: none !important;
  font-size: clamp(2.5rem, 4vw, 4.15rem) !important;
  line-height: .98 !important;
}

/* Try likely card names too */
body.page:not(.home) .jfd-service-card,
body.page:not(.home) .jfd-service-copy,
body.page:not(.home) .jfd-service-panel,
body.page:not(.home) .jfd-service-content {
  padding-left: 32px !important;
  padding-right: 32px !important;
  max-width: none !important;
}

/* Mobile stays simple/full width */
@media (max-width: 760px) {
  body.page:not(.home) .content-container.site-container {
    width: calc(100% - 8px) !important;
  }

  body.page:not(.home) .entry-content-wrap {
    padding: 4px !important;
  }

  body.page:not(.home) .entry-content .jfd-service-hero {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.page:not(.home) .jfd-service-card,
  body.page:not(.home) .jfd-service-copy,
  body.page:not(.home) .jfd-service-panel,
  body.page:not(.home) .jfd-service-content {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
/* JFD_EXPAND_BACK_PAGE_INNER_CONTENT_END */


/* JFD_BACK_PAGE_TOP_GAP_START */
/* Add a small gap between upper menu/header and interior page white box */
body.page:not(.home) #primary {
  margin-top: 18px !important;
}

body.page:not(.home) .content-container.site-container {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  body.page:not(.home) #primary {
    margin-top: 10px !important;
  }
}
/* JFD_BACK_PAGE_TOP_GAP_END */






/* JFD_INSTALL_PROCESS_JS_STACK_CSS_START */
/* Installation-Design-Repair: JS marks the real 1/2/3/4 card grid, then this stacks it */
body.page-id-10 .jfd-install-process-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

body.page-id-10 .jfd-install-process-stack > *,
body.page-id-10 .jfd-install-process-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.page-id-10 .jfd-install-process-card {
  padding: 16px 18px !important;
}

body.page-id-10 .jfd-install-process-card h3,
body.page-id-10 .jfd-install-process-card h4,
body.page-id-10 .jfd-install-process-card strong {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}
/* JFD_INSTALL_PROCESS_JS_STACK_CSS_END */




/* JFD_INSTALL_CARD_NUMBER_LEFT_START */
/* Installation-Design-Repair: number circle on left, title on right, same line */
body.page-id-10 .jfd-install-process-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 16px !important;
  row-gap: 10px !important;
  align-items: center !important;
  padding: 18px 20px !important;
}

/* number circle */
body.page-id-10 .jfd-install-process-card > *:first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: center !important;
  margin: 0 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 999px !important;
}

/* title */
body.page-id-10 .jfd-install-process-card h2,
body.page-id-10 .jfd-install-process-card h3,
body.page-id-10 .jfd-install-process-card h4,
body.page-id-10 .jfd-install-process-card strong,
body.page-id-10 .jfd-install-process-card b {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  align-self: center !important;
  line-height: 1.1 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* body text below both */
body.page-id-10 .jfd-install-process-card p,
body.page-id-10 .jfd-install-process-card > *:not(:first-child):not(h2):not(h3):not(h4):not(strong):not(b) {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  margin-top: 0 !important;
}

/* JFD_INSTALL_CARD_NUMBER_LEFT_END */


/* JFD_SLIDE_2_3_BOTTOM_ROOM_START */
/* Slides 2 and 3 have taller copy, so lift their content/buttons a little */

.jfd-preview .jfd-preview-slider > article.jfd-preview-slide:nth-of-type(2) .jfd-preview-slide-content,
.jfd-preview .jfd-preview-slider > article.jfd-preview-slide:nth-of-type(3) .jfd-preview-slide-content {
  transform: translateY(-48px) !important;
}

.jfd-preview .jfd-preview-slider > article.jfd-preview-slide:nth-of-type(2) .jfd-preview-actions,
.jfd-preview .jfd-preview-slider > article.jfd-preview-slide:nth-of-type(3) .jfd-preview-actions {
  transform: translateY(-44px) !important;
  margin-bottom: 10px !important;
}

/* keep dots low/right, away from the buttons */
.jfd-preview .jfd-preview-slider > article.jfd-preview-slide:nth-of-type(2) ~ .jfd-preview-controls,
.jfd-preview .jfd-preview-slider > article.jfd-preview-slide:nth-of-type(3) ~ .jfd-preview-controls,
.jfd-preview .jfd-preview-controls {
  bottom: 24px !important;
}

@media (max-width: 760px) {
  .jfd-preview .jfd-preview-slider > article.jfd-preview-slide:nth-of-type(2) .jfd-preview-slide-content,
  .jfd-preview .jfd-preview-slider > article.jfd-preview-slide:nth-of-type(3) .jfd-preview-slide-content {
    transform: translateY(-58px) !important;
  }

  .jfd-preview .jfd-preview-slider > article.jfd-preview-slide:nth-of-type(2) .jfd-preview-actions,
  .jfd-preview .jfd-preview-slider > article.jfd-preview-slide:nth-of-type(3) .jfd-preview-actions {
    transform: translateY(-54px) !important;
  }
}
/* JFD_SLIDE_2_3_BOTTOM_ROOM_END */



/* JFD_FIRE_RETARDANT_DETAILS_CSS_START */
/* Fire-Retardant detail sections only */
.jfd-fr-details {
  margin-top: 22px;
  padding: 0 18px 20px;
}

.jfd-fr-shell {
  display: grid;
  gap: 20px;
}

.jfd-fr-intro,
.jfd-fr-feature,
.jfd-fr-hover-section,
.jfd-fr-distributors {
  border: 1px solid rgba(190, 160, 105, .38);
  border-radius: 26px;
  background: #f6efe2;
  box-shadow: 0 20px 50px rgba(23, 33, 29, .06);
}

.jfd-fr-intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding: 34px;
}

.jfd-fr-eyebrow {
  margin: 0 0 14px;
  color: #2d684d;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.jfd-fr-details h2,
.jfd-fr-details h3,
.jfd-fr-details h4 {
  margin: 0;
  color: #17211d;
  letter-spacing: -.04em;
}

.jfd-fr-details h2 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: .98;
}

.jfd-fr-details h3 {
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 1.04;
}

.jfd-fr-details h4 {
  font-size: 1.1rem;
}

.jfd-fr-details p {
  color: #243027;
  line-height: 1.65;
}

.jfd-fr-materials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.jfd-fr-materials article,
.jfd-fr-mini-grid article,
.jfd-fr-note,
.jfd-fr-hover-card {
  background: #fff;
  border: 1px solid rgba(190, 160, 105, .42);
  border-radius: 20px;
  padding: 22px;
}

.jfd-fr-materials span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #2d684d;
  color: #fff;
  font-weight: 900;
  margin-bottom: 18px;
}

.jfd-fr-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  padding: 34px;
  align-items: stretch;
}

.jfd-fr-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jfd-fr-note strong {
  font-size: 1.35rem;
  color: #17211d;
}

.jfd-fr-note a {
  display: inline-flex;
  justify-content: center;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 999px;
  background: #2d684d;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.jfd-fr-hover-section,
.jfd-fr-distributors {
  padding: 30px;
}

.jfd-fr-section-head {
  max-width: 880px;
  margin-bottom: 18px;
}

.jfd-fr-hover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.jfd-fr-local-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.jfd-fr-hover-card {
  position: relative;
  min-height: 142px;
  cursor: help;
  transition: transform .18s ease, box-shadow .18s ease;
}

.jfd-fr-hover-card strong {
  display: block;
  color: #17211d;
  font-size: 1.05rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.jfd-fr-hover-card > span {
  color: #526158;
  line-height: 1.4;
}

.jfd-fr-hover-card:hover,
.jfd-fr-hover-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(23, 33, 29, .10);
  z-index: 20;
}

.jfd-fr-popover {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(100% - 12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  background: #17211d;
  color: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 44px rgba(23, 33, 29, .22);
}

.jfd-fr-popover p {
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.45;
  font-size: .95rem;
}

.jfd-fr-popover a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffe4a8;
  font-weight: 900;
  text-decoration: none;
}

.jfd-fr-hover-card:hover .jfd-fr-popover,
.jfd-fr-hover-card:focus-within .jfd-fr-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.jfd-fr-distributors {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.jfd-fr-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .jfd-fr-intro,
  .jfd-fr-feature,
  .jfd-fr-distributors {
    grid-template-columns: 1fr;
  }

  .jfd-fr-materials,
  .jfd-fr-mini-grid,
  .jfd-fr-hover-grid,
  .jfd-fr-local-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .jfd-fr-details {
    padding: 0 6px 12px;
  }

  .jfd-fr-intro,
  .jfd-fr-feature,
  .jfd-fr-hover-section,
  .jfd-fr-distributors {
    padding: 20px;
    border-radius: 20px;
  }

  .jfd-fr-materials,
  .jfd-fr-mini-grid,
  .jfd-fr-hover-grid,
  .jfd-fr-local-grid {
    grid-template-columns: 1fr;
  }

  .jfd-fr-popover {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: 14px;
  }
}
/* JFD_FIRE_RETARDANT_DETAILS_CSS_END */



/* JFD_MOBILE_TIGHT_PADDING_START */
/* Mobile only: reduce white side gutters and cream-card padding */
@media (max-width: 760px) {

  /* White page shell: almost full-width */
  body.page:not(.home) .content-container.site-container {
    width: calc(100vw - 4px) !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.page:not(.home) .entry-content-wrap {
    padding: 2px !important;
  }

  body.page:not(.home) .entry-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Main back-page service layout */
  body.page:not(.home) .jfd-service-hero {
    gap: 6px !important;
  }

  body.page:not(.home) .jfd-service-card,
  body.page:not(.home) .jfd-service-copy,
  body.page:not(.home) .jfd-service-panel,
  body.page:not(.home) .jfd-service-content,
  body.page:not(.home) .jfd-feature-section,
  body.page:not(.home) .jfd-announcement,
  body.page:not(.home) .jfd-tradition,
  body.page:not(.home) .jfd-service-grid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Fire-retardant added sections */
  body.page:not(.home) .jfd-fr-details {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  body.page:not(.home) .jfd-fr-intro,
  body.page:not(.home) .jfd-fr-feature,
  body.page:not(.home) .jfd-fr-hover-section,
  body.page:not(.home) .jfd-fr-distributors {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  body.page:not(.home) .jfd-fr-materials article,
  body.page:not(.home) .jfd-fr-mini-grid article,
  body.page:not(.home) .jfd-fr-note,
  body.page:not(.home) .jfd-fr-hover-card {
    padding: 14px !important;
    border-radius: 15px !important;
  }

  body.page:not(.home) .jfd-fr-shell {
    gap: 10px !important;
  }

  body.page:not(.home) .jfd-fr-materials,
  body.page:not(.home) .jfd-fr-mini-grid,
  body.page:not(.home) .jfd-fr-hover-grid,
  body.page:not(.home) .jfd-fr-local-grid {
    gap: 8px !important;
  }
}

@media (max-width: 420px) {
  body.page:not(.home) .content-container.site-container {
    width: calc(100vw - 2px) !important;
  }

  body.page:not(.home) .entry-content-wrap {
    padding: 1px !important;
  }

  body.page:not(.home) .jfd-service-card,
  body.page:not(.home) .jfd-service-copy,
  body.page:not(.home) .jfd-service-panel,
  body.page:not(.home) .jfd-service-content,
  body.page:not(.home) .jfd-feature-section,
  body.page:not(.home) .jfd-announcement,
  body.page:not(.home) .jfd-tradition,
  body.page:not(.home) .jfd-service-grid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.page:not(.home) .jfd-fr-intro,
  body.page:not(.home) .jfd-fr-feature,
  body.page:not(.home) .jfd-fr-hover-section,
  body.page:not(.home) .jfd-fr-distributors,
  body.page:not(.home) .jfd-fr-materials article,
  body.page:not(.home) .jfd-fr-mini-grid article,
  body.page:not(.home) .jfd-fr-note,
  body.page:not(.home) .jfd-fr-hover-card {
    padding: 12px !important;
  }
}
/* JFD_MOBILE_TIGHT_PADDING_END */


/* JFD_MOBILE_FULLER_WIDTH_START */
/* Mobile: make homepage and back-page cards stretch closer to screen edges */
@media (max-width: 760px) {

  html,
  body {
    overflow-x: hidden !important;
  }

  /* Full-width mobile layout shell */
  body.home .jfd-preview,
  body.page:not(.home) #primary,
  body.page:not(.home) .content-container.site-container {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    box-sizing: border-box !important;
  }

  body.home .jfd-preview-wrap,
  body.page:not(.home) .entry-content-wrap,
  body.page:not(.home) .entry-content {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Homepage hero */
  body.home .jfd-preview-slider,
  body.home .jfd-preview-slide {
    width: 100% !important;
    max-width: none !important;
  }

  /* Homepage award card */
  body.home .jfd-award-strip {
    width: 100% !important;
    max-width: none !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    box-sizing: border-box !important;
  }

  body.home .jfd-award-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }

  /* Homepage cream/resource sections */
  body.home .jfd-announcement,
  body.home .jfd-services-grid,
  body.home .jfd-service-grid,
  body.home .jfd-tradition,
  body.home .jfd-feature-section,
  body.home .jfd-preview section {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.home .jfd-announcement,
  body.home .jfd-tradition,
  body.home .jfd-feature-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Interior/back-page main content and cream cards */
  body.page:not(.home) .jfd-service-hero,
  body.page:not(.home) .jfd-feature-section,
  body.page:not(.home) .jfd-announcement,
  body.page:not(.home) .jfd-service-grid,
  body.page:not(.home) .jfd-tradition,
  body.page:not(.home) .jfd-fr-details,
  body.page:not(.home) .jfd-fr-shell,
  body.page:not(.home) .jfd-fr-intro,
  body.page:not(.home) .jfd-fr-feature,
  body.page:not(.home) .jfd-fr-hover-section,
  body.page:not(.home) .jfd-fr-distributors {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.page:not(.home) .jfd-service-card,
  body.page:not(.home) .jfd-service-copy,
  body.page:not(.home) .jfd-service-panel,
  body.page:not(.home) .jfd-service-content,
  body.page:not(.home) .jfd-fr-intro,
  body.page:not(.home) .jfd-fr-feature,
  body.page:not(.home) .jfd-fr-hover-section,
  body.page:not(.home) .jfd-fr-distributors {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 420px) {
  body.home .jfd-preview,
  body.page:not(.home) #primary,
  body.page:not(.home) .content-container.site-container {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  body.home .jfd-award-strip {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  body.home .jfd-award-card,
  body.home .jfd-announcement,
  body.home .jfd-tradition,
  body.home .jfd-feature-section,
  body.page:not(.home) .jfd-service-card,
  body.page:not(.home) .jfd-service-copy,
  body.page:not(.home) .jfd-service-panel,
  body.page:not(.home) .jfd-service-content,
  body.page:not(.home) .jfd-fr-intro,
  body.page:not(.home) .jfd-fr-feature,
  body.page:not(.home) .jfd-fr-hover-section,
  body.page:not(.home) .jfd-fr-distributors {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
/* JFD_MOBILE_FULLER_WIDTH_END */


/* JFD_MOBILE_HOME_TITLE_VISIBLE_START */
/* Mobile homepage: keep hero title visible and stop it from clipping off the top */
@media (max-width: 760px) {
  body.home .jfd-preview-slider {
    min-height: 560px !important;
    overflow: hidden !important;
  }

  body.home .jfd-preview-slide {
    min-height: 560px !important;
  }

  body.home .jfd-preview-slide-content {
    transform: translateY(0) !important;
    padding-top: 34px !important;
    padding-bottom: 120px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    justify-content: center !important;
  }

  body.home .jfd-preview-slide-content h1,
  body.home .jfd-preview-slide-content h2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: clamp(2.35rem, 11vw, 4rem) !important;
    line-height: .96 !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
  }

  body.home .jfd-preview-slide-content p {
    font-size: 1rem !important;
    line-height: 1.42 !important;
    max-width: 100% !important;
  }

  body.home .jfd-preview-actions {
    transform: translateY(0) !important;
    margin-top: 22px !important;
    padding-right: 0 !important;
    position: relative !important;
    z-index: 20 !important;
  }

  body.home .jfd-preview-controls {
    bottom: 18px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 420px) {
  body.home .jfd-preview-slider,
  body.home .jfd-preview-slide {
    min-height: 540px !important;
  }

  body.home .jfd-preview-slide-content {
    padding-top: 28px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 115px !important;
  }

  body.home .jfd-preview-slide-content h1,
  body.home .jfd-preview-slide-content h2 {
    font-size: clamp(2.1rem, 10.5vw, 3.4rem) !important;
  }
}
/* JFD_MOBILE_HOME_TITLE_VISIBLE_END */


/* JFD_MOBILE_LANDSCAPE_HERO_TITLE_START */
/* Mobile landscape: title was being clipped off the top */
@media (max-width: 980px) and (orientation: landscape) {
  body.home .jfd-preview-slider,
  body.home .jfd-preview-slide {
    min-height: 420px !important;
  }

  body.home .jfd-preview-slide-content {
    transform: translateY(0) !important;
    justify-content: flex-start !important;
    padding-top: 26px !important;
    padding-bottom: 92px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body.home .jfd-preview-slide-content h1,
  body.home .jfd-preview-slide-content h2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: clamp(2rem, 6vw, 3.5rem) !important;
    line-height: .94 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    max-width: 720px !important;
  }

  body.home .jfd-preview-slide-content p {
    max-width: 640px !important;
    font-size: .98rem !important;
    line-height: 1.35 !important;
  }

  body.home .jfd-preview-actions {
    transform: translateY(0) !important;
    margin-top: 16px !important;
    padding-right: 260px !important;
  }

  body.home .jfd-preview-controls {
    right: 24px !important;
    left: auto !important;
    bottom: 22px !important;
    transform: none !important;
  }
}

/* Very short landscape screens */
@media (max-width: 980px) and (orientation: landscape) and (max-height: 460px) {
  body.home .jfd-preview-slider,
  body.home .jfd-preview-slide {
    min-height: 360px !important;
  }

  body.home .jfd-preview-slide-content {
    padding-top: 18px !important;
    padding-bottom: 72px !important;
  }

  body.home .jfd-preview-slide-content h1,
  body.home .jfd-preview-slide-content h2 {
    font-size: clamp(1.8rem, 5.2vw, 3rem) !important;
    margin-bottom: 8px !important;
  }

  body.home .jfd-preview-slide-content p {
    font-size: .9rem !important;
    line-height: 1.28 !important;
  }

  body.home .jfd-preview-actions {
    margin-top: 12px !important;
  }

  body.home .jfd-preview-controls {
    bottom: 16px !important;
  }
}
/* JFD_MOBILE_LANDSCAPE_HERO_TITLE_END */


/* JFD_MOBILE_LANDSCAPE_BRAND_CSS_START */
/* Hidden by default */
.jfd-mobile-landscape-brand {
  display: none;
}

/* Mobile landscape: show site title in header */
@media (max-width: 980px) and (orientation: landscape) {
  #masthead,
  .site-header,
  .mobile-header,
  header.site-header {
    position: relative !important;
  }

  .jfd-mobile-landscape-brand {
    display: block !important;
    position: absolute !important;
    left: 28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    color: #17211d !important;
    font-weight: 900 !important;
    font-size: clamp(1.15rem, 3.2vw, 1.65rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.035em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* Keep hamburger on the right */
  .mobile-toggle-open-container,
  .menu-toggle-open,
  .mobile-menu-toggle,
  .drawer-toggle {
    margin-left: auto !important;
  }
}

/* Very short landscape screens */
@media (max-width: 980px) and (orientation: landscape) and (max-height: 460px) {
  .jfd-mobile-landscape-brand {
    left: 22px !important;
    font-size: clamp(1.05rem, 2.8vw, 1.45rem) !important;
  }
}
/* JFD_MOBILE_LANDSCAPE_BRAND_CSS_END */


/* JFD_MOBILE_LANDSCAPE_PORTRAIT_TUNE_START */

/* Phone portrait: keep the improved width, but add a tiny comfortable side gutter */
@media (max-width: 760px) and (orientation: portrait) {
  body.home .jfd-preview,
  body.page:not(.home) #primary,
  body.page:not(.home) .content-container.site-container {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }

  body.home .jfd-award-strip {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.home .jfd-preview-slider,
  body.home .jfd-award-card,
  body.home .jfd-announcement,
  body.home .jfd-tradition,
  body.home .jfd-feature-section,
  body.page:not(.home) .jfd-service-hero,
  body.page:not(.home) .jfd-fr-details {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Mobile landscape: do NOT use the forced 100vw breakout.
   Keep hero inside the white content area. */
@media (max-width: 980px) and (orientation: landscape) {
  body.home .jfd-preview {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.home .jfd-preview-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.home .jfd-preview-slider,
  body.home .jfd-preview-slide,
  body.home .jfd-preview-slide-bg {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Give landscape hero enough room without spilling sideways */
  body.home .jfd-preview-slider,
  body.home .jfd-preview-slide {
    min-height: 380px !important;
  }

  body.home .jfd-preview-slide-content {
    padding-left: 28px !important;
    padding-right: 28px !important;
    padding-top: 26px !important;
    padding-bottom: 92px !important;
    box-sizing: border-box !important;
  }

  body.home .jfd-preview-slide-content h1,
  body.home .jfd-preview-slide-content h2 {
    font-size: clamp(2rem, 5.4vw, 3.4rem) !important;
    line-height: .95 !important;
    max-width: calc(100% - 20px) !important;
  }

  body.home .jfd-preview-slide-content p {
    max-width: calc(100% - 240px) !important;
  }

  /* Keep buttons away from page selector */
  body.home .jfd-preview-actions {
    max-width: calc(100% - 300px) !important;
    padding-right: 0 !important;
    margin-top: 14px !important;
    transform: translateY(0) !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    position: relative !important;
    z-index: 20 !important;
  }

  body.home .jfd-preview-actions a,
  body.home .jfd-preview-actions button {
    padding-left: 18px !important;
    padding-right: 18px !important;
    font-size: .9rem !important;
    white-space: nowrap !important;
  }

  body.home .jfd-preview-controls {
    position: absolute !important;
    left: auto !important;
    right: 28px !important;
    bottom: 30px !important;
    transform: none !important;
    z-index: 12 !important;
    max-width: 250px !important;
  }

  body.home .jfd-preview-controls button,
  body.home .jfd-preview-controls span {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
  }
}

/* Very short phone landscape screens */
@media (max-width: 980px) and (orientation: landscape) and (max-height: 460px) {
  body.home .jfd-preview-slider,
  body.home .jfd-preview-slide {
    min-height: 350px !important;
  }

  body.home .jfd-preview-slide-content {
    padding-top: 18px !important;
    padding-bottom: 78px !important;
  }

  body.home .jfd-preview-slide-content h1,
  body.home .jfd-preview-slide-content h2 {
    font-size: clamp(1.75rem, 4.9vw, 2.9rem) !important;
  }

  body.home .jfd-preview-slide-content p {
    max-width: calc(100% - 220px) !important;
    font-size: .9rem !important;
    line-height: 1.28 !important;
  }

  body.home .jfd-preview-actions {
    max-width: calc(100% - 270px) !important;
    margin-top: 10px !important;
  }

  body.home .jfd-preview-actions a,
  body.home .jfd-preview-actions button {
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-size: .82rem !important;
  }

  body.home .jfd-preview-controls {
    right: 22px !important;
    bottom: 22px !important;
  }
}

/* JFD_MOBILE_LANDSCAPE_PORTRAIT_TUNE_END */






/* JFD_MOBILE_LANDSCAPE_DOTS_SMALL_START */
/* Mobile landscape: keep selector dots small and away from CTA buttons */
@media (max-width: 980px) and (orientation: landscape) {

  body.home .jfd-preview-slider,
  body.home .jfd-preview-slide {
    min-height: 430px !important;
    overflow: hidden !important;
  }

  /* Stop top clipping on all slides */
  body.home .jfd-preview-slide-content {
    transform: translateY(0) !important;
    justify-content: flex-start !important;
    padding-top: 30px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    padding-bottom: 112px !important;
  }

  body.home .jfd-preview-slide-content h1,
  body.home .jfd-preview-slide-content h2 {
    font-size: clamp(1.85rem, 5vw, 3.2rem) !important;
    line-height: .95 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  body.home .jfd-preview-slide-content p {
    font-size: .92rem !important;
    line-height: 1.28 !important;
    max-width: 720px !important;
  }

  /* CTA buttons: above the dots, not under them */
  body.home .jfd-preview-actions {
    transform: translateY(0) !important;
    margin-top: 12px !important;
    margin-bottom: 42px !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    position: relative !important;
    z-index: 20 !important;
  }

  body.home .jfd-preview-actions a,
  body.home .jfd-preview-actions button {
    font-size: .82rem !important;
    padding: 9px 14px !important;
    max-width: 48vw !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Dots: small, bottom center, below CTA row */
  body.home .jfd-preview-controls {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 18px !important;
    transform: translateX(-50%) !important;
    z-index: 12 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    max-width: 220px !important;
    padding: 6px 8px !important;
    border-radius: 999px !important;
  }

  body.home .jfd-preview-controls button,
  body.home .jfd-preview-controls span,
  body.home .jfd-preview-controls * {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 9px !important;
    min-height: 9px !important;
    max-height: 9px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
}

/* Very short landscape screens */
@media (max-width: 980px) and (orientation: landscape) and (max-height: 460px) {
  body.home .jfd-preview-slider,
  body.home .jfd-preview-slide {
    min-height: 390px !important;
  }

  body.home .jfd-preview-slide-content {
    padding-top: 22px !important;
    padding-bottom: 96px !important;
  }

  body.home .jfd-preview-slide-content h1,
  body.home .jfd-preview-slide-content h2 {
    font-size: clamp(1.6rem, 4.6vw, 2.65rem) !important;
  }

  body.home .jfd-preview-actions {
    margin-bottom: 36px !important;
  }

  body.home .jfd-preview-controls {
    bottom: 14px !important;
  }

  body.home .jfd-preview-controls button,
  body.home .jfd-preview-controls span,
  body.home .jfd-preview-controls * {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 8px !important;
  }
}
/* JFD_MOBILE_LANDSCAPE_DOTS_SMALL_END */


/* JFD_FENCE_CARD_IMAGE_START */
/* Replace top-left Fence card image */
body.home .jfd-services-grid > *:nth-child(1) img,
body.home .jfd-service-grid > *:nth-child(1) img,
body.home .jfd-preview-services > *:nth-child(1) img {
  content: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/sunny-backyard-pool.png") !important;
  width: 100% !important;
  height: 188px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* If the service card image is applied as a background instead of an img */
body.home .jfd-services-grid > *:nth-child(1) .jfd-card-media,
body.home .jfd-service-grid > *:nth-child(1) .jfd-card-media,
body.home .jfd-preview-services > *:nth-child(1) .jfd-card-media,
body.home .jfd-services-grid > *:nth-child(1) .jfd-service-card-media,
body.home .jfd-service-grid > *:nth-child(1) .jfd-service-card-media {
  background-image: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/sunny-backyard-pool.png") !important;
  background-size: cover !important;
  background-position: center center !important;
}
/* JFD_FENCE_CARD_IMAGE_END */


/* JFD_ZONE_ZERO_CARD_IMAGE_START */
/* Replace Zone Zero card image - third service card */
body.home .jfd-services-grid > *:nth-child(3) img,
body.home .jfd-service-grid > *:nth-child(3) img,
body.home .jfd-preview-services > *:nth-child(3) img {
  content: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/modern-wooden-gate-with-garden-view.png") !important;
  width: 100% !important;
  height: 188px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* If the card image is applied as a background */
body.home .jfd-services-grid > *:nth-child(3) .jfd-card-media,
body.home .jfd-service-grid > *:nth-child(3) .jfd-card-media,
body.home .jfd-preview-services > *:nth-child(3) .jfd-card-media,
body.home .jfd-services-grid > *:nth-child(3) .jfd-service-card-media,
body.home .jfd-service-grid > *:nth-child(3) .jfd-service-card-media {
  background-image: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/modern-wooden-gate-with-garden-view.png") !important;
  background-size: cover !important;
  background-position: center center !important;
}
/* JFD_ZONE_ZERO_CARD_IMAGE_END */


/* JFD_FIRE_ARBORS_CARD_IMAGES_START */
/* Fire-Retardant card image - second service card */
body.home .jfd-services-grid > *:nth-child(2) img,
body.home .jfd-service-grid > *:nth-child(2) img,
body.home .jfd-preview-services > *:nth-child(2) img {
  content: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/fire-retardant.png") !important;
  width: 100% !important;
  height: 188px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

body.home .jfd-services-grid > *:nth-child(2) .jfd-card-media,
body.home .jfd-service-grid > *:nth-child(2) .jfd-card-media,
body.home .jfd-preview-services > *:nth-child(2) .jfd-card-media,
body.home .jfd-services-grid > *:nth-child(2) .jfd-service-card-media,
body.home .jfd-service-grid > *:nth-child(2) .jfd-service-card-media {
  background-image: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/fire-retardant.png") !important;
  background-size: cover !important;
  background-position: center center !important;
}

/* Arbors card image - fourth service card */
body.home .jfd-services-grid > *:nth-child(4) img,
body.home .jfd-service-grid > *:nth-child(4) img,
body.home .jfd-preview-services > *:nth-child(4) img {
  content: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/arbors.png") !important;
  width: 100% !important;
  height: 188px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

body.home .jfd-services-grid > *:nth-child(4) .jfd-card-media,
body.home .jfd-service-grid > *:nth-child(4) .jfd-card-media,
body.home .jfd-preview-services > *:nth-child(4) .jfd-card-media,
body.home .jfd-services-grid > *:nth-child(4) .jfd-service-card-media,
body.home .jfd-service-grid > *:nth-child(4) .jfd-service-card-media {
  background-image: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/arbors.png") !important;
  background-size: cover !important;
  background-position: center center !important;
}
/* JFD_FIRE_ARBORS_CARD_IMAGES_END */


/* JFD_RETAINING_DECKS_CARD_IMAGES_START */
/* Retaining Walls card image - fifth service card */
body.home .jfd-services-grid > *:nth-child(5) img,
body.home .jfd-service-grid > *:nth-child(5) img,
body.home .jfd-preview-services > *:nth-child(5) img {
  content: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/retaining-walls.png") !important;
  width: 100% !important;
  height: 188px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

body.home .jfd-services-grid > *:nth-child(5) .jfd-card-media,
body.home .jfd-service-grid > *:nth-child(5) .jfd-card-media,
body.home .jfd-preview-services > *:nth-child(5) .jfd-card-media,
body.home .jfd-services-grid > *:nth-child(5) .jfd-service-card-media,
body.home .jfd-service-grid > *:nth-child(5) .jfd-service-card-media {
  background-image: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/retaining-walls.png") !important;
  background-size: cover !important;
  background-position: center center !important;
}

/* Decks card image - sixth service card */
body.home .jfd-services-grid > *:nth-child(6) img,
body.home .jfd-service-grid > *:nth-child(6) img,
body.home .jfd-preview-services > *:nth-child(6) img {
  content: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/decks.png") !important;
  width: 100% !important;
  height: 188px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

body.home .jfd-services-grid > *:nth-child(6) .jfd-card-media,
body.home .jfd-service-grid > *:nth-child(6) .jfd-card-media,
body.home .jfd-preview-services > *:nth-child(6) .jfd-card-media,
body.home .jfd-services-grid > *:nth-child(6) .jfd-service-card-media,
body.home .jfd-service-grid > *:nth-child(6) .jfd-service-card-media {
  background-image: url("https://new.justfencesanddecks.com/wp-content/uploads/2026/06/decks.png") !important;
  background-size: cover !important;
  background-position: center center !important;
}
/* JFD_RETAINING_DECKS_CARD_IMAGES_END */


/* JFD_HOME_SERVICE_BUTTONS_START */
/* Turn homepage service-card "Learn more" links into polished buttons */
body.home .jfd-services-grid > *,
body.home .jfd-service-grid > *,
body.home .jfd-preview-services > * {
  display: flex !important;
  flex-direction: column !important;
}

body.home .jfd-services-grid > * p,
body.home .jfd-service-grid > * p,
body.home .jfd-preview-services > * p {
  margin-bottom: 22px !important;
}

body.home .jfd-services-grid > * a,
body.home .jfd-service-grid > * a,
body.home .jfd-preview-services > * a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  align-self: flex-start !important;
  margin-top: auto !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  background: #17211d !important;
  color: #fffaf0 !important;
  border: 1px solid rgba(23, 33, 29, .92) !important;
  text-decoration: none !important;
  font-weight: 850 !important;
  font-size: .92rem !important;
  line-height: 1 !important;
  letter-spacing: -.01em !important;
  box-shadow: 0 10px 22px rgba(23, 33, 29, .16) !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

body.home .jfd-services-grid > * a::after,
body.home .jfd-service-grid > * a::after,
body.home .jfd-preview-services > * a::after {
  content: "→";
  font-size: 1.05em;
  line-height: 1;
  transform: translateY(-1px);
}

body.home .jfd-services-grid > * a:hover,
body.home .jfd-service-grid > * a:hover,
body.home .jfd-preview-services > * a:hover {
  background: #2f3b2f !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 28px rgba(23, 33, 29, .22) !important;
}

body.home .jfd-services-grid > * a:focus-visible,
body.home .jfd-service-grid > * a:focus-visible,
body.home .jfd-preview-services > * a:focus-visible {
  outline: 3px solid rgba(193, 154, 84, .55) !important;
  outline-offset: 3px !important;
}

@media (max-width: 760px) {
  body.home .jfd-services-grid > * a,
  body.home .jfd-service-grid > * a,
  body.home .jfd-preview-services > * a {
    width: 100% !important;
    align-self: stretch !important;
    padding: 13px 18px !important;
  }
}
/* JFD_HOME_SERVICE_BUTTONS_END */


/* JFD_CENTER_ESTIMATE_FORM_START */
/* Center the Free Estimate form area on large displays */
@media (min-width: 900px) {
  body.page .entry-content .wpforms-container,
  body.page .entry-content .wpcf7,
  body.page .entry-content .gform_wrapper,
  body.page .entry-content .nf-form-cont,
  body.page .entry-content .frm_forms,
  body.page .entry-content form {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page .entry-content h2:has(+ .wpforms-container),
  body.page .entry-content h2:has(+ .wpcf7),
  body.page .entry-content h2:has(+ .gform_wrapper),
  body.page .entry-content h2:has(+ .nf-form-cont),
  body.page .entry-content h2:has(+ .frm_forms),
  body.page .entry-content h2:has(+ form) {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 899px) {
  body.page .entry-content .wpforms-container,
  body.page .entry-content .wpcf7,
  body.page .entry-content .gform_wrapper,
  body.page .entry-content .nf-form-cont,
  body.page .entry-content .frm_forms,
  body.page .entry-content form {
    max-width: 100% !important;
  }
}
/* JFD_CENTER_ESTIMATE_FORM_END */

