/* =============================================================================
   "Your Passport, Stamped" — the visa home page's signature section.

   Deliberately unlike every other module's destination strip. Tours, cruises and
   sightseeing all render photo cards; a visa is a document, so this renders
   documents: guilloche security pattern, perforated spine, rotated entry stamp
   and a machine-readable strip. It is the one section on the site that could not
   be lifted into another product.

   Built entirely from CSS gradients — no images, no fonts, no libraries — so it
   costs nothing beyond this file.
   ============================================================================= */

.vp-section {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(200, 162, 74, 0.16) 0%, rgba(200, 162, 74, 0) 60%),
    linear-gradient(160deg, #0b1f3a 0%, #123056 55%, #0a1a30 100%);
  overflow: hidden;
}

/* Guilloche — the interference pattern printed on passports and banknotes.
   Two repeating conic gradients at slightly different angles produce the moiré
   that makes it read as security printing rather than wallpaper. */
.vp-guilloche {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    repeating-conic-gradient(from 12deg at 22% 30%, rgba(255, 255, 255, 0.9) 0deg 1deg, rgba(255, 255, 255, 0) 1deg 9deg),
    repeating-conic-gradient(from -8deg at 78% 68%, rgba(200, 162, 74, 0.9) 0deg 1deg, rgba(200, 162, 74, 0) 1deg 11deg);
}

.vp-inner {
  position: relative;
  z-index: 1;
}

/* ---------- Heading ---------- */
.vp-heading {
  max-width: 640px;
  margin-bottom: 2.75rem;
  color: #fff;
}

.vp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold-bright, #e0b955);
  margin-bottom: 0.75rem;
}

.vp-eyebrow-line {
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.vp-heading h2 {
  font-family: var(--pt-font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.vp-heading p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* ---------- The passport pages ---------- */
.vp-grid {
  display: grid;
  /* min() guards the track floor so the grid can never overflow its container
     on a narrow viewport. */
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 1.5rem;
}

.vp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Aged-paper cream, not white — a passport page is never pure white, and the
     warmth is most of why this reads as a document. */
  background: linear-gradient(168deg, #fdfbf6 0%, #f4efe4 100%);
  border-radius: 0.9rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 18px 40px rgba(4, 12, 26, 0.34),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.vp-card:hover,
.vp-card:focus-visible {
  transform: translateY(-5px);
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 28px 56px rgba(4, 12, 26, 0.46),
    0 2px 0 rgba(255, 255, 255, 0.6) inset;
}

/* Perforated binding edge. repeating-linear-gradient gives the stitch holes
   without an image. */
.vp-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 12px;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.12), rgba(11, 31, 58, 0)),
    repeating-linear-gradient(
      180deg,
      rgba(11, 31, 58, 0.32) 0 4px,
      rgba(11, 31, 58, 0) 4px 12px
    );
  background-size: 100% 100%, 3px 100%;
  background-repeat: no-repeat, repeat-y;
  background-position: 0 0, 4px 0;
}

/* ---------- Document header ---------- */
.vp-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem 0.7rem 1.6rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.09);
}

.vp-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--brand-navy, #0b1f3a), #1c4272);
  color: var(--brand-gold-bright, #e0b955);
  box-shadow: 0 3px 8px rgba(11, 31, 58, 0.35);
}

.vp-crest .icon {
  width: 15px;
  height: 15px;
}

.vp-doc {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vp-doc-type {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-navy, #0b1f3a);
}

.vp-doc-issuer {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: #8b8069;
}

/* ---------- Photo panel + entry stamp ---------- */
.vp-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0.85rem 1.1rem 0 1.6rem;
  border-radius: 0.5rem;
  background-size: cover;
  background-position: center;
  background-color: #e6e0d2;
  /* Slight desaturation so the photo sits under the document treatment rather
     than fighting it. */
  filter: saturate(0.92) contrast(1.02);
  box-shadow: 0 2px 10px rgba(11, 31, 58, 0.2) inset;
}

/* The rubber stamp. Sits proud of the photo's corner and rotated, the way one
   lands on a real page. */
.vp-stamp {
  position: absolute;
  right: -8px;
  bottom: -14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 104px;
  height: 104px;
  padding: 0.4rem;
  border-radius: 50%;
  text-align: center;
  color: #17457f;
  border: 2px solid currentColor;
  /* The inner ring, drawn rather than added as another element. */
  box-shadow: 0 0 0 1px rgba(23, 69, 127, 0.35) inset;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 100%);
  transform: rotate(-13deg);
  /* Ink never sits perfectly solid on paper. */
  opacity: 0.88;
  transition: transform 0.28s ease, opacity 0.22s ease;
}

.vp-card:hover .vp-stamp {
  transform: rotate(-7deg) scale(1.04);
  opacity: 1;
}

.vp-stamp-top,
.vp-stamp-bottom {
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.vp-stamp-main {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ---------- Data fields ---------- */
.vp-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.15rem 1.1rem 1rem 1.6rem;
  flex: 1;
}

.vp-country {
  font-family: var(--pt-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-navy, #0b1f3a);
}

.vp-fields {
  display: flex;
  gap: 1.75rem;
  padding-top: 0.15rem;
}

.vp-field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.vp-field-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8b8069;
}

.vp-field-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy, #0b1f3a);
}

.vp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #17457f;
}

.vp-cta .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.15s ease;
}

.vp-card:hover .vp-cta .icon {
  transform: translateX(3px);
}

/* ---------- Machine-readable zone ---------- */
.vp-mrz {
  padding: 0.5rem 1.1rem 0.55rem 1.6rem;
  background: repeating-linear-gradient(
    90deg,
    rgba(11, 31, 58, 0.045) 0 2px,
    rgba(11, 31, 58, 0) 2px 4px
  ), #efe9dc;
  border-top: 1px dashed rgba(11, 31, 58, 0.18);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(11, 31, 58, 0.62);
  /* One line, clipped — the strip is a texture, not something to read in full. */
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
  .vp-section {
    padding: 3.25rem 0 3.5rem;
  }

  .vp-stamp {
    width: 84px;
    height: 84px;
    right: -4px;
  }

  .vp-stamp-main {
    font-size: 0.63rem;
  }

  .vp-fields {
    gap: 1.25rem;
  }
}

/* The stamp settle and the card lift are the only motion here; the guilloche is
   static by design. */
@media (prefers-reduced-motion: reduce) {
  .vp-card,
  .vp-stamp,
  .vp-cta .icon {
    transition: none;
  }

  .vp-card:hover {
    transform: none;
  }

  .vp-card:hover .vp-stamp {
    transform: rotate(-13deg);
  }
}
