/*
 * Hudrat Real Estate — white & gold design.
 * Loaded after public.css. Uses logical properties (inline-start/end) so the Arabic page mirrors itself.
 */
:root {
    --hd-ink: #2b2218;
    --hd-muted: #85786a;
    --hd-gold: #a67548;
    --hd-gold-2: #d2a56c;
    --hd-gold-dark: #8a5f37;
    --hd-gold-lite: #dcbb8f;
    --hd-sand: #f3e8d8;
    --hd-sand-2: #fbf6ee;
    --hd-line: #ece3d6;
    --hd-canvas: #fbf8f3;
    --hd-shadow: 0 18px 50px rgba(110, 75, 35, .12);
    --hd-serif: Georgia, "Times New Roman", serif;
    --hd-sans: "Segoe UI", Inter, Arial, sans-serif;
}

html[lang="ar"] {
    --hd-serif: "Noto Naskh Arabic", Georgia, serif;
    --hd-sans: "Tajawal", "Segoe UI", Arial, sans-serif;
}

body {
    background: var(--hd-canvas);
    color: var(--hd-ink);
    font-family: var(--hd-sans);
}

.hd-wrap {
    width: min(1200px, 100% - 32px);
    margin-inline: auto;
}

.hd-i {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[dir="rtl"] .hd-arrow {
    display: inline-block;
    transform: scaleX(-1);
}

.hd-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hd-gold);
    font-weight: 700;
}

html[lang="ar"] .hd-eyebrow {
    letter-spacing: 0;
    font-size: 13px;
}

/* ---------- buttons and badges ---------- */
.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font: 700 14px/1.2 var(--hd-sans);
    padding: 13px 22px;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.hd-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(110, 75, 35, .16);
}

.hd-btn--gold {
    background: linear-gradient(135deg, var(--hd-gold-2), var(--hd-gold));
    color: #fff;
}

.hd-btn--dark {
    background: var(--hd-ink);
    color: #fff;
}

.hd-btn--ghost {
    background: #fff;
    border-color: var(--hd-line);
    color: var(--hd-ink);
}

.hd-btn--line {
    background: #fff;
    border-color: var(--hd-gold-lite);
    color: var(--hd-ink);
}

.hd-btn--block {
    width: 100%;
    padding: 15px;
}

.hd-btn--icon {
    padding: 12px;
}

.hd-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hd-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--hd-gold);
    color: #fff;
}

.hd-badge--sand {
    background: var(--hd-sand);
    color: #7b5530;
}

.hd-badge--light {
    background: rgba(255, 255, 255, .95);
    color: var(--hd-ink);
}

/* ---------- header ---------- */
.hd-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-top: 3px solid var(--hd-gold);
    border-bottom: 1px solid var(--hd-line);
}

.hd-header--over {
    position: fixed;
    inset-inline: 0;
    background: transparent;
    border-bottom-color: transparent;
    transition: background .2s, border-color .2s;
}

.hd-header--over.scrolled,
.hd-header--over.menu-open {
    background: rgba(255, 255, 255, .97);
    border-bottom-color: var(--hd-line);
    backdrop-filter: blur(8px);
}

.hd-header-row {
    display: flex;
    align-items: center;
    height: 84px;
    gap: 36px;
}

.hd-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: none;
}

.hd-logo img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--hd-gold-lite);
}

.hd-logo b {
    display: block;
    font: 700 19px/1 Georgia, serif;
    letter-spacing: .22em;
    color: var(--hd-ink);
}

.hd-logo small {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: .34em;
    color: var(--hd-gold);
    font-weight: 700;
}

.hd-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 600;
}

.hd-nav a {
    color: #4a3d2f;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
}

.hd-nav a:hover,
.hd-nav a.on {
    color: var(--hd-gold);
}

.hd-nav > a.on:after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -4px;
    height: 2px;
    background: var(--hd-gold);
}

.hd-nav-phone {
    display: none;
}

.hd-header-actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hd-lang {
    display: flex;
    border: 1px solid var(--hd-line);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.hd-lang a {
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hd-muted);
    text-decoration: none;
}

.hd-lang a.on {
    background: var(--hd-gold);
    color: #fff;
}

.hd-phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-ink);
    text-decoration: none;
    white-space: nowrap;
}

.hd-lang,
.hd-enquire {
    flex: none;
}

.hd-nav a {
    white-space: nowrap;
}

@media (max-width: 1500px) {
    .hd-header-actions .hd-phone {
        display: none;
    }

    .hd-nav {
        gap: 22px;
    }
}

.hd-burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--hd-line);
    background: #fff;
    color: var(--hd-ink);
    place-items: center;
    cursor: pointer;
}

.hd-burger-close {
    display: none;
}

/* ---------- home: first screen ---------- */
.hd-hero {
    position: relative;
    min-height: 860px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 70px;
    overflow: hidden;
}

.hd-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255, 252, 247, .97) 0%, rgba(255, 250, 242, .9) 36%, rgba(255, 248, 238, .35) 70%, rgba(255, 248, 238, .05)),
        linear-gradient(0deg, rgba(251, 248, 243, .95), transparent 30%);
}

[dir="rtl"] .hd-hero:before {
    background:
        linear-gradient(270deg, rgba(255, 252, 247, .97) 0%, rgba(255, 250, 242, .9) 36%, rgba(255, 248, 238, .35) 70%, rgba(255, 248, 238, .05)),
        linear-gradient(0deg, rgba(251, 248, 243, .95), transparent 30%);
}

.hd-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 190px;
}

.hd-hero h1 {
    font: 700 72px/1.03 var(--hd-serif);
    max-width: 780px;
    margin: 16px 0 22px;
    color: var(--hd-ink);
}

.hd-hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--hd-gold);
}

html[lang="ar"] .hd-hero h1 {
    font-size: 60px;
    line-height: 1.3;
}

html[lang="ar"] .hd-hero h1 em {
    font-style: normal;
}

.hd-lead {
    font-size: 18px;
    color: #6e6253;
    max-width: 560px;
    margin: 0;
}

.hd-search {
    margin-top: 42px;
    max-width: 920px;
    background: #fff;
    border: 1px solid #f0e4d2;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(110, 75, 35, .18);
}

.hd-search-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px 0;
}

.hd-search-tabs span {
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hd-muted);
}

.hd-search-tabs .on {
    color: var(--hd-gold);
    box-shadow: inset 0 -2px 0 var(--hd-gold);
}

.hd-search-fields {
    display: flex;
    align-items: center;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--hd-line);
    margin: 0;
}

.hd-sf {
    display: block;
    padding: 6px 18px;
    border-inline-end: 1px solid var(--hd-line);
    min-width: 200px;
}

.hd-sf--grow {
    flex: 1;
}

.hd-sf small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hd-muted);
}

.hd-sf input,
.hd-sf select {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 4px 0;
    background: transparent;
    font: 600 15px var(--hd-sans);
    color: var(--hd-ink);
}

.hd-search-go {
    margin-inline-start: 14px;
    padding: 17px 28px;
    font-size: 15px;
}

.hd-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    margin-top: 50px;
}

.hd-stats b {
    display: block;
    font: 700 34px/1 var(--hd-serif);
    color: var(--hd-ink);
}

.hd-stats small {
    font-size: 13px;
    color: var(--hd-muted);
}

/* ---------- sections ---------- */
.hd-section {
    padding: 90px 0;
}

.hd-section--tight {
    padding-top: 0;
}

.hd-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 30px;
}

.hd-head h2,
.hd-why h2,
.hd-cta h2,
.hd-box h2 {
    font: 700 40px/1.12 var(--hd-serif);
    color: var(--hd-ink);
    margin: 8px 0 0;
}

.hd-head p {
    color: var(--hd-muted);
    max-width: 480px;
    margin: 10px 0 0;
}

/* ---------- property card ---------- */
.hd-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hd-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--hd-ink);
    transition: box-shadow .2s, transform .2s;
}

.hd-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hd-shadow);
}

.hd-card-photo {
    position: relative;
    height: 240px;
    background: var(--hd-sand);
}

.hd-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-card-photo .hd-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
}

.hd-card-body {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    flex: 1;
}

.hd-card-price {
    font: 700 24px var(--hd-serif);
    color: var(--hd-ink);
}

.hd-card-price small {
    font: 600 13px var(--hd-sans);
    color: var(--hd-gold);
}

.hd-card-name {
    font-weight: 700;
    font-size: 16px;
    margin-top: 2px;
}

.hd-card-place {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--hd-muted);
}

.hd-card-place .hd-i {
    width: 14px;
    height: 14px;
    color: var(--hd-gold);
}

.hd-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--hd-line);
    font-size: 13px;
    color: #5c5145;
}

.hd-card-body .hd-card-meta {
    margin-top: 16px;
}

