/* =========================================================
   LEWIS BROTHERS
   EPDM RUBBER FLAT ROOFING PAGE

   IMPORTANT:
   Navbar
   Footer
   WhatsApp
   Cookie banner
   Generic mobile carousel arrows

   are controlled by global.css
   ========================================================= */

.epdm-page {
  --epdm-blue: var(--lb-blue, #163153);
  --epdm-blue-dark: var(--lb-blue-dark, #0d223c);
  --epdm-grey: var(--lb-primary, #c6c8cc);
  --epdm-grey-dark: var(--lb-primary-dark, #adb1b6);
  --epdm-grey-soft: var(--lb-grey-light, #f3f4f5);
  --epdm-white: #ffffff;

  color: var(--epdm-blue-dark);
}

.epdm-page main {
  overflow: hidden;
  background: var(--epdm-grey-soft);
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.epdm-page main p,
.epdm-page main li {
  font-size: 18px;
  line-height: 1.65;
}

.epdm-container {
  width: min(
    calc(100% - 56px),
    1480px
  );

  margin-inline: auto;
}


/* =========================================================
   SHARED LABELS
   ========================================================= */

.epdm-page main .epdm-section-label,
.epdm-page main .epdm-eyebrow {
  margin: 0 0 16px;

  color: var(--epdm-blue);

  font-family:
    var(
      --font-subheading,
      "IBM Plex Sans",
      sans-serif
    );

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

  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.epdm-page main .epdm-section-label-light {
  color: var(--epdm-grey);
}


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

.epdm-hero {
  position: relative;

  width: 100%;
  min-height: 625px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding:
    125px
    28px
    76px;

  overflow: hidden;

  background-image:
    url("../images/epdm-roofing-anglesey-hero.webp");

  background-position: center;
  background-size: cover;
}

.epdm-hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(7, 25, 44, 0.62) 0%,
      rgba(7, 25, 44, 0.78) 52%,
      rgba(7, 25, 44, 0.90) 100%
    );
}

.epdm-hero-content {
  position: relative;
  z-index: 2;

  width: min(100%, 1050px);

  margin-inline: auto;

  text-align: center;
}

.epdm-page main
.epdm-hero
.epdm-eyebrow {
  margin-bottom: 19px;

  color: var(--epdm-grey);
}

.epdm-hero h1 {
  margin: 0;

  color: var(--epdm-white);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size:
    clamp(
      4rem,
      6.2vw,
      6.6rem
    );

  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.058em;
}

.epdm-hero h1 span {
  display: block;

  color: var(--epdm-grey);
}

.epdm-page main
.epdm-hero-copy {
  max-width: 820px;

  margin:
    27px
    auto
    0;

  color:
    rgba(
      255,
      255,
      255,
      0.84
    );

  font-size: 19px;
  line-height: 1.65;
}

.epdm-hero-actions {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 12px;

  margin-top: 31px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.epdm-page main
.epdm-button {
  min-height: 54px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  padding:
    0
    27px;

  border-radius: 999px;

  font-family:
    var(
      --font-subheading,
      "IBM Plex Sans",
      sans-serif
    );

  font-size: 15px;
  font-weight: 700;
  line-height: 1;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.epdm-page main
.epdm-button:hover {
  transform: translateY(-2px);
}

.epdm-page main
.epdm-button-grey {
  background: var(--epdm-grey);

  color: var(--epdm-blue-dark);
}

.epdm-page main
.epdm-button-grey:hover {
  background: var(--epdm-white);

  color: var(--epdm-blue-dark);
}

.epdm-page main
.epdm-button-glass {
  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.48
    );

  background:
    rgba(
      255,
      255,
      255,
      0.08
    );

  color: var(--epdm-white);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.epdm-page main
.epdm-button-glass:hover {
  border-color: var(--epdm-white);

  background:
    rgba(
      255,
      255,
      255,
      0.14
    );

  color: var(--epdm-white);
}


/* =========================================================
   SPECIALIST FLAT ROOFING
   ========================================================= */

.epdm-intro-section {
  padding:
    clamp(
      100px,
      8vw,
      145px
    )
    0;

  background: var(--epdm-grey);
}

.epdm-intro-heading {
  width: min(100%, 1180px);
  margin: 0 auto 48px;
}

.epdm-intro-heading h2 {
  margin: 0;

  color: var(--epdm-blue-dark);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size:
    clamp(
      3.4rem,
      5vw,
      5.5rem
    );

  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.epdm-intro-heading h2 span {
  display: block;

  color: #65768a;
}

.epdm-intro-grid {
  width: min(100%, 1180px);
  margin-inline: auto;

  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 580px)
    );

  justify-content: center;
  align-items: stretch;

  gap: 20px;
}

/*
 * Source image can stay at 800px.
 * It is displayed at a maximum of 580px on desktop.
 */
.epdm-intro-image {
  width: 100%;
  max-width: 580px;

  aspect-ratio: 1 / 1;

  justify-self: center;

  min-height: 0;

  overflow: hidden;

  border-radius: 30px;

  background: #abb0b6;
}

.epdm-intro-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform
    0.8s
    cubic-bezier(
      0.2,
      0.7,
      0.2,
      1
    );
}

.epdm-intro-image:hover img {
  transform: scale(1.025);
}

.epdm-intro-copy {
  width: 100%;
  max-width: 580px;
  min-height: 580px;

  justify-self: center;

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding:
    clamp(
      34px,
      3.2vw,
      46px
    );

  border-radius: 30px;

  background: var(--epdm-white);
}

.epdm-page main
.epdm-intro-copy p {
  margin:
    0
    0
    20px;

  color: #46586b;
}

.epdm-page main
.epdm-intro-copy
.epdm-intro-lead {
  color: var(--epdm-blue-dark);

  font-size: 21px;
  font-weight: 600;
}

.epdm-text-button {
  width: fit-content;
  min-height: 49px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-top: 10px;

  padding:
    0
    22px;

  border-radius: 999px;

  background: var(--epdm-blue);

  color: var(--epdm-white);

  font-family:
    var(
      --font-subheading,
      "IBM Plex Sans",
      sans-serif
    );

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

  text-decoration: none;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.epdm-text-button:hover {
  background: var(--epdm-blue-dark);

  color: var(--epdm-white);

  transform: translateY(-2px);
}


/* =========================================================
   WHY LEWIS BROTHERS
   ========================================================= */

.epdm-why-section {
  padding:
    clamp(
      105px,
      9vw,
      150px
    )
    0;

  background: var(--epdm-blue-dark);

  color: var(--epdm-white);
}

.epdm-why-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(420px, 0.95fr);

  align-items: center;

  gap:
    clamp(
      60px,
      8vw,
      120px
    );
}

.epdm-why-header {
  max-width: 790px;
}

.epdm-why-content h2 {
  margin: 0;

  color: var(--epdm-white);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size:
    clamp(
      3.5rem,
      5vw,
      5.35rem
    );

  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.epdm-why-content h2 span {
  display: block;

  color: var(--epdm-grey);
}

.epdm-page main
.epdm-why-lead {
  max-width: 710px;

  margin:
    25px
    0
    0;

  color:
    rgba(
      255,
      255,
      255,
      0.74
    );

  font-size: 19px;
}


/* Hidden on desktop */

.epdm-why-mobile-image {
  display: none;
}

.epdm-why-list {
  margin-top: 32px;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.14
    );
}

.epdm-why-item {
  display: grid;

  grid-template-columns:
    54px
    minmax(0, 1fr);

  gap: 18px;

  padding:
    24px
    0;

  border-bottom:
    1px solid
    rgba(
      255,
      255,
      255,
      0.14
    );
}

.epdm-why-icon {
  width: 48px;
  height: 48px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: var(--epdm-grey);

  color: var(--epdm-blue-dark);

  transition:
    transform 0.3s ease;
}

.epdm-why-item:hover
.epdm-why-icon {
  transform: translateY(-3px);
}

.epdm-why-icon i {
  font-size: 19px;
}

.epdm-why-item h3 {
  margin:
    0
    0
    7px;

  color: var(--epdm-white);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size: 1.38rem;
  font-weight: 700;
}

.epdm-page main
.epdm-why-item p {
  max-width: 650px;

  margin: 0;

  color:
    rgba(
      255,
      255,
      255,
      0.67
    );

  font-size: 16px;
}


/* =========================================================
   WHY LEWIS BROTHERS DESKTOP IMAGES
   ========================================================= */

.epdm-why-images {
  display: grid;

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

  gap: 14px;

  align-items: end;
}

.epdm-why-photo {
  margin: 0;

  overflow: hidden;

  border-radius: 30px;

  background: #273747;
}

.epdm-why-photo-main {
  height: 480px;
}

.epdm-why-photo-secondary {
  height: 365px;

  margin-bottom: 45px;
}

.epdm-why-photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.75s ease;
}

.epdm-why-photo:hover img {
  transform: scale(1.035);
}


/* =========================================================
   WHY EPDM
   ========================================================= */

.epdm-benefits-section {
  padding:
    clamp(
      105px,
      9vw,
      150px
    )
    0;

  background: var(--epdm-white);
}

.epdm-centered-heading {
  max-width: 980px;

  margin:
    0
    auto
    64px;

  text-align: center;
}

.epdm-centered-heading h2 {
  margin: 0;

  color: var(--epdm-blue-dark);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size:
    clamp(
      3.4rem,
      5vw,
      5.45rem
    );

  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.epdm-centered-heading h2 span {
  display: block;

  color: #738398;
}

.epdm-page main
.epdm-centered-heading
> p:last-child {
  max-width: 760px;

  margin:
    23px
    auto
    0;

  color: #536373;

  font-size: 18px;
}


/* =========================================================
   WHY EPDM CARDS
   ========================================================= */

.epdm-benefit-grid {
  display: grid;

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

  grid-auto-rows: 1fr;

  gap: 18px;
}

.epdm-benefit-card {
  position: relative;

  min-height: 440px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding:
    clamp(
      31px,
      3.5vw,
      46px
    );

  overflow: hidden;

  border-radius: 31px;

  transition:
    transform
    0.4s
    cubic-bezier(
      0.2,
      0.75,
      0.25,
      1
    ),
    box-shadow
    0.4s
    ease;
}

.epdm-benefit-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0
    25px
    55px
    rgba(
      13,
      34,
      60,
      0.13
    );
}

.epdm-benefit-card-blue {
  background: var(--epdm-blue);

  color: var(--epdm-white);
}

.epdm-benefit-card-metal {
  border:
    1px solid
    rgba(
      22,
      49,
      83,
      0.10
    );

  background:
    linear-gradient(
      145deg,
      #f2f3f4 0%,
      #d9dcdf 27%,
      #c6c8cc 58%,
      #a8adb3 100%
    );

  color: var(--epdm-blue-dark);

  box-shadow:
    inset
    0
    1px
    0
    rgba(
      255,
      255,
      255,
      0.8
    );
}

.epdm-benefit-card-soft {
  background: #e9edf1;

  color: var(--epdm-blue-dark);
}


/* =========================================================
   CARD PATTERNS
   ========================================================= */

.epdm-card-pattern {
  position: absolute;

  top: -20px;
  right: -20px;

  width: 220px;
  height: 220px;

  opacity: 0.15;

  pointer-events: none;
}

.epdm-pattern-wave::before,
.epdm-pattern-wave::after {
  content: "";

  position: absolute;

  border:
    38px solid
    var(--epdm-white);

  border-radius:
    50%
    50%
    0
    50%;

  transform: rotate(35deg);
}

.epdm-pattern-wave::before {
  width: 150px;
  height: 150px;

  top: 10px;
  right: 0;
}

.epdm-pattern-wave::after {
  width: 115px;
  height: 115px;

  top: 95px;
  right: 90px;
}

.epdm-pattern-blocks {
  background:
    linear-gradient(
      90deg,
      transparent 0 32%,
      var(--epdm-blue) 32% 58%,
      transparent 58%
    ),
    linear-gradient(
      0deg,
      transparent 0 35%,
      var(--epdm-blue) 35% 61%,
      transparent 61%
    );

  border-radius: 50%;
}

.epdm-pattern-rings::before,
.epdm-pattern-rings::after {
  content: "";

  position: absolute;

  border:
    30px solid
    var(--epdm-blue);

  border-radius: 50%;
}

.epdm-pattern-rings::before {
  width: 160px;
  height: 160px;

  top: 10px;
  right: -25px;
}

.epdm-pattern-rings::after {
  width: 100px;
  height: 100px;

  top: 105px;
  right: 95px;
}


/* =========================================================
   CARD ICON
   ========================================================= */

.epdm-benefit-icon {
  position: relative;
  z-index: 2;

  width: 62px;
  height: 62px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 20px;

  background: var(--epdm-grey);

  color: var(--epdm-blue-dark);
}

.epdm-benefit-card-metal
.epdm-benefit-icon,

.epdm-benefit-card-soft
.epdm-benefit-icon {
  background: var(--epdm-blue);

  color: var(--epdm-white);
}

.epdm-benefit-icon i {
  font-size: 23px;
}

.epdm-benefit-content {
  position: relative;
  z-index: 2;
}

.epdm-benefit-content h3 {
  margin:
    0
    0
    12px;

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size:
    clamp(
      1.7rem,
      2.1vw,
      2rem
    );

  font-weight: 700;
  line-height: 1.1;
}

.epdm-benefit-card-blue h3 {
  color: var(--epdm-white);
}

.epdm-page main
.epdm-benefit-content p {
  margin: 0;

  font-size: 17px;
  line-height: 1.55;
}

.epdm-benefit-card-blue
.epdm-benefit-content p {
  color:
    rgba(
      255,
      255,
      255,
      0.72
    );
}

.epdm-benefit-card-metal
.epdm-benefit-content p,

.epdm-benefit-card-soft
.epdm-benefit-content p {
  color: #445568;
}


/* =========================================================
   REVIEWS
   ========================================================= */

.epdm-reviews-section {
  padding:
    clamp(
      105px,
      9vw,
      150px
    )
    0;

  background: var(--epdm-blue);
}

.epdm-reviews-heading {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 50px;

  margin-bottom: 58px;
}

.epdm-reviews-heading h2 {
  margin: 0;

  color: var(--epdm-white);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size:
    clamp(
      3.4rem,
      4.8vw,
      5.2rem
    );

  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.epdm-reviews-heading h2 span {
  display: block;

  color: var(--epdm-grey);
}

.epdm-google-link {
  min-height: 50px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  padding:
    0
    21px;

  flex:
    0
    0
    auto;

  border-radius: 999px;

  background: var(--epdm-grey);

  color: var(--epdm-blue-dark);

  font-family:
    var(
      --font-subheading,
      "IBM Plex Sans",
      sans-serif
    );

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

  text-decoration: none;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.epdm-google-link:hover {
  transform: translateY(-2px);

  background: var(--epdm-white);

  color: var(--epdm-blue-dark);
}

.epdm-review-grid {
  display: grid;

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

  gap: 18px;
}

.epdm-review-card {
  min-height: 390px;

  display: flex;

  flex-direction: column;

  padding:
    clamp(
      32px,
      4vw,
      49px
    );

  border-radius: 30px;

  background: var(--epdm-white);

  transition:
    transform 0.35s ease,
    background 0.35s ease;
}

.epdm-review-card:hover {
  transform: translateY(-7px);

  background: var(--epdm-grey);
}

.epdm-review-top {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

.epdm-review-person {
  display: flex;

  align-items: center;

  gap: 14px;
}

.epdm-review-initial {
  width: 56px;
  height: 56px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex:
    0
    0
    auto;

  border-radius: 50%;

  background: var(--epdm-blue);

  color: var(--epdm-white);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size: 21px;
  font-weight: 700;
}

.epdm-review-person > div {
  display: flex;

  flex-direction: column;

  gap: 2px;
}

.epdm-review-person strong {
  color: var(--epdm-blue-dark);

  font-size: 17px;
}

.epdm-review-person div span {
  color: #677585;

  font-size: 14px;
}

.epdm-review-stars {
  flex:
    0
    0
    auto;

  color: var(--epdm-blue);

  font-size: 15px;

  letter-spacing: 2px;
}

.epdm-review-card blockquote {
  margin:
    auto
    0
    0;

  padding-top: 55px;

  color: var(--epdm-blue-dark);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size:
    clamp(
      1.3rem,
      1.8vw,
      1.65rem
    );

  font-weight: 600;
  line-height: 1.45;
}

.epdm-review-source {
  display: block;

  margin-top: 23px;

  color: #6a7887;

  font-family:
    var(
      --font-subheading,
      "IBM Plex Sans",
      sans-serif
    );

  font-size: 13px;
  font-weight: 600;
}


/* =========================================================
   GALLERY
   ========================================================= */

.epdm-gallery-section {
  padding:
    clamp(
      105px,
      9vw,
      150px
    )
    0;

  background: var(--epdm-white);
}

.epdm-gallery-heading {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(320px, 0.55fr);

  align-items: end;

  gap: 70px;

  margin-bottom: 58px;
}

.epdm-gallery-heading h2 {
  margin: 0;

  color: var(--epdm-blue-dark);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size:
    clamp(
      3.4rem,
      4.8vw,
      5.2rem
    );

  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.epdm-gallery-heading h2 span {
  display: block;

  color: #75859a;
}

.epdm-page main
.epdm-gallery-heading
> p {
  max-width: 540px;

  margin: 0;

  color: #536273;
}


/* =========================================================
   MOSAIC
   ========================================================= */

.epdm-gallery-grid {
  display: grid;

  grid-template-columns:
    repeat(
      12,
      minmax(0, 1fr)
    );

  grid-template-rows:
    250px
    250px
    250px;

  gap: 14px;
}

.epdm-gallery-item {
  position: relative;

  width: 100%;
  height: 100%;

  display: block;

  padding: 0;

  overflow: hidden;

  border: 0;

  border-radius: 26px;

  background: var(--epdm-grey);

  cursor: zoom-in;
}

.epdm-gallery-item-1 {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
}

.epdm-gallery-item-2 {
  grid-column: 6 / 13;
  grid-row: 1 / 2;
}

.epdm-gallery-item-3 {
  grid-column: 6 / 10;
  grid-row: 2 / 3;
}

.epdm-gallery-item-4 {
  grid-column: 10 / 13;
  grid-row: 2 / 3;
}

.epdm-gallery-item-5 {
  grid-column: 1 / 5;
  grid-row: 3 / 4;
}

.epdm-gallery-item-6 {
  grid-column: 5 / 13;
  grid-row: 3 / 4;
}

.epdm-gallery-item img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.7s ease,
    filter 0.4s ease;
}

.epdm-gallery-item:hover img {
  transform: scale(1.045);

  filter: brightness(0.78);
}

.epdm-gallery-open {
  position: absolute;

  right: 16px;
  bottom: 16px;

  min-height: 43px;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding:
    0
    16px;

  border-radius: 999px;

  background:
    rgba(
      255,
      255,
      255,
      0.94
    );

  color: var(--epdm-blue-dark);

  font-family:
    var(
      --font-subheading,
      "IBM Plex Sans",
      sans-serif
    );

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

  opacity: 0;

  transform: translateY(8px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.epdm-gallery-item:hover
.epdm-gallery-open,

.epdm-gallery-item:focus-visible
.epdm-gallery-open {
  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   LOCATION
   ========================================================= */

.epdm-location-section {
  padding:
    clamp(
      100px,
      8vw,
      140px
    )
    0;

  background: var(--epdm-blue-dark);

  color: var(--epdm-white);
}

.epdm-location-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(380px, 0.75fr);

  align-items: center;

  gap:
    clamp(
      60px,
      9vw,
      140px
    );
}

.epdm-location-section h2 {
  margin: 0;

  color: var(--epdm-white);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size:
    clamp(
      3.4rem,
      4.8vw,
      5.2rem
    );

  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.epdm-location-section h2 span {
  display: block;

  color: var(--epdm-grey);
}

.epdm-page main
.epdm-location-copy p {
  margin:
    0
    0
    17px;

  color:
    rgba(
      255,
      255,
      255,
      0.75
    );
}

.epdm-location-areas {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin-top: 26px;
}

.epdm-location-areas span {
  min-height: 40px;

  display: inline-flex;

  align-items: center;

  padding:
    0
    15px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.17
    );

  border-radius: 999px;

  background:
    rgba(
      255,
      255,
      255,
      0.06
    );

  color: var(--epdm-grey);

  font-family:
    var(
      --font-subheading,
      "IBM Plex Sans",
      sans-serif
    );

  font-size: 13px;
  font-weight: 700;
}


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

.epdm-final-cta {
  position: relative;

  min-height: 510px;

  display: flex;

  align-items: center;

  overflow: hidden;

  background-image:
    url("../images/epdm-flat-roofing-final-cta.webp");

  background-position: center;
  background-size: cover;
}

.epdm-final-overlay {
  position: absolute;

  inset: 0;

  background:
    rgba(
      13,
      34,
      60,
      0.88
    );
}

.epdm-final-content {
  position: relative;
  z-index: 2;

  max-width: 900px;

  margin-inline: auto;

  padding:
    95px
    0;

  text-align: center;
}

.epdm-final-content h2 {
  margin: 0;

  color: var(--epdm-white);

  font-family:
    var(
      --font-heading,
      "Archivo",
      sans-serif
    );

  font-size:
    clamp(
      3.5rem,
      5vw,
      5.4rem
    );

  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.epdm-final-content h2 span {
  display: block;

  color: var(--epdm-grey);
}

.epdm-page main
.epdm-final-content
> p:not(
  .epdm-section-label
) {
  max-width: 700px;

  margin:
    23px
    auto
    0;

  color:
    rgba(
      255,
      255,
      255,
      0.77
    );
}

.epdm-final-actions {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 11px;

  margin-top: 30px;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

body.epdm-lightbox-open {
  overflow: hidden;
}

.epdm-lightbox {
  position: fixed;

  inset: 0;

  z-index: 5000;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 28px;
}

.epdm-lightbox.is-open {
  display: flex;
}

.epdm-lightbox-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(
      7,
      17,
      29,
      0.95
    );

  backdrop-filter: blur(10px);
}

.epdm-lightbox-inner {
  position: relative;
  z-index: 2;

  width:
    min(
      1180px,
      100%
    );

  height:
    min(
      780px,
      calc(
        100vh - 56px
      )
    );

  display: flex;

  align-items: center;
  justify-content: center;
}

.epdm-lightbox figure {
  width: 100%;
  height: 100%;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  margin: 0;
}

.epdm-lightbox figure img {
  max-width: 100%;

  max-height:
    calc(
      100% - 60px
    );

  object-fit: contain;

  border-radius: 24px;
}

.epdm-lightbox figcaption {
  min-height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding-top: 15px;

  color: var(--epdm-white);

  font-size: 15px;
}

.epdm-lightbox-close {
  position: fixed;

  top: 24px;
  right: 24px;

  z-index: 4;

  min-height: 52px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  padding:
    0
    19px;

  border: 0;

  border-radius: 999px;

  background: var(--epdm-grey);

  color: var(--epdm-blue-dark);

  font-family:
    var(
      --font-subheading,
      "IBM Plex Sans",
      sans-serif
    );

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

  cursor: pointer;
}

.epdm-lightbox-nav {
  position: fixed;

  top: 50%;

  z-index: 4;

  width: 55px;
  height: 55px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 0;

  border-radius: 50%;

  background: var(--epdm-grey);

  color: var(--epdm-blue-dark);

  cursor: pointer;

  transform: translateY(-50%);
}

.epdm-lightbox-prev {
  left: 25px;
}

.epdm-lightbox-next {
  right: 25px;
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

[data-reveal] {
  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity
    0.85s
    ease,

    transform
    0.85s
    cubic-bezier(
      0.2,
      0.72,
      0.25,
      1
    );
}

[data-reveal].is-visible {
  opacity: 1;

  transform: translateY(0);
}


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

@media (max-width: 1050px) {

  .epdm-intro-grid {
    width: min(100%, 680px);

    grid-template-columns: 1fr;

    gap: 16px;
  }

  .epdm-intro-image,
  .epdm-intro-copy {
    width: 100%;
    max-width: 620px;

    margin-inline: auto;
  }

  .epdm-intro-copy {
    min-height: auto;
  }


  .epdm-why-layout {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .epdm-why-images {
    max-width: 800px;
  }

  .epdm-benefit-card {
    min-height: 400px;
  }

}


@media (max-width: 900px) {

  .epdm-container {
    width:
      min(
        calc(
          100% - 36px
        ),
        1480px
      );
  }

  .epdm-hero {
    min-height: 585px;

    padding:
      125px
      24px
      70px;
  }

  .epdm-gallery-heading,
  .epdm-location-grid {
    grid-template-columns: 1fr;
  }

}


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

@media (max-width: 767.98px) {

  /* =======================================================
     TYPOGRAPHY
     ======================================================= */

  .epdm-page main p,
  .epdm-page main li {
    font-size: 16px;
  }

  .epdm-container {
    width:
      min(
        calc(
          100% - 28px
        ),
        1480px
      );
  }


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

  .epdm-hero {
    min-height: 545px;

    padding:
      112px
      18px
      58px;

    background-position: center;
  }

  .epdm-hero h1 {
    font-size:
      clamp(
        2.8rem,
        12vw,
        4rem
      );
  }

  .epdm-page main
  .epdm-hero-copy {
    font-size: 17px;
  }

  .epdm-hero-actions {
    width: 100%;
    max-width: 410px;

    margin-inline: auto;

    flex-direction: column;
  }

  .epdm-hero-actions
  .epdm-button {
    width: 100%;
  }


  /* =======================================================
     SECTION SPACING
     ======================================================= */

  .epdm-intro-section,
  .epdm-why-section,
  .epdm-benefits-section,
  .epdm-reviews-section,
  .epdm-gallery-section,
  .epdm-location-section {
    padding:
      80px
      0;
  }


  /* =======================================================
     HEADINGS
     ======================================================= */

  .epdm-intro-heading h2,
  .epdm-why-content h2,
  .epdm-centered-heading h2,
  .epdm-reviews-heading h2,
  .epdm-gallery-heading h2,
  .epdm-location-section h2,
  .epdm-final-content h2 {
    font-size:
      clamp(
        2.6rem,
        11vw,
        4rem
      );
  }


  /* =======================================================
     SPECIALIST FLAT ROOFING
     ======================================================= */

  .epdm-intro-heading {
    width: 100%;

    margin-bottom: 38px;
  }

  .epdm-intro-grid {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 14px;
  }

  .epdm-intro-image {
    order: 1;

    width: 100%;
    max-width: 560px;

    aspect-ratio: 1 / 1;

    min-height: 0;

    margin-inline: auto;

    border-radius: 24px;
  }

  .epdm-intro-copy {
    order: 2;

    width: 100%;
    max-width: 560px;
    min-height: auto;

    margin-inline: auto;

    padding: 28px;

    border-radius: 24px;
  }

  .epdm-page main
  .epdm-intro-copy
  .epdm-intro-lead {
    font-size: 19px;
  }

  .epdm-text-button {
    width: 100%;
  }


  /* =======================================================
     WHY LEWIS BROTHERS
     ======================================================= */

  .epdm-why-layout {
    display: block;
  }

  .epdm-why-images {
    display: none;
  }

  .epdm-why-mobile-image {
    width: 100%;

    aspect-ratio: 1 / 0.82;

    display: block;

    margin:
      34px
      0
      13px;

    overflow: hidden;

    border-radius: 24px;
  }

  .epdm-why-mobile-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
  }

  .epdm-why-list {
    margin-top: 0;
  }

  .epdm-why-item {
    grid-template-columns:
      48px
      minmax(0, 1fr);

    gap: 14px;

    padding:
      22px
      0;
  }

  .epdm-why-icon {
    width: 44px;
    height: 44px;

    border-radius: 14px;
  }


  /* =======================================================
     WHY EPDM MOBILE CAROUSEL
     ======================================================= */

  .epdm-centered-heading {
    margin-bottom: 43px;
  }

  .epdm-benefits-section
  .mobile-card-carousel {
    margin-inline: -4px;
  }

  .epdm-benefits-section
  .mobile-carousel-track {
    align-items: stretch;
  }

  .epdm-benefit-card {
    min-height: 365px;

    padding: 29px;

    border-radius: 25px;
  }

  .epdm-benefit-grid
  .scroll-item {
    height: auto;
  }

  .epdm-card-pattern {
    width: 180px;
    height: 180px;
  }


  /* =======================================================
     TESTIMONIALS MOBILE CAROUSEL
     ======================================================= */

  .epdm-reviews-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 28px;

    margin-bottom: 39px;
  }

  .epdm-google-link {
    width: 100%;
  }

  .epdm-review-carousel {
    margin-inline: -4px;
  }

  .epdm-review-grid {
    align-items: stretch;
  }

  .epdm-review-card {
    min-height: 390px;

    padding: 28px;

    border-radius: 25px;
  }

  .epdm-review-top {
    gap: 12px;
  }

  .epdm-review-initial {
    width: 50px;
    height: 50px;

    font-size: 19px;
  }

  .epdm-review-stars {
    font-size: 12px;

    letter-spacing: 1px;
  }

  .epdm-review-card blockquote {
    padding-top: 42px;

    font-size: 1.3rem;

    line-height: 1.45;
  }


  /* =======================================================
     GALLERY
     ======================================================= */

  .epdm-gallery-heading {
    gap: 20px;
  }

  .epdm-gallery-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    grid-template-rows:
      270px
      175px
      175px
      220px;

    gap: 9px;
  }

  .epdm-gallery-item {
    border-radius: 19px;
  }

  .epdm-gallery-item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .epdm-gallery-item-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
  }

  .epdm-gallery-item-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .epdm-gallery-item-4 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .epdm-gallery-item-5 {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
  }

  .epdm-gallery-item-6 {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
  }

  .epdm-gallery-open {
    right: 9px;
    bottom: 9px;

    min-height: 39px;

    padding:
      0
      13px;

    opacity: 1;

    transform: none;
  }


  /* =======================================================
     LOCATION
     ======================================================= */

  .epdm-location-grid {
    gap: 38px;
  }


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

  .epdm-final-cta {
    min-height: 550px;
  }

  .epdm-final-content {
    padding:
      78px
      0;
  }

  .epdm-final-actions {
    width: 100%;
    max-width: 410px;

    margin-inline: auto;

    margin-top: 28px;

    flex-direction: column;
  }

  .epdm-final-actions
  .epdm-button {
    width: 100%;
  }


  /* =======================================================
     LIGHTBOX
     ======================================================= */

  .epdm-lightbox {
    padding: 12px;
  }

  .epdm-lightbox-inner {
    width: 100%;
    height: 100%;
  }

  .epdm-lightbox figure {
    padding:
      77px
      0
      75px;
  }

  .epdm-lightbox figure img {
    max-height: 100%;

    border-radius: 18px;
  }

  .epdm-lightbox-close {
    top: 14px;
    right: 14px;

    min-height: 50px;

    background: var(--epdm-white);

    box-shadow:
      0
      10px
      30px
      rgba(
        0,
        0,
        0,
        0.22
      );
  }

  .epdm-lightbox-nav {
    top: auto;
    bottom: 16px;

    width: 49px;
    height: 49px;

    background: var(--epdm-white);

    transform: none;
  }

  .epdm-lightbox-prev {
    left:
      calc(
        50% - 58px
      );
  }

  .epdm-lightbox-next {
    right:
      calc(
        50% - 58px
      );
  }

  .epdm-lightbox figcaption {
    position: absolute;

    right: 15px;
    bottom: 75px;
    left: 15px;

    min-height: auto;

    padding: 0;

    text-align: center;
  }

}


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

@media (max-width: 575.98px) {

  .epdm-hero {
    min-height: 525px;

    padding-top: 106px;
  }

  .epdm-intro-image {
    width: 100%;
    max-width: 100%;
  }

  .epdm-intro-copy {
    width: 100%;
    max-width: 100%;

    padding:
      25px
      22px;
  }

  .epdm-why-mobile-image {
    aspect-ratio: 1 / 0.86;
  }

  .epdm-benefit-card {
    min-height: 350px;

    padding: 26px;
  }

  .epdm-review-card {
    min-height: 375px;

    padding: 25px;
  }

  .epdm-review-card blockquote {
    font-size: 1.2rem;
  }

  .epdm-gallery-grid {
    grid-template-rows:
      245px
      155px
      155px
      190px;
  }

}


/* =========================================================
   TOUCH
   ========================================================= */

@media (hover: none) {

  .epdm-gallery-open {
    opacity: 1;

    transform: none;
  }

  .epdm-page main
  .epdm-button:hover,

  .epdm-text-button:hover,

  .epdm-google-link:hover,

  .epdm-benefit-card:hover,

  .epdm-review-card:hover {
    transform: none;
  }

  .epdm-intro-image:hover img,

  .epdm-why-photo:hover img,

  .epdm-gallery-item:hover img {
    transform: none;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (
  prefers-reduced-motion:
  reduce
) {

  [data-reveal] {
    opacity: 1;

    transform: none;
  }

  .epdm-intro-image img,
  .epdm-why-photo img,
  .epdm-benefit-card,
  .epdm-gallery-item img,
  .epdm-gallery-open,
  .epdm-review-card,
  .epdm-button,
  .epdm-text-button,
  .epdm-google-link,
  .epdm-why-icon {
    transition: none !important;
  }

}