/*
 * Homepage redesign (27 Nov 2026): sections BELOW the protected hero only.
 * Loaded on the homepage alone (functions.php). Every rule is scoped to an `hp-` section class, so nothing here can
 * reach the hero scene, the header, the footer or any other page. Same fonts and brand tokens as main.css.
 */
.hp-about, .hp-process, .hp-services, .hp-dest, .hp-app {
	--hp-r-lg: 24px;
	--hp-r-md: 16px;
	--hp-shadow: 0 1px 2px rgba(27, 61, 18, .06), 0 14px 32px -18px rgba(27, 61, 18, .28);
	--hp-shadow-lift: 0 2px 4px rgba(27, 61, 18, .07), 0 22px 44px -20px rgba(27, 61, 18, .36);
}
.hp-head { max-width: 44rem; margin-block-end: clamp(2rem, 4vw, 3.25rem); }
.hp-head h2 { font-size: var(--step-4); text-wrap: balance; }
.hp-head p { margin-top: 1rem; color: var(--ink-600); font-size: var(--step-1); line-height: 1.55; max-width: 62ch; }

/* ------------------------------------------------------------------ A. About: photo collage + text */
.hp-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.hp-about__media { position: relative; padding-block: 2.5rem 3.5rem; padding-inline-end: 3.5rem; }
.hp-about__photo { margin: 0; border-radius: var(--hp-r-lg); overflow: hidden; box-shadow: var(--hp-shadow); aspect-ratio: 4 / 4.6; background: var(--green-050); }
.hp-about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; transform: scaleX(-1); } /* the source file is stored mirrored (its inscription reads backwards); shown the right way round here */
.hp-about__cutout { position: absolute; inset-inline-end: 0; bottom: 0; width: 46%; margin: 0; padding: .9rem .9rem 0; border-radius: var(--hp-r-lg); background: var(--orange-050); box-shadow: var(--hp-shadow); overflow: hidden; }
.hp-about__cutout img { width: 100%; height: auto; display: block; }
.hp-about__years { position: absolute; top: 0; inset-inline-start: -1.25rem; display: grid; justify-items: start; gap: .1rem; min-width: 9.5rem; padding: 1.1rem 1.35rem 1.2rem; border-radius: var(--hp-r-md); background: var(--green-900); color: var(--white); box-shadow: var(--hp-shadow); font-weight: 700; font-size: .9375rem; line-height: 1.25; }
.hp-about__num { font-family: var(--font-latin); font-size: 3.4rem; line-height: .9; font-weight: 800; letter-spacing: -0.04em; color: var(--orange-500); }
.hp-about__langs { position: absolute; bottom: 4.5rem; inset-inline-start: -1.25rem; max-width: 15.5rem; padding: .95rem 1.1rem; border-radius: var(--hp-r-md); background: var(--white); box-shadow: var(--hp-shadow); }
.hp-about__langs p { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9375rem; color: var(--green-900); }
.hp-about__langs .icon--lucide { width: 20px; height: 20px; color: var(--orange-700); }
.hp-about__langs ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.hp-about__langs li { padding: .2rem .6rem; border-radius: 999px; background: var(--green-050); color: var(--green-900); font-size: .8125rem; font-weight: 700; }
.hp-about__langs li[lang="ar"] { font-family: var(--font-ar); }
.hp-about__text h2 { font-size: var(--step-4); text-wrap: balance; color: var(--green-900); }
.hp-about__lead { margin-top: 1.1rem; color: var(--ink-600); font-size: var(--step-1); line-height: 1.6; max-width: 60ch; }
.hp-about__points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin-top: 2rem; }
.hp-about__points li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.hp-about__points .icon--lucide { width: 22px; height: 22px; margin-top: .15rem; color: var(--green-700); }
.hp-about__points h3 { font-size: 1.0625rem; line-height: 1.35; color: var(--green-900); }
.hp-about__points p { margin-top: .3rem; color: var(--ink-600); font-size: .9375rem; line-height: 1.55; }
.hp-about__note { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.75rem; padding: .85rem 1rem; border-radius: var(--hp-r-md); background: var(--sand-050); color: var(--ink-600); font-size: .9063rem; line-height: 1.5; max-width: 60ch; }
.hp-about__note .icon--lucide { width: 20px; height: 20px; color: var(--green-700); margin-top: .05rem; }
.hp-about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* ------------------------------------------------------------------ B. How it works: three step cards */
.hp-process { background: var(--sand-050); }
.hp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: none; }
.hp-step { position: relative; display: grid; align-content: start; gap: .75rem; padding: clamp(1.5rem, 2.5vw, 2.1rem); border-radius: var(--hp-r-lg); background: var(--white); box-shadow: var(--hp-shadow); }
.hp-step__num { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .6rem; }
.hp-step__label { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-700); }
:lang(ar) .hp-step__label { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.hp-step__n { font-family: var(--font-latin); font-size: clamp(2.8rem, 2.2rem + 1.8vw, 3.75rem); line-height: .85; font-weight: 800; letter-spacing: -0.04em; color: var(--green-700); }
.hp-step h3 { font-size: var(--step-2); line-height: 1.25; color: var(--green-900); text-wrap: balance; }
.hp-step p { color: var(--ink-600); line-height: 1.6; }
.hp-process__more { margin-top: 2rem; }

/* ------------------------------------------------------------------ C. Services in Portugal (existing cards, refined here only) */
.hp-services .offer-feature { border: 0; border-radius: var(--hp-r-lg); background: var(--orange-050); box-shadow: var(--hp-shadow); padding: clamp(1.3rem, 2.5vw, 1.9rem) clamp(1.3rem, 3vw, 2.2rem); }
[dir="rtl"] .hp-services .offer-feature { background: var(--orange-050); }
.hp-services .offer-grid { gap: 1.1rem; margin-top: 1.25rem; }
.hp-services .offer-card { border-color: transparent; border-radius: var(--hp-r-md); box-shadow: var(--hp-shadow); transition: box-shadow .25s cubic-bezier(.16, 1, .3, 1), transform .25s cubic-bezier(.16, 1, .3, 1); }
.hp-services .offer-card:hover { border-color: transparent; box-shadow: var(--hp-shadow-lift); transform: translateY(-2px); }
.hp-services .offer-card__foot { border-top-color: var(--line); }

/* ------------------------------------------------------------------ D. Visa destinations: Canada, United States, United Kingdom */
.hp-dest { background: var(--green-900); color: var(--white); }
.hp-head--light h2 { color: var(--white); }
.hp-head--light p { color: #D6E2CE; }
.hp-dest__grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.hp-dest__card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--hp-r-lg); background: var(--white); color: var(--ink-900); overflow: hidden; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .55); transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s cubic-bezier(.16, 1, .3, 1); }
.hp-dest__card:hover { transform: translateY(-3px); box-shadow: 0 30px 56px -28px rgba(0, 0, 0, .6); }
.hp-dest__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--sand-050); }
.hp-dest__media img { width: min(62%, 220px); height: auto; }
.hp-dest__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem 1.5rem 1.6rem; }
.hp-dest__tag { position: absolute; top: 1rem; inset-inline-start: 1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: var(--white); color: var(--orange-700); font-size: .8125rem; font-weight: 800; box-shadow: 0 6px 16px -10px rgba(27, 61, 18, .5); }
.hp-dest__tag .icon--lucide { width: 16px; height: 16px; }
.hp-dest__name { font-size: var(--step-3); line-height: 1.1; }
.hp-dest__name a { color: var(--green-900); text-decoration: none; }
.hp-dest__name a:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: .18em; }
.hp-dest__service { color: var(--ink-600); }
.hp-dest__price { margin-top: .35rem; font-weight: 800; font-size: var(--step-1); color: var(--green-900); }
.hp-dest__price span { margin-inline-start: .35rem; font-weight: 600; font-size: .8125rem; color: var(--ink-600); }
.hp-dest__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.hp-dest__price { margin-bottom: .9rem; }

