/* =========================================
   FIRE SAFETY PAGE
========================================= */

.fs-page {
  --fs-wine: #761c25;
  --fs-wine-dark: #59141b;
  --fs-dark: #171615;
  --fs-ink: #252329;
  --fs-muted: #68636a;
  --fs-border: #e9e1db;
  --fs-cream: #f8f5f1;

  color: var(--fs-ink);
  font-family: inherit;
  overflow: hidden;
}

.fs-page *,
.fs-page *::before,
.fs-page *::after {
  box-sizing: border-box;
}

.fs-page img {
  display: block;
  max-width: 100%;
}

.fs-page a {
  -webkit-tap-highlight-color: transparent;
}

.fs-container {
  width: min(1200px, 88%);
  margin-inline: auto;
}

.fs-eyebrow {
  display: inline-block;
  color: var(--fs-wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.7;
  text-transform: uppercase;
}

/* =========================================
   HERO
========================================= */

.fs-hero {
  position: relative;
  display: flex;
  min-height: clamp(450px, 58svh, 590px);
  align-items: center;
  overflow: hidden;
  padding: 72px 0;
  background:
    linear-gradient(90deg, rgba(23, 22, 21, .9) 0%, rgba(23, 22, 21, .74) 43%, rgba(23, 22, 21, .16) 100%),
    linear-gradient(0deg, rgba(23, 22, 21, .35), transparent 50%),
    url("../assets/images/fire-safety/fire-safety-hero.webp") center 60% / cover no-repeat,
    var(--fs-dark);
}

.fs-hero__inner {
  position: relative;
  z-index: 2;
  display: block;
}

.fs-hero__content .fs-eyebrow {
  position: relative;
  top: 20px;
  color: #e6b9bd;
}

.fs-hero__content h1 {
  max-width: 690px;
  margin: 16px 0 20px;
  color: #fff;
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.12;
}

.fs-hero__content p {
  max-width: 580px;
  margin: 0;
  color: #c7c3c4;
  font-size: 15px;
  line-height: 1.9;
}

.fs-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  padding: 13px 22px;
  border: 1px solid var(--fs-wine);
  border-radius: 999px;
  background: var(--fs-wine);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.fs-button:hover {
  transform: translateY(-2px);
  border-color: var(--fs-wine-dark);
  background: var(--fs-wine-dark);
}

.fs-button:focus-visible {
  outline: 3px solid #bd8790;
  outline-offset: 4px;
}

.fs-hero__image-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 13px 16px;
  border: 1px solid #ffffff35;
  border-radius: 9px;
  background: #20242cdb;
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
  backdrop-filter: blur(8px);
}

/* =========================================
   BENEFITS STRIP
========================================= */

.fs-benefits {
  position: relative;
  z-index: 2;
  padding: 0 7%;
  background: var(--fs-cream);
}

.fs-benefits__grid {
  display: grid;
  width: min(1200px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto;
  border: 1px solid rgba(118, 28, 37, .1);
  background: #fffdf9;
  box-shadow: 0 14px 38px rgba(35, 24, 23, .09);
}

.fs-benefit {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  padding: 18px clamp(12px, 2vw, 26px);
  color: #761c25;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.fs-benefit + .fs-benefit {
  border-left: 1px solid rgba(118, 28, 37, .12);
}

.fs-benefit__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #f7efec;
  color: var(--fs-wine);
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(118, 28, 37, .08);
}

/* =========================================
   SHARED SECTIONS
========================================= */

.fs-section {
  padding: 76px 0;
}

.fs-section-heading {
  max-width: 740px;
  margin: 0 auto 38px;
  text-align: center;
}

.fs-section-heading h2,
.fs-why__content h2 {
  margin: 12px 0 14px;
  color: var(--fs-wine);
  font-size: clamp(29px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.fs-section-heading p,
.fs-why__content > p {
  margin: 0;
  color: var(--fs-muted);
  font-size: 14px;
  line-height: 1.85;
}

/* Compact, icon-led service cards */

.fs-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.fs-service-card {
  position: relative;
  display: flex;
  min-height: 282px;
  flex-direction: column;
  min-width: 0;
  margin-top: 25px;
  overflow: visible;
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(40, 25, 25, 0.065);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.fs-service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(93, 137, 79, .42);
  box-shadow: 0 16px 32px rgba(47, 63, 42, .13);
}

.fs-service-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(93, 137, 79, .42);
  box-shadow: 0 14px 28px rgba(47, 63, 42, .11);
}

.fs-service-card__photo {
  height: 96px;
  flex: 0 0 96px;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  background: #e9e3d9;
}

.fs-service-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.75,.25,1), filter .4s ease;
}