.hd-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hd-card-meta .hd-i {
    width: 16px;
    height: 16px;
    color: var(--hd-gold);
}

.hd-empty {
    grid-column: 1 / -1;
    color: var(--hd-muted);
    text-align: center;
    padding: 40px 0;
}

/* ---------- off-plan block ---------- */
.hd-offplan {
    background: linear-gradient(180deg, #fbf3e6, #f5e8d4);
    position: relative;
    overflow: hidden;
}

.hd-op-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 268px 268px;
    gap: 24px;
}

.hd-op-grid--one {
    grid-template-columns: 1fr;
    grid-template-rows: 460px;
}

.hd-op {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--hd-sand);
}

.hd-op--main {
    grid-row: span 2;
}

.hd-op img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.hd-op:hover img {
    transform: scale(1.03);
}

.hd-op:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(38, 27, 15, .88) 8%, rgba(38, 27, 15, .18) 60%, transparent);
}

.hd-op-tags {
    position: absolute;
    top: 22px;
    inset-inline-start: 24px;
    z-index: 2;
}

.hd-op-in {
    position: absolute;
    inset-inline: 28px;
    bottom: 26px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.hd-op-dev {
    color: var(--hd-gold-lite);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.hd-op-name {
    font: 700 30px/1.1 var(--hd-serif);
}

.hd-op:not(.hd-op--main) .hd-op-name {
    font-size: 24px;
}

.hd-op-title {
    color: #f3e8d8;
    margin-top: 6px;
}

.hd-op-row {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    font-size: 13px;
    color: #e6d6c0;
}

.hd-op-row b {
    display: block;
    color: #fff;
    font: 700 16px var(--hd-serif);
}

/* ---------- communities ---------- */
.hd-comm {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 250px 250px;
    gap: 18px;
}

.hd-cm {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #d6b184, #a67548);
}

.hd-cm:nth-child(3n) {
    background: linear-gradient(135deg, #efdcc0, #c99a63);
}

.hd-cm--big {
    grid-column: span 2;
    grid-row: span 2;
}

.hd-cm img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-cm:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(38, 27, 15, .8), rgba(38, 27, 15, .02) 65%);
}

.hd-cm-in {
    position: absolute;
    inset-inline: 22px;
    bottom: 18px;
    z-index: 2;
}

.hd-cm-name {
    display: block;
    font: 700 22px/1.15 var(--hd-serif);
}

.hd-cm--big .hd-cm-name {
    font-size: 32px;
}

.hd-cm small {
    color: #f3e8d8;
    font-size: 13px;
}

/* ---------- developers strip ---------- */
.hd-devs {
    background: #fff;
    border-block: 1px solid var(--hd-line);
    padding: 30px 0;
}

.hd-devs small {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hd-muted);
    margin-bottom: 18px;
}

.hd-devs-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
}

.hd-devs a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    text-align: center;
    font: 700 13px/1.3 Georgia, serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #b09a7d;
    text-decoration: none;
    border-inline-start: 1px solid var(--hd-line);
}

.hd-devs a:first-child {
    border-inline-start: 0;
}

.hd-devs a:hover {
    color: var(--hd-gold);
}

/* ---------- why ---------- */
.hd-why {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 70px;
    align-items: center;
}

.hd-why-photo {
    height: 540px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--hd-sand);
}

.hd-why-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-why-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 30px;
    margin-top: 32px;
}

.hd-why-item i {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--hd-sand);
    color: var(--hd-gold);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.hd-why-item i .hd-i {
    width: 24px;
    height: 24px;
}

.hd-why-item b {
    display: block;
    font: 700 19px var(--hd-serif);
    margin-bottom: 4px;
}

.hd-why-item p {
    margin: 0;
    color: var(--hd-muted);
    font-size: 14px;
}

/* ---------- services ---------- */
.hd-svc {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hd-sv {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 18px;
    padding: 28px;
    color: var(--hd-ink);
    text-decoration: none;
    transition: box-shadow .2s;
}

.hd-sv:hover {
    box-shadow: var(--hd-shadow);
}

.hd-sv-num {
    position: absolute;
    top: 20px;
    inset-inline-end: 24px;
    font: 700 40px var(--hd-serif);
    color: var(--hd-sand);
}

.hd-sv i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--hd-sand);
    color: var(--hd-gold);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.hd-sv i .hd-i {
    width: 24px;
    height: 24px;
}

.hd-sv b {
    display: block;
    font: 700 21px var(--hd-serif);
}

.hd-sv p {
    color: var(--hd-muted);
    font-size: 14px;
    margin: 6px 0 14px;
}

.hd-more {
    color: var(--hd-gold);
    font-weight: 700;
    font-size: 14px;
}

.hd-sv--hl {
    background: linear-gradient(135deg, #c99a63, #9a6b3f);
    border-color: var(--hd-gold);
    color: #fff;
}

.hd-sv--hl p {
    color: #f6e9d6;
}

.hd-sv--hl i {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.hd-sv--hl .hd-more {
    color: #fff;
}

.hd-sv--hl .hd-sv-num {
    color: rgba(255, 255, 255, .18);
}

/* ---------- consultation ---------- */
.hd-cta {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 56px 60px;
    border-radius: 26px;
    background: linear-gradient(120deg, #fbf3e6, #f1e0c6);
    border: 1px solid #ecdcc4;
}

.hd-cta h2 {
    font-size: 38px;
}

.hd-cta p {
    color: var(--hd-muted);
    margin: 12px 0 0;
}

.hd-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hd-wa-fab {
    display: none;
}

/* ---------- footer ---------- */
.hd-footer {
    background: #fffdf9;
    border-top: 3px solid var(--hd-gold);
    color: var(--hd-muted);
    padding: 64px 0 30px;
    font-size: 14px;
    margin-top: 90px;
}

.hd-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.hd-footer h5 {
    color: var(--hd-ink);
    font-size: 14px;
    margin: 0 0 14px;
}

.hd-footer-grid a,
.hd-footer-grid span {
    display: block;
    color: var(--hd-muted);
    text-decoration: none;
    margin-bottom: 8px;
}

.hd-footer-grid a:hover {
    color: var(--hd-gold);
}

.hd-footer-grid a.hd-logo {
    display: flex;
    margin-bottom: 0;
}

.hd-footer-grid .hd-logo span {
    margin: 0;
}

.hd-footer-grid .hd-logo b {
    color: var(--hd-ink);
}

.hd-footer-bottom {
    border-top: 1px solid var(--hd-line);
    margin-top: 46px;
    padding-top: 22px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
}

.hd-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 40px;
}

.hd-footer-legal a {
    color: var(--hd-muted);
    text-decoration: none;
}

.hd-footer-legal a:hover {
    color: var(--hd-gold);
}

/* ---------- legal pages (privacy, terms, disclaimer) ---------- */
.hd-legal-hero {
    padding: 64px 0 0;
    background:
        radial-gradient(900px 420px at 92% 0%, rgba(220, 187, 143, .32), transparent 70%),
        linear-gradient(180deg, var(--hd-sand) 0%, var(--hd-canvas) 100%);
    border-bottom: 1px solid var(--hd-line);
}

.hd-legal-hero h1 {
    font: 700 54px/1.08 var(--hd-serif);
    color: var(--hd-ink);
    margin: 14px 0 16px;
}

.hd-legal-hero .hd-lead {
    max-width: 640px;
}

.hd-legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hd-line);
    font-size: 13px;
    color: var(--hd-muted);
}

.hd-legal-updated .hd-i {
    width: 15px;
    height: 15px;
    color: var(--hd-gold);
}

.hd-legal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 30px;
    margin-top: 36px;
}

.hd-legal-tabs a {
    padding: 0 0 14px;
    border-bottom: 2px solid transparent;
    color: var(--hd-muted);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}

.hd-legal-tabs a:hover {
    color: var(--hd-ink);
}

.hd-legal-tabs a.is-active {
    color: var(--hd-ink);
    border-color: var(--hd-gold);
}

.hd-legal {
    padding: 50px 0 0;
}

.hd-legal-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.hd-legal-toc {
    position: sticky;
    top: 110px;
    padding: 22px 0;
}

.hd-legal-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hd-gold);
    margin-bottom: 14px;
}

.hd-legal-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--hd-line);
}

.hd-legal-toc a {
    display: flex;
    gap: 10px;
    margin-left: -1px;
    padding: 7px 0 7px 16px;
    border-left: 2px solid transparent;
    color: var(--hd-muted);
    font-size: 13.5px;
    line-height: 1.35;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}

.hd-legal-toc a span {
    flex: none;
    color: var(--hd-gold-lite);
    font-variant-numeric: tabular-nums;
}

.hd-legal-toc a:hover {
    color: var(--hd-ink);
}

.hd-legal-toc a.is-active {
    color: var(--hd-ink);
    font-weight: 600;
    border-color: var(--hd-gold);
}