/* ------------------------------------------------------------------ E. Mobile app promotion */
.hp-app__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hp-app__visual { position: relative; display: grid; justify-items: center; padding-block: 1rem 0; }
.hp-app__arch { position: absolute; inset-inline: 6% 6%; top: 12%; bottom: 3.25rem; border-radius: 999px 999px var(--hp-r-lg) var(--hp-r-lg); background: var(--green-700); }
.hp-app__phone { position: relative; width: min(290px, 64vw); margin: 0 0 1.25rem; padding: 10px; border-radius: 46px; background: var(--ink-900); box-shadow: 0 30px 60px -30px rgba(20, 33, 15, .7), inset 0 0 0 2px #39433A; }
.hp-app__phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 999px; background: var(--ink-900); z-index: 1; }
.hp-app__phone img { display: block; width: 100%; height: auto; border-radius: 37px; }
.hp-app__card { position: absolute; bottom: 4.5rem; inset-inline-end: 0; width: min(230px, 46vw); margin: 0; border-radius: 22px; overflow: hidden; background: var(--white); box-shadow: var(--hp-shadow-lift); aspect-ratio: 390 / 410; }
.hp-app__card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hp-app__caption { position: relative; justify-self: stretch; text-align: center; margin-top: .9rem; font-size: .8125rem; font-weight: 600; color: var(--ink-600); }
.hp-app__text h2 { font-size: var(--step-4); color: var(--green-900); text-wrap: balance; }
.hp-app__lead { margin-top: 1.1rem; color: var(--ink-600); font-size: var(--step-1); line-height: 1.6; max-width: 56ch; }
.hp-app__points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-top: 2rem; }
.hp-app__points li { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--green-900); line-height: 1.35; }
.hp-app__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--green-050); color: var(--green-700); }
.hp-app__icon .icon--lucide { width: 22px; height: 22px; }
.hp-app__stores { list-style: none; display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hp-app__status { margin-top: 1rem; color: var(--ink-600); font-size: .9063rem; max-width: 52ch; }

/* ------------------------------------------------------------------ Laptop and tablet */
@media (max-width: 1100px) {
	.hp-dest__grid { grid-template-columns: 1fr; max-width: 40rem; }
	.hp-dest__card { grid-template-rows: none; grid-template-columns: 200px 1fr; }
	.hp-dest__media { aspect-ratio: auto; }
	.hp-dest__media img { width: 72%; }
}
@media (max-width: 960px) {
	.hp-about__grid, .hp-app__grid { grid-template-columns: 1fr; }
	.hp-about__media { max-width: 34rem; width: 100%; margin-inline: auto; }
	.hp-steps { grid-template-columns: 1fr; max-width: 40rem; }
	.hp-app__visual { max-width: 30rem; width: 100%; margin-inline: auto; }
}

/* ------------------------------------------------------------------ Phones */
@media (max-width: 600px) {
	.hp-about__media { padding-block: 1.75rem 2.5rem; padding-inline-end: 2rem; }
	.hp-about__years { inset-inline-start: -.25rem; min-width: 0; padding: .8rem 1rem .9rem; font-size: .8125rem; }
	.hp-about__num { font-size: 2.6rem; }
	.hp-about__langs { display: none; }
	.hp-about__cutout { width: 44%; padding: .6rem .6rem 0; }
	.hp-about__points { grid-template-columns: 1fr; gap: 1.1rem; }
	.hp-about__actions .btn { width: 100%; }
	.hp-dest__card { grid-template-columns: 1fr; }
	.hp-dest__media { aspect-ratio: 16 / 9; }
	.hp-dest__media img { width: min(48%, 180px); }
	.hp-dest__body { padding: 1.2rem 1.25rem 1.35rem; }
	.hp-app__points { grid-template-columns: 1fr; gap: .8rem; }
	.hp-app__card { width: min(190px, 44vw); bottom: 4.75rem; }
	.hp-app__stores { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.hp-services .offer-card, .hp-dest__card { transition: none; }
	.hp-services .offer-card:hover, .hp-dest__card:hover { transform: none; }
}
