/* Homepage — Moataz's master reference design (2026-11-08). Loaded after every other stylesheet; everything here is scoped
   to the homepage (body[data-route="home"]) or to the .hr-* blocks that only exist on it, so no other page changes.
   Order: navy header, cinematic hero, the one search (overlapping the hero), trust row, Property Sales cards, AI Smart
   Living banner, Yachts & Boats banner. Logical properties throughout, so Arabic mirrors. */
:root {
  --hr-navy: #071827; --hr-deep: #0B2239; --hr-card: #102C46; --hr-blue: #007BFF; --hr-royal: #0056D6;
  --hr-gold: #E8B65C; --hr-gold-l: #F4D28B; --hr-white: #FFFFFF; --hr-grey: #B8C7D5; --hr-bg: #F5F7F9;
  --hr-serif: "Playfair Display", "Newsreader", Georgia, "Times New Roman", serif;
  --hr-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hr-max: 1180px;
}
:root[lang="ar"] { --hr-serif: "Noto Naskh Arabic", Amiri, "Playfair Display", serif; --hr-sans: Cairo, "Noto Sans Arabic", Inter, sans-serif; }

body[data-route="home"] { background: var(--hr-bg); }
body[data-route="home"] [data-view="home"] { background: var(--hr-bg); font-family: var(--hr-sans); }
.hr-wrap { width: 100%; max-width: calc(var(--hr-max) + 2 * clamp(16px, 3vw, 40px)); margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); box-sizing: border-box; }

