/* Eyewaste.ai block on the home page. Everything is scoped to .ewh / .ewh-card. */

/* Site font files (static/fonts/B-*), registered under a private name so the block
   does not depend on how the main stylesheet names them. */
@font-face { font-family: "EWH Mont"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/B-Regular.24e554d8c866.woff2") format("woff2"), url("../fonts/B-Regular.fc4643489d98.woff") format("woff"); }
@font-face { font-family: "EWH Mont"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/B-SemiBold.7fb694fb8638.woff2") format("woff2"), url("../fonts/B-SemiBold.c9d7a84e1004.woff") format("woff"); }
@font-face { font-family: "EWH Mont"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/B-Bold.2f8222f54b47.woff2") format("woff2"), url("../fonts/B-Bold.25ae1611ff42.woff") format("woff"); }

.ewh {
  --ewh-navy: #1a2240;
  --ewh-grey: #646f79;
  --ewh-pink: #ed0d51;
  --ewh-light: #f4f7fb;
  --ewh-grad: linear-gradient(90deg, #cd1508 0%, #f59a1a 100%);
  --ewh-shadow: 0 16px 40px rgba(26, 34, 64, 0.08);

  position: relative;
  background: #ffffff;
  color: var(--ewh-navy);
  font-family: "Mont", "EWH Mont", "Helvetica Neue", Arial, sans-serif;
  padding: clamp(56px, 7vw, 96px) 0;
  overflow: hidden;
}
.ewh *, .ewh *::before, .ewh *::after { box-sizing: border-box; }
.ewh :where(h2, h3, p, ul, li) { margin: 0; padding: 0; font-family: inherit; letter-spacing: normal; text-transform: none; }

.ewh__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

/* Copy */
.ewh__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ewh__tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ewh-grad);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.ewh .ewh__title {
  font-size: clamp(40px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ewh-navy);
}
.ewh .ewh__text {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ewh-grey);
  max-width: 34em;
}
.ewh__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 8px; }
.ewh .ewh__btn {
  display: inline-block;
  padding: 18px 32px;
  border-radius: 999px;
  background-image: linear-gradient(75deg, #fc3838, #ed0d51, #f7700f, #f83258);
  background-size: 300% 100%;
  background-position: 100% 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-position .2s ease-in-out, box-shadow .15s ease-in-out, transform .15s ease-in-out;
}
.ewh .ewh__btn:hover, .ewh .ewh__btn:focus-visible {
  color: #ffffff;
  background-position: 0 100%;
  transform: translateY(-4px);
  box-shadow: 0 20px 8px -4px rgba(241, 158, 158, 0.2);
}
.ewh .ewh__link {
  color: var(--ewh-navy);
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ewh .ewh__link:hover { color: var(--ewh-pink); }
.ewh a:focus-visible { outline: 2px solid var(--ewh-pink); outline-offset: 3px; }

/* Cards */
.ewh__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.ewh-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 32px;
  border-radius: 40px;
  box-shadow: var(--ewh-shadow);
  min-width: 0;
}
.ewh-card:nth-child(2) { margin-top: 56px; }
.ewh-card--dark { background: var(--ewh-navy); color: #ffffff; }
.ewh-card--light { background: var(--ewh-light); color: var(--ewh-navy); }

.ewh .ewh-card__label {
  color: var(--ewh-pink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.ewh .ewh-card__title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.18;
  color: inherit;
}
.ewh-card__media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 310;
  object-fit: cover;
  border-radius: 20px;
  background: #0e1530;
}
.ewh .ewh-card__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.ewh .ewh-card__chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}
.ewh .ewh-card__chips li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ewh-grad);
}
.ewh-card--dark .ewh-card__chips li { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); color: #ffffff; }
.ewh-card--light .ewh-card__chips li { background: #ffffff; color: var(--ewh-navy); }

/* Tablet and small laptops: text above, cards side by side */
@media (max-width: 1080px) {
  .ewh__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ewh__copy { max-width: 640px; }
  .ewh-card:nth-child(2) { margin-top: 40px; }
}

/* Phones: one column, full-width button, stacked cards */
@media (max-width: 640px) {
  .ewh__inner { padding: 0 20px; gap: 40px; }
  .ewh__copy { gap: 20px; }
  .ewh__ctas { align-self: stretch; flex-direction: column; align-items: stretch; gap: 16px; }
  .ewh .ewh__btn { display: block; width: 100%; }
  .ewh .ewh__link { align-self: center; }
  .ewh__cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ewh-card:nth-child(2) { margin-top: 0; }
  .ewh-card { padding: 28px 24px; border-radius: 32px; gap: 16px; }
  .ewh-card__media { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ewh .ewh__btn { transition: none; }
  .ewh .ewh__btn:hover { transform: none; }
}