.hd-legal-toc a.is-active span {
    color: var(--hd-gold);
}

.hd-legal-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 26px;
    padding: 46px 52px;
    box-shadow: 0 40px 80px -50px rgba(110, 75, 35, .45);
}

.hd-legal-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(90deg, var(--hd-gold-lite), var(--hd-gold), var(--hd-gold-lite));
}

.hd-legal-body {
    color: #6e6253;
    font-size: 15.5px;
    line-height: 1.75;
}

.hd-legal-body > p:first-child {
    font-size: 17px;
    color: var(--hd-ink);
}

.hd-legal-body h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font: 700 25px/1.25 var(--hd-serif);
    color: var(--hd-ink);
    margin: 44px 0 16px;
    padding-top: 34px;
    border-top: 1px solid var(--hd-line);
    scroll-margin-top: 100px;
}

.hd-legal-num {
    flex: none;
    font: 600 13px/1 var(--hd-sans);
    letter-spacing: .08em;
    color: var(--hd-gold);
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--hd-sand-2);
    border: 1px solid var(--hd-line);
    transform: translateY(-3px);
}

.hd-legal-body h3 {
    color: var(--hd-ink);
    font-size: 17px;
    margin: 28px 0 10px;
}

.hd-legal-body p {
    margin: 0 0 14px;
}

.hd-legal-body ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.hd-legal-body li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
}

.hd-legal-body li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--hd-gold-lite);
    transform: rotate(45deg);
}

.hd-legal-body b {
    color: var(--hd-ink);
}

.hd-legal-body a {
    color: var(--hd-gold);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(166, 117, 72, .35);
}

.hd-legal-body a:hover {
    border-color: var(--hd-gold);
}

.hd-legal-ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 30px;
    margin-top: 22px;
    padding: 26px 32px;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--hd-sand) 0%, var(--hd-sand-2) 100%);
    border: 1px solid var(--hd-line);
}

.hd-legal-ask b {
    display: block;
    font: 700 20px/1.3 var(--hd-serif);
    color: var(--hd-ink);
    margin-bottom: 4px;
}

.hd-legal-ask span {
    color: var(--hd-muted);
    font-size: 14px;
}

.hd-legal-ask-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hd-legal-ask-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hd-line);
    color: var(--hd-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}

.hd-legal-ask-links a:hover {
    border-color: var(--hd-gold);
    color: var(--hd-gold);
}

.hd-legal-ask-links .hd-i {
    width: 16px;
    height: 16px;
    color: var(--hd-gold);
}

@media (max-width: 980px) {
    .hd-legal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hd-legal-toc {
        display: none;
    }
}

@media (max-width: 640px) {
    .hd-legal-hero {
        padding-top: 40px;
    }

    .hd-legal-hero h1 {
        font-size: 36px;
    }

    .hd-legal-tabs {
        gap: 4px 20px;
        margin-top: 26px;
    }

    .hd-legal-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .hd-legal-body h2 {
        font-size: 21px;
    }

    .hd-legal-ask {
        padding: 22px 20px;
    }
}

/* ---------- property page ---------- */
.hd-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--hd-muted);
    padding: 26px 0 18px;
}

.hd-crumbs a {
    color: var(--hd-muted);
    text-decoration: none;
}

.hd-crumbs b {
    color: var(--hd-ink);
    font-weight: 600;
}

.hd-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 24px;
}

.hd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hd-title-row h1 {
    font: 700 50px/1.05 var(--hd-serif);
    margin: 0;
    color: var(--hd-ink);
}

.hd-loc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--hd-muted);
    margin-top: 12px;
}

.hd-loc .hd-i {
    color: var(--hd-gold);
}

.hd-loc b {
    color: var(--hd-ink);
    font-weight: 600;
}

.hd-price {
    text-align: end;
    flex: none;
}

.hd-price-label {
    display: block;
    font-size: 12px;
    color: var(--hd-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
}

.hd-price-value {
    display: block;
    font: 700 38px/1.15 var(--hd-serif);
    color: var(--hd-ink);
}

.hd-price-value em {
    font-style: normal;
    font-size: 20px;
    color: var(--hd-gold);
}

.hd-price-acts {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.hd-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--hd-line);
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--hd-ink);
}

.hd-gallery {
    position: relative;
    display: grid;
    gap: 10px;
    height: 540px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--hd-canvas);
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.hd-gallery--1 { grid-template-columns: 2fr 1fr; }
.hd-gallery--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.hd-gallery--3,
.hd-gallery--4 { grid-template-columns: 2.1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }

.hd-gallery--2 .hd-gal-main,
.hd-gallery--3 .hd-gal-main,
.hd-gallery--4 .hd-gal-main { grid-row: 1 / 3; }

/* With three small tiles the last one fills the right column. */
.hd-gallery--3 .hd-gal-tile--last { grid-column: 3; grid-row: 1 / 3; }

.hd-gal-main,
.hd-gal-tile {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    margin: 0;
    overflow: hidden;
    background: var(--hd-sand);
    cursor: zoom-in;
    color: #fff;
    text-decoration: none;
    min-height: 0;
}

.hd-gal-main img,
.hd-gal-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.hd-gal-main:hover img,
.hd-gal-tile:hover img {
    transform: scale(1.03);
}

.hd-gal-video {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #c99a63, #9a6b3f);
    font: 700 18px var(--hd-serif);
}

.hd-play {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: grid;
    place-items: center;
    transition: transform .2s;
}

.hd-play svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-inline-start: 4px;
}

[dir="rtl"] .hd-play svg {
    transform: scaleX(-1);
}

.hd-gal-video:hover .hd-play {
    transform: scale(1.08);
}

.hd-gal-more:after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(60, 40, 20, .55);
}

.hd-gal-more-label {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-content: center;
    text-align: center;
}

.hd-gal-more-label b {
    font: 700 30px var(--hd-serif);
}

.hd-gal-more-label small {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f3e2c8;
}

.hd-gal-count {
    display: none;
}

.hd-gal-tabs {
    position: absolute;
    inset-inline-start: 18px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hd-gal-tabs button,
.hd-gal-tabs a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--hd-ink);
    font: 700 13px var(--hd-sans);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.hd-gal-tabs .on {
    background: var(--hd-gold);
    color: #fff;
}

.hd-gal-tabs .hd-i {
    width: 16px;
    height: 16px;
}

.hd-gal-tab-video {
    display: none !important;
}

/* ---------- full-screen viewer ---------- */
.hd-lb {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 17, 10, .94);
}

.hd-lb[hidden] {
    display: none;
}

.hd-lb-stage {
    max-width: min(1400px, 92vw);
    max-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-lb-stage img {
    max-width: 100%;
    max-height: 84vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    user-select: none;
}

.hd-lb-stage iframe {
    width: min(1200px, 92vw);
    aspect-ratio: 16 / 9;
    max-height: 84vh;
    border: 0;
    border-radius: 8px;
    background: #000;
}

.hd-lb-btn {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.hd-lb-btn[hidden] {
    display: none;
}

.hd-lb-btn:hover {
    background: var(--hd-gold);
    border-color: var(--hd-gold);
}

.hd-lb-btn .hd-i {
    width: 24px;
    height: 24px;
}

.hd-lb-close {
    top: 20px;
    inset-inline-end: 20px;
}

.hd-lb-prev {
    inset-inline-start: 24px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
}

.hd-lb-next {
    inset-inline-end: 24px;
    top: 50%;
    transform: translateY(-50%);
}

[dir="rtl"] .hd-lb-prev {
    transform: translateY(-50%);
}

[dir="rtl"] .hd-lb-next {
    transform: translateY(-50%) scaleX(-1);
}

.hd-lb-counter {
    position: absolute;
    top: 30px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    color: #f3e8d8;
    font: 600 14px var(--hd-sans);
}

[dir="rtl"] .hd-lb-counter {
    transform: translateX(50%);
}

.hd-verified {
    position: absolute;
    top: 18px;
    inset-inline-start: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .94);
    color: var(--hd-ink);
    border-radius: 999px;
    padding: 7px 14px 7px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hd-verified .hd-i {
    width: 16px;
    height: 16px;
    color: var(--hd-gold);
}

.hd-main {
    display: grid;
    grid-template-columns: 1fr 372px;
    gap: 32px;
    align-items: start;
    margin-top: 32px;
}

.hd-box {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 18px;
    padding: 30px 32px;
    margin-bottom: 22px;
}

.hd-box h2 {
    font-size: 26px;
    margin: 6px 0 16px;
}

.hd-text {
    color: #5c5145;
}

.hd-text p {
    margin: 0 0 12px;
}

.hd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding: 0;
    overflow: hidden;
}

.hd-fact {
    padding: 22px 18px;
    border-inline-end: 1px solid var(--hd-line);
}

.hd-fact:last-child {
    border-inline-end: 0;
}

.hd-fact .hd-i {
    width: 24px;
    height: 24px;
    color: var(--hd-gold);
    display: block;
    margin-bottom: 10px;
}

.hd-fact small {
    display: block;
    font-size: 12px;
    color: var(--hd-muted);
}

.hd-fact b {
    font: 700 17px var(--hd-serif);
    color: var(--hd-ink);
}

.hd-feats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hd-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--hd-sand-2);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 14px;
}