.fs-service-card:hover .fs-service-card__photo img,
.fs-service-card:focus-within .fs-service-card__photo img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.fs-service-card__icon {
  position: absolute;
  top: -25px;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(93, 137, 79, .12);
  border-radius: 14px;
  background: #fff;
  color: #638e57;
  box-shadow: 0 7px 17px rgba(36, 53, 34, .12);
  transition: transform .3s ease, color .3s ease, box-shadow .3s ease;
}

.fs-service-card__icon::before { font: 25px/1 "Segoe UI Symbol", "Arial Unicode MS", sans-serif; }
.fs-service-card__icon[data-icon="extinguisher"]::before { content: "♨"; }
.fs-service-card__icon[data-icon="alarm"]::before { content: "◉"; }
.fs-service-card__icon[data-icon="hydrant"]::before { content: "⊛"; }
.fs-service-card__icon[data-icon="sprinkler"]::before { content: "✣"; }
.fs-service-card__icon[data-icon="planning"]::before { content: "⌖"; }
.fs-service-card__icon[data-icon="safety"]::before { content: "✚"; }
.fs-service-card__icon[data-icon="egress"]::before { content: "⇥"; }
.fs-service-card__icon[data-icon="maintenance"]::before { content: "⚙"; }

.fs-service-card:hover .fs-service-card__icon {
  transform: translateX(-50%) translateY(-3px);
  color: var(--fs-wine);
  box-shadow: 0 10px 20px rgba(36, 53, 34, .16);
}

.fs-service-card:focus-within .fs-service-card__icon {
  transform: translateX(-50%) translateY(-2px);
  color: var(--fs-wine);
}

.fs-service-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 27px 18px 16px;
}

.fs-service-card__number {
  display: none;
}

.fs-service-card h3 {
  margin: 0 0 7px;
  color: var(--fs-wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

.fs-service-card p {
  max-width: 31ch;
  margin: 0;
  color: var(--fs-muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.fs-service-card__link {
  display: flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid rgba(93, 137, 79, .22);
  border-radius: 50%;
  background: #fff;
  color: var(--fs-wine) !important;
  font-size: 0;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none !important;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.fs-service-card__link:hover {
  transform: translateX(2px);
  border-color: #638e57;
  background: #638e57;
  color: #fff !important;
}

.fs-service-card__link span {
  display: block;
  text-indent: 0;
  font-size: 17px;
  transition: transform 0.25s ease;
}

.fs-service-card__link:hover span {
  transform: translate(3px, -3px);
}

.fs-service-card__link:focus-visible {
  outline: 2px solid var(--fs-wine);
  outline-offset: 4px;
}

/* =========================================
   WHY CHOOSE US
========================================= */

.fs-why {
  padding: 0;
  background: #f8f4ec;
}

.fs-why__shell {
  width: 100%;
  max-width: none;
  padding: clamp(28px, 4.5vw, 58px);
  border: 0;
  background: #f8f4ec;
  box-shadow: none;
}

.fs-why__principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: clamp(28px, 4vw, 46px);
  padding-bottom: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid rgba(118, 28, 37, .15);
}

.fs-why__principle {
  padding: 0 clamp(16px, 2.6vw, 32px);
  border-left: 1px solid rgba(118, 28, 37, .13);
}

.fs-why__principle:first-child { padding-left: 0; border-left: 0; }
.fs-why__principle:last-child { padding-right: 0; }

.fs-why__principle span {
  display: block;
  margin-bottom: 9px;
  color: #956267;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.fs-why__principle p {
  max-width: 25ch;
  margin: 0;
  color: #3c302c;
  font: 500 clamp(16px, 1.55vw, 20px)/1.35 Georgia, "Times New Roman", serif;
}

.fs-why__inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 62px);
}

.fs-why__content h2 {
  max-width: 600px;
}

.fs-why__content > p {
  max-width: 580px;
  color: #685d56;
  font-size: 13px;
  line-height: 1.85;
}

.fs-why__content .fs-button { margin-top: 24px; }

.fs-why__visual {
  position: relative;
  min-width: 0;
  height: clamp(280px, 31vw, 390px);
  overflow: hidden;
  margin: 0;
  background: #4a3830;
  box-shadow: 0 18px 38px rgba(44, 25, 21, .14);
}

.fs-why__visual::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(0deg, rgba(25, 18, 16, .78), transparent);
  content: "";
  pointer-events: none;
}

.fs-why__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  transition: transform .7s cubic-bezier(.2,.75,.25,1);
}

