/* ==========================================================================
   Page sections — heroes, content blocks, Islamic financing, about
   ========================================================================== */

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { margin: 0; max-width: 40rem; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow::after { content: ""; width: 2rem; height: 1px; background: var(--orange); }

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

.hero {
    position: relative; isolation: isolate;
    min-height: min(100svh, 920px);
    display: flex; align-items: flex-end;
    padding-block: calc(var(--header-h) + 4rem) clamp(3rem, 7vw, 5.5rem);
    color: var(--white);
    background: var(--navy-deep) var(--hero-img) center / cover no-repeat;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(19,41,61,.55) 0%, rgba(19,41,61,.15) 30%, rgba(19,41,61,.35) 60%, rgba(19,41,61,.88) 100%),
        linear-gradient(90deg, rgba(14,58,98,.55) 0%, rgba(14,58,98,0) 65%);
}
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: 1.25rem; }
.hero h1 em { color: var(--orange); }
.hero .lead { color: rgba(255,255,255,.85); margin-bottom: 2.5rem; }

.hero-search { max-width: 860px; }
.hero-search__tabs { display: flex; gap: .25rem; }
.hero-search__tabs a {
    padding: .7rem 1.4rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--white); background: rgba(19,41,61,.55); backdrop-filter: blur(6px);
    border-radius: var(--radius) var(--radius) 0 0;
}
.hero-search__tabs a:hover { background: rgba(19,41,61,.8); color: var(--white); }
.hero-search__tabs a.is-active { background: var(--white); color: var(--navy-deep); }

.hero-search__form {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 0;
    background: var(--white); border-radius: 0 var(--radius) var(--radius) var(--radius);
    box-shadow: var(--shadow-lg); padding: .5rem;
}
.field { display: flex; flex-direction: column; justify-content: center; padding: .55rem 1.1rem; border-right: 1px solid var(--line); min-width: 0; }
.field:last-of-type { border-right: 0; }
.field label { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.field select, .field input {
    appearance: none; border: 0; background: transparent; padding: .2rem 1.2rem .2rem 0;
    font: 500 1rem var(--font-sans); color: var(--navy-deep); width: 100%; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313293d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right center; background-size: .9rem;
}
.field select:focus { outline: none; }
.hero-search__form .btn { min-height: 3.6rem; padding-inline: 2rem; }

.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; margin-top: 2rem; font-size: .85rem; color: rgba(255,255,255,.8); }
.hero__foot span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__foot svg { width: 1rem; height: 1rem; color: var(--orange); }

@media (max-width: 760px) {
    .hero { align-items: center; }
    .hero-search__form { grid-template-columns: 1fr 1fr; border-radius: 0 var(--radius) var(--radius) var(--radius); }
    .field { border-right: 0; border-bottom: 1px solid var(--line); }
    .field:first-child { grid-column: 1 / -1; }
    .hero-search__form .btn { grid-column: 1 / -1; margin-top: .5rem; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
    position: relative; isolation: isolate; color: var(--white);
    padding-block: calc(var(--header-h) + clamp(4rem, 9vw, 7rem)) clamp(3.5rem, 7vw, 5.5rem);
    background: var(--navy-deep) var(--hero-img) center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(19,41,61,.92) 0%, rgba(14,58,98,.72) 55%, rgba(14,58,98,.35) 100%); }
.page-hero--green::before { background: linear-gradient(100deg, rgba(8,48,41,.94) 0%, rgba(13,81,69,.8) 55%, rgba(13,81,69,.45) 100%); }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero h1 em { color: var(--orange); }
.page-hero .lead { color: rgba(255,255,255,.85); }
.page-hero .eyebrow { color: var(--white); }

.breadcrumb { display: flex; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Trust strip ---------- */

.trust-strip { background: var(--navy-deep); color: var(--white); }
.trust-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 1rem; padding: 1.75rem 1.5rem; border-right: 1px solid rgba(255,255,255,.1); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 1.8rem; height: 1.8rem; color: var(--orange); flex-shrink: 0; }
.trust-item strong { display: block; font-weight: 600; font-size: .95rem; }
.trust-item span { font-size: .82rem; color: rgba(255,255,255,.65); }
@media (max-width: 960px) {
    .trust-strip__grid { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(2) { border-right: 0; }
    .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 520px) {
    .trust-strip__grid { grid-template-columns: 1fr; }
    .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding-inline: 0; }
}

