/* =========================================================
   SAZEH SAZAN — STAGE 4 VISUAL POLISH
   Unified hero geometry, readable overlays, responsive layout.
   Demo pages keep their own brand palettes via their CSS variables.
========================================================= */

:root {
  --sz-stage4-radius: 18px;
  --sz-stage4-shadow: 0 18px 46px rgba(6, 20, 46, .12);
  --sz-stage4-hero-text: #fff;
}

html {
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary, #f6c744);
  outline-offset: 3px;
}

/* ---------- Main site: common inner-page hero ---------- */
body[data-brand="sazeh-sazan"] .page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(360px, 40vw, 510px);
  padding: clamp(68px, 7.5vw, 104px) 0 clamp(52px, 6vw, 76px);
  margin: 0;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

body[data-brand="sazeh-sazan"] .page-hero > .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

body[data-brand="sazeh-sazan"] .page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 20, 46, .72) 0%,
    rgba(6, 20, 46, .86) 46%,
    rgba(6, 20, 46, .96) 100%
  );
}

body[data-brand="sazeh-sazan"] .page-hero-content,
body[data-brand="sazeh-sazan"] .services-hero-content,
body[data-brand="sazeh-sazan"] .projects-hero-content,
body[data-brand="sazeh-sazan"] .pricing-hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 790px);
  max-width: 790px;
  margin: 0;
  text-align: right;
  color: #fff;
}

body[data-brand="sazeh-sazan"] .page-hero h1,
body[data-brand="sazeh-sazan"] .services-hero h1,
body[data-brand="sazeh-sazan"] .projects-hero h1,
body[data-brand="sazeh-sazan"] .pricing-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.55rem);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -.45px;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

body[data-brand="sazeh-sazan"] .page-hero p,
body[data-brand="sazeh-sazan"] .services-hero p,
body[data-brand="sazeh-sazan"] .projects-hero p,
body[data-brand="sazeh-sazan"] .pricing-hero p {
  max-width: 710px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(.96rem, 1.25vw, 1.08rem);
  line-height: 2.05;
}

body[data-brand="sazeh-sazan"] .page-hero .breadcrumb,
body[data-brand="sazeh-sazan"] .services-breadcrumb,
body[data-brand="sazeh-sazan"] .projects-breadcrumb,
body[data-brand="sazeh-sazan"] .pricing-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  line-height: 1.8;
}

body[data-brand="sazeh-sazan"] .page-hero .breadcrumb a,
body[data-brand="sazeh-sazan"] .services-breadcrumb a,
body[data-brand="sazeh-sazan"] .projects-breadcrumb a,
body[data-brand="sazeh-sazan"] .pricing-breadcrumb a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

body[data-brand="sazeh-sazan"] .page-hero .breadcrumb a:hover,
body[data-brand="sazeh-sazan"] .services-breadcrumb a:hover,
body[data-brand="sazeh-sazan"] .projects-breadcrumb a:hover,
body[data-brand="sazeh-sazan"] .pricing-breadcrumb a:hover {
  color: var(--primary);
}

body[data-brand="sazeh-sazan"] .page-hero .breadcrumb i,
body[data-brand="sazeh-sazan"] .services-breadcrumb i,
body[data-brand="sazeh-sazan"] .projects-breadcrumb i,
body[data-brand="sazeh-sazan"] .pricing-breadcrumb i,
body[data-brand="sazeh-sazan"] .page-hero .breadcrumb span {
  color: var(--primary);
}

/* These pages already contain .page-hero-overlay in their markup.
   Hide the older pseudo overlay to prevent double-darkening. */
body[data-brand="sazeh-sazan"] .about-hero::before,
body[data-brand="sazeh-sazan"] .faq-hero::before,
body[data-brand="sazeh-sazan"] .calc-hero::before,
body[data-brand="sazeh-sazan"] .terms-hero::before {
  content: none;
  display: none;
}

body[data-brand="sazeh-sazan"] .services-hero-overlay,
body[data-brand="sazeh-sazan"] .projects-hero-overlay,
body[data-brand="sazeh-sazan"] .pricing-hero-overlay {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(6, 20, 46, .72) 0%,
    rgba(6, 20, 46, .87) 48%,
    rgba(6, 20, 46, .96) 100%
  );
}

body[data-brand="sazeh-sazan"] .services-hero::after,
body[data-brand="sazeh-sazan"] .projects-hero::after,
body[data-brand="sazeh-sazan"] .pricing-hero::after {
  z-index: 2;
  pointer-events: none;
}

body[data-brand="sazeh-sazan"] .page-hero .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