.fs-why__visual:hover img { transform: scale(1.035); }

.fs-why__visual figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
  gap: 6px;
  color: #fffaf2;
  font: 500 14px/1.5 Georgia, "Times New Roman", serif;
}

.fs-why__visual figcaption span {
  color: #e8c68c;
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* =========================================
   FINAL ENQUIRY CTA
========================================= */

.fs-cta {
  padding: 68px 0;
  background: #171615;
  color: #230f0f;
  text-align: center;
}

.fs-cta__inner {
  max-width: 760px;
  margin: 0 auto;
}

.fs-cta .fs-eyebrow {
  color: #e7bfc2;
}

.fs-cta h2 {
  margin: 13px 0;
  color: #fff;
  font-size: clamp(29px, 3.7vw, 43px);
  font-weight: 800;
  line-height: 1.2;
}

.fs-cta p {
  margin: 0;
  color: #dedee2;
  font-size: 14px;
  line-height: 1.85;
}

.fs-cta .fs-button {
  border-color: #fff;
  background: #fff;
  color: var(--fs-wine) !important;
}

.fs-cta .fs-button:hover {
  border-color: #f5e9e9;
  background: #f5e9e9;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
========================================= */

.fs-page .fs-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--fs-reveal-delay, 0ms);
}

.fs-page .fs-reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.fs-page .fs-hero__content.fs-reveal {
  transform: translateX(-22px);
}

.fs-page .fs-hero__content.fs-reveal.is-visible {
  transform: translate(0, 0);
}

.fs-page .fs-service-card:nth-child(4n + 1),
.fs-page .fs-benefit:nth-child(1) {
  --fs-reveal-delay: 0ms;
}

.fs-page .fs-service-card:nth-child(4n + 2),
.fs-page .fs-benefit:nth-child(2) {
  --fs-reveal-delay: 80ms;
}

.fs-page .fs-service-card:nth-child(4n + 3),
.fs-page .fs-benefit:nth-child(3) {
  --fs-reveal-delay: 160ms;
}