/* ---------- Buying / Selling / Renting ---------- */

.intent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.intent-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 460px; padding: 2rem; border-radius: var(--radius-lg);
    color: var(--white);
}
.intent-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.intent-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19,41,61,0) 30%, rgba(19,41,61,.92) 100%); }
.intent-card:hover img { transform: scale(1.06); }
.intent-card:hover { color: var(--white); }
.intent-card__label { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: .5rem; }
.intent-card h3 { color: var(--white); margin-bottom: .5rem; }
.intent-card p { color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 1.25rem; }
.intent-card .link-arrow { color: var(--white); align-self: flex-start; }
@media (max-width: 900px) { .intent-grid { grid-template-columns: 1fr; } .intent-card { min-height: 340px; } }

/* ---------- Split (image + text) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.split__media--wide > img { aspect-ratio: 5 / 4; }
.split__badge {
    position: absolute; right: -1.5rem; bottom: 2rem; width: min(250px, 55%);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}
.split__badge img { width: 100%; height: auto; }
.split__body .lead { margin-bottom: 1.5rem; }
.split__body p { color: var(--text-muted); }
.split__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2rem; }

.checklist { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; }
.checklist svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin-top: .2rem; color: var(--green); }

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .split__badge { right: 1rem; bottom: 1rem; }
    .split__media > img { aspect-ratio: 4 / 3; }
}

/* ---------- Islamic financing band ---------- */

.faith-band { position: relative; overflow: hidden; background: var(--green); color: var(--white); }
.faith-band::after {
    /* Eight-point star lattice, a quiet nod to Islamic geometric art. */
    content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
}
.faith-band .container { position: relative; z-index: 1; }
.faith-band h2 { color: var(--white); }
.faith-band h2 em { color: var(--green-tint); }
.faith-band .lead, .faith-band p { color: rgba(255,255,255,.82); }
.faith-band .eyebrow { color: var(--green-tint); }
.faith-band__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.faith-band__points { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--radius-lg); overflow: hidden; }
.faith-point { background: var(--green); padding: 1.75rem; }
.faith-point svg { width: 1.6rem; height: 1.6rem; color: var(--orange); margin-bottom: 1rem; }
.faith-point h3 { font-size: 1.2rem; color: var(--white); margin-bottom: .4rem; }
.faith-point p { font-size: .9rem; margin: 0; }
.faith-band__tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--green-tint); margin: 1.5rem 0 2rem; }
@media (max-width: 900px) { .faith-band__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .faith-band__points { grid-template-columns: 1fr; } }

/* ---------- Pillars (Islamic Financing page) ---------- */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pillar { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius-lg); padding: 2rem 1.75rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--green-tint); color: var(--green); margin-bottom: 1.5rem; }
.pillar__icon svg { width: 1.5rem; height: 1.5rem; }
.pillar h3 { font-size: 1.3rem; }
.pillar p { color: var(--text-muted); font-size: .95rem; margin: 0; }
@media (max-width: 1024px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.step { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--mist); }
.step__num { font-family: var(--font-serif); font-size: 3.25rem; line-height: 1; color: var(--orange); margin-bottom: 1rem; display: block; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--text-muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Partner callout ---------- */

.callout { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; background: var(--green-tint); border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); }
.callout__mark { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--green); color: var(--white); }
.callout__mark svg { width: 2rem; height: 2rem; }
.callout h3 { margin-bottom: .35rem; color: var(--green); }
.callout p { margin: 0; color: var(--text); }
@media (max-width: 800px) { .callout { grid-template-columns: 1fr; } }

/* ---------- Quote / tagline ---------- */

