/*
  The home page and the contact page around the PGN mortgage scan, as on the
  approved canvas "Spanish Home Loans: improvements" (15 Nov 2026); the same
  file as spanishhomeloans.com's, in the same colours, with the Dutch FAQ
  anchor (#vragen). Loaded on the pages with the scan (body.page-scan: home,
  contact, huis-kopen-spanje), after styles.css and gpn-about.css.
  The scan's own bands bring their look in /pgn/assets/css/embed.css, scoped
  to .pgn-embed; nothing here reaches inside a fragment but the one rule
  marked as such near the end.
*/

/* ------------------------------------------------------------ the basics */

/* Navy headings, as in the scan's bands (styles.css makes every h2 black). Not in
   the PGN fragments: .pgn-embed (the scan) and .pgn-pk (the packages band and the
   picker), which colour their own headings, white on their dark cards. */
.page-scan h2:where(:not(.pgn-embed *, .pgn-pk *)),
.page-scan h3:where(:not(.pgn-embed *, .pgn-pk *)) {
  color: var(--color-navy) !important;
}

/* Two kinds of button: the site's gold one starts the scan, the navy outline
   one shows the packages. Both a little larger than elsewhere on the site, as
   big as the buttons in the scan's bands. */
.page-scan .btn {
  min-height: 50px;
  padding: 0 26px;
  font-size: 1rem;
}

.btn--navy {
  color: var(--color-navy);
  border-color: var(--color-navy);
  background: var(--color-white);
}

.btn--navy:hover,
.btn--navy:focus-visible {
  color: var(--color-white);
  border-color: var(--color-navy);
  background: var(--color-navy);
}

.btn-row--center {
  justify-content: center;
}

/* Reading a guide and the like stays a small text link. */
.text-link {
  color: var(--color-navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--color-gold-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--color-navy);
  text-decoration-color: var(--color-navy);
}

/* A button that opens Jaine's widget, set as a text link. */
.link-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--color-gold-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

/* On a phone the cookie button closes the page instead of floating: Jaine's
   widget is the one thing that floats here. */
@media (max-width: 1099px) {
  .page-scan .cookie-settings-button {
    position: static;
    display: block;
    margin: 0 auto 18px;
    box-shadow: none;
  }
}

/* ------------------------------------------------------------- home page */

.audience-grid {
  display: grid;
  gap: 20px;
}

.audience-card {
  padding: 28px 24px;
  border-radius: var(--radius-large);
  background: var(--color-paper);
}

.audience-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-gold);
}

.audience-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audience-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}

/* The link under each card (the live home's, 2026-11-23: its words stay), set
   as the design's text link: navy with a gold underline. */
.audience-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.audience-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  color: var(--color-navy);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--color-gold-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.audience-cta:hover,
.audience-cta:focus-visible {
  color: var(--color-navy);
  text-decoration-color: var(--color-navy);
}

.scan-actions {
  margin-top: 36px;
}

@media (min-width: 640px) {
  .audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .split__content .btn-row {
  margin-top: 8px;
}

/* "Hola!" with the team, as on the live home (owner, 2026-11-23: the faces stay):
   the three team cards, the title and its paragraph, the four figures and the
   logos, all from styles.css. A row of three figures (no team size) is laid
   out here, for a home page that leaves the team figure off. */
.gpn-figures--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 10px;
  max-width: 860px;
  margin-top: 36px;
}

@media (max-width: 719px) {
  .gpn-figures--three .gpn-figure strong {
    font-size: 2.3rem;
  }

  .gpn-figures--three .gpn-figure span {
    font-size: 0.85rem;
  }
}

.page-scan .gpn-pgn__actions .btn {
  color: var(--color-navy);
  border-color: var(--color-navy);
  background: var(--color-white);
}

.page-scan .gpn-pgn__actions .btn:hover,
.page-scan .gpn-pgn__actions .btn:focus-visible {
  color: var(--color-white);
  background: var(--color-navy);
}

.cta-card .btn-row {
  justify-content: center;
}

/* The reviews line with Google's own "G" beside its name. */
.google-rating__logo {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 0.25em 0 0.1em;
  vertical-align: -0.12em;
}

/* "Still a question? Ask Jaine": one slim line before the FAQ. */
.jaine-line {
  padding: 44px 0 0;
}

.jaine-line__inner {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 30px 12px 12px;
  border: 1.5px solid #ebe7dc;
  border-radius: var(--radius-pill);
  background: var(--color-white);
}

