/* Industries we serve — Figma comp: bento with rect teal badge + icon-tile rows */
.figma-industries {
  background: #ffffff !important;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.figma-industries__head {
  margin-bottom: 1.75rem;
  max-width: 44rem;
}

.figma-industries__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 1.125rem;
  text-transform: uppercase;
  font-weight: 400;
  color: #000000;
  letter-spacing: 0;
}

.figma-industries__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #000000;
  text-transform: uppercase;
}

.figma-industries__layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) !important;
  gap: 2.5rem !important;
  align-items: center !important;
}

.figma-industries__bento {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  min-height: 460px;
}

.figma-industries__cell {
  border-radius: 18px;
  overflow: hidden;
  background: #dfe6f0;
}

.figma-industries__cell--1 {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
}

.figma-industries__cell--2 {
  grid-column: 2;
  grid-row: 1;
}

.figma-industries__cell--3 {
  grid-column: 2;
  grid-row: 2;
}

.figma-industries__cell--4 {
  display: none;
}

.figma-industries__filler {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  min-height: 380px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e8ecf5, #d8dee9);
}

.figma-industries__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figma-industries__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 9rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: #3cbeb2;
  color: #0b1424;
  text-align: center;
  box-shadow: 0 18px 36px rgba(15, 39, 68, 0.22);
  pointer-events: none;
}

.figma-industries__badge-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
}

.figma-industries__badge-big {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  color: #0b1424;
}

.figma-industries__badge-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  color: rgba(11, 20, 36, 0.85);
}

.figma-industries__badge-rule {
  display: block;
  width: 70%;
  height: 1px;
  margin: 0.15rem auto;
  background: rgba(11, 20, 36, 0.25);
}

.figma-industries__right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

/* Override base `.industries__list` flex into a tighter, borderless layout. */
.figma-industries__list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.1rem !important;
  width: 100%;
}

/* Override base `.industries__row` (border + bg + padding) — Figma rows are borderless. */
.figma-industries__row {
  display: grid !important;
  grid-template-columns: 52px 1fr !important;
  gap: 0.95rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  align-items: start;
}

.figma-industries__row-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.figma-industries__row-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.figma-industries__row-copy p {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #868686;
}

.figma-industries__row-title {
  margin: 0 0 0.1rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  color: #000000;
}

.figma-industries__cta.figma-btn--outline {
  align-self: center;
  gap: 0.55rem;
  padding: 0.55rem 1.4rem;
  border-color: #3cbeb2;
  color: #031d3e;
  background: transparent;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.figma-industries__cta.figma-btn--outline:hover {
  background: #3cbeb2;
  color: #ffffff;
}

@media (max-width: 900px) {
  .figma-industries__layout {
    grid-template-columns: 1fr !important;
  }

  .figma-industries__bento {
    min-height: 360px;
  }

  .figma-industries__badge {
    min-width: 8rem;
    padding: 0.85rem 1rem;
  }
}

/* Why Choose — Figma 56:1110 (title), 93:980 (card group), 93:979 (plate), 56:1132 (icon) */
.figma-why.section {
  padding: 0 !important;
  background: transparent;
}

.figma-why__band {
  /* Light teal geometric band — Figma USP frame */
  position: relative;
  isolation: isolate;
  background-color: #edf9f7;
  background-image: var(--figma-why-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(3rem, 5vw, 4.25rem);
  overflow: hidden;
}

.figma-why__band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(237, 249, 247, 0.55) 48%,
    rgba(255, 255, 255, 0.82) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.figma-why__band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(60, 190, 178, 0.08) 0%, rgba(60, 190, 178, 0) 72%);
  pointer-events: none;
  z-index: 0;
}

.figma-why__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.figma-why-title {
  text-align: center;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.625rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #000000 !important;
  text-transform: uppercase;
}

.figma-why__cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 2.2vw, 2rem) !important;
  margin: 0 !important;
  align-items: stretch !important;
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
}

/* White house plate card — Figma node 93:980 (275×283). */
.figma-why-card {
  margin: 0;
  padding: 0;
  height: 100%;
}

.figma-why-card__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 275px);
  min-height: 283px;
  height: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  padding: 2.65rem 1.15rem 1.85rem;
  text-align: center;
}

.figma-why-card__plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/figma-why-card-plate.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}

.figma-why-card__icon-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 97px;
  height: 97px;
  margin: 0 0 0.65rem;
  flex-shrink: 0;
}

.figma-why-card__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.figma-why-card__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 97px;
  height: 97px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.figma-why-card__title {
  margin: 0;
  max-width: 11.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: #000000;
  text-transform: none;
  text-wrap: balance;
}

