/* ============================================================
   Grander Water — Resources page (scoped)
   From new-page-design; site header/footer come from theme/HFE.
   ============================================================ */

.gwfl-resources-page .site-content,
.gwfl-resources-page #content,
.gwfl-resources-page .ast-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

.gwfl-resources-page #primary,
.gwfl-resources-page .entry-content,
.gwfl-resources-page article {
  margin: 0;
  padding: 0;
}

.gwfl-resources-page .entry-header,
.gwfl-resources-page .ast-breadcrumbs-wrapper,
.gwfl-resources-page .ast-breadcrumbs,
.gwfl-resources-page .page-header,
.gwfl-resources-page .entry-title {
  display: none !important;
}

.gwfl-resources {
  --gwfl-blue-900: #18407E;
  --gwfl-blue-500: #407BFF;
  --gwfl-gray-200: #D9D9D9;
  --gwfl-white: #FFFFFF;
  --gwfl-black: #000000;
  --gwfl-muted: #44506a;
  --gwfl-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gwfl-gap: 24px;
  --gwfl-section-y: 96px;
  --gwfl-radius: 14px;
  --gwfl-container: 1240px;
  --gwfl-shadow-sm: 0 4px 14px rgba(24, 64, 126, 0.10);
  --gwfl-shadow-md: 0 12px 30px rgba(24, 64, 126, 0.16);

  font-family: var(--gwfl-font);
  color: var(--gwfl-black);
  background: var(--gwfl-white);
  line-height: 1.5;
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  width:100%;
}

.gwfl-resources *,
.gwfl-resources *::before,
.gwfl-resources *::after { box-sizing: border-box; }

.gwfl-resources img { max-width: 100%; display: block; }
.gwfl-resources a { text-decoration: none; color: inherit; }
.gwfl-resources button { font-family: inherit; cursor: pointer; border: none; }

