/*
 * "Over ons" (over-ons.php) and "Contact" (contact.php).
 * Same look as the newer pages: the laurel header (.sub-masthead, main.css), cards with the flag stripe
 * and the tinted edge of the homepage cards, the dark navy band of Stage Vibes.
 */

.gr8-page {
  --gr8-blue: #006EF3;
  --gr8-orange: #F46919;
  --gr8-navy: #0D1F2F;
  --gr8-ink: #19364E;
  --gr8-muted: #5E7489;
  --gr8-line: #DEE5ED;
}

/* Header: the page title is an h1 here (the other pages use an h3 in this header) */
.gr8-page .sub-masthead { margin-bottom: 0; }
.gr8-page .sub-masthead .content h1 {
  font-family: 'Grift', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem; /* same steps as the h3 in this header on the other pages (main.css) */
  line-height: 1.1;
  padding-bottom: 10px;
  margin-bottom: 0;
}
@media (min-width: 376px) { .gr8-page .sub-masthead .content h1 { font-size: 1.7rem; } }
@media (min-width: 576px) { .gr8-page .sub-masthead .content h1 { font-size: 2rem; } }
@media (min-width: 768px) { .gr8-page .sub-masthead .content h1 { font-size: 2.4rem; } }

/* Shared bits */
.gr8-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gr8-blue);
}
.gr8-page h2 {
  font-family: 'Grift', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--gr8-ink);
  margin-bottom: 16px;
}
.gr8-lead { font-size: 1.1rem; line-height: 1.75; color: var(--gr8-ink); margin-bottom: 0; }
.gr8-head { max-width: 640px; margin: 0 auto 48px; }

.gr8-page .flag {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  height: 5px;
}
.gr8-page .flag span { width: 33.3%; height: 5px; }
.gr8-page .flag .red { background: #F30000; }
.gr8-page .flag .white { background: #fff; }
.gr8-page .flag .blue { background: var(--gr8-blue); }

/* ---------- Over ons: story ---------- */

.gr8-story { padding: 40px 0; }
.gr8-story__img {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  mix-blend-mode: darken; /* the picture's light background takes the page colour; the picture itself stays as it is */
}

/* ---------- Over ons: the two cards ---------- */

.gr8-pillars { padding: 20px 0 90px; }
.gr8-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 26px 30px 54px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.67);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 27px 54px rgba(37, 45, 71, 0.1);
}
.gr8-pillar--blue { background: radial-gradient(85.86% 86.43% at 50% 53.5%, rgba(40, 105, 166, 0) 55%, rgba(26, 72, 109, 0.2) 100%), #fff; }
.gr8-pillar--orange { background: radial-gradient(92.36% 93.22% at 50% 40.92%, rgba(160, 66, 11, 0) 50%, rgba(160, 66, 11, 0.2) 100%), #fff; }
.gr8-pillar__img {
  width: 100%;
  max-width: 330px;
  margin: 6px auto 8px;
  mix-blend-mode: multiply;
}
.gr8-pillar h3 {
  font-family: 'Grift', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gr8-ink);
  margin-bottom: 12px;
}
.gr8-pillar p { color: var(--gr8-muted); line-height: 1.7; margin-bottom: 0; }
.gr8-pillar .btn {
  position: absolute;
  bottom: -20px;
  left: 50%;
  translate: -50% 0; /* not transform: the buttons scale on hover */
  padding: 10px 22px;
  white-space: nowrap;
}

/* ---------- Over ons: what we believe in ---------- */

.gr8-belief {
  padding: 80px 0;
  background: radial-gradient(70% 90% at 80% 45%, #1F3B5C 0%, var(--gr8-navy) 70%);
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  color: #BDCEEC;
}
.gr8-belief .gr8-kicker { color: var(--gr8-orange); }
.gr8-belief h2 { color: #fff; font-size: 2.4rem; text-shadow: 0 5px 12px rgba(0, 0, 0, 0.7); }
.gr8-belief .gr8-lead { color: #BDCEEC; }
/* The call to action beside it, in a light box on the dark band */
.gr8-cta {
  padding: 40px 40px 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(189, 206, 236, 0.2);
  border-radius: 18px;
}
.gr8-belief .gr8-cta h2 { font-size: 2rem; margin-bottom: 12px; }
.gr8-cta p { font-size: 1.08rem; line-height: 1.6; color: #BDCEEC; margin-bottom: 26px; }
.gr8-cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.gr8-cta__buttons .btn { padding: 10px 22px; }

/* ---------- Contact ---------- */

.gr8-contact__main { padding: 40px 0 100px; } /* 40px below the header, as the 41px on the other pages with this header */

.gr8-form-card {
  position: relative;
  padding: 36px 36px 30px;
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 27px 54px rgba(37, 45, 71, 0.1);
}
.gr8-form-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.gr8-form-card__intro { color: var(--gr8-muted); margin-bottom: 24px; }

/* The Contact Form 7 form: labels above the fields, name and e-mail side by side */
.gr8-contact .contact-page-form > .text-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
  text-align: left !important;
}
.gr8-contact .contact-page-form > .text-center > * { grid-column: 1 / -1; }
.gr8-contact .contact-page-form > .text-center > label:nth-of-type(1),
.gr8-contact .contact-page-form > .text-center > label:nth-of-type(2) { grid-column: auto; }
.gr8-contact .contact-page-form br { display: none; }
.gr8-contact .contact-page-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gr8-ink);
}
.gr8-contact .contact-page-form label > span[style] { display: none; } /* the red asterisk: required is said by the browser and the error */
.gr8-contact .wpcf7-form-control-wrap { display: block; }
.gr8-contact .contact-page-form .form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gr8-line);
  border-radius: 10px;
  background: #F8FAFD;
  font-weight: 400;
  color: var(--gr8-ink);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.gr8-contact .contact-page-form .form-control:focus {
  background: #fff;
  border-color: var(--gr8-blue);
  box-shadow: 0 0 0 4px rgba(0, 110, 243, 0.12);
  outline: 0;
}
.gr8-contact .contact-page-form textarea.form-control { min-height: 160px; resize: vertical; }
.gr8-contact .contact-page-form .wpcf7-submit {
  justify-self: start;
  margin-top: 10px; /* always some room above the button, also when the form's markup puts it in a paragraph */
  padding: 11px 28px;
  font-size: 1rem;
}
.gr8-contact .wpcf7-spinner { margin: 0 0 0 12px; }
.gr8-contact .wpcf7-not-valid-tip { font-size: 0.85rem; font-weight: 500; margin-top: 4px; }
.gr8-contact .wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; }