.fs-page .fs-service-card:nth-child(4n),
.fs-page .fs-benefit:nth-child(4) {
  --fs-reveal-delay: 240ms;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
  .fs-container {
    width: 90%;
  }

  .fs-hero {
    min-height: 480px;
    padding: 58px 0;
  }

  .fs-hero__inner {
    width: 90%;
  }

  .fs-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fs-benefit:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(118, 28, 37, .12);
  }

  .fs-benefit:nth-child(4) {
    border-top: 1px solid rgba(118, 28, 37, .12);
  }

  .fs-benefit {
    justify-content: flex-start;
  }

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

  .fs-service-card__body {
    padding: 27px 14px 16px;
  }

  .fs-service-card h3 {
    font-size: 17px;
  }

  .fs-service-card p {
    font-size: 11px;
  }

  .fs-service-card__link {
    font-size: 0;
  }

  .fs-why__inner {
    gap: 30px;
  }

  .fs-why__panel {
    padding: 27px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 640px) {
  .fs-container {
    width: 90%;
  }

  .fs-hero {
    min-height: 500px;
    padding: 44px 0;
  }

  .fs-why__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .fs-why__shell { padding: 25px 21px; }

  .fs-why__principles {
    grid-template-columns: 1fr;
    margin-bottom: 27px;
    padding-bottom: 10px;
  }

  .fs-why__principle,
  .fs-why__principle:first-child,
  .fs-why__principle:last-child {
    padding: 13px 0;
    border: 0;
  }

  .fs-why__principle + .fs-why__principle {
    border-top: 1px solid rgba(118, 28, 37, .12);
  }

  .fs-why__principle p { max-width: none; }
  .fs-why__visual { height: 260px; }

  .fs-hero {
    background-image:
      linear-gradient(90deg, rgba(23, 22, 21, .88), rgba(23, 22, 21, .53)),
      linear-gradient(0deg, rgba(23, 22, 21, .5), transparent 55%),
      url("../assets/images/fire-safety/fire-safety-hero.webp");
    background-position: center, center, 57% center;
  }

  .fs-hero__content h1 {
    font-size: clamp(34px, 9vw, 46px);
    letter-spacing: -0.8px;
  }

  .fs-hero__content p {
    font-size: 14px;
  }

  .fs-benefits {
    padding: 0 5%;
  }

  .fs-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fs-benefit {
    min-height: 76px;
    gap: 9px;
    padding: 12px 10px;
    font-size: 10px;
  }

  .fs-benefit:nth-child(3) {
    border-top: 1px solid rgba(118, 28, 37, .12);
  }

  .fs-benefit:nth-child(4) {
    border-top: 1px solid rgba(118, 28, 37, .12);
  }

  .fs-benefit__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 16px;
  }

  .fs-section {
    padding: 53px 0;
  }

  .fs-section-heading {
    margin-bottom: 28px;
  }

  .fs-section-heading h2,
  .fs-why__content h2 {
    font-size: 30px;
  }

  /* Compact card grid on narrow screens. */

  .fs-service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .fs-service-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    border-radius: 12px;
  }

  .fs-service-card__body {
    padding: 27px 14px 16px;
  }

  .fs-service-card__number {
    margin-bottom: 6px;
    font-size: 8px;
    letter-spacing: 0.9px;
  }

  .fs-service-card h3 {
    margin-bottom: 7px;
    font-size: 17px;
  }

  .fs-service-card p {
    font-size: 11px;
    line-height: 1.65;
  }

  .fs-service-card__link {
    margin-top: 10px;
    font-size: 0;
  }

  .fs-why__panel {
    padding: 25px;
  }

  .fs-cta {
    padding: 52px 0;
  }

  .fs-button {
    max-width: 100%;
    padding: 13px 19px;
  }
}

/* NARROW MOBILE SCREENS */

@media (max-width: 360px) {
  .fs-service-card {
    display: flex;
    flex-direction: column;
  }

  .fs-service-card__body {
    padding: 27px 10px 14px;
  }

  .fs-service-card h3 {
    font-size: 15px;
  }

  .fs-service-card p {
    font-size: 10px;
  }

  .fs-service-card__link {
    font-size: 0;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .fs-page .fs-reveal,
  .fs-page .fs-hero__content.fs-reveal,
  .fs-service-card,
  .fs-service-card__link span,
  .fs-service-card__photo img,
  .fs-button {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }
}

/* Align the Fire Safety hero typography and copy with the Elevator hero. */
.fs-hero__inner {
  width: 86%;
  max-width: none;
  margin-inline: auto;
}
.fs-hero__content .fs-eyebrow {
  top: 0;
  color: #b69a67;
}
.fs-hero__content h1 {
  max-width: 590px;
  margin: 0 0 22px;
  color: #d5b88b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 57px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.12;
}
.fs-hero__content h1 em {
  color: inherit;
  font-style: inherit;
  font-weight: inherit;
}
.fs-hero__content p {
  max-width: 440px;
  color: #eee5d9;
  font-size: 13px;
  line-height: 1.9;
}

/* Keep the Fire Safety hero frame consistent with Elevator Services. */
.fs-hero {
  min-height: clamp(420px, 52svh, 480px);
  padding: 75px 7%;
  background-position: center, center, center, center;
}
.fs-hero__inner { width: 100%; }
.fs-hero .hero-eyebrow-spacer { display: block; height: 29px; }
@media (max-width: 650px) {
  .fs-hero {
    min-height: 460px;
    padding: 55px 6%;
    background-position: center, center, center, center;
  }
  .fs-hero__inner { width: 100%; }
}