body[data-brand="sazeh-sazan"] .page-hero .hero-stat {
  min-width: 125px;
  padding: 13px 17px;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

body[data-brand="sazeh-sazan"] .page-hero .hero-stat strong {
  color: var(--primary);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

body[data-brand="sazeh-sazan"] .page-hero .hero-stat span {
  color: rgba(255,255,255,.84);
  font-size: .82rem;
}

/* Inner page-specific hero heights are normalized after legacy CSS. */
body[data-brand="sazeh-sazan"] .about-hero,
body[data-brand="sazeh-sazan"] .blog-hero,
body[data-brand="sazeh-sazan"] .calc-hero,
body[data-brand="sazeh-sazan"] .faq-hero,
body[data-brand="sazeh-sazan"] .team-hero,
body[data-brand="sazeh-sazan"] .terms-hero {
  min-height: clamp(360px, 40vw, 510px);
  padding: clamp(68px, 7.5vw, 104px) 0 clamp(52px, 6vw, 76px);
}

body[data-brand="sazeh-sazan"] .services-hero,
body[data-brand="sazeh-sazan"] .projects-hero,
body[data-brand="sazeh-sazan"] .pricing-hero {
  min-height: clamp(390px, 43vw, 540px);
  padding: clamp(72px, 8vw, 108px) 0 clamp(58px, 6.5vw, 82px);
}

/* ---------- Main homepage hero ---------- */
body[data-brand="sazeh-sazan"][data-page="home"] .hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-height: clamp(660px, 88svh, 900px);
  padding: clamp(34px, 5vw, 68px) 0 0;
  overflow: hidden;
  background-position: center 45%;
  background-size: cover;
}

body[data-brand="sazeh-sazan"][data-page="home"] .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 20, 46, .64) 0%,
    rgba(6, 20, 46, .84) 48%,
    rgba(6, 20, 46, .96) 100%
  );
}

body[data-brand="sazeh-sazan"][data-page="home"] .hero > .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: 1 0 auto;
  width: 100%;
}

body[data-brand="sazeh-sazan"][data-page="home"] .hero-content {
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0;
  padding: 28px 0 clamp(38px, 5vw, 66px);
  text-align: right;
}

body[data-brand="sazeh-sazan"][data-page="home"] .hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.5vw, 3.7rem);
  line-height: 1.42;
  text-wrap: pretty;
}

body[data-brand="sazeh-sazan"][data-page="home"] .hero p {
  max-width: 660px;
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 2.05;
}

body[data-brand="sazeh-sazan"][data-page="home"] .hero-stats-bar {
  position: relative;
  inset: auto;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  padding: 15px 0;
  border-radius: 20px 20px 0 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 -8px 34px rgba(2,11,28,.18);
}

body[data-brand="sazeh-sazan"][data-page="home"] .stats-bar-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-brand="sazeh-sazan"][data-page="home"] .stat-bar-item {
  min-width: 0;
  padding: 12px 16px;
  border-radius: 13px;
}

body[data-brand="sazeh-sazan"][data-page="home"] .stat-bar-item i {
  flex: 0 0 auto;
}

/* ---------- Demo pages: consistent image geometry, preserve each palette ---------- */
body[data-demo] .hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 76svh, 790px);
  padding: clamp(76px, 8vw, 112px) 0;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
}

body[data-demo] .hero > .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

body[data-demo] .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

body[data-demo] .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

body[data-demo] .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

body[data-demo] .hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 760px);
  max-width: 760px;
  padding: 34px 0;
  text-align: right;
}

body[data-demo] .hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.28;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

body[data-demo] .hero p {
  max-width: 660px;
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 2;
}

body[data-demo] .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

body[data-demo] .hero-wrapper {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  width: 100%;
}

body[data-demo] .hero-wrapper .hero-content {
  width: 100%;
  max-width: 760px;
}

body[data-demo] .hero-features {
  min-width: 0;
}

body[data-demo] .hero-feature {
  min-width: 0;
}

body[data-demo] .hero-scroll {
  z-index: 4;
}

/* ---------- Detail page hero / project details ---------- */
body[data-page="project-detail"] .project-detail-page {
  padding-top: 28px;
}

body[data-page="project-detail"] .detail-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 26px;
}

body[data-page="project-detail"] .detail-intro > div {
  min-width: 0;
  max-width: 820px;
}

body[data-page="project-detail"] .detail-intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.4;
  overflow-wrap: break-word;
}

body[data-page="project-detail"] .detail-intro p {
  max-width: 760px;
  line-height: 2;
}

body[data-page="project-detail"] .detail-cover img {
  width: 100%;
  height: clamp(240px, 42vw, 540px);
  object-fit: cover;
}

/* ---------- Consistent section rhythm on the main template ---------- */
body[data-brand="sazeh-sazan"] .section-header {
  margin-bottom: clamp(30px, 4vw, 52px);
}

body[data-brand="sazeh-sazan"] .section-title {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.45;
  text-wrap: pretty;
}

body[data-brand="sazeh-sazan"] .section-header > p {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--text-light);
  line-height: 2;
}

