/* ==========================================================================
   AqarTech components — built on the LGN design system (assets/ds tokens +
   assets/css/styles.css). Prefix: aq-. Use logical properties so RTL mirrors.
   ========================================================================== */
[hidden] { display: none !important; }
.aq-wrap { max-width: var(--container-xl); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.aq-wrap--narrow { max-width: var(--container-md); }

/* ---------- Logo (mark + wordmark) ---------- */
.aq-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-700); }
.aq-logo__mark { width: 30px; height: 30px; flex: none; }
.aq-logo__rule { fill: var(--gold-500); }
.aq-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1; color: var(--navy-700); }
.aq-wordmark b { font-weight: 800; color: var(--gold-500); }
.lgn-header.is-scrolled .aq-logo__mark { width: 26px; height: 26px; }
.aq-footer .aq-logo { color: #fff; }
.aq-footer .aq-logo__rule { fill: var(--gold-bright); }
.aq-footer .aq-wordmark { color: #fff; }
.aq-footer .aq-wordmark b { color: var(--gold-bright); }
[dir="rtl"] .aq-wordmark { letter-spacing: normal; }

/* ---------- Header extras (language toggle ported from LGN layout.js) ---------- */
.lgn-header-cta { display: flex; align-items: center; gap: 12px; }
.lgn-lang-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-sunken); border: 1px solid var(--border-default); }
.lgn-lang-opt { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1; color: var(--text-muted); text-decoration: none; white-space: nowrap; transition: background .15s ease, color .15s ease; }
a.lgn-lang-opt:hover { color: var(--navy-700); }
.lgn-lang-opt.is-active { background: var(--white); color: var(--navy-700); font-weight: 700; box-shadow: 0 1px 4px rgba(0,13,42,.16); }
.lgn-lang-toggle--m { width: 100%; margin-top: 14px; }
.lgn-lang-toggle--m .lgn-lang-opt { flex: 1; height: 40px; }
.aq-mobilecta { margin-top: 18px; }
.aq-mobilecta .lgn-btn { width: 100%; }

/* ---------- Footer ---------- */
.aq-footer { background: var(--navy-900); color: var(--text-on-navy); padding: clamp(52px, 6vw, 76px) clamp(16px, 4vw, 40px) 32px; }
.aq-footer__grid { max-width: var(--container-xl); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--navy-600); }
@media (max-width: 860px) { .aq-footer__grid { grid-template-columns: 1fr 1fr; } .aq-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .aq-footer__grid { grid-template-columns: 1fr; } }
.aq-footer__mark { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.aq-footer p { margin: 0; max-width: 360px; font-size: 15px; line-height: 1.6; }
.aq-foot-h { font-family: var(--font-display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-bright); margin: 0 0 14px; }
[dir="rtl"] .aq-foot-h { letter-spacing: normal; }
.aq-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.aq-footer a { color: var(--text-on-navy); text-decoration: none; }
.aq-footer a:hover { color: var(--gold-bright); }
.aq-foot-k { display: block; font-size: 12px; opacity: .65; }
.aq-footer__base { max-width: var(--container-xl); margin: 0 auto; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; opacity: .7; }

/* ---------- Floating WhatsApp (bottom end corner; mirrors in RTL) ---------- */
.aq-wa { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,13,42,.25); transition: transform var(--duration-normal) var(--ease-standard); }
.aq-wa:hover { transform: translateY(-2px); }
.aq-wa:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .aq-wa { transition: none; } }

