/* ===============================
   HOW IT WORKS + WHY CHOOSE US
   File: how-it-works.css
================================ */

/* ===============================
   SHARED SECTION BASE
================================ */

.how-it-works,
.features {
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* ===============================
   SHARED SECTION HEADING
================================ */

.section-heading {
  position: relative;
  z-index: 2;

  width: min(760px, 100%);
  margin: 0 auto 58px;

  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;
  padding: 9px 18px;

  border-radius: 999px;
  border: 1px solid rgba(181, 139, 96, 0.28);

  background: rgba(255, 255, 255, 0.58);
  color: var(--coffee);

  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  box-shadow: 0 12px 30px rgba(45, 26, 17, 0.06);
}

.section-heading h2,
.features h2 {
  position: relative;
  z-index: 2;

  display: inline-block;
  margin: 0;

  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: 0;

  color: var(--coffee);
}

.section-heading h2::after,
.features h2::after {
  content: "";
  display: block;

  width: 78px;
  height: 3px;

  margin: 14px auto 0;

  border-radius: 999px;
  background: linear-gradient(90deg, var(--coffee), var(--accent));
}

.section-heading p {
  width: min(650px, 100%);
  margin: 22px auto 0;

  color: #6d5a4f;

  font-family: 'Lora', serif;
  font-size: 17px;
  line-height: 1.75;
}

.features h2 {
  margin: 0 0 42px;
}

/* ===============================
   HOW IT WORKS SECTION
================================ */

.how-it-works {
  padding: 96px 24px 110px;

  background:
    radial-gradient(circle at 12% 16%, rgba(181, 139, 96, 0.13), transparent 30%),
    radial-gradient(circle at 88% 80%, rgba(90, 56, 37, 0.08), transparent 34%),
    linear-gradient(180deg, #fffaf4 0%, #f7ecdf 100%);
}

.how-it-works::before {
  content: "";
  position: absolute;
  inset: 28px 24px;

  border: 1px solid rgba(181, 139, 96, 0.16);
  border-radius: 34px;

  pointer-events: none;
}

.how-it-works::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;

  width: min(760px, 90%);
  height: 260px;

  transform: translateX(-50%);

  background: radial-gradient(circle, rgba(217, 174, 124, 0.18), transparent 68%);

  pointer-events: none;
}

/* ===============================
   HOW PROCESS GRID
================================ */

.how-process {
  position: relative;
  z-index: 2;

  width: min(1180px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* ===============================
   PROCESS CARD
================================ */

.process-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 370px;
  padding: 34px 26px 32px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-align: center;

  border-radius: 30px;
  border: 1px solid rgba(181, 139, 96, 0.24);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 249, 242, 0.96));

  box-shadow:
    0 22px 58px rgba(45, 26, 17, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(135deg, rgba(90, 56, 37, 0.98), rgba(181, 139, 96, 0.94));

  opacity: 0;
  transition: opacity 0.28s ease;
}

.process-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  z-index: -1;

  width: 170px;
  height: 170px;

  border-radius: 50%;
  background: rgba(181, 139, 96, 0.12);

  transition:
    transform 0.28s ease,
    background 0.28s ease;
}