.figma-why-card__body {
  margin: 0;
  max-width: 14.875rem;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #000000;
  text-wrap: balance;
}

/* Bottom row: main visual + awards strip */
.figma-why__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.figma-why__visual {
  position: relative;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  z-index: 1;
}

.figma-why__visual::after {
  content: "";
  position: absolute;
  top: 75%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  filter: blur(15px);
  z-index: 0;
  pointer-events: none;
}

.figma-why__curve-bg {
  position: absolute;
  top: -2rem;
  bottom: -4rem;
  left: -50vw;
  right: 15%;
  background: #ffffff;
  border-top-right-radius: 250px;
  border-bottom-right-radius: 0;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.08);
  z-index: -1;
}

.figma-why__visual-png {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 688px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.figma-why__awards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.figma-why__awards-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #000000;
}

.figma-why__awards-flex {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.figma-why__awards-row {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.figma-award-chip {
  margin: 0;
  flex: 0 0 auto;
  width: min(100%, 209px);
  height: 173px;
  border-radius: 31px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #3cbeb2;
  box-shadow: none;
  padding: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.figma-award-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 960px) {
  .figma-why__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .figma-why-card__shell {
    width: min(100%, 275px);
  }

  .figma-why-card__title,
  .figma-why-card__body {
    max-width: 16rem;
  }

  .figma-why__bottom {
    grid-template-columns: 1fr;
  }

  .figma-why__awards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .figma-why__cards {
    grid-template-columns: 1fr !important;
  }

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

.figma-why__grid--awards-only .figma-why__cards {
  display: none !important;
}

/* Certifications / tutorials / clients carousels — see home-carousels.css (Swiper) */

.figma-stories .figma-section-title,
.figma-contact .figma-section-title {
  text-align: center;
}

/* Contact */
.figma-contact {
  background: #fff;
  border-block: 1px solid #e8ecf5;
}

.figma-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: start;
}

.figma-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.figma-field__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #374151;
}

.figma-input {
  width: 100%;
  border: 1px solid #d5dbe8;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  background: #fbfcfe;
}

.figma-input:focus {
  outline: 2px solid rgba(42, 157, 143, 0.35);
  border-color: var(--figma-teal);
}

.figma-input--textarea {
  resize: vertical;
  min-height: 120px;
}

.figma-field__error {
  font-size: 0.8rem;
  color: #b42318;
  font-weight: 600;
}

.figma-aside-title {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--figma-navy);
}

.figma-aside-title:first-child {
  margin-top: 0;
}

.figma-aside-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #4b5567;
  font-size: 0.92rem;
}

.figma-aside-text {
  margin: 0;
  color: #4b5567;
  font-size: 0.92rem;
}

.figma-contact__info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.figma-contact-card {
  text-align: center;
}

.figma-contact-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6f7f2;
  color: #1f9d8a;
}

.figma-contact-card__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
}

.figma-contact-card__body {
  margin: 0.35rem 0 0;
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.65;
}

.figma-contact-card__body a {
  color: #0f766e;
  text-decoration: none;
}

.figma-contact-card__body a:hover {
  text-decoration: underline;
}