.hd-feat i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    color: var(--hd-gold);
    display: grid;
    place-items: center;
    flex: none;
}

.hd-plan-box,
.hd-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hd-plan-box p,
.hd-location p {
    color: var(--hd-muted);
    margin: 0;
}

.hd-side {
    position: sticky;
    top: 110px;
    scroll-margin-top: 110px;
}

.hd-agent {
    background: linear-gradient(150deg, #fffaf2, #f5e7d2);
    border: 1px solid #ecdcc4;
    border-radius: 18px;
    padding: 24px;
}

.hd-agent-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.hd-agent-head img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--hd-gold-lite);
}

.hd-agent-head small {
    display: block;
    color: var(--hd-gold);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
}

.hd-agent-head b {
    display: block;
    font: 700 19px var(--hd-serif);
}

.hd-agent-head span {
    font-size: 12px;
    color: var(--hd-muted);
}

.hd-agent-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hd-form {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 18px;
    padding: 26px;
    margin-top: 18px;
    box-shadow: var(--hd-shadow);
}

.hd-form h3 {
    font: 700 22px/1.2 var(--hd-serif);
    margin: 6px 0;
}

.hd-form > p {
    font-size: 13px;
    color: var(--hd-muted);
    margin: 0 0 16px;
}

.hd-form label {
    display: block;
    margin-bottom: 10px;
}

.hd-form label > span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.hd-form input {
    width: 100%;
    border: 1px solid var(--hd-line);
    border-radius: 10px;
    padding: 12px 14px;
    font: 14px var(--hd-sans);
    background: #fdfaf5;
    color: var(--hd-ink);
}

.hd-form input:focus {
    outline: 2px solid var(--hd-gold-lite);
    border-color: var(--hd-gold);
}

[dir="rtl"] .hd-form input[dir="ltr"] {
    text-align: right;
}

.hd-form .has-error {
    display: block;
    color: #b0412e;
    font-size: 12px;
    margin-top: 4px;
}

.hd-form .hd-btn {
    margin-top: 6px;
}

.hd-form-note {
    display: block;
    font-size: 11px;
    color: #9a8d7f;
    text-align: center;
    margin-top: 10px;
}

.hd-similar {
    background: #fff;
    border-top: 1px solid var(--hd-line);
    margin-top: 60px;
    padding-bottom: 70px;
}

.hd-page-property .hd-footer,
.hd-page-home .hd-footer {
    margin-top: 0;
}

.hd-page-home .hd-footer {
    margin-top: 90px;
}

.hd-mbar {
    display: none;
}

/* ---------- older pages: match the new look ---------- */
.page-hero h1,
.partner-layout h1 {
    font-family: var(--hd-serif);
    color: var(--hd-ink);
}

.hd-cards--grid {
    margin-top: 28px;
}

/* Texts from the CRM are mostly English: on the Arabic page they keep their own direction. */
[dir="rtl"] .hd-op-row b,
[dir="rtl"] .hd-op-title,
[dir="rtl"] .hd-op-name,
[dir="rtl"] .hd-card-name,
[dir="rtl"] .hd-card-place,
[dir="rtl"] .hd-card-meta span,
[dir="rtl"] .hd-cm-name,
[dir="rtl"] .hd-fact b,
[dir="rtl"] .hd-feat,
[dir="rtl"] .hd-text,
[dir="rtl"] .hd-box h2,
[dir="rtl"] .hd-title-row h1,
[dir="rtl"] .hd-loc b,
[dir="rtl"] .hd-crumbs b,
[dir="rtl"] .hd-text * {
    unicode-bidi: plaintext;
    text-align: right;
}

/* A whole English description reads best left to right. */
[dir="rtl"] .hd-text,
[dir="rtl"] .hd-text * {
    text-align: start;
}

[dir="rtl"] .page-hero,
[dir="rtl"] .section,
[dir="rtl"] .partner-layout {
    text-align: right;
}

/* ---------- tablets ---------- */
@media (max-width: 1100px) {
    .hd-header-row {
        gap: 16px;
    }

    .hd-nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--hd-line);
        padding: 8px 16px 18px;
        box-shadow: 0 20px 40px rgba(110, 75, 35, .12);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .menu-open .hd-nav {
        display: flex;
    }

    .hd-nav a {
        padding: 13px 4px;
        border-bottom: 1px solid var(--hd-line);
        font-size: 16px;
    }

    .hd-nav > a.on:after {
        display: none;
    }

    .hd-nav-phone {
        display: block;
        color: var(--hd-gold) !important;
        border-bottom: 0 !important;
    }

    .hd-burger {
        display: grid;
    }

    .menu-open .hd-burger-open {
        display: none;
    }

    .menu-open .hd-burger-close {
        display: block;
    }

    .hd-phone {
        display: none;
    }

    .hd-cards,
    .hd-svc {
        grid-template-columns: repeat(2, 1fr);
    }

    .hd-devs-list {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 10px;
    }

    .hd-devs a:nth-child(3n + 1) {
        border-inline-start: 0;
    }

    .hd-why {
        gap: 40px;
    }

    .hd-main {
        grid-template-columns: 1fr;
    }

    .hd-side {
        position: static;
    }

    .hd-feats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hd-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- phones ---------- */