/* ---------- Type ---------- */
.aq-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-700); margin: 0 0 16px; }
.aq-eyebrow::after { content: ""; display: block; width: 40px; height: 3px; background: var(--gold-500); margin-top: 12px; }
.aq-eyebrow--on-navy { color: var(--gold-300); }
.aq-h1, .aq-hero__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 20px; }
.aq-h1 { font-size: clamp(32px, 5vw, 52px); color: var(--navy-700); }
.aq-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.15; color: var(--navy-700); margin: 0 0 14px; }
.aq-h2--on-navy { color: #fff; }
.aq-h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--navy-700); margin: 0 0 10px; }
.aq-h3 a { color: inherit; text-decoration: none; }
.aq-h3 a:hover { color: var(--gold-700); }
.aq-lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; max-width: 680px; margin: 0; }
.aq-section p, .aq-card p { line-height: 1.65; }
.aq-link { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--gold-700); text-decoration: none; }
.aq-link:hover { color: var(--navy-700); }
[dir="rtl"] .aq-eyebrow, [dir="rtl"] .aq-h1, [dir="rtl"] .aq-h2, [dir="rtl"] .aq-hero__title { letter-spacing: normal; }

/* ---------- Hero + band (navy radial field; mirrored in RTL) ---------- */
.aq-hero, .aq-band { background: radial-gradient(120% 90% at 85% 0%, var(--navy-500) 0%, var(--navy-700) 45%, var(--navy-900) 100%); color: var(--text-on-navy); }
[dir="rtl"] .aq-hero, [dir="rtl"] .aq-band { background: radial-gradient(120% 90% at 15% 0%, var(--navy-500) 0%, var(--navy-700) 45%, var(--navy-900) 100%); }
.aq-hero { padding-block: clamp(72px, 10vw, 128px); }
.aq-hero__title { font-size: clamp(36px, 6vw, 64px); color: #fff; max-width: 900px; }
.aq-hero__title em { font-style: normal; color: var(--gold-bright); }
.aq-hero__lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.7; max-width: 640px; margin: 0 0 32px; }
.aq-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.aq-band { border-top: 4px solid var(--gold-500); padding-block: clamp(48px, 7vw, 80px); }
.aq-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.aq-band p { margin: 0; }

/* ---------- Sections + grids ---------- */
.aq-section { padding-block: clamp(56px, 8vw, 92px); }
.aq-section--ivory { background: var(--surface-page); }
.aq-section--white { background: var(--white); }
.aq-section__head { margin-bottom: clamp(28px, 4vw, 44px); }
.aq-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.aq-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.aq-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.aq-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ---------- Cards ---------- */
.aq-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(24px, 3vw, 36px); }
.aq-card--crest { border-top: 3px solid var(--gold-500); transition: transform var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard); }
.aq-card--crest:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Trust strip ---------- */
.aq-trust { background: var(--navy-800); color: var(--text-on-navy); border-top: 1px solid var(--navy-600); }
.aq-trust ul { list-style: none; margin-block: 0; padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.aq-trust li::before { content: "✓"; color: var(--gold-bright); margin-inline-end: 8px; }

/* ---------- Facts ---------- */
.aq-fact { border-top: 3px solid var(--gold-500); padding-top: 20px; }
.aq-fact__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; color: var(--navy-700); margin: 0 0 8px; }
.aq-fact__label { margin: 0 0 12px; }
.aq-fact__src { font-size: 13px; color: var(--text-muted); }

/* ---------- Steps ---------- */
.aq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.aq-step { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; }
.aq-step__n { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold-500); color: var(--gold-700); font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.aq-step p { margin: 0; }

/* ---------- Table ---------- */
.aq-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.aq-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.aq-table th, .aq-table td { text-align: start; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.aq-table thead th { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); background: var(--surface-sunken); }
[dir="rtl"] .aq-table thead th { letter-spacing: normal; }
.aq-table tbody th { font-weight: 600; color: var(--navy-700); }
.aq-table tr:last-child > * { border-bottom: 0; }

/* ---------- Lists ---------- */
.aq-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.aq-checks li { position: relative; padding-inline-start: 26px; }
.aq-checks li::before { position: absolute; inset-inline-start: 0; font-weight: 700; }
.aq-checks__plus::before { content: "+"; color: var(--success-500); }
.aq-checks__minus::before { content: "–"; color: var(--warning-500); }
.aq-dl { margin: 0; border-top: 1px solid var(--border-subtle); }
.aq-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.aq-dl dt { color: var(--text-muted); }
.aq-dl dd { margin: 0; font-weight: 600; color: var(--navy-700); text-align: end; }
.aq-logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; font-family: var(--font-display); font-weight: 700; color: var(--navy-700); }
.aq-logos img { height: 40px; width: auto; filter: grayscale(1); opacity: .8; }
.aq-prose p { margin: 0 0 14px; }
.aq-prose h2 { margin-top: 32px; }