.figma-map-placeholder {
  margin-top: 1.5rem;
  height: 180px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8ecf5, #dfe6f0);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #6b7280;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .figma-contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .figma-contact__info-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer — see footer.css */

/* Success Stories — 3-column grid on desktop, carousel on mobile */
.figma-stories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.figma-stories__carousel--mobile {
  display: none;
  margin-top: var(--home-heading-gap, 1.6rem);
}

.figma-stories__pagination--mobile {
  display: none;
}

.figma-stories__carousel .swiper-wrapper {
  align-items: stretch;
}

.figma-stories__carousel .swiper-slide {
  height: auto;
  display: flex;
}

.figma-stories__carousel .figma-story-card {
  width: 100%;
}

@media (max-width: 900px) {
  .figma-stories {
    display: none !important;
  }
}

.figma-story-card {
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.figma-story-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-image: linear-gradient(to bottom, #3cbeb2 50%, transparent 50%);
  background-size: 2px 20px;
  background-repeat: repeat-y;
}

.figma-story-card__img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  margin: 0 0 1.25rem 0 !important;
  border-radius: 0 !important;
}

.figma-story-card__time {
  color: #3cbeb2 !important;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.figma-story-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 0.75rem 0 !important;
  line-height: 1.3;
}

.figma-story-card__body {
  color: #777777;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 !important;
}

@media (max-width: 640px) {
  .figma-industries__head {
    margin-bottom: 1.2rem;
  }

  .figma-industries__eyebrow,
  .figma-product-eyebrow {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .figma-industries__bento {
    min-height: 285px;
    gap: 0.55rem;
  }

  .figma-industries__cell {
    border-radius: 14px;
  }

  .figma-industries__cell--1 {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .figma-industries__badge {
    min-width: 7.25rem;
    padding: 0.72rem 0.8rem;
    border-radius: 12px;
  }

  .figma-industries__badge-big {
    font-size: 1.35rem;
  }

  .figma-industries__badge-label {
    font-size: 0.62rem;
  }

  .figma-industries__row {
    grid-template-columns: 44px 1fr !important;
    gap: 0.75rem !important;
  }

  .figma-industries__row-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .figma-industries__row-copy p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .figma-industries__cta.figma-btn--outline {
    width: 100%;
    min-height: 44px;
  }

  .figma-why__band {
    padding: 2.6rem 0 2.75rem;
    background-position: center;
  }

  .figma-why__inner {
    gap: 1.35rem;
  }

  .figma-why__cards {
    gap: 1rem !important;
    padding-top: 0.5rem;
  }

  .figma-why-card__shell {
    width: min(100%, 255px);
    min-height: 264px;
    padding: 2.35rem 1rem 1.65rem;
  }

  .figma-why-card__icon-wrap,
  .figma-why-card__icon {
    width: 82px;
    height: 82px;
  }

  .figma-why-card__body {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .figma-why__bottom {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .figma-why__curve-bg {
    left: -0.625rem;
    right: -0.625rem;
    top: 12%;
    bottom: 0;
    border-radius: 120px 120px 0 0;
  }

  .figma-why__visual-png {
    width: min(82%, 330px);
    margin-inline: auto;
  }

  .figma-why__awards {
    align-items: center;
    text-align: center;
  }

  .figma-why__awards-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .figma-award-chip {
    width: min(42vw, 136px);
    height: min(42vw, 136px);
  }

  .figma-contact__grid {
    gap: 1.6rem;
  }

  .figma-contact-card {
    padding: 1rem;
    border-radius: 14px;
    background: #fbfcfe;
    border: 1px solid #e8ecf5;
  }

  .figma-stories__grid {
    gap: 1.5rem;
    margin-top: 1.75rem;
  }

  .figma-story-card {
    padding-left: 1rem;
  }

  .figma-story-card__img {
    height: 190px !important;
  }
}

@media (max-width: 390px) {
  .figma-industries__bento {
    min-height: 250px;
  }

  .figma-why-card__shell {
    width: min(100%, 238px);
  }
}

/* Homepage vertical rhythm normalization */
.page-figma {
  --home-section-y: clamp(2.75rem, 4.5vw, 4rem);
  --home-heading-gap: clamp(1.1rem, 2vw, 1.6rem);
  --home-content-gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* Match Top Performers / Industries / Why Choose heading weight */
.page-figma .section__title.figma-section-title {
  font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.625rem);
  letter-spacing: 0.02em;
  color: #000000;
}

.page-figma .figma-trusted.section,
.page-figma .figma-products,
.page-figma .figma-industries,
.page-figma .figma-certs-awards,
.page-figma .figma-tutorials,
.page-figma .figma-clients,
.page-figma .figma-stories {
  padding-top: var(--home-section-y) !important;
  padding-bottom: var(--home-section-y) !important;
}

.page-figma .figma-why.section {
  padding: 0 !important;
}

.page-figma .figma-why__band {
  padding-top: var(--home-section-y) !important;
  padding-bottom: var(--home-section-y) !important;
}

.page-figma .figma-trusted__intro,
.page-figma .figma-product-head,
.page-figma .figma-industries__head {
  margin-bottom: var(--home-heading-gap) !important;
}

.page-figma .figma-products__shelf-wrap {
  margin-top: 0 !important;
}

.page-figma .figma-product-block + .figma-product-block {
  margin-top: var(--home-content-gap) !important;
}

.page-figma .figma-certs-awards__carousel,
.page-figma .figma-tutorials__carousel,
.page-figma .figma-clients__carousel,
.page-figma .figma-stories__carousel--mobile {
  margin-top: var(--home-heading-gap) !important;
}

.page-figma .figma-stories__grid--desktop {
  margin-top: var(--home-heading-gap) !important;
}

.page-figma .figma-why__cards {
  padding-top: var(--home-heading-gap) !important;
}

.page-figma .figma-why__bottom {
  margin-top: var(--home-content-gap) !important;
}

@media (max-width: 640px) {
  .page-figma {
    --home-section-y: clamp(2.2rem, 9vw, 2.8rem);
    --home-heading-gap: clamp(1rem, 5vw, 1.3rem);
    --home-content-gap: clamp(1.35rem, 6vw, 1.75rem);
  }
}
