/* EMERCIO — tighten Selected Work + carousel */

.emercio-case-study-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Block directly after Selected Work */
.emercio-case-study-header + * {
    margin-top: -25px !important;
    padding-top: 0 !important;
}

/* Remove internal slider spacing */
.emercio-case-study-header + * .swiper,
.emercio-case-study-header + * .swiper-wrapper,
.emercio-case-study-header + * .slick-slider,
.emercio-case-study-header + * .slick-list,
.emercio-case-study-header + * .wp-block-group {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mobile */
@media (max-width: 767px) {
    .emercio-case-study-header + * {
        margin-top: -15px !important;
    }
}

.editable-page .wp-block-column {
    border-top: none !important;
}
/* =========================================
   EMERCIO SERVICES GRID
========================================= */

.emercio-services-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 90px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}


/* SERVICE CARD */

.emercio-service-card {
  background: #F7F5EF;
  overflow: hidden;
}


/* IMAGE */

.emercio-service-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.emercio-service-image img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.emercio-service-card:hover
.emercio-service-image img {
  transform: scale(1.025);
}


/* WHITE TITLE BOX OVER IMAGE */

.emercio-service-title {
  position: absolute;

  top: 0;
  right: 0;

  width: 62%;
  min-height: 130px;

  padding: 18px 20px;

  background: #F7F5EF;

  display: grid;

  grid-template-columns:
    34px
    1fr
    24px;

  gap: 10px;

  align-items: start;
}


/* NUMBER */

.emercio-service-number {
  font-family: Manrope, Arial, sans-serif;

  font-size: 12px;

  letter-spacing: 0.08em;

  color: #555;
}


/* SERVICE HEADING */

.emercio-service-title h3 {
  margin: 0;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 29px;

  font-weight: 500;

  line-height: 0.98;

  letter-spacing: -0.02em;

  color: #171717;
}


/* ICON */

.emercio-service-icon {
  font-size: 22px;

  line-height: 1;

  text-align: right;

  color: #171717;
}


/* DESCRIPTION */

.emercio-service-copy {
  padding: 20px 12px 25px;
}

.emercio-service-copy p {
  margin: 0 0 20px;

  max-width: 95%;

  font-family:
    Manrope,
    Arial,
    sans-serif;

  font-size: 14px;

  line-height: 1.6;

  color: #353535;
}


/* LINKS */

.emercio-service-copy a,
.emercio-approach-card a {

  display: inline-flex;

  align-items: center;

  gap: 12px;

  font-family:
    Manrope,
    Arial,
    sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.15em;

  text-decoration: none;

  color: #171717;

  border-bottom:
    1px solid transparent;

  padding-bottom: 3px;

  transition:
    gap 0.25s ease,
    border-color 0.25s ease;
}

.emercio-service-copy a:hover,
.emercio-approach-card a:hover {

  gap: 18px;

  border-color: #171717;
}


/* =========================================
   LIME APPROACH CARD
========================================= */

.emercio-approach-card {

  background: #C8D96B;

  padding: 38px 36px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  min-height: 430px;
}

.emercio-approach-label {

  font-family:
    Manrope,
    Arial,
    sans-serif;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.18em;

  margin-bottom: 20px;
}

.emercio-approach-card h3 {

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 47px;

  font-weight: 500;

  line-height: 0.9;

  letter-spacing: -0.03em;

  margin: 0 0 25px;

  color: #171717;
}

.emercio-approach-card p {

  font-family:
    Manrope,
    Arial,
    sans-serif;

  font-size: 14px;

  line-height: 1.65;

  margin: 0 0 30px;

  color: #292929;
}


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

@media (max-width: 1000px) {

  .emercio-services-grid {

    grid-template-columns:
      repeat(2, 1fr);

  }

}


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

@media (max-width: 650px) {

  .emercio-services-grid {

    grid-template-columns: 1fr;

    padding-left: 18px;

    padding-right: 18px;

  }

  .emercio-service-image {

    height: 280px;

  }

  .emercio-service-title {

    width: 68%;

  }

  .emercio-service-title h3 {

    font-size: 26px;

  }

  .emercio-approach-card {

    min-height: auto;

    padding: 45px 30px;

  }

  .emercio-approach-card h3 {

    font-size: 42px;

  }

}
/* =========================================
   EMERCIO — WAYS TO WORK TOGETHER
========================================= */

.emercio-work-together {
  max-width: 1320px;
  margin: 0 auto;
  padding: 110px 24px;
}


/* HEADER */

.emercio-work-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1.15fr;
  gap: 50px;
  align-items: end;

  margin-bottom: 65px;
}

