/* =========================================================
11. WHY THEWEBSTORE
========================================================= */

.why-webstore {
  padding: 120px 28px 60px;
  background: #ffffff;
  color: var(--ink);
  overflow: hidden;

  background:
    linear-gradient(
      to bottom,
      var(--white) 0%,
      rgba(255, 255, 255, 0.98) 25%,
      rgba(255, 255, 255, 0.753) 60%,
      rgba(255, 255, 255, 0.719) 100%
    ),
    url("../../images/Webstore-background.webp");

  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.why-container {
  max-width: 1200px;
  min-height: 650px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------
Section Header
--------------------------------------------------------- */

.why-header {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: end;
  column-gap: 80px;

  padding-bottom: 65px;
}

.why-header .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 20px;
}

.why-header h2 {
  max-width: 680px;
  margin: 0;

  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(46px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.why-header h2 em {
  color: var(--green-soft);
  font-style: normal;
}

.why-intro {
  max-width: 390px;
  margin: 0 0 5px;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* =========================================================
FLOATING REASON CARDS
========================================================= */

.why-reasons {
  position: relative;

  min-height: 390px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;

  gap: 18px;
}

/* ---------------------------------------------------------
Base Card
--------------------------------------------------------- */

.why-card {
  position: relative;

  min-width: 0;
  height: 285px;

  display: flex;
  flex-direction: column;

  padding: 25px;

  overflow: hidden;

  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 11px;

  color: var(--ink);
  text-decoration: none;

  box-shadow: 0 10px 28px #173a3010;

  isolation: isolate;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* ---------------------------------------------------------
Floating Y Positions
--------------------------------------------------------- */

.why-card-one {
  transform: translateY(-22px);
}

.why-card-two {
  transform: translateY(25px);
}

.why-card-three {
  transform: translateY(-8px);
}

.why-card-four {
  transform: translateY(34px);
}

/* ---------------------------------------------------------
Rising Background
--------------------------------------------------------- */

.why-card::before {
  content: "";

  position: absolute;
  z-index: -1;

  left: 0;
  right: 0;
  bottom: -100%;

  height: 100%;

  background: var(--mint);

  transition: bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Individual Card Colours */

.why-card-two::before {
  background: var(--coral);
}

.why-card-three::before {
  background: var(--yellow);
}

.why-card-four::before {
  background: var(--mint);
}

/* ---------------------------------------------------------
Hover
--------------------------------------------------------- */

.why-card:hover {
  transform: translateY(-8px);

  border-color: transparent;

  box-shadow:
    0 20px 40px #173a3025,
    0 5px 12px #173a3010;
}

.why-card-one:hover {
  transform: translateY(-30px);
}

.why-card-two:hover {
  transform: translateY(17px);
}

.why-card-three:hover {
  transform: translateY(-16px);
}

.why-card-four:hover {
  transform: translateY(26px);
}

.why-card:hover::before {
  bottom: 0;
}

/* ---------------------------------------------------------
Icon
--------------------------------------------------------- */

.why-card-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 35px;

  border-radius: 50%;

  font-size: 19px;
  font-weight: 700;

  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.3s ease;
}

/* Icon Colours */

.why-card-one .why-card-icon {
  background: var(--mint);
  border: 1px solid #b8eed8;
  color: var(--ink);
}

.why-card-two .why-card-icon {
  background: var(--coral);
  border: 1px solid #f7c3c1;
  color: var(--ink);
}

.why-card-three .why-card-icon {
  background: var(--yellow);
  border: 1px solid #f3df8b;
  color: var(--ink);
}

.why-card-four .why-card-icon {
  background: var(--mint);
  border: 1px solid #b8eed8;
  color: var(--ink);
}

/* Icon Inversion */

.why-card-one:hover .why-card-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--mint);
}

.why-card-two:hover .why-card-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--coral);
}

.why-card-three:hover .why-card-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--yellow);
}

.why-card-four:hover .why-card-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--mint);
}

.why-card:hover .why-card-icon {
  transform: rotate(-6deg) scale(1.05);
}