/* ------------------------------------------------------------------ header (homepage only) */
.navlinks-home { display: none; }
html body[data-route="home"] header.top,
html body[data-route="home"] header.top:not(.is-scrolled) {
  position: sticky; top: 0; background: var(--hr-navy); border-bottom: 1px solid rgba(184, 199, 213, .12);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
html body[data-route="home"] header.top .wrap { max-width: none; min-height: 74px; padding-block: 0; padding-inline: clamp(16px, 2.6vw, 40px); gap: 16px; align-items: center; }
html body[data-route="home"] header.top .logo,
html body[data-route="home"] header.top:not(.is-scrolled) .logo {
  align-self: center; background: none; box-shadow: none; padding: 0; margin: 0; width: auto; min-height: 0; border-radius: 0;
}
html body[data-route="home"] header.top .logo img.logo-mark:not(.logo-mark-light) { display: none; }
html body[data-route="home"] header.top .logo img.logo-mark.logo-mark-light { display: block; width: clamp(150px, 13.5vw, 196px); height: auto; filter: none; }
html body[data-route="home"] header.top .logo .logo-tag { display: none; }
/* the general links fold into ☰ on the homepage; the five service links take their place */
html body[data-route="home"] header.top .navlinks { display: none; }
html body[data-route="home"] header.top .navlinks-home { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); margin-inline-start: clamp(8px, 2vw, 32px); margin-inline-end: auto; padding-inline-end: 18px; border-inline-end: 1px solid rgba(184, 199, 213, .22); }
html body[data-route="home"] header.top .navlinks-home a { position: relative; color: var(--hr-white); font: 500 15px/1 var(--hr-sans); text-decoration: none; padding: 10px 0; white-space: nowrap; letter-spacing: .005em; }
html body[data-route="home"] header.top .navlinks-home a[hidden] { display: none; }
html body[data-route="home"] header.top .navlinks-home a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--hr-gold); transform: scaleX(0); transition: transform .25s ease; }
html body[data-route="home"] header.top .navlinks-home a:hover::after,
html body[data-route="home"] header.top .navlinks-home a:focus-visible::after { transform: scaleX(1); }
html body[data-route="home"] header.top.nav-collapsed .navlinks-home { display: none; }
@media (max-width: 1099.98px) { html body[data-route="home"] header.top .navlinks-home { display: none; } }
@media (min-width: 1100px) and (max-width: 1399.98px) {
  html body[data-route="home"] header.top .wrap { gap: 10px; padding-inline: 20px; }
  html body[data-route="home"] header.top .logo img.logo-mark.logo-mark-light { width: 150px; }
  html body[data-route="home"] header.top .navlinks-home { gap: 18px; margin-inline-start: 14px; padding-inline-end: 12px; }
  html body[data-route="home"] header.top .navlinks-home a { font-size: 14px; }
  html body[data-route="home"] header.top .wrap > .nav { gap: 4px; }
  html body[data-route="home"] header.top .nav .btn, html body[data-route="home"] header.top .nav .lang-trigger, html body[data-route="home"] header.top .nav .currency-trigger, html body[data-route="home"] header.top .nav .nav-menu-btn { padding-inline: 8px; font-size: 13.5px; }
  html body[data-route="home"] header.top .nav .nav-ai-btn, html body[data-route="home"] header.top #navArea #navSignIn { padding-inline: 12px; }
}
html body[data-route="home"] header.top .nav-menu { display: block; }
html body[data-route="home"] header.top .nav-menu[hidden] { display: none; }
html body[data-route="home"] header.top #navHostPortal,
html body[data-route="home"] header.top #navArea #navRegister { display: none; }
@media (min-width: 861px) {
/* right side: AI Concierge pill, language, Sign In pill */
html body[data-route="home"] header.top .wrap > .nav { gap: 10px; }
html body[data-route="home"] header.top .nav .btn,
html body[data-route="home"] header.top:not(.is-scrolled) .nav .btn-ghost,
html body[data-route="home"] header.top .nav .lang-trigger,
html body[data-route="home"] header.top .nav .currency-trigger,
html body[data-route="home"] header.top .nav .notif-trigger,
html body[data-route="home"] header.top .nav .nav-menu-btn {
  min-height: 42px; background: transparent; border: 1px solid transparent; color: var(--hr-white); box-shadow: none; text-shadow: none;
  border-radius: 999px; font: 500 14.5px/1 var(--hr-sans); padding: 8px 12px;
}
html body[data-route="home"] header.top .nav .btn:hover,
html body[data-route="home"] header.top .nav .lang-trigger:hover,
html body[data-route="home"] header.top .nav .currency-trigger:hover,
html body[data-route="home"] header.top .nav .nav-menu-btn:hover { background: rgba(255, 255, 255, .08); border-color: transparent; }
html body[data-route="home"] header.top .nav .nav-ai-btn,
html body[data-route="home"] header.top #navArea #navSignIn,
html body[data-route="home"] header.top:not(.is-scrolled) .nav .btn-ink { border: 1px solid rgba(255, 255, 255, .72); padding-inline: 18px; gap: 8px; background: transparent; color: var(--hr-white); }
html body[data-route="home"] header.top .nav .nav-ai-btn:hover,
html body[data-route="home"] header.top #navArea #navSignIn:hover { background: rgba(255, 255, 255, .1); border-color: var(--hr-white); }
html body[data-route="home"] header.top .nav .nav-ai-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
html body[data-route="home"] header.top #navArea #navSignIn::before {
  content: ""; width: 18px; height: 18px; margin-inline-end: 8px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.8'/%3E%3Cpath d='M4.5 20.5a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.8'/%3E%3Cpath d='M4.5 20.5a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body[data-route="home"] header.top #navArea #navSignIn { display: inline-flex; align-items: center; }
/* language: a thin globe, the language code (from data-lang, set by app.js) and a chevron, in place of flag + name */
html body[data-route="home"] header.top .lang-trigger { display: inline-flex; align-items: center; gap: 7px; }
html body[data-route="home"] header.top .lang-trigger #langTriggerLabel { display: none; }
html body[data-route="home"] header.top .lang-trigger::before { content: ""; flex: none; width: 19px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='8.8'/%3E%3Cpath d='M3.2 12h17.6M12 3.2c2.4 2.4 3.6 5.3 3.6 8.8s-1.2 6.4-3.6 8.8c-2.4-2.4-3.6-5.3-3.6-8.8s1.2-6.4 3.6-8.8Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='8.8'/%3E%3Cpath d='M3.2 12h17.6M12 3.2c2.4 2.4 3.6 5.3 3.6 8.8s-1.2 6.4-3.6 8.8c-2.4-2.4-3.6-5.3-3.6-8.8s1.2-6.4 3.6-8.8Z'/%3E%3C/svg%3E") center / contain no-repeat; }
html body[data-route="home"] header.top .lang-trigger::after { content: attr(data-lang); text-transform: uppercase; font: 500 14.5px/1 var(--hr-sans); }
html body[data-route="home"] header.top .lang-trigger .flag-badge { order: 3; display: inline-block; flex: none; width: 11px; height: 11px; min-width: 0; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
html body[data-route="home"] header.top .lang-trigger .flag-badge > * { display: none; }
html body[data-route="home"] header.top .currency-trigger { color: rgba(255, 255, 255, .82); font-size: 13.5px; padding-inline: 8px; }
html body[data-route="home"] header.top .nav .acct-trigger { color: var(--hr-white); }

}
/* ------------------------------------------------------------------ hero */
.hr-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--hr-navy); color: var(--hr-white); min-height: clamp(420px, 34vw, 500px); padding-bottom: 126px; box-sizing: border-box; }
.hr-hero-photo { position: absolute; inset-block: 0; inset-inline-end: 0; width: 74%; z-index: -2; overflow: hidden; }
.hr-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; transform: scale(1.06); transform-origin: 50% 40%; will-change: transform; }
.hr-hero::before { /* the navy fade from the start side onto the photo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 24, 39, .98) 0%, rgba(7, 24, 39, .9) 24%, rgba(7, 24, 39, .62) 38%, rgba(7, 24, 39, .22) 52%, rgba(7, 24, 39, 0) 64%),
    linear-gradient(0deg, rgba(7, 24, 39, .55) 0%, rgba(7, 24, 39, 0) 30%);
}
:root[dir="rtl"] .hr-hero::before {
  background:
    linear-gradient(-90deg, rgba(7, 24, 39, .98) 0%, rgba(7, 24, 39, .9) 24%, rgba(7, 24, 39, .62) 38%, rgba(7, 24, 39, .22) 52%, rgba(7, 24, 39, 0) 64%),
    linear-gradient(0deg, rgba(7, 24, 39, .55) 0%, rgba(7, 24, 39, 0) 30%);
}
.hr-hero-in { padding-top: clamp(34px, 3.4vw, 50px); }
/* 2026-11-12: a very subtle navy wash behind the Arabic (RTL) headline only, for readability over the bright photo */
:root[dir="rtl"] .hr-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 82% 40%, rgba(7, 24, 39, .45) 0%, rgba(7, 24, 39, 0) 100%); }
@media (max-width: 860px) { :root[dir="rtl"] .hr-hero::after { background: linear-gradient(180deg, rgba(7, 24, 39, .4) 0%, rgba(7, 24, 39, .28) 45%, rgba(7, 24, 39, 0) 70%); } }
.hr-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; color: var(--hr-white); font: 600 13px/1.2 var(--hr-sans); letter-spacing: .32em; text-transform: uppercase; }
.hr-eyebrow::after { content: ""; width: 44px; height: 2px; border-radius: 2px; background: var(--hr-gold); }
:root[lang="ar"] .hr-eyebrow { letter-spacing: 0; font-size: 14px; }
.hr-title { margin: 0; max-width: 780px; font: 600 clamp(36px, 4.1vw, 60px)/1.07 var(--hr-serif); letter-spacing: -.012em; color: var(--hr-white); text-wrap: balance; }
.hr-title > span { display: block; }
@media (min-width: 861px) { .hr-title > span { white-space: nowrap; } }
.hr-title em { font-style: normal; color: var(--hr-gold); }
:root[lang="ar"] .hr-title { line-height: 1.32; letter-spacing: 0; font-weight: 600; }
.hr-sub { margin: 16px 0 0; max-width: 470px; font: 400 clamp(15.5px, 1.3vw, 19px)/1.5 var(--hr-sans); color: rgba(255, 255, 255, .9); }
.hr-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }

/* buttons */
.hr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--hr-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; box-sizing: border-box; }
.hr-btn:hover { transform: translateY(-1px); }
.hr-btn:focus-visible { outline: 3px solid var(--hr-gold-l); outline-offset: 3px; }
.hr-arrow { width: 18px; height: 18px; flex: none; }
:root[dir="rtl"] .hr-arrow { transform: scaleX(-1); }
.hr-btn-gold { background: linear-gradient(180deg, var(--hr-gold-l) 0%, var(--hr-gold) 100%); color: var(--hr-navy); box-shadow: 0 8px 22px rgba(232, 182, 92, .28); }
.hr-hero .hr-btn-gold { color: #030D17; } /* 2026-11-12: darker navy text on the hero "Explore Properties" button */
.hr-btn-gold:hover { box-shadow: 0 10px 28px rgba(232, 182, 92, .4); }
.hr-btn-line { background: rgba(7, 24, 39, .28); border-color: rgba(255, 255, 255, .85); color: var(--hr-white); }
.hr-btn-line:hover { background: rgba(255, 255, 255, .1); border-color: var(--hr-white); }
.hr-btn-blue { background: var(--hr-blue); color: var(--hr-white); box-shadow: 0 8px 22px rgba(0, 123, 255, .3); }
.hr-btn-blue:hover { background: var(--hr-royal); }
.hr-btn-dark { background: rgba(7, 24, 39, .55); border-color: rgba(255, 255, 255, .8); color: var(--hr-white); }
.hr-btn-dark:hover { background: rgba(7, 24, 39, .8); }

/* ------------------------------------------------------------------ the one search, pulled up over the hero */
body[data-route="home"] .hero.hx.hx-search-only { position: relative; margin-top: -96px; padding: 0 0 6px; background: transparent; border-top: 0; }
body[data-route="home"] .hero.hx.hx-search-only > .wrap { max-width: calc(var(--hr-max) + 2 * clamp(16px, 3vw, 40px)); padding-inline: clamp(16px, 3vw, 40px); }
body[data-route="home"] .hero.hx.hx-search-only .hx-search.sb {
  background: linear-gradient(180deg, rgba(16, 44, 70, .94) 0%, rgba(11, 34, 57, .97) 100%);
  border: 1px solid rgba(184, 199, 213, .26); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(7, 24, 39, .34), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
body[data-route="home"] .hero.hx.hx-search-only .hx-search.sb .sb-nav { border-bottom-color: rgba(184, 199, 213, .16); }
body[data-route="home"] .hero.hx.hx-search-only .sb-tabs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); padding: 4px 18px 0; }
body[data-route="home"] .hero.hx.hx-search-only .sb-tabs.has-sea { grid-template-columns: repeat(7, minmax(0, 1fr)); }
body[data-route="home"] .hero.hx.hx-search-only .sb-tab { color: rgba(255, 255, 255, .86); min-height: 58px; justify-content: center; font-weight: 500; }
body[data-route="home"] .hero.hx.hx-search-only .sb-tab[aria-selected="true"] { background: transparent; color: var(--hr-white); font-weight: 600; }
body[data-route="home"] .hero.hx.hx-search-only .sb-tab[aria-selected="true"] .sb-tab-icon { color: var(--hr-white); }
body[data-route="home"] .hero.hx.hx-search-only .sb-tab[aria-selected="true"]::after { inset-inline: 18%; height: 3px; background: var(--hr-blue); box-shadow: 0 0 12px rgba(0, 123, 255, .6); }
body[data-route="home"] .hero.hx.hx-search-only .sb-tab-icon { width: 22px; height: 22px; }
@media (min-width: 1280px) { body[data-route="home"] .hero.hx.hx-search-only .sb-tab-label { font-size: 16px; } body[data-route="home"] .hero.hx.hx-search-only .sb-tab { min-height: 64px; } }
body[data-route="home"] .hero.hx.hx-search-only .sb-panels { padding: 20px 22px 22px; }
body[data-route="home"] .hero.hx.hx-search-only .sb-search,
body[data-route="home"] .hero.hx.hx-search-only .sb-search:hover { background: var(--hr-blue); border-radius: 12px; }
body[data-route="home"] .hero.hx.hx-search-only .sb-search:hover { background: var(--hr-royal); }
@media (min-width: 1024px) {
  body[data-route="home"] .hero.hx.hx-search-only .sb-bar { min-height: 70px; border-radius: 14px; padding: 5px; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-bar .sb-seg { height: 60px; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-bar .sb-search { height: 58px; min-width: 128px; font-size: 16px; }
}

/* ------------------------------------------------------------------ trust row */
.hr-trust { padding: 26px 0 8px; }
.hr-trust-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hr-trust-list > li { display: flex; align-items: center; gap: 14px; padding: 8px 18px; min-width: 0; }
.hr-trust-list > li + li { border-inline-start: 1px solid #D9E1EA; }
.hr-trust-list > li:first-child { padding-inline-start: 0; }
.hr-trust-ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--hr-white); color: var(--hr-deep); box-shadow: 0 4px 14px rgba(7, 24, 39, .08); }
.hr-trust-ico svg { width: 26px; height: 26px; }
.hr-trust-list b { display: block; color: var(--hr-navy); font: 700 16.5px/1.25 var(--hr-sans); }
.hr-trust-list small { display: block; margin-top: 3px; color: #4A5D70; font: 400 13.5px/1.35 var(--hr-sans); }

/* ------------------------------------------------------------------ Property Sales */
body[data-route="home"] .home-section.nph.nph-props { background: var(--hr-bg); padding: 30px 0 18px; color: var(--hr-navy); border: 0; }
body[data-route="home"] .home-section.nph.nph-props::before,
body[data-route="home"] .home-section.nph.nph-props::after { display: none; }
.hr-props-head { border-top: 1px solid #DCE3EB; padding-top: 34px; }
body[data-route="home"] .hr-h2 { max-width: none; margin: 0; font: 600 clamp(28px, 3vw, 44px)/1.15 var(--hr-serif); color: var(--hr-navy); letter-spacing: -.01em; }
.hr-h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 16px; border-radius: 2px; background: var(--hr-gold); }
:root[lang="ar"] .hr-h2 { line-height: 1.4; letter-spacing: 0; }
.hr-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.hr-cat { position: relative; overflow: hidden; isolation: isolate; min-height: 280px; border-radius: 20px; background: var(--hr-deep); color: var(--hr-white); box-shadow: 0 14px 34px rgba(7, 24, 39, .16); display: flex; align-items: stretch; }
.hr-cat-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.hr-cat-np .hr-cat-img { object-position: 70% 55%; }
.hr-cat-all .hr-cat-img { object-position: 60% 40%; }
.hr-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 24, 39, .94) 0%, rgba(11, 34, 57, .82) 38%, rgba(11, 34, 57, .25) 68%, rgba(11, 34, 57, 0) 100%); }
:root[dir="rtl"] .hr-cat::before { background: linear-gradient(-90deg, rgba(7, 24, 39, .94) 0%, rgba(11, 34, 57, .82) 38%, rgba(11, 34, 57, .25) 68%, rgba(11, 34, 57, 0) 100%); }
.hr-cat:hover .hr-cat-img { transform: scale(1.045); }
.hr-cat-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 30px; max-width: 64%; box-sizing: border-box; }
body[data-route="home"] .hr-cat h3 { margin: 0; font: 600 clamp(26px, 2.6vw, 38px)/1.08 var(--hr-serif); color: var(--hr-white); }
:root[lang="ar"] .hr-cat h3 { line-height: 1.35; }
.hr-cat p { margin: 12px 0 22px; font: 400 16.5px/1.45 var(--hr-sans); color: rgba(255, 255, 255, .9); }
.hr-cat .hr-btn { min-height: 48px; padding-inline: 24px; font-size: 15.5px; }