.emercio-eyebrow {
  font-family: Manrope, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.emercio-work-header h2 {
  margin: 0;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(52px, 5.5vw, 78px);
  font-weight: 500;

  line-height: 0.88;
  letter-spacing: -0.035em;

  color: #171717;
}

.emercio-work-header h2 em {
  color: #7D8A43;
  font-weight: 500;
}

.emercio-work-header p {
  margin: 0;

  font-family: Manrope, Arial, sans-serif;

  font-size: 14px;
  line-height: 1.7;

  color: #484844;
}


/* =========================================
   THREE CARDS
========================================= */

.emercio-work-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}


/* CARD */

.emercio-work-card {
  min-height: 570px;

  padding: 30px;

  border-top:
    4px solid #C8D96B;

  background: #EEECE6;

  display: flex;
  flex-direction: column;
}


/* FEATURED THIRD CARD */

.emercio-work-card-featured {
  background: #171717;
  color: #F7F5EF;
}


/* NUMBER */

.emercio-work-number {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 34px;

  line-height: 1;

  color: #7D8A43;

  margin-bottom: 55px;
}

.emercio-work-card-featured
.emercio-work-number {
  color: #C8D96B;
}


/* LABEL */

.emercio-work-label {
  display: block;

  margin-bottom: 18px;

  font-family:
    Manrope,
    Arial,
    sans-serif;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.2em;

  text-transform: uppercase;
}


/* HEADLINE */

.emercio-work-card h3 {
  margin: 0 0 22px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 43px;

  font-weight: 500;

  line-height: 0.92;

  letter-spacing: -0.025em;
}


/* DESCRIPTION */

.emercio-work-card p {
  margin: 0 0 28px;

  max-width: 95%;

  font-family:
    Manrope,
    Arial,
    sans-serif;

  font-size: 13px;

  line-height: 1.7;

  color: #474743;
}

.emercio-work-card-featured p {
  color: #D8D8D3;
}


/* INCLUDED LIST */

.emercio-work-card ul {
  list-style: none;

  padding: 0;
  margin: 0 0 35px;

  border-top:
    1px solid rgba(23, 23, 23, 0.15);
}

.emercio-work-card-featured ul {
  border-color:
    rgba(255, 255, 255, 0.18);
}

.emercio-work-card li {
  position: relative;

  padding: 10px 0 10px 20px;

  border-bottom:
    1px solid rgba(23, 23, 23, 0.15);

  font-family:
    Manrope,
    Arial,
    sans-serif;

  font-size: 12px;
}

.emercio-work-card-featured li {
  border-color:
    rgba(255, 255, 255, 0.18);
}

.emercio-work-card li::before {
  content: "+";

  position: absolute;
  left: 0;

  color: #7D8A43;

  font-weight: 700;
}

.emercio-work-card-featured
li::before {
  color: #C8D96B;
}


/* CTA */

.emercio-work-link {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  width: fit-content;

  margin-top: auto;

  padding-bottom: 4px;

  border-bottom:
    1px solid currentColor;

  font-family:
    Manrope,
    Arial,
    sans-serif;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.16em;

  text-decoration: none;

  color: inherit;

  transition: gap 0.25s ease;
}

.emercio-work-link:hover {
  gap: 20px;
}


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

@media (max-width: 1000px) {

  .emercio-work-header {
    grid-template-columns: 1fr 2fr;
  }

  .emercio-work-header p {
    grid-column: 2;
  }

  .emercio-work-grid {
    grid-template-columns: 1fr;
  }

  .emercio-work-card {
    min-height: auto;
  }

}


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

@media (max-width: 650px) {

  .emercio-work-together {
    padding:
      75px 18px;
  }

  .emercio-work-header {
    grid-template-columns: 1fr;

    gap: 20px;

    margin-bottom: 45px;
  }

  .emercio-work-header p {
    grid-column: auto;
  }

  .emercio-work-header h2 {
    font-size: 52px;
  }

  .emercio-work-card {
    padding: 28px 24px;
  }

  .emercio-work-number {
    margin-bottom: 38px;
  }

  .emercio-work-card h3 {
    font-size: 38px;
  }

}
/* =========================================================
   EMERCIO SERVICES — FULL WIDTH HERO
   ========================================================= */

/* Target the Columns block containing the Services hero heading */
.wp-block-columns:has(h2.has-display-font-family) {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Give the TEXT side breathing room */
.wp-block-columns:has(h2.has-display-font-family)
> .wp-block-column:first-child {
    padding-left: clamp(30px, 6vw, 110px) !important;
    padding-right: clamp(30px, 5vw, 80px) !important;
}

/* Let the IMAGE side reach the right edge */
.wp-block-columns:has(h2.has-display-font-family)
> .wp-block-column:last-child {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove margins around the hero image */
.wp-block-columns:has(h2.has-display-font-family)
> .wp-block-column:last-child figure {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/* Make image fill its half of the hero */
.wp-block-columns:has(h2.has-display-font-family)
> .wp-block-column:last-child img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Prevent full-width breakout from creating horizontal scrollbar */
body {
    overflow-x: hidden;
}