.jaine-line img,
.jaine-card__head img {
  flex: none;
  border: 3px solid var(--color-gold);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
}

.jaine-line img {
  width: 60px;
  height: 60px;
}

.jaine-line p {
  margin: 0;
  color: var(--color-navy);
}

.jaine-line a,
.jaine-line .link-button {
  color: var(--color-navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--color-gold-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

@media (max-width: 899px) {
  .jaine-line__inner {
    align-items: flex-start;
    padding: 16px;
    border-radius: 24px;
  }
}

.page-home #vragen {
  padding-top: 64px;
}

/* The form band: the scan's card in place of the Zoho form. */
.page-home .contact-form-panel .pgn-embed {
  max-width: 600px;
}

/* Jaine's block under the form: talk, WhatsApp, a call with a Guide. */
.jaine-contact {
  display: grid;
  gap: 20px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}

.jaine-contact__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.jaine-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-gold);
}

.jaine-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jaine-contact__title {
  display: block;
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 900;
}

a.jaine-contact__title,
button.jaine-contact__title {
  text-decoration: underline;
  text-decoration-color: var(--color-gold-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.jaine-contact__text {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .jaine-contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------- contact page */

/* A bright hero: the title on paper beside the photo, no overlay. */
.page-contact .hero--contact {
  min-height: 0;
  color: var(--color-ink);
  background: var(--color-paper);
}

.page-contact .hero--contact::after {
  content: none;
}

.page-contact .hero--contact .wave-bottom {
  color: var(--color-white);
}

.contact-hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 48px 0 128px;
}

.contact-hero h1 {
  max-width: 560px;
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(2.3rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.contact-hero__script {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  color: #b07a00;
  font-family: var(--font-script);
  font-size: 1.12em;
  font-weight: 400;
  letter-spacing: 0;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.page-contact .hero--contact .contact-hero p {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--color-ink);
  font-size: 1.1rem;
}

.contact-hero__img {
  height: 220px;
  overflow: hidden;
  border-radius: 168px 40px 168px 40px;
  box-shadow: 0 18px 38px rgba(23, 33, 58, 0.14);
}

.contact-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* The scan's card overlaps the hero; Jaine and "After the scan" beside it. */
.contact-scan {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  align-items: start;
  margin-top: -88px;
  padding-bottom: 72px;
  scroll-margin-top: 96px;
}

.contact-scan__side {
  display: grid;
  gap: 22px;
}

.jaine-card {
  padding: 30px 28px 28px;
  border-radius: 28px;
  color: #e9ecf3;
  background: var(--color-navy);
}

.jaine-card__head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.jaine-card__head img {
  width: 80px;
  height: 80px;
}

.page-scan .jaine-card h2 {
  margin: 0;
  color: var(--color-white) !important;
  font-size: 1.5rem;
  line-height: 1.2;
}

.jaine-card .jaine-contact__item {
  margin-top: 20px;
}

.jaine-card .jaine-contact__title {
  color: var(--color-white);
  text-decoration-color: var(--color-gold);
}

.jaine-card .jaine-contact__text {
  color: #c9cfdc;
}

.jaine-card__note {
  margin: 22px 0 0;
  color: #c9cfdc;
  font-size: 0.85rem;
}

.after-scan {
  padding: 24px 26px;
  border: 1.5px solid #ebe7dc;
  border-radius: 24px;
  background: var(--color-white);
}

.page-scan .after-scan h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.after-scan__checked {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.after-scan ol {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stap;
}

.after-scan li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  font-size: 0.92rem;
  counter-increment: stap;
}

.after-scan li::before {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--color-navy);
  background: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 900;
  content: counter(stap);
}

.after-scan li strong {
  color: var(--color-navy);
}

.after-scan .btn {
  width: 100%;
  margin-top: 18px;
}

/* The one rule that reaches into a fragment. In the card on its own (the
   contact page) the whole conversation stays in the card, and PGN's "Can I
   get a mortgage?" block is sticky from 901px (made for the wide band beside
   the questions): in a single column it slides over the result. Here it
   stays in its place, as it does below 901px. Remove once the PGN export
   does this itself. */
.page-scan .pgn-embed .sp-vraagkaart--los .gs-meter {
  position: static;
}

@media (min-width: 900px) {
  .contact-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    padding: 64px 0 136px;
  }

  .contact-hero__img {
    height: 340px;
  }
}

@media (min-width: 980px) {
  .contact-scan {
    grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 90px;
  }
}