/* ------------------------------------------------------------------ AI Smart Living */
.hr-ai { padding: 10px 0 0; background: var(--hr-bg); }
.hr-ai-card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; gap: 26px;
  min-height: 220px; padding: 18px 28px 18px 0; border-radius: 20px; color: var(--hr-white);
  background:
    radial-gradient(120% 140% at 8% 50%, rgba(0, 123, 255, .28) 0%, rgba(0, 123, 255, 0) 45%),
    linear-gradient(100deg, #0B2B4C 0%, var(--hr-deep) 45%, var(--hr-card) 100%);
  box-shadow: 0 14px 34px rgba(7, 24, 39, .16); border: 1px solid rgba(184, 199, 213, .14);
}
:root[dir="rtl"] .hr-ai-card { padding: 18px 0 18px 28px; }
.hr-ai-art { align-self: stretch; position: relative; margin-block: -18px; }
.hr-ai-art img { position: absolute; inset-inline-start: 0; bottom: 0; height: 112%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
:root[dir="rtl"] .hr-ai-art img { transform: scaleX(-1); }
.hr-label { margin: 0 0 6px; color: var(--hr-gold); font: 700 17px/1.2 var(--hr-sans); letter-spacing: .3em; text-transform: uppercase; }
:root[lang="ar"] .hr-label { letter-spacing: 0; }
.hr-ai-title { margin: 0; font: 600 clamp(26px, 2.8vw, 40px)/1.12 var(--hr-serif); color: var(--hr-white); }
:root[lang="ar"] .hr-ai-title { line-height: 1.4; }
.hr-ai-desc { margin: 10px 0 0; max-width: 500px; font: 400 16.5px/1.5 var(--hr-sans); color: rgba(255, 255, 255, .86); }
.hr-ai-side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hr-ai-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 84px); gap: 8px; }
.hr-ai-cats a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; height: 78px; border-radius: 12px; border: 1px solid rgba(184, 199, 213, .38); background: rgba(255, 255, 255, .04); color: var(--hr-white); text-decoration: none; font: 500 13px/1.15 var(--hr-sans); text-align: center; padding: 0 4px; transition: background-color .2s ease, border-color .2s ease; }
.hr-ai-cats a:hover { background: rgba(255, 255, 255, .1); border-color: var(--hr-gold-l); }
.hr-ai-cats a:focus-visible { outline: 2px solid var(--hr-gold-l); outline-offset: 2px; }
.hr-ai-cats svg { width: 24px; height: 24px; }
.hr-ai-cta { min-height: 48px; font-size: 15.5px; }

