/* ==========================================================================
   Squarely — Resources page
   Figma node 432:2 ("Resources")
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */
.res-hero {
  position: relative;
  background: linear-gradient(90deg, #125e59 0%, #3fa285 100%);
  overflow: hidden;
  padding: 150px 0 190px;
  color: var(--white);
}

.res-hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
}

.res-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}

.res-hero__eyebrow {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
}

.res-hero__title {
  margin: 0 0 22px;
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
  max-width: 899px;
}

.res-hero__title .grad {
  display: block;
  background: linear-gradient(90deg, #aada91 0%, #cfe2f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.res-hero__text {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  max-width: 812px;
}

/* ==========================================================================
   Insights
   ========================================================================== */
.insights {
  padding: 110px 0 100px;
  background: var(--white);
}

.insights__head {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
  text-align: center;
}

.insights__eyebrow {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-600);
}

.insights__title {
  margin: 0 auto 18px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--teal-900);
  max-width: 765px;
}

.insights__text {
  margin: 0 auto;
  font-size: 18px;
  font-weight: 400;
  color: var(--teal-900);
  max-width: 871px;
}

.insights__grid {
  max-width: var(--container);
  margin: 56px auto 0;
  padding-inline: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* ---- Article card ---- */
.article-card {
  width: 371px;
  max-width: 100%;
  background: var(--white);
  border: 1px solid #aada91;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 71, 80, 0.12);
}

.article-card__media {
  position: relative;
  height: 198px;
}
.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Taller cover graphics whose text sits low (e.g. the report card) anchor to the bottom */
.article-card__img--bottom { object-position: center bottom; }

.article-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0, 71, 80, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 9px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.article-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 24px 16px;
}

.article-card__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--teal-900);
}

.article-card__desc {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--teal-700);
}

.article-card__meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #aada91;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-card__date {
  font-size: 10px;
  font-weight: 400;
  color: rgba(11, 29, 53, 0.6);
}

.article-card__read {
  font-size: 10px;
  font-weight: 600;
  color: var(--green-500);
  white-space: nowrap;
}
.article-card__read .arrow {
  font-weight: 800;
  color: #7ba8d9;
}

/* ==========================================================================
   Media & Press
   ========================================================================== */
.press {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 40px;
}

.press__panel {
  position: relative;
  overflow: hidden;
  background: #125e59;
  background-image:
    radial-gradient(circle at 85% 30%, rgba(45, 130, 103, 0.9) 0%, rgba(45, 130, 103, 0) 55%);
  border-radius: 50px;
  padding: 80px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.press__intro {
  flex: 1 1 0;
  min-width: 300px;
  color: var(--white);
}

.press__eyebrow {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 600;
  color: #aada91;
}

.press__title {
  margin: 0 0 26px;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -1.5px;
}

.press__text {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 508px;
}

.press__cards {
  flex: 2 1 0;
  min-width: 0;
  display: flex;
  gap: 32px;
}

/* ---- Press card ---- */
.press-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 408px;
  background: var(--white);
  border: 1px solid rgba(18, 94, 89, 0.12);
  border-radius: 30px;
  padding: 17px 17px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.press-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.press-card__media {
  height: 223px;
  border-radius: 30px;
  overflow: hidden;
}
.press-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.press-card__source {
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 400;
  color: #f2a57a;
  text-align: center;
}

.press-card__title {
  margin: 14px 16px 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.27;
  color: var(--teal-900);
  text-align: center;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 40px 110px;
}

.newsletter__bar {
  max-width: 1085px;
  margin-inline: auto;
  background: linear-gradient(170deg, #aada91 0%, #cfe2f3 38.9%, #e4daf5 69.2%, #ffd9c2 100%);
  border-radius: 100px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 13px;
}

/* Left: white text pill — fills the bar minus the fixed 355px form + gap */
.newsletter__text {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--white);
  border-radius: 30px;
  padding: 6px 28px;
}

.newsletter__title {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-900);
}

.newsletter__sub {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--green-600);
}

/* Right: 355px email field with the Subscribe button flush on its right end */
.newsletter__form {
  position: relative;
  flex: 0 0 355px;
  max-width: 100%;
}

.newsletter__input {
  width: 100%;
  height: 49px;
  padding: 0 160px 0 30px;
  border: 0;
  border-radius: 30px;
  background: var(--white);
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--teal-900);
  outline: none;
}
.newsletter__input::placeholder { color: var(--teal-900); opacity: 1; }

.newsletter__btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 49px;
  width: 145px;
  border: 0;
  border-radius: 30px;
  background: var(--green-500);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.newsletter__btn:hover  { filter: brightness(1.05); }
.newsletter__btn:active { transform: translateY(1px); }
.newsletter__btn[disabled] { opacity: 0.65; cursor: default; }

/* Status message shown after submit */
.newsletter__msg {
  max-width: 1085px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.newsletter__msg[hidden] { display: none; }
.newsletter__msg.is-success { color: var(--green-600); }
.newsletter__msg.is-error   { color: #c0392b; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .res-hero { padding: 110px 0 120px; }
  .res-hero__title { font-size: 46px; }
  .res-hero__text { font-size: 22px; }

  .insights { padding: 80px 0 70px; }
  .insights__title { font-size: 34px; }

  .press__panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 56px 48px;
    gap: 40px;
  }
  .press__title { font-size: 44px; }
  .press__cards {
    width: 100%;
    flex-wrap: wrap;
  }
  .press-card { flex: 1 1 320px; width: auto; }

  .newsletter__bar {
    flex-direction: column;
    border-radius: 30px;
    padding: 16px;
    gap: 16px;
  }
  .newsletter__text { width: 100%; text-align: center; }
  .newsletter__form { flex: 0 0 auto; width: 100%; }
}

@media (max-width: 640px) {
  .res-hero { padding: 80px 0 90px; }
  .res-hero__inner { padding-inline: 22px; }
  .res-hero__title { font-size: 34px; }
  .res-hero__text { font-size: 18px; }

  .insights__head,
  .insights__grid { padding-inline: 22px; }
  .insights__title { font-size: 28px; }
  .insights__text { font-size: 16px; }

  /* Cards grow legibly on small screens */
  .article-card { width: 100%; max-width: 420px; }
  .article-card__title { font-size: 16px; }
  .article-card__desc { font-size: 14px; }
  .article-card__date,
  .article-card__read { font-size: 12px; }
  .article-card__badge { font-size: 11px; }

  .press { padding-inline: 22px; }
  .press__panel { padding: 40px 24px; border-radius: 30px; }
  .press__title { font-size: 32px; }
  .press__text { font-size: 16px; }
  .press__cards { flex-direction: column; gap: 24px; }
  .press-card { width: 100%; }
  .press-card__title { font-size: 20px; }

  .newsletter { padding: 56px 22px 72px; }
}