@media (max-width: 700px) {
    .hd-header-row {
        height: 70px;
    }

    .hd-logo img {
        width: 44px;
        height: 44px;
    }

    .hd-logo b {
        font-size: 16px;
    }

    .hd-enquire {
        display: none;
    }

    .hd-lang a {
        padding: 6px 7px;
        font-size: 11px;
    }

    .hd-section {
        padding: 56px 0;
    }

    .hd-section--tight {
        padding-top: 0;
    }

    .hd-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
    }

    .hd-head > .hd-btn {
        display: none;
    }

    .hd-head h2,
    .hd-why h2,
    .hd-cta h2 {
        font-size: 28px;
    }

    .hd-hero {
        min-height: 0;
        padding-bottom: 44px;
    }

    .hd-hero-inner {
        padding-top: 110px;
    }

    .hd-hero h1 {
        font-size: 40px;
        margin: 12px 0 14px;
    }

    html[lang="ar"] .hd-hero h1 {
        font-size: 36px;
    }

    .hd-lead {
        font-size: 15px;
    }

    .hd-search {
        margin-top: 26px;
    }

    .hd-search-fields {
        flex-direction: column;
        align-items: stretch;
        padding: 4px 12px 12px;
    }

    .hd-sf {
        border-inline-end: 0;
        border-bottom: 1px solid var(--hd-line);
        padding: 10px 4px;
        min-width: 0;
    }

    .hd-search-go {
        margin: 12px 0 0;
    }

    .hd-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        margin-top: 30px;
    }

    .hd-stats b {
        font-size: 28px;
    }

    /* cards scroll sideways on a phone */
    .hd-cards:not(.hd-cards--grid) {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        margin-inline-end: -16px;
        padding-inline-end: 16px;
        padding-bottom: 6px;
    }

    .hd-cards:not(.hd-cards--grid) .hd-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .hd-cards--grid {
        grid-template-columns: 1fr;
    }

    .hd-card-photo {
        height: 200px;
    }

    .hd-op-grid,
    .hd-op-grid--one {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
        gap: 14px;
    }

    .hd-op {
        height: 240px;
    }

    .hd-op--main {
        grid-row: auto;
        height: 420px;
    }

    .hd-op-in {
        inset-inline: 20px;
        bottom: 20px;
    }

    .hd-op-name,
    .hd-op:not(.hd-op--main) .hd-op-name {
        font-size: 24px;
    }

    .hd-op-row {
        gap: 14px;
    }

    .hd-op-row b {
        font-size: 14px;
        white-space: nowrap;
    }

    .hd-comm {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px;
        grid-auto-rows: 160px;
        gap: 10px;
    }

    .hd-cm--big {
        grid-column: span 2;
        grid-row: span 1;
    }

    .hd-cm-name {
        font-size: 17px;
    }

    .hd-cm--big .hd-cm-name {
        font-size: 24px;
    }

    .hd-cm-in {
        inset-inline: 14px;
        bottom: 12px;
    }

    .hd-devs-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 6px;
    }

    .hd-devs a {
        font-size: 12px;
    }

    .hd-devs a:nth-child(3n + 1) {
        border-inline-start: 1px solid var(--hd-line);
    }

    .hd-devs a:nth-child(odd) {
        border-inline-start: 0;
    }

    .hd-why {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hd-why-photo {
        height: 280px;
    }

    .hd-why-list {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 24px;
    }

    .hd-why-item {
        display: grid;
        grid-template-columns: 50px 1fr;
        gap: 0 14px;
    }

    .hd-why-item i {
        grid-row: span 2;
        margin: 0;
    }

    .hd-svc {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hd-sv {
        display: grid;
        grid-template-columns: 52px 1fr;
        gap: 0 14px;
        padding: 18px;
    }

    .hd-sv i {
        grid-row: span 3;
        margin: 0;
    }

    .hd-sv-num {
        display: none;
    }

    .hd-sv p {
        margin: 2px 0 6px;
    }

    .hd-cta {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 24px;
        border-radius: 20px;
    }

    .hd-wa-fab {
        display: grid;
        place-items: center;
        position: fixed;
        inset-inline-end: 16px;
        bottom: 18px;
        z-index: 30;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--hd-gold-2), var(--hd-gold));
        color: #fff;
        box-shadow: 0 10px 26px rgba(110, 75, 35, .35);
    }

    .hd-wa-fab .hd-i {
        width: 26px;
        height: 26px;
    }

    .hd-footer {
        padding-top: 44px;
    }

    .hd-page-home .hd-footer {
        margin-top: 56px;
    }

    .hd-footer-grid {
        gap: 28px;
    }

    .hd-footer-grid > div:first-child,
    .hd-footer-grid > div:last-child {
        grid-column: span 2;
    }

    /* property page */
    .hd-page-property {
        padding-bottom: 80px;
    }

    .hd-crumbs {
        font-size: 12px;
        padding: 14px 0 10px;
    }

    .hd-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 16px;
    }

    .hd-title-row h1 {
        font-size: 32px;
    }

    .hd-loc {
        font-size: 13px;
    }

    .hd-price {
        text-align: start;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 0 10px;
    }

    .hd-price-value {
        font-size: 28px;
    }

    .hd-price-acts {
        grid-row: 1 / 3;
        grid-column: 2;
        margin: 0;
    }

    /* On a phone: one big photo with a counter; tapping opens the viewer. */
    .hd-gallery {
        height: 300px;
        margin-inline: -16px;
        border-radius: 0;
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr !important;
    }

    .hd-gal-main {
        grid-row: auto !important;
    }

    .hd-gal-tile {
        display: none;
    }

    .hd-gal-count {
        display: block;
        position: absolute;
        top: 12px;
        inset-inline-end: 12px;
        z-index: 3;
        background: rgba(43, 34, 24, .75);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        border-radius: 999px;
        padding: 6px 12px;
    }

    .hd-gal-tabs {
        inset-inline-start: 12px;
        bottom: 12px;
        gap: 6px;
    }

    .hd-gal-tabs button,
    .hd-gal-tabs a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .hd-gal-tab-video {
        display: flex !important;
    }

    .hd-lb-prev,
    .hd-lb-next {
        display: none;
    }

    .hd-main {
        margin-top: 18px;
        gap: 0;
    }

    .hd-box {
        padding: 22px 18px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .hd-box h2 {
        font-size: 22px;
    }

    .hd-facts {
        grid-template-columns: repeat(3, 1fr);
    }

    .hd-fact {
        padding: 14px 12px;
        border-bottom: 1px solid var(--hd-line);
    }

    .hd-fact:nth-child(3n) {
        border-inline-end: 0;
    }

    .hd-fact b {
        font-size: 15px;
    }

    .hd-fact .hd-i {
        width: 20px;
        height: 20px;
        margin-bottom: 6px;
    }

    .hd-feats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hd-feat {
        padding: 10px;
        font-size: 13px;
        gap: 8px;
    }

    .hd-feat i {
        width: 30px;
        height: 30px;
    }

    .hd-plan-box,
    .hd-location {
        flex-direction: column;
        align-items: stretch;
    }

    .hd-form {
        box-shadow: none;
    }

    .hd-similar {
        margin-top: 30px;
        padding: 36px 0 40px;
    }

    .hd-mbar {
        display: flex;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 30;
        align-items: center;
        gap: 10px;
        background: #fff;
        border-top: 1px solid var(--hd-line);
        padding: 10px 16px 14px;
        box-shadow: 0 -10px 30px rgba(110, 75, 35, .12);
    }

    .hd-mbar-price {
        margin-inline-end: auto;
        line-height: 1.2;
    }

    .hd-mbar-price small {
        display: block;
        font-size: 11px;
        color: var(--hd-muted);
    }

    .hd-mbar-price b {
        font: 700 15px var(--hd-serif);
        white-space: nowrap;
    }

    .hd-mbar .hd-btn {
        padding: 12px 14px;
    }
}

/* ---------- developers ribbon: logos (2026-11-27) ---------- */
.hd-devs a.hd-dev-logo { min-height: 72px; }
.hd-devs a.hd-dev-logo img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    opacity: .88;
    transition: opacity .3s, transform .3s;
}
.hd-devs a.hd-dev-logo:hover img { opacity: 1; transform: scale(1.04); }
@media (max-width: 767px) {
    .hd-devs a.hd-dev-logo { min-height: 56px; }
    .hd-devs a.hd-dev-logo img { height: 34px; max-width: 120px; }
}

/* =========================================================
   About us page (2026-11-27)
   ========================================================= */