/* ---------- Forms ---------- */
.aq-form { display: grid; gap: 16px; }
.aq-form--inline { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 560px) { .aq-form--inline { grid-template-columns: 1fr; } }
.aq-field label { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--navy-700); }
.aq-field input, .aq-field select, .aq-field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; color: var(--text-strong); background: var(--white); border: 1.5px solid var(--border-default); border-radius: var(--radius-sm); }
.aq-field input:focus, .aq-field select:focus, .aq-field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: var(--ring-focus); }
.aq-field [aria-invalid="true"] { border-color: var(--danger-500); }
.aq-field__err { margin: 6px 0 0; font-size: 13px; color: var(--danger-500); }
.aq-field__err:empty { display: none; }
.aq-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.aq-check input { margin-top: 3px; accent-color: var(--navy-600); }
.aq-form__note { margin: 0; font-size: 13px; color: var(--text-muted); }
.aq-hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aq-block { display: flex; width: 100%; justify-content: center; margin-bottom: 20px; }
.aq-empty { padding: 32px; text-align: center; color: var(--text-muted); background: var(--white); border: 1px dashed var(--border-default); border-radius: var(--radius-lg); }

@media (prefers-reduced-motion: reduce) { .aq-card--crest { transition: none; } }

/* ---------- Property cards ---------- */
.aq-pcard { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard); }
.aq-pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.aq-pcard__media img { width: 100%; height: auto; aspect-ratio: 16 / 10.5; object-fit: cover; }
.aq-pcard__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.aq-pcard__meta { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.aq-tag { font-family: var(--font-display); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-700); background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: var(--radius-xs); padding: 2px 8px; }
[dir="rtl"] .aq-tag { letter-spacing: normal; }
.aq-pcard__dev { margin: 0; font-size: 14px; color: var(--text-muted); }
.aq-pcard__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.aq-pcard__facts dt { font-size: 12px; color: var(--text-muted); }
.aq-pcard__facts dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--navy-700); }
.aq-pcard__permit { margin: auto 0 0; font-size: 12px; color: var(--text-faint); }
.aq-more { margin: 28px 0 0; }

/* ---------- Filters ---------- */
.aq-filters { display: grid; gap: 14px; margin-bottom: 28px; }
.aq-tabs, .aq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aq-tab, .aq-chip { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--navy-700); background: var(--white); border: 1.5px solid var(--border-default); border-radius: var(--radius-sm); padding: 9px 16px; }
.aq-chip { border-radius: 999px; font-size: 13px; padding: 7px 14px; }
.aq-tab[aria-pressed="true"], .aq-chip[aria-pressed="true"] { color: #fff; background: var(--navy-600); border-color: var(--navy-600); }

/* ---------- Property detail ---------- */
.aq-crumbs { margin-bottom: 20px; font-size: 14px; }
.aq-crumbs a { color: var(--gold-700); }
.aq-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin: 32px 0; }
.aq-gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.aq-gallery img:first-child { grid-row: span 2; }
.aq-gallery img:only-child { grid-column: 1 / -1; }
@media (max-width: 720px) { .aq-gallery { grid-template-columns: 1fr; } .aq-gallery img:not(:first-child) { display: none; } }
.aq-prop__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .aq-prop__grid { grid-template-columns: 1fr; } }
.aq-prop__main > * + * { margin-top: 28px; }
.aq-prop__side { position: sticky; top: 90px; }
.aq-permit { display: flex; align-items: center; gap: 20px; padding: 18px; background: var(--surface-sunken); border-radius: var(--radius-lg); }
.aq-permit p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .aq-pcard { transition: none; } }