.process-card:hover {
  transform: translateY(-10px);
  border-color: rgba(181, 139, 96, 0.46);

  box-shadow:
    0 30px 76px rgba(45, 26, 17, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.process-card:hover::before {
  opacity: 1;
}

.process-card:hover::after {
  transform: scale(1.18);
  background: rgba(255, 255, 255, 0.10);
}

/* Process Number */
.process-number {
  position: absolute;
  top: 22px;
  left: 24px;

  color: rgba(90, 56, 37, 0.16);

  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;

  transition:
    color 0.28s ease,
    transform 0.28s ease;
}

.process-card:hover .process-number {
  color: rgba(255, 248, 239, 0.28);
  transform: translateY(-3px);
}

/* Process Icon */
.process-icon {
  width: 104px;
  height: 104px;
  margin: 42px 0 26px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    radial-gradient(circle at 30% 20%, #fffaf4, #f1dcc6);

  border: 1px solid rgba(181, 139, 96, 0.30);

  box-shadow:
    0 16px 34px rgba(45, 26, 17, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);

  transition:
    transform 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.process-icon img {
  width: 62px;
  height: 62px;

  object-fit: contain;
  display: block;

  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.process-card:hover .process-icon {
  transform: translateY(-5px) scale(1.06);
  background: #fff8ef;

  box-shadow:
    0 18px 38px rgba(31, 18, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Process Text */
.process-content h3 {
  margin: 0 0 15px;

  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;

  color: var(--coffee);

  transition: color 0.28s ease;
}

.process-content p {
  max-width: 300px;
  margin: 0 auto;

  color: #6d5a4f;

  font-family: 'Lora', serif;
  font-size: 15.8px;
  line-height: 1.66;

  transition: color 0.28s ease;
}

.process-card:hover .process-content h3,
.process-card:hover .process-content p {
  color: #fff8ef;
}

/* ===============================
   HOW CTA
================================ */

.how-cta {
  position: relative;
  z-index: 2;

  width: min(780px, 100%);
  margin: 42px auto 0;
  padding: 24px 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  border-radius: 26px;
  border: 1px solid rgba(181, 139, 96, 0.22);

  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 238, 0.78));

  box-shadow: 0 20px 48px rgba(45, 26, 17, 0.09);
}

.how-cta p {
  margin: 0;

  color: var(--coffee);

  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;

  text-align: left;
}

.how-cta-btn {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 0 24px;

  border-radius: 999px;

  color: #fff8ef;
  background: linear-gradient(135deg, var(--coffee), var(--accent));

  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;

  box-shadow: 0 14px 30px rgba(90, 56, 37, 0.22);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.how-cta-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 18px 38px rgba(90, 56, 37, 0.30);
}

/* ===============================
   WHY CHOOSE US SECTION
================================ */

.features {
  padding: 70px 22px 84px;

  background:
    radial-gradient(circle at 88% 12%, rgba(217, 174, 124, 0.16), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(90, 56, 37, 0.07), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #fff7ef 100%);
}

.features::before {
  content: "";
  position: absolute;
  inset: 22px 20px;

  border: 1px solid rgba(181, 139, 96, 0.14);
  border-radius: 26px;

  pointer-events: none;
}

.features-container {
  position: relative;
  z-index: 2;

  width: min(1080px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 260px;
  padding: 30px 26px 28px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  border-radius: 24px;
  border: 1px solid rgba(181, 139, 96, 0.24);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 249, 242, 0.96));

  box-shadow:
    0 16px 38px rgba(45, 26, 17, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(135deg, rgba(90, 56, 37, 0.98), rgba(181, 139, 96, 0.94));

  opacity: 0;
  transition: opacity 0.28s ease;
}

.feature::after {
  content: "";
  position: absolute;
  width: 138px;
  height: 138px;
  right: -62px;
  bottom: -62px;

  border-radius: 50%;
  background: rgba(181, 139, 96, 0.12);

  transition:
    transform 0.28s ease,
    background 0.28s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 139, 96, 0.46);

  box-shadow:
    0 22px 52px rgba(45, 26, 17, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.feature:hover::before {
  opacity: 1;
}

.feature:hover::after {
  transform: scale(1.14);
  background: rgba(255, 255, 255, 0.10);
}

/* Feature Icon */
.feature-icon {
  width: 78px;
  height: 78px;
  margin-bottom: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    radial-gradient(circle at 30% 20%, #fffaf4, #f1dcc6);

  border: 1px solid rgba(181, 139, 96, 0.30);

  box-shadow:
    0 12px 26px rgba(45, 26, 17, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);

  transition:
    transform 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.feature-icon img {
  width: 50px;
  height: 50px;

  object-fit: contain;
  display: block;

  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.feature:hover .feature-icon {
  transform: translateY(-3px) scale(1.04);
  background: #fff8ef;

  box-shadow:
    0 14px 30px rgba(31, 18, 12, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Feature Text */
.feature h3 {
  margin: 0 0 11px;

  font-family: 'Playfair Display', serif;
  font-size: clamp(23px, 1.55vw, 29px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;

  color: var(--coffee);

  transition: color 0.28s ease;
}

.feature p {
  max-width: 320px;
  margin: 0 auto;

  color: #6d5a4f;

  font-family: 'Lora', serif;
  font-size: 15.2px;
  line-height: 1.55;

  transition: color 0.28s ease;
}

.feature:hover h3,
.feature:hover p {
  color: #fff8ef;
}

/* ===============================
   SCROLL-IN ANIMATION
================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(34px);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.how-process .fade-in-up:nth-child(1),
.features-container .fade-in-up:nth-child(1) {
  transition-delay: 0.08s;
}

.how-process .fade-in-up:nth-child(2),
.features-container .fade-in-up:nth-child(2) {
  transition-delay: 0.16s;
}

.how-process .fade-in-up:nth-child(3),
.features-container .fade-in-up:nth-child(3) {
  transition-delay: 0.24s;
}

.how-process .fade-in-up:nth-child(4) {
  transition-delay: 0.32s;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1180px) {
  .how-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
  }

  .process-card {
    min-height: 340px;
  }
}

@media (max-width: 980px) {
  .how-it-works,
  .features {
    padding: 78px 18px 88px;
  }

  .how-it-works::before,
  .features::before {
    inset: 18px 12px;
    border-radius: 26px;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .section-heading h2,
  .features h2 {
    font-size: clamp(34px, 7vw, 48px);
  }

  .features h2 {
    margin-bottom: 44px;
  }

  .features-container {
    grid-template-columns: 1fr;
    max-width: 620px;
    gap: 22px;
  }

  .feature {
    min-height: auto;
    padding: 38px 28px;
  }

  .how-cta {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .how-cta p {
    text-align: center;
  }
}

@media (max-width: 680px) {
  .how-process {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 20px;
  }

  .process-card {
    min-height: auto;
    padding: 32px 24px 30px;
  }

  .process-number {
    top: 20px;
    left: 22px;
    font-size: 40px;
  }

  .process-icon {
    width: 92px;
    height: 92px;
    margin: 38px 0 24px;
  }

  .process-icon img {
    width: 56px;
    height: 56px;
  }

  .process-content p {
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .how-it-works,
  .features {
    padding: 64px 14px 76px;
  }

  .how-it-works::before,
  .features::before {
    inset: 14px 8px;
    border-radius: 22px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-kicker {
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.11em;
  }

  .section-heading h2,
  .features h2 {
    font-size: 34px;
  }

  .section-heading h2::after,
  .features h2::after {
    width: 76px;
    height: 3px;
    margin-top: 14px;
  }

  .section-heading p {
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.65;
  }

  .features h2 {
    margin-bottom: 36px;
  }

  .how-process,
  .features-container {
    gap: 18px;
  }

  .process-card {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .process-number {
    font-size: 36px;
  }

  .process-icon {
    width: 84px;
    height: 84px;
    margin: 34px 0 22px;
  }

  .process-icon img {
    width: 50px;
    height: 50px;
  }

  .process-content h3 {
    font-size: 27px;
  }

  .process-content p {
    font-size: 15.5px;
    line-height: 1.6;
  }

  .how-cta {
    margin-top: 34px;
    padding: 22px 20px;
    border-radius: 22px;
  }

  .how-cta p {
    font-size: 24px;
  }

  .how-cta-btn {
    width: 100%;
    min-height: 50px;
  }

  .feature {
    padding: 34px 22px;
    border-radius: 24px;
  }

  .feature-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 22px;
  }

  .feature-icon img {
    width: 50px;
    height: 50px;
  }

  .feature h3 {
    font-size: 27px;
  }

  .feature p {
    font-size: 15.5px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .process-card,
  .process-card::before,
  .process-card::after,
  .process-number,
  .process-icon,
  .process-content h3,
  .process-content p,
  .feature,
  .feature::before,
  .feature::after,
  .feature-icon,
  .feature h3,
  .feature p,
  .how-cta-btn {
    transition: none;
  }
}
/* ===============================
   PROFESSIONAL ICON CLEANUP
   Fixes white square GIF/icon background
================================ */

.process-icon,
.feature-icon {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 32% 24%, #ffffff 0%, #fff7ed 38%, #ecd2b8 100%);

  border: 1px solid rgba(181, 139, 96, 0.32);

  box-shadow:
    0 18px 38px rgba(45, 26, 17, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* soft inner shine */
.process-icon::before,
.feature-icon::before {
  content: "";
  position: absolute;
  inset: 9px;

  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.56),
      rgba(255, 255, 255, 0.04)
    );

  pointer-events: none;
}

/* removes the visible white square effect from gif/png icons */
.process-icon img,
.feature-icon img {
  position: relative;
  z-index: 2;

  width: 54px;
  height: 54px;

  object-fit: contain;
  display: block;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;

  /*
    This helps hide white icon canvases.
    White pixels blend into the cream circular background.
  */
  mix-blend-mode: multiply;

  filter:
    contrast(1.06)
    saturate(1.08);

  transform: translateZ(0);
}

/* better hover state */
.process-card:hover .process-icon,
.feature:hover .feature-icon {
  background:
    radial-gradient(circle at 32% 24%, #ffffff 0%, #fff8ef 45%, #f0d8bf 100%);

  box-shadow:
    0 15px 34px rgba(31, 18, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.process-card:hover .process-icon img,
.feature:hover .feature-icon img {
  mix-blend-mode: multiply;
  filter:
    contrast(1.08)
    saturate(1.1);
}

/* cleaner mobile sizing */
@media (max-width: 680px) {
  .process-icon {
    width: 90px;
    height: 90px;
  }

  .process-icon img {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 560px) {
  .process-icon,
  .feature-icon {
    width: 82px;
    height: 82px;
  }

  .process-icon::before,
  .feature-icon::before {
    inset: 8px;
  }

  .process-icon img,
  .feature-icon img {
    width: 52px;
    height: 52px;
  }
}