/* ------------------------------------------------------------------ Yachts & Boats */
.hr-sea { padding: 22px 0 44px; background: var(--hr-bg); }
.hr-sea[hidden] { display: none; }
.hr-sea-card { position: relative; overflow: hidden; isolation: isolate; min-height: 270px; border-radius: 20px; background: var(--hr-deep); color: var(--hr-white); box-shadow: 0 14px 34px rgba(7, 24, 39, .16); display: flex; align-items: center; }
.hr-sea-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.hr-sea-card:hover .hr-sea-img { transform: scale(1.035); }
.hr-sea-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 24, 39, .94) 0%, rgba(11, 34, 57, .84) 34%, rgba(11, 34, 57, .3) 62%, rgba(11, 34, 57, 0) 82%); }
:root[dir="rtl"] .hr-sea-card::before { background: linear-gradient(-90deg, rgba(7, 24, 39, .94) 0%, rgba(11, 34, 57, .84) 34%, rgba(11, 34, 57, .3) 62%, rgba(11, 34, 57, 0) 82%); }
.hr-sea-body { padding: 28px 40px; max-width: 720px; box-sizing: border-box; }
.hr-sea .hr-actions { flex-wrap: nowrap; }
.hr-sea-body .hr-eyebrow { margin-bottom: 10px; font-size: 13.5px; }
.hr-sea-title { margin: 0; font: 600 clamp(28px, 3vw, 44px)/1.1 var(--hr-serif); color: var(--hr-white); }
:root[lang="ar"] .hr-sea-title { line-height: 1.4; }
.hr-sea-desc { margin: 10px 0 0; max-width: 500px; font: 400 16.5px/1.5 var(--hr-sans); color: rgba(255, 255, 255, .88); }
.hr-sea .hr-actions { margin-top: 20px; }
.hr-sea .hr-btn { min-height: 50px; font-size: 15.5px; }

