/* ==========================================================================
   Page-specific sections (Home hero + sections, contact layout)
   ========================================================================== */

/* ----- Home hero --------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 100vh, 860px); /* fallback: Safari < 15.4 has no svh */
  min-height: clamp(600px, 100svh, 860px);
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: -6% 0;
  z-index: -2;
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-zoom 26s ease-out both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Neutral dark fade (no colour tint) so the photo keeps its natural colours
     while the white headline stays readable. */
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.64) 0%,
    rgba(0, 0, 0, 0.42) 45%,
    rgba(0, 0, 0, 0.06) 100%
  );
}

.hero__inner {
  max-width: 54rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  max-width: 17ch;
  margin-bottom: 1.4rem;
  color: var(--bg);
}

.hero__tagline {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  font-weight: 700;
}

.hero__sub {
  max-width: 46ch;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

/* Entrance animation */
.hero [data-hero] {
  animation: hero-in 0.9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.12s + 0.1s);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

/* ----- Home sections ----------------------------------------------------- */

.has-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: min(70%, 820px) auto;
  opacity: 0.7;
  pointer-events: none;
}

.has-pattern--a::before {
  background-image: url("../assets/images/logo10.png");
}

.has-pattern--b::before {
  background-image: url("../assets/images/logo4.png");
  background-position: left bottom;
}

.has-pattern > .container {
  position: relative;
  z-index: 1;
}

.about .media-frame > img {
  aspect-ratio: 4 / 5;
}

.why .media-frame > img {
  aspect-ratio: 1 / 1;
}

.why .check-list {
  margin-top: 1.75rem;
}

.why__strong {
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.process__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 29, 79, 0.82);
}

.how .media-frame > img {
  aspect-ratio: 4 / 3;
}

.how .btn {
  margin-top: 1.75rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-grid .lead {
  margin-bottom: 1rem;
}

@media (max-width: 960px) {
  .contact-grid {
    /* minmax(0, ...) lets the column shrink to the screen instead of growing
       to the width of the longest unbreakable word (the email address) */
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----- Print ------------------------------------------------------------- */

@media print {
  .site-header,
  .to-top,
  .wa-float,
  .cta-band {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

/* ----- Visa cards on the Immigration page: same band as the Home step cards
   (existing photo + the same blue shade), same white cards and shadow.
   Static grid - no marquee or other moving effect. ------------------------ */
.process--cards .section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.process--cards .section-head h2 {
  color: var(--white);
}

.process--cards .eyebrow {
  color: var(--gold);
}

.process--cards .card {
  background: rgba(255, 255, 255, 0.97);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.process--cards .card:hover {
  border-color: rgba(242, 194, 48, 0.8);
}