.gwfl-container {
  width: 100%;
  max-width: var(--gwfl-container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.gwfl-h-hero { font-size: clamp(28px, 4vw, 36px); font-weight: 600; line-height: 1.15; }
.gwfl-h-section { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; line-height: 1.15; }
.gwfl-h-card { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.2; }
.gwfl-lead { font-size: clamp(16px, 1.6vw, 18px); font-weight: 400; color: #1a1a1a; }
.gwfl-link-cta { color: var(--gwfl-blue-900); font-weight: 600; font-size: 20px; display: inline-flex; align-items: center; gap: 8px; }
.gwfl-link-cta svg { transition: transform .2s ease; }
.gwfl-link-cta:hover svg { transform: translateX(5px); }

.gwfl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border-radius: 999px; padding: 14px 30px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.gwfl-btn:active { transform: translateY(1px); }
.gwfl-btn--primary { background: var(--gwfl-blue-500); color: var(--gwfl-white); box-shadow: var(--gwfl-shadow-sm); }
.gwfl-btn--primary:hover { background: #2f6cf0; box-shadow: var(--gwfl-shadow-md); }
.gwfl-btn--light { background: var(--gwfl-white); color: var(--gwfl-blue-900) !important; box-shadow: var(--gwfl-shadow-sm); }
.gwfl-btn--light:hover { background: #eef3fb; }
.gwfl-btn--lg { font-size: 20px; padding: 16px 38px; }
.gwfl-btn--block { width: 100%; }

/* Hero */
.gwfl-hero { background: var(--gwfl-white); }
.gwfl-hero__banner {
  width: 100%;
  height: clamp(240px, 42vw, 620px);
  background: url("../assets/hero-bg.png") center / cover no-repeat;
  background-color: #0c1c38;
}
.gwfl-hero__intro { text-align: center; padding: clamp(40px, 6vw, 84px) 0 clamp(22px, 3.5vw, 40px); }
.gwfl-hero__intro .gwfl-h-hero { color: #000; margin: 0 0 18px; max-width: 20ch; margin-inline: auto; }
.gwfl-hero__intro .gwfl-lead { color: var(--gwfl-muted); max-width: 62ch; margin-inline: auto; }
.gwfl-hero__showcase { position: relative; display: flex; justify-content: center; padding-bottom: clamp(44px, 6vw, 90px); }
.gwfl-hero__showcase img {
  width: 100%; max-width: 1120px; height: auto;
  border-radius: clamp(16px, 2vw, 26px);
  box-shadow: var(--gwfl-shadow-md);
}
.gwfl-hero__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: clamp(72px, 9vw, 112px); height: clamp(72px, 9vw, 112px);
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--gwfl-blue-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gwfl-hero__play::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
}
.gwfl-hero__play svg { width: 42%; height: 42%; margin-left: 6%; }
.gwfl-hero__play:hover { transform: translate(-50%,-50%) scale(1.06); box-shadow: 0 16px 40px rgba(0,0,0,.34); }

/* CTA band — client split design (full-bleed photo + curved navy panel) */
.gwfl-cta-band {
  --gwfl-cta-navy: #1a417b;
  --gwfl-cta-btn: #3b82f6;
  position: relative;
  color: #fff;
  background: var(--gwfl-cta-navy);
  padding: 0;
  text-align: left;
  overflow: hidden;
  min-height: clamp(380px, 42vw, 520px);
  width: 100%;
}
.gwfl-cta-band__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.gwfl-cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep glass centered in the visible right column (between curve and edge) */
  object-position: -17% center;
  display: block;
}
.gwfl-cta-band__content {
  position: relative;
  z-index: 1;
  width: clamp(300px, 54%, 700px);
  min-height: inherit;
  background: var(--gwfl-cta-navy);
  /* Tall half-ellipse curve on the right edge */
  border-top-right-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  /* White stroke along the curve */
  box-shadow: 10px 0 0 0 #ffffff;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(40px, 5vw, 72px) clamp(64px, 9vw, 120px) clamp(40px, 5vw, 72px) clamp(24px, 5vw, 72px);
}
.gwfl-cta-band__content-inner {
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gwfl-cta-band__title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.gwfl-cta-band__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  max-width: 34ch;
}
.gwfl-cta-band__actions {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 6px;
}
.gwfl-cta-band__actions .gwfl-btn {
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.gwfl-cta-band__actions .gwfl-btn--light {
  background: #fff;
  color: var(--gwfl-cta-navy);
  box-shadow: none;
}
.gwfl-cta-band__actions .gwfl-btn--light:hover {
  background: #eef3fb;
}
.gwfl-cta-band__actions .gwfl-btn--primary {
  background: var(--gwfl-cta-btn);
  color: #fff;
  box-shadow: none;
}
.gwfl-cta-band__actions .gwfl-btn--primary:hover {
  background: #2f6cf0;
}

/* Resources intro */
.gwfl-section { padding-block: var(--gwfl-section-y); }
.gwfl-section--alt { background: #fff; }
.gwfl-resources-intro { text-align: center; }
.gwfl-resources-intro .gwfl-h-section { margin: 0 0 16px; color: #000; }
.gwfl-resources-intro .gwfl-lead { color: var(--gwfl-muted); max-width: 60ch; margin: 0 auto; }

/* Cards */
.gwfl-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
  margin-top: 0;
}
.gwfl-card {
  background: var(--gwfl-white);
  border: 1px solid var(--gwfl-gray-200);
  border-radius: var(--gwfl-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--gwfl-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gwfl-card:hover { transform: translateY(-6px); box-shadow: var(--gwfl-shadow-md); }
.gwfl-card__media { aspect-ratio: 492 / 648; overflow: hidden; background: #eef2f8; }
.gwfl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gwfl-card:hover .gwfl-card__media img { transform: scale(1.04); }
.gwfl-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.gwfl-card__body .gwfl-h-card { margin: 0; color: #000; }
.gwfl-card__body .gwfl-lead { color: var(--gwfl-muted); flex: 1; margin: 0; }
.gwfl-card__body .gwfl-link-cta { margin-top: 6px; }

/* Consultation */
.gwfl-consult {
  position: relative;
  color: var(--gwfl-white);
  background-image: linear-gradient(120deg, rgba(24,64,126,.6), rgba(24,64,126,.6)),
                    url("../assets/app-img1.png");
  background-size: cover;
  background-position: center;
  padding-block: clamp(56px, 7vw, 96px);
}
.gwfl-consult__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.gwfl-consult__copy .gwfl-h-hero { color: var(--gwfl-white); margin: 0 0 18px; }
.gwfl-consult__copy .gwfl-lead { color: rgba(255,255,255,.9); max-width: 42ch; }
.gwfl-consult__badge {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.gwfl-consult__badge svg { width: 40px; height: 40px; fill: #fff; }

/* Consultation form (matches new-page-design) */
.gwfl-form {
  background: transparent;
  border: none;
  border-radius: 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gwfl-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gwfl-white);
  border-radius: 12px;
  padding: 0 16px;
  height: 64px;
}
.gwfl-field svg {
  width: 24px;
  height: 24px;
  fill: var(--gwfl-blue-900);
  flex: none;
}
.gwfl-field input {
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  color: var(--gwfl-blue-900);
  font-weight: 500;
}
.gwfl-field input::placeholder {
  color: #4a5b78;
  font-weight: 500;
  opacity: 1;
}

.gwfl-captcha {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.gwfl-captcha__code {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gwfl-blue-900);
  border-radius: 12px;
  padding: 0 16px;
  height: 64px;
  min-width: 160px;
  justify-content: center;
}
.gwfl-captcha__code .gwfl-code {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--gwfl-white);
  user-select: none;
}
.gwfl-captcha__hint {
  flex: 1;
  min-width: 160px;
}
.gwfl-captcha__hint p {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,.9);
}
.gwfl-captcha__hint button {
  background: none;
  color: var(--gwfl-white);
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.gwfl-captcha__hint button:hover {
  opacity: .9;
}

.gwfl-form__message {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
}
.gwfl-form__message--error {
  background: rgba(255, 80, 80, .18);
  color: #ffe0e0;
}
.gwfl-form__message--success {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.gwfl-form .gwfl-btn:disabled {
  opacity: .75;
  cursor: wait;
}

/* Transform */
.gwfl-transform {
  background: #fff;
  padding-block: clamp(56px, 7vw, 96px);
  text-align: center;
}
.gwfl-transform .gwfl-lead {
  color: var(--gwfl-muted);
  max-width: 60ch;
  margin: 0 auto 30px;
  font-size: clamp(17px, 1.8vw, 19px);
}
.gwfl-transform__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.gwfl-transform__brand img { height: 46px; }
.gwfl-transform__social {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 14px;
}
.gwfl-transform__social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gwfl-blue-900); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.gwfl-transform__social a:hover { background: var(--gwfl-blue-500); }
.gwfl-transform__social img {
  width: 20px; height: 20px;
  filter: brightness(0) invert(1);
}
.gwfl-transform__trustpilot { height: 42px; width: auto; margin-top: 6px; }

/* Responsive */
@media (max-width: 980px) {
  .gwfl-cards__grid { grid-template-columns: repeat(2, 1fr); }
  .gwfl-consult__grid { grid-template-columns: 1fr; }
  .gwfl-consult__copy { text-align: center; }
  .gwfl-consult__copy .gwfl-lead { margin-inline: auto; }
  .gwfl-consult__badge { margin-inline: auto; }
  .gwfl-cta-band {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .gwfl-cta-band__media {
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    min-height: clamp(220px, 58vw, 340px);
    height: clamp(220px, 58vw, 340px);
  }
  .gwfl-cta-band__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Glass centered on mobile full-width image */
    object-position: center center;
  }
  .gwfl-cta-band__content {
    width: 100%;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 36px 22px 44px;
    justify-content: center;
  }
  .gwfl-cta-band__content-inner {
    max-width: none;
    text-align: center;
    align-items: center;
  }
  .gwfl-cta-band__text { max-width: 40ch; }
  .gwfl-cta-band__actions { justify-content: center; }
}

@media (max-width: 560px) {
  .gwfl-resources { --gwfl-section-y: 64px; }
  .gwfl-cards__grid { grid-template-columns: 1fr; }
  .gwfl-cta-band__media {
    width: 100%;
    min-height: 260px;
    height: 260px;
  }
  .gwfl-cta-band__media img {
    object-position: 90% center;
  }
  .gwfl-cta-band__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .gwfl-cta-band__actions .gwfl-btn { width: 100%; }
  .gwfl-captcha { flex-direction: column; align-items: stretch; }
  .gwfl-captcha__code { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gwfl-resources * { transition: none !important; }
}