/* ------------------------------------------------------------------ motion: soft reveals (home-ref.js adds the classes) */
.hr-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.hr-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hr-reveal { opacity: 1; transform: none; transition: none; }
  .hr-cat-img, .hr-sea-img, .hr-btn { transition: none; }
  .hr-cat:hover .hr-cat-img, .hr-sea-card:hover .hr-sea-img, .hr-btn:hover { transform: none; }
  .hr-hero-photo img { transform: none; }
}

/* ------------------------------------------------------------------ narrower computers / tablets */
@media (max-width: 1180px) {
  .hr-ai-card { grid-template-columns: 140px minmax(0, 1fr); }
  .hr-ai-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; flex-wrap: wrap; padding-inline: 28px 0; }
  :root[dir="rtl"] .hr-ai-side { padding-inline: 28px 0; }
}
@media (max-width: 1023.98px) {
  .hr-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .hr-trust-list > li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .hr-cat-body { max-width: 78%; }
}
@media (max-width: 860px) {
  .hr-cats { grid-template-columns: 1fr; }
  .hr-hero-photo { width: 100%; }
  .hr-hero::before { background: linear-gradient(90deg, rgba(7, 24, 39, .95) 0%, rgba(7, 24, 39, .78) 46%, rgba(7, 24, 39, .2) 80%, rgba(7, 24, 39, .05) 100%), linear-gradient(0deg, rgba(7, 24, 39, .6) 0%, rgba(7, 24, 39, 0) 32%); }
  :root[dir="rtl"] .hr-hero::before { background: linear-gradient(-90deg, rgba(7, 24, 39, .95) 0%, rgba(7, 24, 39, .78) 46%, rgba(7, 24, 39, .2) 80%, rgba(7, 24, 39, .05) 100%), linear-gradient(0deg, rgba(7, 24, 39, .6) 0%, rgba(7, 24, 39, 0) 32%); }
}