/* ---------------------------------------------------------
Card Number
--------------------------------------------------------- */

.why-card-number {
  margin-bottom: 9px;

  color: #81908a;

  font:
    600 8px "DM Mono",
    monospace;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition: color 0.3s ease;
}

/* ---------------------------------------------------------
Card Heading
--------------------------------------------------------- */

.why-card h3 {
  margin: 0 0 13px;

  color: var(--ink);

  font-family: "Inter", Arial, sans-serif;
  font-size: 27px;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: uppercase;

  transition: color 0.3s ease;
}

.why-card h3 em {
  font-style: normal;
  color: #319b76;

  transition: color 0.3s ease;
}

/* ---------------------------------------------------------
Card Description
--------------------------------------------------------- */

.why-card p {
  max-width: 210px;
  margin: 0;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.6;

  transition: color 0.3s ease;
}

/* ---------------------------------------------------------
Hover Typography
--------------------------------------------------------- */

.why-card:hover .why-card-number {
  color: rgba(23, 36, 33, 0.65);
}

.why-card:hover h3 {
  color: var(--ink);
}

.why-card:hover h3 em {
  color: var(--ink);
}

.why-card:hover p {
  color: rgba(23, 36, 33, 0.72);
}

/* ---------------------------------------------------------
Arrow
--------------------------------------------------------- */

.why-card-arrow {
  position: absolute;

  right: 23px;
  bottom: 22px;

  color: var(--ink);

  font-size: 19px;
  font-weight: 400;

  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.why-card:hover .why-card-arrow {
  transform: translateX(5px);
}

/* =========================================================
BOTTOM REASSURANCE
========================================================= */

.why-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  margin-top: 35px;
  padding-top: 20px;

  border-top: 1px solid var(--line);
}

.why-bottom span {
  color: #71817b;

  font:
    500 9px "DM Mono",
    monospace;

  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.why-bottom span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.why-bottom i {
  width: 6px;
  height: 6px;

  flex-shrink: 0;

  background: var(--mint);
  border-radius: 50%;
}

/* =========================================================
WHY THEWEBSTORE — TABLET
========================================================= */

@media (max-width: 950px) {
  .why-webstore {
    padding: 95px 28px 90px;
  }

  .why-header {
    grid-template-columns: 1fr;
    gap: 25px;

    padding-bottom: 50px;
  }

  .why-header .eyebrow {
    margin-bottom: 0;
  }

  .why-intro {
    max-width: 550px;
  }

  .why-reasons {
    grid-template-columns: repeat(2, 1fr);
    min-height: auto;

    gap: 18px;
  }

  .why-card {
    height: 270px;
  }

  .why-card-one,
  .why-card-two,
  .why-card-three,
  .why-card-four {
    transform: none;
  }

  .why-card-one:hover,
  .why-card-two:hover,
  .why-card-three:hover,
  .why-card-four:hover {
    transform: translateY(-8px);
  }
}

/* =========================================================
WHY THEWEBSTORE — MOBILE
========================================================= */

@media (max-width: 600px) {
  .why-webstore {
    padding: 80px 21px 75px;
  }

  .why-header {
    padding-bottom: 42px;
  }

  .why-header h2 {
    font-size: 43px;
  }

  .why-intro {
    font-size: 14px;
    line-height: 1.65;
  }

  .why-reasons {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why-card,
  .why-card-one,
  .why-card-two,
  .why-card-three,
  .why-card-four {
    height: 245px;

    transform: none;
  }

  .why-card:hover,
  .why-card-one:hover,
  .why-card-two:hover,
  .why-card-three:hover,
  .why-card-four:hover {
    transform: translateY(-6px);
  }

  .why-card-icon {
    margin-bottom: 27px;
  }

  .why-card h3 {
    font-size: 26px;
  }

  .why-card p {
    max-width: 280px;
  }

  .why-bottom {
    align-items: flex-start;
    flex-direction: column;

    gap: 10px;

    margin-top: 28px;
  }
}