.hd-about-hero {
    padding: 150px 0 70px;
    background:
        radial-gradient(1000px 420px at 85% 0%, rgba(220, 187, 143, .28), transparent 70%),
        linear-gradient(180deg, var(--hd-sand) 0%, var(--hd-canvas) 100%);
    border-bottom: 1px solid var(--hd-line);
}
.hd-about-hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; }
.hd-about-hero h1 { font: 700 64px/1.05 var(--hd-serif); color: var(--hd-ink); margin: 14px 0 20px; }
.hd-about-hero h1 em { font-style: italic; font-weight: 400; color: var(--hd-gold); }
.hd-about-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--hd-line); border: 1px solid var(--hd-line); border-radius: 18px; overflow: hidden;
}
.hd-about-stats > div { background: #fff; padding: 22px 24px; }
.hd-about-stats b { display: block; font: 700 40px/1 var(--hd-serif); color: var(--hd-gold); }
.hd-about-stats small { display: block; margin-top: 6px; font-size: 13px; color: var(--hd-muted); }

.hd-about-story { padding-top: 40px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.hd-about-story h2 { font: 700 40px/1.15 var(--hd-serif); color: var(--hd-ink); margin: 12px 0 0; }
.hd-about-story-text p { font-size: 17px; line-height: 1.75; color: #5d5246; margin: 0 0 16px; }

/* team */
.hd-about-team { background: linear-gradient(180deg, var(--hd-canvas), #fff); }
.hd-team-group {
    display: flex; align-items: center; gap: 16px;
    margin: 56px 0 22px; font: 700 13px/1 var(--hd-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--hd-gold);
}
.hd-team-group::after { content: ""; flex: 1; height: 1px; background: var(--hd-line); }
.hd-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.hd-team-grid--lead { grid-template-columns: 1fr; margin-top: 10px; }

.hd-tm { position: relative; background: #fff; border: 1px solid var(--hd-line); border-radius: 22px; overflow: hidden; box-shadow: var(--hd-shadow);
         transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s; }
.hd-tm:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(110, 75, 35, .35); }
.hd-tm-photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #f6ecdc, #e6d2b2); overflow: hidden; }
.hd-tm-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.hd-tm:hover .hd-tm-photo img { transform: scale(1.05); }
.hd-tm-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.hd-tm-ph svg { position: absolute; bottom: 0; width: 78%; fill: rgba(166, 117, 72, .22); }
.hd-tm-ph b { position: relative; margin-top: -18%; font: 700 30px/1 var(--hd-serif); letter-spacing: .08em; color: rgba(138, 95, 55, .75); }
.hd-tm-in { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.hd-tm-name { font: 700 19px/1.25 var(--hd-serif); color: var(--hd-ink); }
.hd-tm-pos { font-size: 14px; color: var(--hd-gold-dark); }
.hd-tm-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: var(--hd-muted); }
.hd-tm-wa { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hd-sand); color: var(--hd-gold-dark); transition: background .3s, color .3s; }
.hd-tm-wa:hover { background: var(--hd-gold); color: #fff; }
.hd-tm-wa .hd-i { width: 17px; height: 17px; }

/* the leader: a wide card, photo on one side */
.hd-tm--lead { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; align-items: stretch; }
.hd-tm--lead .hd-tm-photo { aspect-ratio: auto; min-height: 420px; }
.hd-tm--lead .hd-tm-in { justify-content: center; padding: 44px 52px; gap: 8px;
    background: radial-gradient(600px 300px at 100% 0%, rgba(220, 187, 143, .22), transparent 70%); }
.hd-tm--lead .hd-tm-name { font-size: 40px; margin-top: 8px; }
.hd-tm--lead .hd-tm-pos { font-size: 17px; }
.hd-tm-bio { position: relative; margin: 18px 0 4px; padding-inline-start: 22px; font: italic 400 20px/1.6 var(--hd-serif); color: #5d5246; }
.hd-tm-bio::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: linear-gradient(var(--hd-gold-lite), var(--hd-gold)); }
.hd-tm--lead .hd-tm-meta { justify-content: flex-start; gap: 18px; }

.hd-about-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hd-about-values .hd-why-item { background: #fff; border: 1px solid var(--hd-line); border-radius: 18px; padding: 24px; }

@media (max-width: 1100px) {
    .hd-team-grid { grid-template-columns: repeat(3, 1fr); }
    .hd-about-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hd-about-hero { padding: 120px 0 50px; }
    .hd-about-hero-in, .hd-about-story { grid-template-columns: 1fr; gap: 30px; }
    .hd-about-hero h1 { font-size: 44px; }
    .hd-about-story h2 { font-size: 32px; }
    .hd-tm--lead { grid-template-columns: 1fr; }
    .hd-tm--lead .hd-tm-photo { min-height: 0; aspect-ratio: 4 / 4; }
    .hd-tm--lead .hd-tm-in { padding: 26px 24px; }
    .hd-tm--lead .hd-tm-name { font-size: 30px; }
}
@media (max-width: 640px) {
    .hd-team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .hd-tm-in { padding: 14px; }
    .hd-tm-name { font-size: 16px; }
    .hd-tm-pos { font-size: 12.5px; }
    .hd-about-values { grid-template-columns: 1fr; }
    .hd-about-hero h1 { font-size: 36px; }
}

/* About: two leaders side by side */
.hd-team-grid--lead { grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 28px; }
.hd-tm--lead { grid-template-columns: 42% 1fr; }
.hd-tm--lead .hd-tm-photo { min-height: 380px; }
.hd-tm--lead .hd-tm-in { padding: 34px 34px; }
.hd-tm--lead .hd-tm-name { font-size: 30px; }
.hd-tm--lead .hd-tm-pos { font-size: 15px; }
.hd-tm--lead .hd-tm-bio { font-size: 17px; margin-top: 14px; }
@media (max-width: 1100px) {
    .hd-team-grid--lead { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hd-tm--lead { grid-template-columns: 1fr; }
    .hd-tm--lead .hd-tm-photo { min-height: 0; aspect-ratio: 4 / 4; }
}
/* developer logos are not links */
.hd-devs a.hd-dev-static { cursor: default; }
.hd-devs a.hd-dev-static:hover { color: inherit; }
.hd-devs a.hd-dev-logo.hd-dev-static:hover img { opacity: .88; transform: none; }

/* =========================================================
   Referral programme (/partners) and client enquiry (/contact) — 2026-11-27
   ========================================================= */
[x-cloak] { display: none !important; }
.hd-ref-hero {
    padding: 140px 0 80px;
    background:
        radial-gradient(900px 480px at 90% 10%, rgba(220, 187, 143, .32), transparent 70%),
        radial-gradient(700px 400px at 0% 100%, rgba(220, 187, 143, .18), transparent 70%),
        linear-gradient(180deg, var(--hd-sand) 0%, var(--hd-canvas) 100%);
    border-bottom: 1px solid var(--hd-line);
}
.hd-ref-hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hd-ref-hero h1 { font: 700 60px/1.06 var(--hd-serif); color: var(--hd-ink); margin: 14px 0 20px; }
.hd-ref-hero h1 em { font-style: italic; font-weight: 400; color: var(--hd-gold); }
.hd-ref-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.hd-ref-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--hd-line); font-size: 14px; font-weight: 600; color: var(--hd-ink); box-shadow: 0 8px 20px -14px rgba(110, 75, 35, .35); }
.hd-ref-badges .hd-i { width: 16px; height: 16px; color: var(--hd-gold); }

.hd-ref-card { position: relative; background: #fff; border: 1px solid var(--hd-line); border-radius: 26px; padding: 34px;
    box-shadow: 0 40px 80px -40px rgba(110, 75, 35, .45); scroll-margin-top: 110px; }
.hd-ref-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 26px 26px 0 0;
    background: linear-gradient(90deg, var(--hd-gold-lite), var(--hd-gold), var(--hd-gold-lite)); }
.hd-ref-card h3 { font: 700 28px/1.2 var(--hd-serif); color: var(--hd-ink); margin: 10px 0 6px; }
.hd-ref-card > p, .hd-ref-done > p { color: var(--hd-muted); margin: 0 0 22px; }
.hd-ref-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 20px; }
.hd-ref-fields label { display: flex; flex-direction: column; gap: 6px; }
.hd-ref-fields label.wide { grid-column: 1 / -1; }
.hd-ref-fields label > span { font-size: 13px; font-weight: 600; color: var(--hd-muted); }
.hd-ref-fields input, .hd-ref-fields textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--hd-line); border-radius: 12px;
    background: var(--hd-canvas); font: inherit; color: var(--hd-ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.hd-ref-fields textarea { resize: vertical; min-height: 96px; }
.hd-ref-fields input:focus, .hd-ref-fields textarea:focus { outline: 0; border-color: var(--hd-gold-lite); background: #fff; box-shadow: 0 0 0 4px rgba(220, 187, 143, .25); }
.hd-ref-fields .has-error { font-size: 12.5px; color: #b4442f; }
.hd-ref-card .hd-form-note { display: block; margin-top: 12px; font-size: 12.5px; color: var(--hd-muted); text-align: center; }

.hd-ref-done { text-align: center; animation: hdRefIn .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes hdRefIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.hd-ref-done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--hd-gold-lite), var(--hd-gold)); color: #fff; box-shadow: 0 16px 30px -14px rgba(138, 95, 55, .8); }
.hd-ref-done-icon .hd-i { width: 28px; height: 28px; }
.hd-ref-done .hd-eyebrow { display: block; margin-top: 14px; }
.hd-ref-link { display: flex; gap: 10px; margin: 6px 0 12px; }
.hd-ref-link input { flex: 1; min-width: 0; padding: 13px 15px; border: 1px dashed var(--hd-gold-lite); border-radius: 12px; background: var(--hd-canvas);
    font: 600 14px/1.2 var(--hd-sans); color: var(--hd-gold-dark); }
.hd-ref-code { margin-bottom: 18px; color: var(--hd-muted); }
.hd-ref-code b { margin-inline-start: 6px; padding: 4px 10px; border-radius: 8px; background: var(--hd-sand); color: var(--hd-gold-dark); letter-spacing: .12em; }
.hd-ref-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.hd-ref-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hd-ref-steps li { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--hd-line); border-radius: 20px;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s; }
.hd-ref-steps li:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(110, 75, 35, .4); }
.hd-ref-steps li:not(:last-child)::after { content: "\2192"; position: absolute; inset-inline-end: -18px; top: 50%; transform: translateY(-50%);
    color: var(--hd-gold-lite); font-size: 20px; z-index: 1; }
.hd-ref-step-num { position: absolute; inset-inline-end: 22px; top: 18px; font: 700 34px/1 var(--hd-serif); color: var(--hd-sand); }
.hd-ref-steps i { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--hd-sand); color: var(--hd-gold); }
.hd-ref-steps i .hd-i { width: 24px; height: 24px; }
.hd-ref-steps b { display: block; margin: 18px 0 8px; font: 700 20px/1.25 var(--hd-serif); color: var(--hd-ink); }
.hd-ref-steps p { margin: 0; color: var(--hd-muted); line-height: 1.6; }