/* ------------------------------------------------------------------ phones (the reference's phone preview) */
@media (max-width: 640px) {
  html body[data-route="home"] header.top .wrap { min-height: 60px; gap: 6px; }
  html body[data-route="home"] header.top .logo img.logo-mark.logo-mark-light { width: 124px; }

  .hr-hero { min-height: 0; padding-bottom: 70px; }
  .hr-hero-photo img { object-position: 74% 50%; }
  :root[dir="rtl"] .hr-hero-photo img { object-position: 26% 50%; }
  .hr-hero-in { padding-top: 22px; }
  .hr-eyebrow { font-size: 10.5px; gap: 10px; margin-bottom: 10px; letter-spacing: .26em; }
  .hr-eyebrow::after { width: 30px; }
  .hr-title { font-size: clamp(28px, 8.4vw, 34px); max-width: 84%; line-height: 1.1; }
  :root[lang="ar"] .hr-title { max-width: 86%; line-height: 1.35; }
  .hr-sub { font-size: 13.5px; max-width: 72%; margin-top: 10px; }
  .hr-actions { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 16px; }
  .hr-hero .hr-btn { min-height: 44px; min-width: 182px; padding-inline: 20px; font-size: 14px; }

  body[data-route="home"] .hero.hx.hx-search-only { margin-top: -54px; }
  body[data-route="home"] .hero.hx.hx-search-only .hx-search.sb { border-radius: 18px; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-tabs { padding: 8px 8px 0; gap: 4px; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-tab { flex-direction: column; gap: 4px; min-height: 58px; min-width: 76px; padding: 6px 8px; border-radius: 12px; border: 0; background: transparent; justify-content: center; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-tab[aria-selected="true"] { background: rgba(255, 255, 255, .12); border: 0; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-tab-text { align-items: center; text-align: center; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-tab-label { font-size: 12px; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-tab.is-soon .sb-tab-sub { font-size: 10px; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-panels { padding: 10px; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-form-stays .sb-bar { background: var(--hr-white); border-radius: 12px; gap: 0; padding: 0 0 8px; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-form-stays .sb-bar .sb-seg { border: 0; border-radius: 0; box-shadow: inset 0 -1px 0 #E3E9F0; background: transparent; height: 52px; min-height: 50px; }
  body[data-route="home"] .hero.hx.hx-search-only .sb-form-stays .sb-bar .sb-search { margin: 8px 8px 0; width: auto; height: 46px; border-radius: 10px; }

  .hr-trust { padding: 18px 0 4px; }
  .hr-trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; }
  .hr-trust-list > li { flex-direction: column; gap: 6px; padding: 4px 2px; text-align: center; }
  .hr-trust-list > li + li, .hr-trust-list > li:nth-child(3) { border-inline-start: 0; padding-inline-start: 2px; }
  .hr-trust-ico { width: 42px; height: 42px; }
  .hr-trust-ico svg { width: 22px; height: 22px; }
  .hr-trust-list b { font-size: 12px; font-weight: 600; line-height: 1.2; }
  .hr-trust-list small { display: none; }

  body[data-route="home"] .home-section.nph.nph-props { padding-top: 18px; }
  .hr-props-head { border-top: 0; padding-top: 10px; }
  body[data-route="home"] .hr-h2 { font-size: 23px; line-height: 1.22; }
  .hr-h2::after { width: 44px; margin-top: 10px; }
  .hr-cats { gap: 12px; margin-top: 18px; }
  .hr-cat { min-height: 112px; border-radius: 14px; }
  .hr-cat-body { max-width: none; width: 100%; padding: 14px 64px 14px 16px; }
  :root[dir="rtl"] .hr-cat-body { padding: 14px 16px 14px 64px; }
  body[data-route="home"] .hr-cat h3 { font-size: 21px; }
  .hr-cat p { margin: 6px 0 0; font-size: 12.5px; max-width: 76%; }
  /* the button becomes the reference's round gold arrow; the whole card is its tap target */
  .hr-cat .hr-btn, .hr-ai-cta, .hr-sea-body .hr-btn-blue { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); width: 40px; min-height: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--hr-gold); color: var(--hr-navy); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
  .hr-cat .hr-btn::before, .hr-ai-cta::before, .hr-sea-body .hr-btn-blue::before { content: ""; position: absolute; inset: -200px -14px -200px -2000px; }
  :root[dir="rtl"] .hr-cat .hr-btn::before, :root[dir="rtl"] .hr-ai-cta::before, :root[dir="rtl"] .hr-sea-body .hr-btn-blue::before { inset: -200px -2000px -200px -14px; }
  .hr-cat .hr-btn span, .hr-ai-cta span, .hr-sea-body .hr-btn-blue span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hr-cat .hr-btn:hover, .hr-ai-cta:hover, .hr-sea-body .hr-btn-blue:hover { transform: translateY(-50%); }

  .hr-ai { padding-top: 6px; }
  .hr-ai-card { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; min-height: 104px; padding: 12px 64px 12px 0; border-radius: 14px; }
  :root[dir="rtl"] .hr-ai-card { padding: 12px 0 12px 64px; }
  .hr-ai-art { margin-block: -12px; }
  .hr-label { font-size: 13px; letter-spacing: .02em; text-transform: none; margin-bottom: 3px; }
  .hr-ai-title { font-size: 19px; }
  .hr-ai-desc { display: none; }
  .hr-ai-side { display: contents; }
  .hr-ai-cats { display: none; }

  .hr-sea { padding: 12px 0 28px; }
  .hr-sea-card { min-height: 116px; border-radius: 14px; }
  .hr-sea-body { padding: 12px 64px 12px 16px; }
  :root[dir="rtl"] .hr-sea-body { padding: 12px 16px 12px 64px; }
  .hr-sea-body .hr-eyebrow { font-size: 10.5px; margin-bottom: 4px; letter-spacing: .2em; }
  .hr-sea-title { font-size: 20px; }
  .hr-sea-desc { display: none; }
  .hr-sea .hr-actions { margin: 0; }
  .hr-sea-body .hr-btn-line { display: none; }
  .hr-sea-img { object-position: 60% 60%; }
}
@media (forced-colors: active) {
  .hr-btn, .hr-ai-cats a { border: 1px solid ButtonText; }
}