body[data-brand="sazeh-sazan"] .btn {
  min-height: 44px;
  justify-content: center;
}

body[data-brand="sazeh-sazan"] .project-card,
body[data-brand="sazeh-sazan"] .service-card,
body[data-brand="sazeh-sazan"] .blog-card,
body[data-brand="sazeh-sazan"] .team-card {
  min-width: 0;
}

body[data-brand="sazeh-sazan"] .project-card img,
body[data-brand="sazeh-sazan"] .service-card img,
body[data-brand="sazeh-sazan"] .blog-card img,
body[data-brand="sazeh-sazan"] .team-card img {
  max-width: 100%;
}

body[data-brand="sazeh-sazan"] .project-card:focus-within,
body[data-brand="sazeh-sazan"] .service-card:focus-within,
body[data-brand="sazeh-sazan"] .blog-card:focus-within,
body[data-brand="sazeh-sazan"] .team-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  body[data-brand="sazeh-sazan"] .container {
    padding-right: 22px;
    padding-left: 22px;
  }

  body[data-brand="sazeh-sazan"] .blog-layout,
  body[data-brand="sazeh-sazan"] .calculator-wrapper,
  body[data-brand="sazeh-sazan"] .terms-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  body[data-brand="sazeh-sazan"] .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-demo] .hero-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 26px;
  }
}

/* ---------- Mobile / small tablets ---------- */
@media (max-width: 760px) {
  body[data-brand="sazeh-sazan"] .page-hero,
  body[data-brand="sazeh-sazan"] .about-hero,
  body[data-brand="sazeh-sazan"] .blog-hero,
  body[data-brand="sazeh-sazan"] .calc-hero,
  body[data-brand="sazeh-sazan"] .faq-hero,
  body[data-brand="sazeh-sazan"] .team-hero,
  body[data-brand="sazeh-sazan"] .terms-hero,
  body[data-brand="sazeh-sazan"] .services-hero,
  body[data-brand="sazeh-sazan"] .projects-hero,
  body[data-brand="sazeh-sazan"] .pricing-hero {
    min-height: 0;
    padding: 64px 0 54px;
    background-position: 58% center;
  }

  body[data-brand="sazeh-sazan"] .page-hero h1,
  body[data-brand="sazeh-sazan"] .services-hero h1,
  body[data-brand="sazeh-sazan"] .projects-hero h1,
  body[data-brand="sazeh-sazan"] .pricing-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.55rem);
    line-height: 1.45;
  }

  body[data-brand="sazeh-sazan"] .page-hero p,
  body[data-brand="sazeh-sazan"] .services-hero p,
  body[data-brand="sazeh-sazan"] .projects-hero p,
  body[data-brand="sazeh-sazan"] .pricing-hero p {
    font-size: .96rem;
    line-height: 2;
  }

  body[data-brand="sazeh-sazan"] .page-hero .breadcrumb,
  body[data-brand="sazeh-sazan"] .services-breadcrumb,
  body[data-brand="sazeh-sazan"] .projects-breadcrumb,
  body[data-brand="sazeh-sazan"] .pricing-breadcrumb {
    gap: 7px;
    margin-bottom: 17px;
    font-size: .8rem;
  }

  body[data-brand="sazeh-sazan"] .page-hero .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  body[data-brand="sazeh-sazan"] .page-hero .hero-stat {
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
  }

  body[data-brand="sazeh-sazan"] .page-hero .hero-stat strong {
    font-size: 1.35rem;
  }

  body[data-brand="sazeh-sazan"] .page-hero .hero-stat span {
    font-size: .72rem;
    line-height: 1.6;
  }

  body[data-brand="sazeh-sazan"][data-page="home"] .hero {
    min-height: 0;
    padding-top: 28px;
    background-position: 58% center;
  }

  body[data-brand="sazeh-sazan"][data-page="home"] .hero-content {
    padding: 38px 0 42px;
  }

  body[data-brand="sazeh-sazan"][data-page="home"] .hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.65rem);
    line-height: 1.48;
  }

  body[data-brand="sazeh-sazan"][data-page="home"] .hero p {
    font-size: .96rem;
    line-height: 2;
  }

  body[data-brand="sazeh-sazan"][data-page="home"] .hero-stats-bar {
    padding: 12px 0;
    border-radius: 15px 15px 0 0;
  }

  body[data-brand="sazeh-sazan"][data-page="home"] .stats-bar-items {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body[data-brand="sazeh-sazan"][data-page="home"] .stat-bar-item {
    padding: 10px 13px;
    gap: 12px;
  }

  body[data-brand="sazeh-sazan"] .blog-layout,
  body[data-brand="sazeh-sazan"] .calculator-wrapper,
  body[data-brand="sazeh-sazan"] .terms-layout,
  body[data-brand="sazeh-sazan"] .intro-wrapper,
  body[data-brand="sazeh-sazan"] .contact-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body[data-brand="sazeh-sazan"] .contact-info-grid,
  body[data-brand="sazeh-sazan"] .projects-grid,
  body[data-brand="sazeh-sazan"] .team-grid,
  body[data-brand="sazeh-sazan"] .pricing-page-grid,
  body[data-brand="sazeh-sazan"] .blog-grid,
  body[data-brand="sazeh-sazan"][data-page="services"] .services-grid,
  body[data-brand="sazeh-sazan"][data-page="home"] .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body[data-brand="sazeh-sazan"] .section-title {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  body[data-demo] .hero {
    min-height: 0;
    padding: 76px 0 66px;
    background-position: center center;
  }

  body[data-demo] .hero-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body[data-demo] .hero-content {
    max-width: 100%;
    padding: 12px 0;
  }

  body[data-demo] .hero h1 {
    font-size: clamp(2rem, 7.5vw, 3rem);
    line-height: 1.32;
  }

  body[data-demo] .hero p {
    font-size: .98rem;
    line-height: 2;
  }

  body[data-demo] .hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-demo] .hero-feature {
    padding: 14px;
    gap: 10px;
  }

  body[data-demo] .hero-buttons {
    gap: 10px;
  }

  body[data-demo] .hero-buttons .btn {
    min-height: 46px;
    white-space: normal;
  }

  body[data-page="project-detail"] .detail-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  body[data-brand="sazeh-sazan"] .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  body[data-brand="sazeh-sazan"] .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-brand="sazeh-sazan"] .contact-info-grid,
  body[data-brand="sazeh-sazan"] .projects-grid,
  body[data-brand="sazeh-sazan"] .team-grid,
  body[data-brand="sazeh-sazan"] .pricing-page-grid,
  body[data-brand="sazeh-sazan"] .blog-grid,
  body[data-brand="sazeh-sazan"][data-page="services"] .services-grid,
  body[data-brand="sazeh-sazan"][data-page="home"] .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-brand="sazeh-sazan"] .page-hero,
  body[data-brand="sazeh-sazan"] .about-hero,
  body[data-brand="sazeh-sazan"] .blog-hero,
  body[data-brand="sazeh-sazan"] .calc-hero,
  body[data-brand="sazeh-sazan"] .faq-hero,
  body[data-brand="sazeh-sazan"] .team-hero,
  body[data-brand="sazeh-sazan"] .terms-hero,
  body[data-brand="sazeh-sazan"] .services-hero,
  body[data-brand="sazeh-sazan"] .projects-hero,
  body[data-brand="sazeh-sazan"] .pricing-hero {
    padding: 56px 0 46px;
  }

  body[data-brand="sazeh-sazan"] .page-hero .hero-stats {
    grid-template-columns: 1fr;
  }

  body[data-brand="sazeh-sazan"] .page-hero .hero-stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: right;
  }

  body[data-demo] .hero {
    padding: 66px 0 58px;
  }

  body[data-demo] .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  body[data-demo] .hero-features {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-demo] .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-demo] .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  body[data-page="project-detail"] .detail-spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- Demo 5: complete the commercial services destination ---------- */