.hd-ref-reward { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 50px 56px; border-radius: 28px;
    color: #fff; background: radial-gradient(700px 300px at 100% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(135deg, #b98c57, #8a5f37); }
.hd-ref-reward .hd-eyebrow { color: #f6e3c4; }
.hd-ref-reward h2 { font: 700 40px/1.15 var(--hd-serif); margin: 12px 0 14px; color: #fff; }
.hd-ref-reward p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.7; }
.hd-ref-reward-big { text-align: center; }
.hd-ref-reward-big b { display: block; font: 700 110px/1 var(--hd-serif); color: #fff; text-shadow: 0 20px 40px rgba(60, 35, 10, .35); }
.hd-ref-reward-big small { display: block; margin-top: 8px; font-size: 15px; color: #f6e3c4; letter-spacing: .04em; }

.hd-ref-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hd-ref-who .hd-why-item { background: #fff; border: 1px solid var(--hd-line); border-radius: 18px; padding: 26px; }

.hd-ref-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; align-items: start; }
.hd-ref-faq h2 { font: 700 40px/1.15 var(--hd-serif); color: var(--hd-ink); margin: 12px 0 0; }
.hd-ref-faq details { border-bottom: 1px solid var(--hd-line); padding: 18px 0; }
.hd-ref-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px;
    font: 700 19px/1.35 var(--hd-serif); color: var(--hd-ink); }
.hd-ref-faq summary::-webkit-details-marker { display: none; }
.hd-ref-faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--hd-sand); color: var(--hd-gold-dark); font: 400 20px/1 var(--hd-sans); transition: transform .3s; }
.hd-ref-faq details[open] summary::after { transform: rotate(45deg); }
.hd-ref-faq details p { margin: 12px 0 0; color: #5d5246; line-height: 1.7; }

.hd-contact-lines { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.hd-contact-lines a, .hd-contact-lines span { display: inline-flex; align-items: center; gap: 12px; color: var(--hd-ink); text-decoration: none; font-size: 16px; }
.hd-contact-lines .hd-i { width: 20px; height: 20px; padding: 9px; box-sizing: content-box; border-radius: 12px; background: #fff; border: 1px solid var(--hd-line); color: var(--hd-gold); }
.hd-contact-lines a:hover { color: var(--hd-gold-dark); }

@media (max-width: 1100px) {
    .hd-ref-steps { grid-template-columns: repeat(2, 1fr); }
    .hd-ref-steps li::after { display: none; }
}
@media (max-width: 900px) {
    .hd-ref-hero { padding: 110px 0 50px; }
    .hd-ref-hero-in, .hd-ref-reward, .hd-ref-faq { grid-template-columns: 1fr; gap: 30px; }
    .hd-ref-hero h1 { font-size: 40px; }
    .hd-ref-reward { padding: 34px 28px; }
    .hd-ref-reward-big b { font-size: 80px; }
    .hd-ref-who { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hd-ref-fields { grid-template-columns: 1fr; }
    .hd-ref-steps { grid-template-columns: 1fr; }
    .hd-ref-card { padding: 24px 20px; }
    .hd-ref-link { flex-direction: column; }
}

/* Services: five cards without a hole (2026-11-27) — the first, highlighted card is tall on the left,
   the other four make a 2×2 grid on the right. */
@media (min-width: 1101px) {
    .hd-svc .hd-sv--hl {
        grid-row: span 2;
        display: flex;
        flex-direction: column;
        padding: 40px;
        overflow: hidden;
        background:
            radial-gradient(420px 320px at 110% -10%, rgba(255, 255, 255, .22), transparent 70%),
            radial-gradient(360px 280px at -20% 120%, rgba(60, 35, 10, .22), transparent 70%),
            linear-gradient(150deg, #c99a63, #8a5f37);
    }
    .hd-svc .hd-sv--hl i { align-self: flex-start; margin-bottom: auto; width: 64px; height: 64px; }
    .hd-svc .hd-sv--hl b { font-size: 34px; line-height: 1.15; margin-top: 40px; }
    .hd-svc .hd-sv--hl p { font-size: 17px; max-width: 30ch; }
    .hd-svc .hd-sv--hl .hd-sv-num { font-size: 120px; top: 22px; }
    /* soft gold rings as decoration */
    .hd-svc .hd-sv--hl::before {
        content: "";
        position: absolute;
        right: -90px;
        bottom: 60px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, .18);
        box-shadow: 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 80px rgba(255, 255, 255, .03);
        pointer-events: none;
    }
    .hd-svc .hd-sv--hl > *:not(.hd-sv-num) { position: relative; }
}

/* the same on the services page */
@media (min-width: 1051px) {
    .service-grid article:first-child {
        grid-row: span 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        color: #fff;
        border-color: var(--hd-gold);
        background:
            radial-gradient(420px 320px at 110% -10%, rgba(255, 255, 255, .22), transparent 70%),
            linear-gradient(150deg, #c99a63, #8a5f37);
    }
    .service-grid article:first-child span { margin-bottom: auto; color: rgba(255, 255, 255, .45); font-size: 64px; }
    .service-grid article:first-child h2 { color: #fff; font-size: 34px; }
    .service-grid article:first-child p { color: #f6e9d6; }
    .service-grid article:first-child a { color: #fff; }
}

/* =========================================================
   Invitation page with a quiz (/invite/CODE) — 2026-11-27
   ========================================================= */
.hd-inv-from { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
    background: #fff; border: 1px solid var(--hd-line); font-weight: 600; color: var(--hd-ink); box-shadow: 0 10px 24px -16px rgba(110, 75, 35, .45); }
.hd-inv-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--hd-gold-lite), var(--hd-gold)); color: #fff; font: 700 15px/1 var(--hd-serif); }
.hd-inv-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.hd-inv-points li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--hd-ink); }
.hd-inv-points .hd-i { width: 18px; height: 18px; padding: 5px; box-sizing: content-box; border-radius: 50%; background: var(--hd-sand); color: var(--hd-gold); }
.hd-inv-again { justify-content: center; margin-top: 34px; }

.hd-quiz { position: relative; background: #fff; border: 1px solid var(--hd-line); border-radius: 26px; padding: 30px 32px 32px;
    box-shadow: 0 40px 80px -40px rgba(110, 75, 35, .45); scroll-margin-top: 110px; }
.hd-quiz-top { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.hd-quiz-count { font: 700 12px/1 var(--hd-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--hd-gold); }
.hd-quiz-back { border: 0; background: none; padding: 0; font: 600 14px/1 var(--hd-sans); color: var(--hd-muted); cursor: pointer; }
.hd-quiz-back:hover { color: var(--hd-gold-dark); }
.hd-quiz-bar { height: 6px; margin: 14px 0 24px; border-radius: 6px; background: var(--hd-sand); overflow: hidden; }
.hd-quiz-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--hd-gold-lite), var(--hd-gold));
    transition: width .5s cubic-bezier(.16, 1, .3, 1); }
.hd-quiz-step { animation: hdQuizIn .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes hdQuizIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.hd-quiz h3 { font: 700 26px/1.2 var(--hd-serif); color: var(--hd-ink); margin: 0 0 18px; }
.hd-quiz-sub { margin: -8px 0 18px; color: var(--hd-muted); }
.hd-quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hd-quiz-options--5 .hd-quiz-opt:last-child { grid-column: 1 / -1; }
.hd-quiz-opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--hd-line); border-radius: 16px;
    background: var(--hd-canvas); font: 600 16px/1.3 var(--hd-sans); color: var(--hd-ink); text-align: start; cursor: pointer;
    transition: border-color .2s, background .2s, transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
.hd-quiz-opt i { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--hd-gold); transition: background .2s, color .2s; }
.hd-quiz-opt i .hd-i { width: 20px; height: 20px; }
.hd-quiz-opt:hover { border-color: var(--hd-gold-lite); background: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(110, 75, 35, .5); }
.hd-quiz-opt.is-on { border-color: var(--hd-gold); background: #fff; }
.hd-quiz-opt.is-on i, .hd-quiz-opt:hover i { background: linear-gradient(135deg, var(--hd-gold-lite), var(--hd-gold)); color: #fff; }
.hd-quiz .hd-form-note { display: block; margin-top: 12px; font-size: 12.5px; color: var(--hd-muted); text-align: center; }
.hd-quiz-done { padding: 20px 0 6px; }
.hd-quiz-done h3 { margin-top: 18px; }
.hd-quiz-done p { color: var(--hd-muted); margin: 0 0 22px; }

@media (max-width: 640px) {
    .hd-quiz { padding: 22px 18px 24px; }
    .hd-quiz-options { grid-template-columns: 1fr; }
    .hd-quiz h3 { font-size: 22px; }
}

/* =========================================================
   Styled dropdown (_partials/select) instead of the browser's list — 2026-11-27
   ========================================================= */
.hd-dd { position: relative; min-width: 0; }
.hd-dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 0; border: 0; background: none;
    font: 600 16px/1.3 var(--hd-sans); color: var(--hd-ink); text-align: start; cursor: pointer; }
.hd-dd-btn:focus-visible { outline: 2px solid var(--hd-gold-lite); outline-offset: 4px; border-radius: 6px; }
.hd-dd-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-dd-chev { flex: none; width: 16px; height: 16px; color: var(--hd-gold); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.hd-dd-btn[aria-expanded="true"] .hd-dd-chev { transform: rotate(180deg); }
.hd-dd-list { position: absolute; z-index: 40; top: calc(100% + 14px); inset-inline-start: -14px; min-width: calc(100% + 28px); width: max-content; max-width: 320px;
    padding: 8px; background: #fff; border: 1px solid var(--hd-line); border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(80, 55, 25, .35), 0 6px 16px -8px rgba(80, 55, 25, .15); transform-origin: top; }
.hd-dd-list::before { content: ""; position: absolute; top: -7px; inset-inline-start: 26px; width: 12px; height: 12px; background: #fff;
    border-top: 1px solid var(--hd-line); border-inline-start: 1px solid var(--hd-line); transform: rotate(45deg); }
.hd-dd-opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
    background: none; font: 500 15px/1.3 var(--hd-sans); color: var(--hd-ink); text-align: start; cursor: pointer; transition: background .15s, color .15s; }
.hd-dd-opt i { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--hd-canvas); color: var(--hd-gold); transition: background .2s, color .2s; }
.hd-dd-opt i .hd-i { width: 17px; height: 17px; }
.hd-dd-opt > span { flex: 1; }
.hd-dd-check { flex: none; width: 16px; height: 16px; color: var(--hd-gold); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.hd-dd-opt:hover, .hd-dd-opt:focus-visible { outline: 0; background: var(--hd-sand); }
.hd-dd-opt:hover i, .hd-dd-opt:focus-visible i { background: #fff; }
.hd-dd-opt.is-on { color: var(--hd-gold-dark); font-weight: 700; }
.hd-dd-opt.is-on i { background: linear-gradient(135deg, var(--hd-gold-lite), var(--hd-gold)); color: #fff; }
.hd-dd-opt.is-on .hd-dd-check { opacity: 1; transform: none; }
.hd-dd-enter, .hd-dd-leave { transition: opacity .18s ease, transform .22s cubic-bezier(.16, 1, .3, 1); }
.hd-dd-from { opacity: 0; transform: translateY(-6px) scale(.97); }
.hd-dd-to { opacity: 1; transform: none; }

/* in the properties filter bar: look like the search field next to it */
.filterbar .hd-dd { min-width: 190px; }
.filterbar .hd-dd-btn { height: 46px; min-height: 0; padding: 0 16px; border: 1px solid var(--hd-line); border-radius: 10px; background: #fff; font-weight: 500; }
.filterbar .hd-dd-list { inset-inline-start: 0; min-width: 100%; top: calc(100% + 10px); }

/* the home search sits low in the first screen, which clips what sticks out below: open the list upwards there */
.hd-search .hd-dd-list { top: auto; bottom: calc(100% + 16px); transform-origin: bottom; }
.hd-search .hd-dd-list::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.hd-search .hd-dd-from { transform: translateY(6px) scale(.97); }

/* the catalogue filter bar styles every <button> dark: undo that for the dropdown, so it looks like on the home page */
.filterbar .hd-dd-btn { color: var(--hd-ink); font: 500 16px/1.3 var(--hd-sans); }
.filterbar .hd-dd-btn:focus-visible { outline: 2px solid var(--hd-gold-lite); outline-offset: 2px; }
.filterbar .hd-dd-list .hd-dd-opt { height: auto; padding: 10px 12px; border: 0; border-radius: 12px; background: none;
    color: var(--hd-ink); font: 500 15px/1.3 var(--hd-sans); }
.filterbar .hd-dd-list .hd-dd-opt:hover, .filterbar .hd-dd-list .hd-dd-opt:focus-visible { background: var(--hd-sand); }
.filterbar .hd-dd-list .hd-dd-opt.is-on { color: var(--hd-gold-dark); font-weight: 700; }

/* =========================================================
   Phone field with a country picker (_partials/phone) — 2026-11-27
   ========================================================= */
.hd-field-tel { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hd-ref-fields .hd-field-tel.wide { grid-column: 1 / -1; }
.hd-ref-fields .hd-field-tel > span { font-size: 13px; font-weight: 600; color: var(--hd-muted); }
.hd-form .hd-field-tel { display: block; margin-bottom: 10px; }
.hd-form .hd-field-tel > span { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.hd-field-tel .has-error { font-size: 12.5px; color: #b4442f; }

.hd-tel { position: relative; display: flex; align-items: stretch; border: 1px solid var(--hd-line); border-radius: 12px; background: var(--hd-canvas);
    transition: border-color .2s, box-shadow .2s, background .2s; }
.hd-tel:focus-within { border-color: var(--hd-gold-lite); background: #fff; box-shadow: 0 0 0 4px rgba(220, 187, 143, .25); }
.hd-form .hd-tel { border-radius: 10px; background: #fdfaf5; }
.hd-tel-cc { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 13px; border: 0; border-inline-end: 1px solid var(--hd-line);
    background: none; font: 600 15px/1 var(--hd-sans); color: var(--hd-ink); cursor: pointer; border-radius: 12px 0 0 12px; }
.hd-tel-cc:hover { background: rgba(220, 187, 143, .14); }
.hd-tel-cc img { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.hd-tel-cc svg { width: 13px; height: 13px; color: var(--hd-gold); transition: transform .3s; }
.hd-tel-cc[aria-expanded="true"] svg { transform: rotate(180deg); }
.hd-tel input[type="tel"], .hd-ref-fields .hd-tel input[type="tel"], .hd-form .hd-tel input[type="tel"] {
    flex: 1; min-width: 0; width: auto; border: 0; outline: 0; box-shadow: none; background: transparent; padding: 13px 14px; font: inherit; color: var(--hd-ink); }
.hd-form .hd-tel input[type="tel"] { padding: 12px 12px; font: 14px var(--hd-sans); }
.hd-tel input[type="tel"]:focus { outline: 0; box-shadow: none; border: 0; }

.hd-tel-list { position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-start: 0; width: min(340px, 100vw - 40px); padding: 8px;
    background: #fff; border: 1px solid var(--hd-line); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(80, 55, 25, .35), 0 6px 16px -8px rgba(80, 55, 25, .15);
    transform-origin: top left; }
.hd-tel-search { position: relative; margin-bottom: 6px; }
.hd-tel-search .hd-i { position: absolute; top: 50%; inset-inline-start: 12px; width: 16px; height: 16px; transform: translateY(-50%); color: var(--hd-gold); pointer-events: none; }
.hd-tel-search input { width: 100%; padding: 11px 12px 11px 36px; border: 1px solid var(--hd-line); border-radius: 10px; background: var(--hd-canvas); font: 14px var(--hd-sans); color: var(--hd-ink); }
.hd-tel-search input:focus { outline: 0; border-color: var(--hd-gold-lite); background: #fff; }
.hd-tel-items { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.hd-tel-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none;
    font: 500 14px/1.25 var(--hd-sans); color: var(--hd-ink); text-align: start; cursor: pointer; }
.hd-tel-item img { flex: none; width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.hd-tel-item span { flex: 1; }
.hd-tel-item small { color: var(--hd-muted); font-weight: 600; }
.hd-tel-item:hover, .hd-tel-item:focus-visible { outline: 0; background: var(--hd-sand); }
.hd-tel-item.is-on { color: var(--hd-gold-dark); font-weight: 700; }
.hd-tel-empty { margin: 8px 10px; color: var(--hd-muted); font-size: 13px; }
/* the list never sticks out of the page: as wide as the field, aligned to its end */
.hd-tel-list { inset-inline-start: auto; inset-inline-end: 0; width: max(100%, 270px); max-width: calc(100vw - 32px); transform-origin: top right; }

/* About: every team portrait is made in one frame (1020×1200, one backdrop, heads at one height), so all cards
   are alike and the photo is shown whole (2026-12-04) */
.hd-tm-photo:has(img) { aspect-ratio: 17 / 20; min-height: 0; background: #e2ddd6; }
.hd-tm-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hd-team-grid { align-items: stretch; }
.hd-tm--lead { align-items: stretch; }
.hd-tm--lead .hd-tm-photo:has(img) { min-height: 0; aspect-ratio: 17 / 20; align-self: start; }
@media (max-width: 640px) {
    .hd-tm--lead .hd-tm-photo:has(img) { aspect-ratio: 17 / 20; }
}

/* About: bigger leadership cards — the photo takes over half the card, larger name (2026-12-04) */
.hd-team-grid--lead { gap: 32px; }
.hd-tm--lead { grid-template-columns: 55% 1fr; }
.hd-tm--lead .hd-tm-in { padding: 40px 36px; gap: 10px; }
.hd-tm--lead .hd-tm-name { font-size: 30px; line-height: 1.15; }
.hd-tm--lead .hd-tm-pos { font-size: 16.5px; }
.hd-tm--lead .hd-tm-meta { font-size: 13px; margin-top: 14px; }
@media (max-width: 1100px) {
    .hd-tm--lead { grid-template-columns: 50% 1fr; }
    .hd-tm--lead .hd-tm-in { padding: 48px 52px; }
    .hd-tm--lead .hd-tm-name { font-size: 36px; }
}
@media (max-width: 640px) {
    .hd-tm--lead { grid-template-columns: 1fr; }
    .hd-tm--lead .hd-tm-in { padding: 26px 24px; }
    .hd-tm--lead .hd-tm-name { font-size: 27px; }
}