.statement { text-align: center; max-width: 52rem; margin-inline: auto; }
.statement blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.35; color: var(--navy-deep); }
.statement blockquote em { color: var(--green); }
.statement cite { display: block; margin-top: 1.5rem; font-style: normal; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- About ---------- */

.agent-portrait {
    position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    display: grid; place-items: center; color: rgba(255,255,255,.9);
}
.agent-portrait__initials { font-family: var(--font-serif); font-size: clamp(5rem, 12vw, 8rem); font-style: italic; color: var(--orange); line-height: 1; }
.agent-portrait__note { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }

.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.credential { padding: 2rem; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.credential svg { width: 1.8rem; height: 1.8rem; color: var(--navy); margin-bottom: 1rem; }
.credential h3 { font-size: 1.25rem; }
.credential p { margin: 0; color: var(--text-muted); font-size: .95rem; }
@media (max-width: 900px) { .credentials { grid-template-columns: 1fr; } }

.areas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.areas span { padding: .45rem 1rem; border: 1px solid var(--mist); border-radius: 999px; font-size: .85rem; color: var(--navy-deep); background: var(--white); }

/* ---------- Placeholder pages ---------- */

.coming-soon { text-align: center; max-width: 40rem; margin-inline: auto; }
.coming-soon__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; text-align: left; }
.contact-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.contact-card svg { width: 1.6rem; height: 1.6rem; color: var(--orange); margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Reveal on load ---------- */

@media (prefers-reduced-motion: no-preference) {
    .hero__content > * { animation: rise .9s var(--ease) both; }
    .hero__content > *:nth-child(2) { animation-delay: .08s; }
    .hero__content > *:nth-child(3) { animation-delay: .16s; }
    .hero__content > *:nth-child(4) { animation-delay: .24s; }
    .hero__content > *:nth-child(5) { animation-delay: .32s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Light home hero: blueprint background, blended portrait, listing rail ---------- */

.hero--light {
    display: block; min-height: 0; color: var(--text);
    padding-block: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) clamp(3rem, 6vw, 4.5rem);
    background: var(--paper) url("../images/legacy/home-3-slider-2-bg-v4.jpg") center / cover no-repeat;
}
.hero--light::before {
    background: linear-gradient(90deg, rgba(245,245,245,.97) 0%, rgba(245,245,245,.9) 42%, rgba(245,245,245,.4) 100%);
}
.hero--light h1 { color: var(--navy-deep); }
.hero--light h1 em { color: var(--green); }
.hero--light .lead { color: var(--text-muted); margin-bottom: 2rem; }
.hero--light .hero__foot { color: var(--text-muted); }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: end; }
.hero__grid > * { min-width: 0; }
.hero .eyebrow { flex-wrap: wrap; }
.hero--light .hero__content { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__portrait { position: relative; align-self: end; }
.hero__portrait img {
    width: 100%; height: auto;
    /* Lift the photo's grey studio backdrop to the hero's off-white, multiply it into the blueprint,
       and feather every edge so there is no visible box. */
    filter: brightness(1.12) contrast(1.04);
    mix-blend-mode: multiply;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 24%, #000 86%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 7%, #000 62%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, #000 24%, #000 86%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 7%, #000 62%, transparent 100%);
    mask-composite: intersect;
}
.hero__signature {
    position: absolute; right: 0; bottom: 14%;
    padding: .85rem 1.25rem; border-left: 3px solid var(--orange); border-radius: var(--radius);
    background: rgba(255,255,255,.88); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
}
.hero__signature strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--navy-deep); }
.hero__signature span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

.listing-rail {
    position: relative; z-index: 1; margin-top: -1rem;
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}
.listing-rail__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.listing-rail__head .eyebrow { margin-bottom: .5rem; }
.listing-rail__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.listing-rail__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); gap: 1.25rem;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin;
}
.listing-rail__track > * { scroll-snap-align: start; }
.listing-rail__empty { margin: 0; color: var(--text-muted); }

@media (max-width: 1100px) { .listing-rail__track { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); } }
@media (max-width: 800px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero--light .hero__content { padding-bottom: 0; }
    .hero__portrait { max-width: 420px; width: 100%; margin-inline: auto; }
    .listing-rail__track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
}
@media (max-width: 540px) { .listing-rail__track { grid-auto-columns: 82%; } }

.section--aerial { background: var(--white) url("../images/legacy/home-3-slider-2-bg-v5.jpg") left center / cover no-repeat; }

.split__media--sketch > img { aspect-ratio: 1; object-fit: contain; border-radius: 0; }