/* Beside the form: the mascot and links to answers */
.gr8-help { position: relative; padding-top: 124px; }
.gr8-help__mascot {
  position: absolute;
  top: 0;
  right: 24px;
  z-index: 1;
  width: 130px;
}
.gr8-help__mascot img { display: block; width: 100%; height: auto; }
.gr8-help__card {
  position: relative;
  padding: 28px 28px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 27px 54px rgba(37, 45, 71, 0.1);
}
.gr8-help__card h2 { font-size: 1.35rem; margin: 0 120px 14px 0; }
.gr8-help__links { list-style: none; margin: 0; padding: 0; }
.gr8-help__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--gr8-line);
  color: var(--gr8-ink);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.gr8-help__links a i { color: var(--gr8-blue); font-size: 0.85rem; transition: transform .15s; }
.gr8-help__links a:hover { color: var(--gr8-blue); }
.gr8-help__links a:hover i { transform: translateX(3px); }

/* ---------- Smaller screens ---------- */

@media (max-width: 991.98px) {
  .gr8-story { padding: 40px 0; }
  .gr8-belief { padding: 60px 0; }
  .gr8-belief h2 { font-size: 2rem; }
  /* The mascot stands on top of the card, in the middle */
  .gr8-help { padding-top: 0; margin-top: 30px; }
  .gr8-help__mascot { position: relative; top: auto; right: auto; margin: 0 auto -4px; }
  .gr8-help__card h2 { margin-right: 0; }
}
@media (max-width: 767.98px) {
  .gr8-page h2 { font-size: 1.7rem; }
  .gr8-help__card h2 { font-size: 1.35rem; } /* stays smaller than the form's title */
  .gr8-contact__main { padding-bottom: 70px; }
  .gr8-lead { font-size: 1.02rem; }
  .gr8-head { margin-bottom: 36px; }
  .gr8-pillars .row { row-gap: 3.5rem !important; } /* room for the button that hangs below each card */
  .gr8-pillar { padding: 22px 20px 50px; }
  .gr8-pillar h3 { font-size: 1.4rem; }
  .gr8-cta { padding: 30px 24px 32px; }
  .gr8-belief .gr8-cta h2 { font-size: 1.6rem; }
  .gr8-form-card { padding: 30px 20px 24px; }
  .gr8-contact .contact-page-form > .text-center { grid-template-columns: 1fr; }
  .gr8-contact .contact-page-form > .text-center > label { grid-column: 1 / -1 !important; }
}
