/* Website rebrand, stage 4, group G1: the HOME page (DESIGN_SPEC 3, 4, 5, 11.3). Loaded after site-v2.css by home.njk (pagecss block); every rule is scoped under
   .s-page--home, uses the foundation's tokens and logical properties only, and redefines no shell class. Section padding is the foundation's --sec-pad (40 px
   from 768; the Stitch home draws 64: set --sec-pad on .s-page--home to try it). */

/* tones alternate white and page, then the light blue doors and the navy band; a card on a white section takes the page tone */
.s-page--home .s-home__services, .s-page--home .s-home__visa, .s-page--home .s-home__how, .s-page--home .s-home__voices { background: var(--c-surface-0); }
.s-page--home .s-home__offers, .s-page--home .s-home__canada, .s-page--home .s-home__partners { background: var(--c-surface); }
.s-page--home .s-home__services .card, .s-page--home .s-home__visa .card, .s-page--home .s-home__how .step { background: var(--c-surface); }

/* a section: head, body, then "more" (under the body on a phone, at the head's end edge from 768) */
.s-page--home .s-home__sec { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body" "more"; row-gap: var(--sp-5); }
.s-page--home .s-home__head { grid-area: head; min-width: 0; }
.s-page--home .s-home__head h2 { margin: 0 0 .25rem; font-size: var(--fs-h1); line-height: var(--lh-h1); }
.s-page--home .s-home__head p { margin: 0; max-width: 40rem; color: var(--c-ink-2); }
.s-page--home .s-home__body { grid-area: body; min-width: 0; display: grid; gap: var(--sp-5); }
.s-page--home .s-home__more { grid-area: more; }
@media (min-width: 768px) {
  .s-page--home .s-home__sec { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head more" "body body"; column-gap: var(--sp-5); row-gap: var(--sp-6); }
  .s-page--home .s-home__more { align-self: end; justify-self: end; }
}
/* card text: small on a phone, running size from 768; the title link is the card's one stretched link */
.s-page--home .s-home__text { margin: 0; color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
@media (min-width: 768px) {
  .s-page--home .s-home__text { font-size: var(--fs-body); line-height: var(--lh-body); }
}
.s-page--home .card .icon-tile { margin-bottom: 0; flex: none; }
.s-page--home .s-card__link { color: var(--c-navy); text-decoration: none; }
@media (hover: hover) { .s-page--home .s-card__link:hover { text-decoration: underline; } }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .s-page--home .s-home__links .card, .s-page--home .s-home__tiles .card, .s-page--home .s-home__canada .card { transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow var(--dur-3) var(--ease); }
  .s-page--home .s-home__links .card:hover, .s-page--home .s-home__tiles .card:hover, .s-page--home .s-home__canada .card:hover { box-shadow: var(--sh-2); }
}

/* hero: navy, text and search card (7 / 5 from 1024); the owner's picture at 15 percent (navy overlay 85) */
.s-page--home .hero .wrap { padding-block: var(--sp-6) var(--sp-7); gap: var(--sp-6); }
@media (min-width: 768px) { .s-page--home .hero .wrap { padding-block: var(--sp-8) var(--sp-9); } }
@media (min-width: 1024px) { .s-page--home .hero .wrap { padding-block: var(--sp-10); } }
.s-page--home .s-home__globe { display: none; }
@media (min-width: 768px) {
  .s-page--home .s-home__globe { display: block; position: absolute; inset-block-start: 50%; inset-inline-start: 36%; width: 44rem; aspect-ratio: 1; margin-block-start: -22rem; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, transparent 0 58%, rgba(255, 255, 255, .07) 58.4%, transparent 59%, transparent 78%, rgba(255, 255, 255, .06) 78.4%, transparent 79%); }
}
.s-page--home .s-home__intro { min-width: 0; }
.s-page--home .hero-slogan { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 var(--sp-4); padding: .375rem .875rem; border-radius: var(--r-3); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: var(--c-gold-soft); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; overflow-wrap: anywhere; }
.s-page--home .hero-slogan::before { content: ""; flex: none; width: .375rem; height: .375rem; border-radius: 50%; background: var(--c-gold-fill); }
html[lang="ar"] .s-page--home .hero-slogan, html[lang="ar"] .s-page--home .s-home__scope .badge { text-transform: none; }
.s-page--home .hero h1 { margin: 0 0 var(--sp-4); }
.s-page--home .hero-lead { margin: 0; }
/* hero buttons: gold full width and two half buttons on a phone (stacked below 360), a row from 640 */
.s-page--home .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-5); }
.s-page--home .hero-actions .btn-gold { grid-column: 1 / -1; }
.s-page--home .hero-actions .btn { min-height: 3rem; padding-inline: .75rem; }
@media (max-width: 359px) { .s-page--home .hero-actions { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) {
  .s-page--home .hero-actions { display: flex; flex-wrap: wrap; }
  .s-page--home .hero-actions .btn { min-height: var(--tap); padding-inline: 1.25rem; }
}
.s-page--home .hero .btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .5); }
@media (hover: hover) { .s-page--home .hero .btn-light:hover { background: rgba(255, 255, 255, .18); color: #fff; } }
/* the search card: icons inside the fields */
.s-page--home .hero-card { --focus-color: var(--c-navy); padding: var(--sp-5); gap: var(--sp-4); }
@media (min-width: 768px) { .s-page--home .hero-card { padding: var(--sp-6); } }
.s-page--home .hero-card h2 { margin: 0; padding-block-end: var(--sp-3); border-block-end: 1px solid var(--c-hairline); font-size: var(--fs-h2); line-height: var(--lh-h2); }
.s-page--home .s-home__field { position: relative; display: block; font-weight: 400; }
.s-page--home .s-home__field > .i { position: absolute; inset-inline-start: .875rem; inset-block-start: 50%; margin-block-start: -.625rem; color: var(--c-muted); pointer-events: none; }
.s-page--home .s-home__field input, .s-page--home .s-home__field select { min-height: 3rem; padding-inline-start: 2.75rem; }
.s-page--home .hero-card .btn-primary { min-height: 3rem; }
.s-page--home .s-home__alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: .375rem; margin: 0; padding-block-start: var(--sp-3); border-block-start: 1px solid var(--c-hairline); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-ink-2); text-align: center; }
.s-page--home .s-home__alt a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }

/* services: two by two on a phone (the approved phone screen), four from 1024 */
.s-page--home .s-home__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.s-page--home .s-home__cards .card { display: flex; flex-direction: column; gap: .5rem; }
.s-page--home .s-home__cards h3 { margin: .25rem 0 0; }
@media (max-width: 359px) { .s-page--home .s-home__cards { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) { .s-page--home .s-home__cards { gap: var(--sp-5); } .s-page--home .s-home__cards .card { padding: var(--sp-5); } }
@media (min-width: 1024px) { .s-page--home .s-home__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the two link cards under the offers: icon tile (from 640), text, arrow */
.s-page--home .s-home__links .card { display: flex; align-items: center; gap: var(--sp-4); }
.s-page--home .s-home__links .card > .i { margin-inline-start: auto; color: var(--c-navy); }
.s-page--home .s-home__links .icon-tile { display: none; }
@media (min-width: 640px) { .s-page--home .s-home__links .icon-tile { display: grid; } }
.s-page--home .s-home__link-text { min-width: 0; flex: 1 1 auto; }
.s-page--home .s-home__link-text h3 { margin: 0 0 .25rem; }

/* visa tiles: icon over text on a phone (one column of rows from five services), beside it from 640; columns follow the count */
.s-page--home .s-home__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.s-page--home .s-home__tiles:has(> :nth-child(5)) { grid-template-columns: minmax(0, 1fr); }
.s-page--home .s-home__tiles .card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); }
.s-page--home .s-home__tiles:has(> :nth-child(5)) .card { flex-direction: row; align-items: flex-start; }
.s-page--home .s-home__tiles .icon-tile { width: 2.75rem; height: 2.75rem; }
.s-page--home .s-home__tile-text { min-width: 0; display: grid; gap: .25rem; justify-items: start; align-content: start; }
.s-page--home .s-home__tile-text h3 { margin: 0; }
.s-page--home .s-home__tile-text p { margin: 0; color: var(--c-muted); font-size: var(--fs-small); line-height: var(--lh-small); overflow-wrap: anywhere; }
.s-page--home .s-home__tile-text .badge { margin-block-start: .25rem; }
@media (min-width: 640px) {
  .s-page--home .s-home__tiles, .s-page--home .s-home__tiles:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-page--home .s-home__tiles .card { flex-direction: row; align-items: flex-start; }
}
@media (min-width: 768px) {
  .s-page--home .s-home__tiles, .s-page--home .s-home__tiles:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
  .s-page--home .s-home__tiles:has(> :nth-child(4):last-child), .s-page--home .s-home__tiles:has(> :nth-child(8):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .s-page--home .s-home__tiles, .s-page--home .s-home__tiles:has(> :nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-page--home .s-home__tiles:has(> :nth-child(3):last-child), .s-page--home .s-home__tiles:has(> :nth-child(5):last-child), .s-page--home .s-home__tiles:has(> :nth-child(6):last-child), .s-page--home .s-home__tiles:has(> :nth-child(9):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.s-page--home .s-home__note { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0; }
.s-page--home .s-home__note .i { flex: none; margin-block-start: .0625rem; color: var(--c-navy); }

/* Canada: two path cards and the information-only notice (gold tint) */
.s-page--home .s-home__canada .card { display: flex; flex-direction: column; gap: .5rem; }
.s-page--home .s-home__canada .card h3 { margin: .5rem 0 0; font-size: var(--fs-h2); line-height: var(--lh-h2); }
@media (min-width: 768px) { .s-page--home .s-home__canada .card { padding: var(--sp-6); } }
.s-page--home .s-home__scope { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem var(--sp-3); padding: var(--sp-4); border-radius: var(--r-3); background: var(--c-gold-tint); }
.s-page--home .s-home__scope p { flex: 1 1 18rem; min-width: 0; }
.s-page--home .s-home__scope .badge { text-transform: uppercase; letter-spacing: var(--ls-label); }

/* how it works: a vertical rail on a phone, three and two cards from 640, five from 1180 */
.s-page--home .s-home__steps { list-style: none; margin: 0; padding: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
.s-page--home .step h3 { margin: 0 0 .25rem; }
@media (max-width: 639px) {
  .s-page--home .s-home__steps .step { position: relative; min-height: 3.5rem; padding: 0 0 var(--sp-5); padding-inline-start: 3.5rem; border-radius: 0; background: none; box-shadow: none; }
  .s-page--home .s-home__steps .step:last-child { padding-block-end: 0; }
  .s-page--home .s-home__steps .step::before { position: absolute; inset-inline-start: 0; inset-block-start: 0; width: 2.5rem; height: 2.5rem; margin: 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--c-surface-5); font-size: 1rem; }
  .s-page--home .s-home__steps .step::after { content: ""; position: absolute; inset-inline-start: calc(1.25rem - 1px); inset-block-start: 2.75rem; inset-block-end: .25rem; width: 2px; background: var(--c-surface-5); }
  .s-page--home .s-home__steps .step:last-child::after { display: none; }
  .s-page--home .s-home__steps .step h3 { padding-block-start: .5rem; }
}
@media (min-width: 640px) {
  .s-page--home .s-home__steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-4); }
  .s-page--home .s-home__steps .step { grid-column: span 2; padding: var(--sp-5); }
  .s-page--home .s-home__steps .step:nth-child(n + 4) { grid-column: span 3; }
}
@media (min-width: 1180px) {
  .s-page--home .s-home__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .s-page--home .s-home__steps .step, .s-page--home .s-home__steps .step:nth-child(n + 4) { grid-column: auto; }
}

/* the doors: equal heights, actions at the bottom (two columns and a full-width third from 768, three from 1024) */
.s-page--home .s-home__doors > .card { display: flex; flex-direction: column; gap: var(--sp-3); }
.s-page--home .s-home__doors h2 { margin: var(--sp-2) 0 0; }
.s-page--home .s-home__actions { margin-top: auto; padding-top: var(--sp-5); border-block-start: 1px solid var(--c-hairline); flex-wrap: wrap; }
.s-page--home .s-home__actions .btn { flex: 1 1 auto; padding-inline: .75rem; }
@media (max-width: 479px) { .s-page--home .s-home__actions { flex-direction: column; } .s-page--home .s-home__actions .btn { width: 100%; } }
@media (min-width: 768px) {
  .s-page--home .s-home__doors > .card { padding: var(--sp-6); }
  .s-page--home .s-home__doors > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .s-page--home .s-home__doors > .card:last-child:nth-child(odd) { grid-column: auto; } }

/* testimonials and partners (only from data) */
.s-page--home .s-home__voices figure { margin: 0; display: grid; gap: var(--sp-3); align-content: start; }
.s-page--home .s-home__voices blockquote { margin: 0; font: var(--fw-head) var(--fs-h3) / var(--lh-h3) var(--font-serif); color: var(--c-navy); overflow-wrap: anywhere; }
.s-page--home .s-home__voices figcaption { color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.s-page--home .s-home__partners h2 { margin-bottom: var(--sp-5); }
.s-page--home .s-home__partners .grid { grid-template-columns: repeat(auto-fit, minmax(9rem, 14rem)); justify-content: center; }
.s-page--home .s-home__partners .card { display: grid; place-items: center; min-height: 5rem; overflow-wrap: anywhere; }
.s-page--home .s-home__partners img { width: auto; max-height: 3rem; object-fit: contain; }

/* the contact band: navy, edge to edge, centred; three buttons stacked on a phone */
.s-page--home .s-home__band { background: var(--c-navy); color: var(--c-on-navy-2); text-align: center; padding-block: var(--sp-8); }
.s-page--home .s-home__band h2 { margin: 0 0 var(--sp-2); color: #fff; font-size: var(--fs-h1); line-height: var(--lh-h1); }
.s-page--home .s-home__band p { margin: 0 auto var(--sp-5); max-width: 40rem; color: var(--c-on-navy-2); }
.s-page--home .s-home__band-actions { display: flex; flex-direction: column; gap: var(--sp-3); }
.s-page--home .s-home__band-actions .btn { min-height: 3rem; width: 100%; padding-inline: .75rem; }
@media (max-width: 359px) { .s-page--home .s-home__band-actions .btn { font-size: .875rem; } }
@media (min-width: 640px) {
  .s-page--home .s-home__band-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .s-page--home .s-home__band-actions .btn { width: auto; }
}

/* forced colours and print */
@media (forced-colors: active) {
  .s-page--home .s-home__scope, .s-page--home .s-home__note, .s-page--home .hero-slogan, .s-page--home .s-home__steps .step::before { border: 1px solid CanvasText; }
  .s-page--home .s-home__globe { display: none; }
}
@media print {
  .s-page--home .hero, .s-page--home .s-home__band { background: none; color: inherit; }
  .s-page--home .hero *, .s-page--home .s-home__band * { color: inherit; }
  .s-page--home .hero-media, .s-page--home .s-home__globe, .s-page--home .hero-card { display: none; }
}