body[data-demo="5"] .services-showcase {
  padding: clamp(64px, 8vw, 100px) 0;
  background: #f7f7f7;
}

body[data-demo="5"] .services-showcase .section-header {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

body[data-demo="5"] .services-showcase .section-header h2 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.45;
  letter-spacing: 0;
}

body[data-demo="5"] .services-showcase .section-header p {
  color: var(--text-light);
  line-height: 2;
}

body[data-demo="5"] .services-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

body[data-demo="5"] .services-showcase-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(13,13,13,.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(13,13,13,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}

body[data-demo="5"] .services-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(13,13,13,.12);
}

body[data-demo="5"] .services-showcase-image {
  height: 220px;
  overflow: hidden;
  background: #e7e7e7;
}

body[data-demo="5"] .services-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

body[data-demo="5"] .services-showcase-card:hover .services-showcase-image img {
  transform: scale(1.04);
}

body[data-demo="5"] .services-showcase-content {
  position: relative;
  padding: 24px;
}

body[data-demo="5"] .services-showcase-number {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: 1px;
}

body[data-demo="5"] .services-showcase-content h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 850;
}

body[data-demo="5"] .services-showcase-content p {
  margin: 0;
  color: var(--text-light);
  font-size: .92rem;
  line-height: 2;
}

.stage4-anchor-alias {
  display: block;
  width: 0;
  height: 0;
  scroll-margin-top: 100px;
}

@media (max-width: 760px) {
  body[data-demo="5"] .services-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body[data-demo="5"] .services-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-demo="5"] .services-showcase-image {
    height: 205px;
  }
}
