/* KaterBlue Gold. Layout: sticky black header with language switch; full-bleed sections on a 1280px column; one Deep Sea Blue section (structuring). Single dark look by design. */
:root {
  --black: #000000;
  --panel: #111111;
  --rule: #333333;
  --gold: #ECC966;
  --ivory: #F5F1E8;
  --text: #F5F5F5;
  --sea: #002A4E;
  --display: 'Amiri', 'Times New Roman', serif;
  --body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --lh-body: 1.75;
  color-scheme: dark;
}
html[lang="ar"] {
  --display: 'Amiri', 'Noto Naskh Arabic', serif;
  --body: 'Noto Sans Arabic', 'Geeza Pro', Tahoma, sans-serif;
  --lh-body: 1.95;
}
html[lang="ar"] body * { letter-spacing: 0 !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--black); color: var(--text); font-family: var(--body); font-size: 16px; }
/* Width and height attributes reserve space while images load; CSS still sets the displayed size. */
:where(img[width][height]) { height: auto; max-width: 100%; }
a { color: var(--gold); }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
section[id] { scroll-margin-top: 140px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 32px; }
.stack { display: flex; flex-direction: column; }
.eyebrow { font-size: 12px; letter-spacing: 0.28em; color: var(--gold); font-weight: 600; text-transform: uppercase; }
html[lang="ar"] .eyebrow { font-size: 14px; }
.h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.2; color: var(--ivory); }
.lede { margin: 0; font-size: 16px; line-height: var(--lh-body); }
.section { position: relative; }
/* Section break ("Horizon", chosen by the owner on 8 October 2026): one gold hairline, fading at both ends.
   With motion, site.js opens it from the centre as the section comes up the screen (--hz from 0 to 1). */
.section::before, .page-head::after { content: ''; position: absolute; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent); }
.section::before { top: 0; opacity: 0.6; transform: scaleX(var(--hz, 1)); transform-origin: 50% 50%; }
.page-head::after { opacity: 0.6; }
.section > .wrap { padding-block: 110px; display: flex; flex-direction: column; gap: 56px; }
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px 56px; align-items: end; }
.intro > * { min-width: 0; }
.link-u { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-decoration: none; font-family: var(--body); cursor: pointer; }
.btn-gold { background: var(--gold); color: #000000; border: 0; }
.btn-gold:hover { background: var(--ivory); color: var(--black); }
.btn-line { border: 1px solid var(--ivory); color: var(--ivory); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--black); border-bottom: 1px solid var(--rule); }
.site-header .header-row { padding-block: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { height: 48px; width: auto; }
.brand-name { font-family: 'Amiri', serif; font-size: 22px; font-weight: 700; color: var(--gold); letter-spacing: 0.08em !important; line-height: 1.15; }
.brand-sub { font-size: 10px; letter-spacing: 0.18em; color: var(--ivory); line-height: 1.3; }
html[lang="ar"] .brand-sub { font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-btn { min-height: 44px; min-width: 44px; padding: 0 16px; background: transparent; border: 1px solid var(--rule); color: var(--ivory); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-btn .globe { width: 16px; height: 16px; flex: none; }
.lang-btn [lang="ar"] { font-family: 'Noto Sans Arabic', 'Geeza Pro', Tahoma, sans-serif; font-size: 15px; }
.lang-btn [lang="en"] { font-family: 'Open Sans', Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--gold); color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-decoration: none; }
.header-cta:hover { background: var(--gold); color: var(--black); }
/* Header: row 1 = brand, page links, actions. Homepage adds a section bar beneath. */
.nav-pages { display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.06em; }
html[lang="ar"] .nav-pages { font-size: 15px; }
.nav-pages a, .nav-sections a { color: var(--text); text-decoration: none; padding-block: 10px; white-space: nowrap; }
.nav-pages a:hover, .nav-sections a:hover { color: var(--gold); }
.nav-pages a[aria-current], .nav-sections a[aria-current] { color: var(--gold); box-shadow: inset 0 -1px 0 var(--gold); }
.nav-sections { position: absolute; top: 100%; inset-inline: 0; background: rgba(0, 0, 0, 0.94); border-bottom: 1px solid var(--rule); font-size: 12px; letter-spacing: 0.08em; }
html[lang="ar"] .nav-sections { font-size: 14px; }
.nav-sections .wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
html.js .site-header.has-sections .nav-sections { visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; }
html.js .site-header.has-sections.show-sections .nav-sections { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
@media (prefers-reduced-motion: reduce) { html.js .site-header.has-sections .nav-sections { transition: none; transform: none; } }
@media (max-width: 1200px) {
  .nav-pages { order: 3; width: 100%; overflow-x: auto; gap: 22px; border-top: 1px solid var(--rule); padding-top: 2px; scrollbar-width: none; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .brand img { height: 40px; }
  .brand-sub, .header-cta { display: none; }
  .brand-name { font-size: 18px; }
}

/* Hero */
.hero { background-image: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.72) 50%, rgba(0,0,0,0.35) 100%), url("../img/brand-hero.jpg"); background-size: cover; background-position: center; }
html[dir="rtl"] .hero { background-image: linear-gradient(270deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.72) 50%, rgba(0,0,0,0.35) 100%), url("../img/brand-hero-rtl.jpg"); }
.hero .wrap { padding-block: clamp(72px, 10vw, 140px); }
.hero-inner { max-width: 700px; gap: 28px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.15; color: var(--ivory); }
html[lang="ar"] .hero h1 { line-height: 1.4; }
.hero p { margin: 0; font-size: 17px; line-height: var(--lh-body); max-width: 620px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .hero, html[dir="rtl"] .hero { background-image: linear-gradient(rgba(0,0,0,0.80), rgba(0,0,0,0.80)), url("../img/brand-hero.jpg"); }
}

/* Credentials strip */
.creds { border-top: 1px solid var(--gold); border-bottom: 1px solid var(--rule); }
.creds .wrap { padding-block: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.cred { gap: 6px; }
.cred-k { font-size: 11px; letter-spacing: 0.22em; color: var(--gold); font-weight: 600; }
html[lang="ar"] .cred-k { font-size: 13px; }
.cred-v { font-size: 15px; line-height: 1.55; }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-top: 2px solid var(--gold); padding: 32px; gap: 14px; }
.card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--ivory); }
.card p { margin: 0; font-size: 14px; line-height: 1.7; }
html[lang="ar"] .card p { line-height: 1.9; }

/* Services */
.grid-svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px; }
.svc { background: var(--panel); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.svc.no-img { border-top: 2px solid var(--gold); }
.svc img { width: 100%; height: 300px; object-fit: cover; display: block; }
.svc-body { padding: 36px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.svc h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; color: var(--ivory); }
.svc p { margin: 0; font-size: 15px; line-height: var(--lh-body); }
.svc-links { margin-top: auto; display: flex; gap: 28px; flex-wrap: wrap; }

/* Standards */
.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; }
.std { border-top: 1px solid var(--gold); padding-block: 26px; display: flex; gap: 24px; }
/* Closing line under the whole last row, whatever the number of columns. */
.std:nth-last-child(-n+3) { border-bottom: 1px solid var(--gold); }
@media (max-width: 1099px) {
  .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .std:nth-last-child(-n+3) { border-bottom: 0; }
  .std:nth-last-child(-n+2) { border-bottom: 1px solid var(--gold); }
}
@media (max-width: 719px) {
  .standards { grid-template-columns: minmax(0, 1fr); }
  .std:nth-last-child(-n+2) { border-bottom: 0; }
  .std:last-child { border-bottom: 1px solid var(--gold); }
}
.std-n { font-family: var(--display); font-size: 30px; color: var(--gold); min-width: 40px; line-height: 1.2; }
.std h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ivory); }
.std p { margin: 0; font-size: 14px; line-height: 1.7; }
html[lang="ar"] .std p { line-height: 1.9; }
.std > div { gap: 8px; min-width: 0; }

/* Structuring */
.sea { background: var(--sea); }
.adv h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--gold); }
.adv { border-top: 1px solid var(--gold); padding-top: 22px; gap: 12px; }
.adv p { margin: 0; font-size: 14px; line-height: 1.7; }
.contrib { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px 56px; background: rgba(0,0,0,0.35); padding: 40px; }
.contrib h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--ivory); }
.contrib ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.7; }
.contrib p { margin: 0; font-size: 14px; line-height: 1.7; }
@media (max-width: 560px) { .contrib { padding: 24px; } }

/* Leadership */
.section > .wrap.lead-grid { padding-block: 110px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 64px; align-items: start; }
.portrait { margin-top: 24px; width: 220px; max-width: 100%; height: 280px; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: 0.12em; text-align: center; padding: 12px; }
.dir-name { font-family: var(--display); font-size: 30px; color: var(--ivory); }
.dir-role { font-size: 13px; letter-spacing: 0.12em; color: var(--gold); }
.exp { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; font-size: 14px; line-height: 1.6; }
.exp li { border-top: 1px solid var(--gold); padding-top: 12px; }

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--gold); padding-top: 24px; }
.step-n { font-family: var(--display); font-size: 34px; color: var(--gold); line-height: 1.2; }
.steps h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ivory); }
.steps p { margin: 0; font-size: 14px; line-height: 1.7; }

/* Trust */
.trust { background-image: linear-gradient(0deg, rgba(0,42,78,0.90), rgba(0,0,0,0.82)), url("../img/photo-dining-room.jpg"); background-size: cover; background-position: center; }
.trust .wrap { padding-block: 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 64px; align-items: center; }
.trust blockquote { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.4vw, 38px); line-height: 1.3; color: var(--ivory); }
html[lang="ar"] .trust blockquote { line-height: 1.6; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.trust li { border-bottom: 1px solid rgba(236,201,102,0.35); padding-bottom: 20px; font-size: 15px; line-height: 1.7; }
.trust li:last-child { border-bottom: 0; padding-bottom: 0; }
.trust strong { color: var(--gold); font-weight: 600; }

/* Insights */
.ins-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; }
.ins { background: var(--panel); border: 1px solid var(--rule); border-top: 2px solid var(--gold); padding: 36px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--text); }
.ins:hover { border-color: var(--gold); color: var(--text); }
.ins-k { font-size: 11px; letter-spacing: 0.22em; color: var(--gold); font-weight: 600; text-transform: uppercase; }
html[lang="ar"] .ins-k { font-size: 13px; }
.ins-t { font-family: var(--display); font-size: 25px; line-height: 1.3; color: var(--ivory); }
.ins-d { font-size: 14px; line-height: 1.7; }

/* Contact */
.section > .wrap.contact { padding-block: 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 64px; }
.contact h2 { font-size: clamp(34px, 4vw, 46px); }
.alt-lang { margin: 0; font-size: 20px; line-height: 1.8; color: var(--ivory); }
.alt-lang[lang="ar"] { font-family: 'Amiri', serif; font-size: 22px; }
.alt-lang[lang="en"] { font-family: 'Amiri', serif; font-style: italic; }
.contact-lines { gap: 10px; padding-top: 10px; font-size: 14px; }
.contact-lines span { color: var(--gold); user-select: all; }
form.enq { display: flex; flex-direction: column; gap: 20px; background: var(--panel); border: 1px solid var(--rule); padding: 40px; }
@media (max-width: 560px) { form.enq { padding: 24px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; letter-spacing: 0.06em; }
html[lang="ar"] .field label { font-size: 15px; }
.field input, .field select { min-height: 48px; padding: 0 14px; background: var(--black); border: 1px solid var(--text); color: var(--text); font-size: 15px; font-family: var(--body); border-radius: 0; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 1px var(--gold); }
.form-note { margin: 0; font-size: 12px; line-height: 1.6; }
.form-status { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gold); border-inline-start: 2px solid var(--gold); padding-inline-start: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--gold); }
.foot-grid { padding-block: 64px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.7; }
.foot-grid img { height: 56px; width: auto; align-self: flex-start; }
.foot-h { font-family: var(--display); font-size: 19px; color: var(--gold); }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--gold); }
.foot-base { padding-block: 24px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; line-height: 1.6; border-top: 1px solid var(--rule); }
html[lang="ar"] .foot-base { font-size: 12px; }

/* Form feedback and helpers */
.form-status.is-error { color: #FFB4A8; border-color: #FFB4A8; }
.field .req { color: var(--gold); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 20; background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--black); }
.lang-btn { text-decoration: none; }

/* Inner pages */
.page-head { position: relative; background: #000 url("../img/contours-dark.jpg") center / cover no-repeat; }
.page-head::after { bottom: 0; }
.page-head .wrap { padding-block: 96px 72px; }
.page-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.15; color: var(--ivory); max-width: 900px; }
html[lang="ar"] .page-title { line-height: 1.4; }
.page-intro { max-width: 680px; }
.placeholder-panel { border: 1px dashed var(--rule); padding: 40px; font-size: 14px; line-height: 1.7; text-align: center; }

/* Breadcrumb */
.crumb { padding-block: 28px 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--gold); text-decoration: none; font-size: 14px; }
.back-link svg { width: 16px; height: 16px; }
html[dir="rtl"] .back-link svg { transform: scaleX(-1); }

/* Yachts available */
.yacht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 32px; }
.yacht-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--rule); text-decoration: none; color: var(--text); transition: border-color 0.2s ease; }
.yacht-card:hover { border-color: var(--gold); color: var(--text); }
.yacht-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; max-width: 100%; }
.yacht-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yacht-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.yacht-status { font-size: 11px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; text-transform: uppercase; }
html[lang="ar"] .yacht-status { font-size: 13px; }
.yacht-name { font-family: var(--display); font-size: 28px; line-height: 1.2; color: var(--ivory); }
.yacht-spec { font-size: 14px; color: var(--ivory); font-variant-numeric: tabular-nums; }
.yacht-summary { font-size: 14px; line-height: 1.7; }
.yacht-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.yacht-price { color: var(--ivory); }
.yacht-more { color: var(--gold); font-weight: 600; }
.offmarket, .section > .wrap.offmarket { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px 56px; align-items: center; border: 1px solid var(--gold); padding: 40px; }
@media (max-width: 560px) { .offmarket { padding: 24px; } }

.yacht-hero .wrap { padding-block: 32px 64px; }
.yacht-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px 64px; align-items: center; }
.yacht-main { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; max-width: 100%; }
/* Photo viewer (templates/yacht.php), laid out like katerblue.com's listing pages: the main photo in the
   content column (so its ~1000 px photos are never blown up), shown whole - contain, never cropped, so
   the KaterBlue watermark stays - in a 5:3 frame (katerblue.com's own photo shape), with a strip of
   thumbnails below. Arrows, counter and full-screen button over the photo. */
.yacht-hero .wrap.yacht-head { padding-block: 32px 32px; }
.yacht-hero .wrap.yacht-detail { padding-block: 0 80px; }
.yacht-stage { margin-bottom: 40px; }
.yacht-stage-frame { position: relative; aspect-ratio: 5 / 3; overflow: hidden; touch-action: pan-y; background: #0d0d0d; }
.yacht-stage .yacht-slide { position: absolute; inset: 0; cursor: zoom-in; }
.yacht-stage .yacht-slide[hidden] { display: none; }
.yacht-stage .yacht-slide picture { display: block; height: 100%; }
.yacht-stage .yacht-main { height: 100%; aspect-ratio: auto; object-fit: contain; }
.yacht-stage .yacht-slide:focus-visible { outline-offset: -4px; }
.yacht-stage .lightbox-arrow { z-index: 2; }
.yacht-stage .lightbox-prev { inset-inline-start: 16px; }
.yacht-stage .lightbox-next { inset-inline-end: 16px; }
.yacht-thumbs { position: relative; display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.yacht-thumb { all: unset; flex: 0 0 112px; aspect-ratio: 5 / 3; cursor: pointer; opacity: 0.6; scroll-snap-align: start; transition: opacity 0.2s ease, box-shadow 0.2s ease; }
.yacht-thumb picture, .yacht-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yacht-thumb:hover, .yacht-thumb:focus-visible { opacity: 1; }
.yacht-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.yacht-thumb[aria-current="true"] { opacity: 1; }
.yacht-thumb[aria-current="true"] img { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .yacht-thumb { transition: none; } }
html[dir="rtl"] .yacht-stage .lightbox-arrow svg { transform: scaleX(-1); }
.yacht-stage-counter { position: absolute; z-index: 2; top: 16px; left: 16px; /* physical left: the KaterBlue watermark is top right on every photo, in every language */ margin: 0; padding: 4px 14px; background: rgba(0, 0, 0, 0.45); color: rgba(245, 245, 245, 0.9); font-size: 13px; font-variant-numeric: tabular-nums; }
.yacht-stage-full { position: absolute; z-index: 2; bottom: 16px; inset-inline-end: 16px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(245, 245, 245, 0.3); color: rgba(245, 245, 245, 0.92); cursor: pointer; }
.yacht-stage-full:hover, .yacht-stage-full:focus-visible { border-color: var(--gold); color: var(--gold); }
.yacht-stage-full svg { width: 18px; height: 18px; }
html:not(.js) .yacht-stage-nav, html:not(.js) .yacht-stage-full, html:not(.js) .yacht-thumbs { display: none; }
/* Controls over photographs (viewer and lightbox): round "liquid glass" with a gold sheen. Frosted
   backdrop, gold rim, a bright top highlight and a gold glint that drifts across on hover. */
.yacht-stage .lightbox-arrow, .yacht-stage-full, .yacht-stage-counter,
.lightbox-dialog .lightbox-arrow, .lightbox-dialog .dialog-close, .lightbox-dialog .lightbox-counter {
  border-radius: 999px;
  border: 1px solid rgba(236, 201, 102, 0.55);
  background:
    linear-gradient(160deg, rgba(255, 244, 214, 0.30) 0%, rgba(236, 201, 102, 0.14) 38%, rgba(20, 16, 6, 0.30) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 235, 0.65),
    inset 0 -1px 1px rgba(236, 201, 102, 0.45),
    inset 0 0 12px rgba(236, 201, 102, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.35);
  color: #FFF4D6;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.yacht-stage .lightbox-arrow, .yacht-stage-full, .lightbox-dialog .lightbox-arrow, .lightbox-dialog .dialog-close { width: 52px; height: 52px; display: grid; place-items: center; padding: 0; }
.yacht-stage-full { width: 46px; height: 46px; }
.yacht-stage .lightbox-arrow::before, .yacht-stage-full::before, .yacht-stage-counter::before,
.lightbox-dialog .lightbox-arrow::before, .lightbox-dialog .dialog-close::before, .lightbox-dialog .lightbox-counter::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(115deg, rgba(236, 201, 102, 0) 35%, rgba(255, 226, 150, 0.55) 50%, rgba(236, 201, 102, 0) 65%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, 120% 0;
  mix-blend-mode: screen;
  transition: background-position 0.7s ease;
}
.yacht-stage .lightbox-arrow:hover, .yacht-stage .lightbox-arrow:focus-visible, .yacht-stage-full:hover, .yacht-stage-full:focus-visible,
.lightbox-dialog .lightbox-arrow:hover, .lightbox-dialog .lightbox-arrow:focus-visible, .lightbox-dialog .dialog-close:hover, .lightbox-dialog .dialog-close:focus-visible {
  border-color: rgba(255, 226, 150, 0.95);
  color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 235, 0.85),
    inset 0 -1px 1px rgba(236, 201, 102, 0.6),
    inset 0 0 16px rgba(236, 201, 102, 0.3),
    0 0 0 1px rgba(236, 201, 102, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(236, 201, 102, 0.28);
}
.yacht-stage .lightbox-arrow:hover::before, .yacht-stage-full:hover::before,
.lightbox-dialog .lightbox-arrow:hover::before, .lightbox-dialog .dialog-close:hover::before { background-position: 0 0, -20% 0; }
.yacht-stage .lightbox-arrow:active, .yacht-stage-full:active, .lightbox-dialog .lightbox-arrow:active, .lightbox-dialog .dialog-close:active { transform: scale(0.94); }
.yacht-stage .lightbox-arrow:active, .lightbox-dialog .lightbox-arrow:active { transform: translateY(-50%) scale(0.94); }
.yacht-stage-counter, .lightbox-dialog .lightbox-counter { padding: 5px 16px; color: #FFF4D6; }
.yacht-stage .lightbox-arrow svg, .lightbox-dialog .lightbox-arrow svg { width: 20px; height: 20px; }
.yacht-stage .lightbox-arrow svg, .yacht-stage-full svg, .lightbox-dialog .lightbox-arrow svg, .lightbox-dialog .dialog-close svg { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.55)); }
.yacht-stage-counter, .lightbox-dialog .lightbox-counter { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
@media (prefers-reduced-motion: reduce) {
  .yacht-stage .lightbox-arrow, .yacht-stage-full, .lightbox-dialog .lightbox-arrow, .lightbox-dialog .dialog-close,
  .yacht-stage .lightbox-arrow::before, .yacht-stage-full::before, .lightbox-dialog .lightbox-arrow::before, .lightbox-dialog .dialog-close::before { transition: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .yacht-stage .lightbox-arrow, .yacht-stage-full, .yacht-stage-counter,
  .lightbox-dialog .lightbox-arrow, .lightbox-dialog .dialog-close, .lightbox-dialog .lightbox-counter { background-color: rgba(20, 16, 6, 0.6); }
}
@media (max-width: 700px) {
  .yacht-stage .lightbox-arrow { width: 40px; height: 40px; }
  .yacht-stage .lightbox-prev { inset-inline-start: 8px; }
  .yacht-stage .lightbox-next { inset-inline-end: 8px; }
  .yacht-stage-full { width: 40px; height: 40px; bottom: 10px; inset-inline-end: 10px; }
  .yacht-stage-counter { top: 10px; left: 10px; }
  .yacht-thumb { flex-basis: 84px; }
}
.yacht-detail, .section > .wrap.yacht-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(min(300px, 100%), 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .section > .wrap.yacht-detail, .yacht-hero > .wrap.yacht-detail { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.lightbox-open { all: unset; display: block; width: 100%; cursor: zoom-in; }
.lightbox-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.spec-panel { background: var(--panel); border: 1px solid var(--rule); border-top: 2px solid var(--gold); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.spec-panel h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ivory); }
.spec-panel dl { margin: 0; display: flex; flex-direction: column; }
.spec-panel dl > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.spec-panel dt { color: var(--text); }
.spec-panel dd { margin: 0; color: var(--ivory); text-align: end; font-variant-numeric: tabular-nums; }

/* Long-form text (articles, yacht descriptions) */
.prose { max-width: 720px; gap: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.8; }
html[lang="ar"] .prose p, html[lang="ar"] .prose li { font-size: 18px; line-height: 2; }
.prose p { margin: 0 0 22px; }
.prose h2 { margin: 40px 0 16px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.25; color: var(--ivory); }
.prose h3 { margin: 32px 0 12px; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ivory); }
.prose ul, .prose ol { margin: 0 0 22px; padding-inline-start: 22px; }
.prose blockquote { margin: 32px 0; padding-inline-start: 24px; border-inline-start: 2px solid var(--gold); }
.prose blockquote p { font-family: var(--display); font-size: 24px; line-height: 1.5; color: var(--ivory); }
.prose a { color: var(--gold); }

/* Insights */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 40px 32px; }
.post { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--text); }
.post:hover .post-title { color: var(--gold); }
.post-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; max-width: 100%; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { display: flex; flex-direction: column; gap: 10px; }
.post-title { display: block; margin: 0; font-weight: 400; font-family: var(--display); font-size: 26px; line-height: 1.3; color: var(--ivory); transition: color 0.2s ease; }
.post-summary { font-size: 15px; line-height: 1.7; }
.post-meta { margin: 0; font-size: 13px; color: var(--ivory); }
.post-lead { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px 48px; align-items: center; }
.post-lead .post-title { font-size: clamp(30px, 3.4vw, 40px); }

.article-head { padding-block: 24px 48px; display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.standfirst { margin: 0; font-size: 20px; line-height: 1.6; color: var(--ivory); max-width: 720px; }
.article-img { width: 100%; max-height: 520px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-body { padding-block: 56px 24px; }
.share { padding-block: 0 56px; display: flex; flex-direction: column; gap: 16px; }
.share h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ivory); }
.share .btn { background: transparent; }
.share-url { margin: 0; font-size: 13px; color: var(--ivory); overflow-wrap: anywhere; }

/* Yachts available: search, filters, results */
.page-head-compact .wrap { padding-block: 72px 48px; }
.stock { padding-block: 40px 110px; display: flex; flex-direction: column; gap: 72px; }
.stock-form { display: flex; flex-direction: column; gap: 32px; }
.stock-form:not(.is-live) .stock-search, .stock-form:not(.is-live) .stock-filters, .stock-form:not(.is-live) .stock-sort { display: none; }
.stock-form:not(.is-live) .stock-layout { grid-template-columns: 1fr; }
.stock-search { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: end; background: var(--panel); border: 1px solid var(--rule); border-top: 2px solid var(--gold); padding: 24px; }
@media (max-width: 1100px) { .stock-search { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); } }
.stock-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.stock-field > label, .stock-field > legend, .stock-label, .filter-h { font-size: 11px; letter-spacing: 0.18em; color: var(--gold); font-weight: 600; text-transform: uppercase; padding: 0; margin-bottom: 8px; }
html[lang="ar"] .stock-field > label, html[lang="ar"] .stock-field > legend, html[lang="ar"] .stock-label, html[lang="ar"] .filter-h { font-size: 13px; }
.stock-form select, .stock-form input[type="search"] { min-height: 46px; width: 100%; padding: 0 12px; background: var(--black); border: 1px solid var(--rule); color: var(--text); font-family: var(--body); font-size: 14px; border-radius: 0; }
.stock-form select:focus, .stock-form input[type="search"]:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 1px var(--gold); }
.seg { display: flex; border: 1px solid var(--rule); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { white-space: nowrap; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; font-size: 13px; text-align: center; color: var(--text); }
.seg input:checked + span { background: var(--gold); color: #000000; font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg-links a { flex: 1; display: flex; text-decoration: none; }
.seg-links a span { flex: 1; }
.seg-links a[aria-current] span { background: var(--gold); color: #000000; font-weight: 600; }
.seg-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.stock-browse { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.stock-browse ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.stock-browse a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; font-size: 14px; }
.stock-browse a:hover, .stock-browse a[aria-current] { border-bottom-color: var(--gold); }
.stock-browse a span { opacity: 0.65; }
.stock-go { min-height: 46px; }

.stock-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .stock-layout { grid-template-columns: 1fr; } }
/* The panel stays in view beside the results and always fits the screen: compact spacing, features as chips,
   sliders for year and price, and (on short screens) its own scroll with Apply and Reset pinned at its foot. */
.stock-filters { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--rule); padding: 18px 20px 0; position: sticky; top: calc(var(--hdr-b, 77px) + 16px); max-height: calc(100vh - var(--hdr-b, 77px) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; background: var(--black); }
@media (max-width: 900px) { .stock-filters { position: static; max-height: none; overflow: visible; } }
.stock-filters h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--ivory); }
.stock-filters .filter-h { margin-bottom: 6px; }
.stock-filters select, .stock-filters input[type="search"] { min-height: 42px; }
.stock-filters fieldset.filter-group { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.stock-filters fieldset.filter-group legend { width: 100%; }
.stock-filters .check { position: relative; min-height: 30px; padding: 0 11px; border: 1px solid var(--rule); border-radius: 15px; font-size: 12.5px; gap: 0; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.stock-filters .check input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.stock-filters .check:hover { border-color: var(--gold); }
.stock-filters .check:has(input:checked) { border-color: var(--gold); background: var(--gold); color: #000000; }
.stock-filters .check:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.stock-filters .filter-actions .btn { padding: 0 10px; }
.stock-filters .filter-actions { position: sticky; bottom: 0; margin-top: auto; padding: 12px 0 18px; background: inherit; border-top: 1px solid var(--rule); }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-val { font-size: 14px; color: var(--ivory); white-space: nowrap; }
.range input[type="range"] { --fill: var(--gold); width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.range input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--fill) var(--p, 0%), var(--rule) var(--p, 0%)); }
html[dir="rtl"] .range input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--fill) var(--p, 0%), var(--rule) var(--p, 0%)); }
.range input[type="range"]::-moz-range-track { height: 2px; background: var(--rule); }
.range input[type="range"]::-moz-range-progress { height: 2px; background: var(--fill); }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--gold); border: 3px solid var(--black); box-shadow: 0 0 0 1px var(--gold); transition: transform 0.15s; }
.range input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid var(--black); box-shadow: 0 0 0 1px var(--gold); }
.range input[type="range"]:hover::-webkit-slider-thumb, .range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.range input[type="range"]:focus { outline: none; }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px rgba(236, 201, 102, 0.35); }
.range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px rgba(236, 201, 102, 0.35); }
.range-ends { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.6; }
.filter-group { display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; min-width: 0; }
.filter-group[hidden] { display: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.filter-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-actions .btn { min-height: 44px; padding: 0 18px; font-size: 13px; flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.stock-results { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.stock-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.stock-count { margin: 0; font-family: var(--display); font-size: 24px; color: var(--ivory); }
.stock-sort { display: flex; align-items: center; gap: 12px; }
.stock-sort label { font-size: 13px; white-space: nowrap; }
.stock-sort select { width: auto; min-width: 200px; }
.stock-results .yacht-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }

.yacht-card { position: relative; }
.yacht-card[hidden] { display: none; }
.yacht-img { position: relative; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(0, 0, 0, 0.8); border: 1px solid var(--gold); color: var(--gold); font-size: 11px; letter-spacing: 0.12em; padding: 4px 10px; text-transform: uppercase; }
.badge-inline { position: static; align-self: flex-start; }
.yacht-name { margin: 0; font-weight: 400; }
.yacht-name a { color: var(--ivory); text-decoration: none; }
.yacht-name a:hover { color: var(--gold); }
.yacht-loc { font-size: 13px; color: var(--ivory); }
.yacht-facts { margin: 6px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.yacht-facts div { padding: 10px 0; display: flex; flex-direction: column; gap: 2px; }
.yacht-facts dt { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
html[lang="ar"] .yacht-facts dt { font-size: 12px; }
.yacht-facts dd { margin: 0; font-size: 15px; color: var(--ivory); font-variant-numeric: tabular-nums; }
.yacht-foot { border-top: 0; padding-top: 6px; align-items: center; }
.yacht-price { font-family: var(--display); font-size: 20px; }
.yacht-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 0 0 22px; }
.feature-list li { border: 1px solid var(--rule); padding: 6px 12px; font-size: 14px !important; line-height: 1.4 !important; }

.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding-top: 8px; }
.pager button { min-width: 44px; min-height: 44px; padding: 0 12px; background: transparent; border: 1px solid var(--rule); color: var(--text); font-family: var(--body); cursor: pointer; }
.pager button[aria-current] { border-color: var(--gold); color: var(--gold); }
.pager button:disabled { opacity: 0.4; cursor: default; }

/* Brand graphic elements: wave motif, solid gold icons */
.wave-motif { width: 120px; height: auto; color: var(--gold); display: block; }
.motif-start { width: 96px; }
html[dir="rtl"] .wave-motif { transform: scaleX(-1); }
.foot-motif { display: flex; justify-content: center; padding-block: 40px 0; }
.icon { width: 16px; height: 16px; flex: none; color: var(--gold); }
.social { display: flex; gap: 18px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.social .icon { width: 20px; height: 20px; }
.yacht-facts dt { display: flex; align-items: center; gap: 6px; }
.yacht-facts .icon { width: 14px; height: 14px; }

/* Arabic pages: no lowercase Latin (brand styling note). Addresses are shown in capitals;
   the share address stays selectable for copying but is not displayed. */
html[lang="ar"] .latin { text-transform: uppercase; }
html[lang="ar"] .share-url { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Light theme (Yachts available and yacht pages) ----------
   Brand rules: Pearl White ground, Black headlines, Charcoal body text, Sandstone Cream cards,
   Royal Gold reserved for buttons, icons and key highlights (never for small text on light). */
.theme-light main {
  --ivory: #000000;
  --text: #333333;
  --panel: #F5F1E8;
  --rule: rgba(51, 51, 51, 0.16);
  --black: #FFFFFF;
  background: #F5F5F5;
  color: var(--text);
  color-scheme: light;
}
.theme-light main :focus-visible { outline-color: #000; }
.theme-light .page-head { background: #F5F5F5 url("../img/contours-light.jpg") center / cover no-repeat; }
.theme-light .eyebrow, .theme-light .yacht-status, .theme-light .stock-field > label, .theme-light .stock-field > legend, .theme-light .stock-label,
.theme-light .filter-h, .theme-light .spec-panel dt { color: #333333; }
.theme-light .eyebrow::before { content: ''; display: inline-block; width: 22px; height: 2px; background: var(--gold); vertical-align: middle; margin-inline-end: 10px; }
.theme-light .link-u { color: #000; border-bottom: 2px solid var(--gold); }
.theme-light .link-u:hover { color: #333; }
.theme-light .back-link { color: #000; }
.theme-light .back-link svg { color: var(--gold); }
.theme-light .btn-line { border-color: #000; color: #000; }
.theme-light .btn-line:hover { background: #000; color: #F5F5F5; border-color: #000; }
/* Outline buttons over the contour headings and the home banner are solid, so nothing shows through them. */
.page-head .btn-line, .hero .btn-line { background: #000; }
.theme-light .page-head .btn-line { background: #F5F5F5; }
.theme-light .page-head .btn-line:hover { background: #000; }
.theme-light .btn-gold:hover { background: #000; color: #F5F5F5; }
.theme-light .yacht-card { background: var(--panel); }
.theme-light .yacht-card:hover { border-color: var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.theme-light .yacht-name a:hover { color: #000; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.theme-light .stock-search { background: #FFFFFF; }
.theme-light .stock-filters { background: #FFFFFF; }
.theme-light .seg span { color: #333; }
.theme-light .seg-links a[aria-current] span { color: #000000; }
.theme-light .pager button[aria-current] { color: #000; font-weight: 600; border-color: var(--gold); border-width: 2px; }
.theme-light .spec-panel { background: #FFFFFF; }
.theme-light .feature-list li { background: #FFFFFF; }
.theme-light .offmarket { background: #FFFFFF; }
.theme-light .prose p, .theme-light .prose li { color: #333; }
.theme-light .form-note { color: #333; }

/* Light / dark switch on Yachts available pages (shown only when JavaScript runs) */
.page-head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.crumb { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.theme-toggle { display: none; border: 1px solid var(--rule); background: var(--black); }
html.js .theme-toggle { display: inline-flex; }
.theme-toggle button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; background: transparent; border: 0; color: var(--text); font-family: var(--body); font-size: 13px; cursor: pointer; }
.theme-toggle button .icon { width: 15px; height: 15px; color: currentColor; }
.theme-toggle button[aria-pressed="true"] { background: var(--gold); color: #000000; font-weight: 600; }
.theme-toggle button:not([aria-pressed="true"]):hover { color: var(--ivory); }
.page-head .theme-toggle { background: #000000; border-color: rgba(236, 201, 102, 0.5); }
.theme-light .page-head .theme-toggle { background: #FFFFFF; border-color: var(--rule); }

/* Content pages (Sell, About, Advisers, Management, New builds) */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.steps-5 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 32px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-inline-start: 26px; font-size: 15px; line-height: 1.7; }
.check-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.55em; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.page-head .btn-row { margin-top: 8px; }
.nav-pages { gap: 24px; }

/* Homepage yacht showcase: Sale / Charter switch, horizontal strip (drag, scroll bar, arrows), link to Yachts available. */
.section.fleet > .wrap { padding-block: 0; gap: 0; }
.section.fleet { padding-block: 110px; }
.fleet-head, .section.fleet > .wrap > .fleet-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.fleet-title { gap: 14px; align-items: center; }
.fleet-tabs { display: inline-flex; border: 1px solid var(--rule); }
.fleet-tabs button { font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; min-height: 46px; padding: 0 22px; background: transparent; color: var(--text); border: 0; cursor: pointer; }
.fleet-tabs button + button { border-inline-start: 1px solid var(--rule); }
.fleet-tabs button:hover { color: var(--gold); }
.fleet-tabs button[aria-pressed="true"] { background: var(--gold); color: #000000; }
.fleet-strip { margin-top: 40px; }
.fleet-track { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(32px, calc((100% - 1280px) / 2 + 32px));
  padding-inline: max(32px, calc((100% - 1280px) / 2 + 32px)); padding-bottom: 22px; cursor: grab;
  scrollbar-width: thin; scrollbar-color: var(--gold) var(--rule); }
.fleet-track::-webkit-scrollbar { height: 6px; }
.fleet-track::-webkit-scrollbar-track { background: var(--rule); }
.fleet-track::-webkit-scrollbar-thumb { background: var(--gold); }
.fleet-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.fleet-track.is-dragging .fleet-card { pointer-events: none; }
.fleet-card { flex: 0 0 min(296px, 74vw); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--rule); color: var(--text); text-decoration: none; transition: border-color 0.2s ease; }
.fleet-card:hover { border-color: var(--gold); color: var(--text); }
.fleet-card[hidden] { display: none; }
.fleet-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.fleet-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.fleet-card:hover .fleet-img img { transform: scale(1.03); }
.fleet-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex-grow: 1; }
.fleet-name { font-family: var(--display); font-size: 21px; line-height: 1.2; color: var(--ivory); }
.fleet-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ivory); font-variant-numeric: tabular-nums; }
.fleet-facts > span { display: inline-flex; align-items: center; gap: 7px; }
.fleet-facts .icon { width: 14px; height: 14px; }
.fleet-price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ivory); }
.fleet-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fleet-also { font-size: 12px; color: var(--gold); }
.fleet-price[hidden] { display: none; }
.fleet-foot, .section.fleet > .wrap.fleet-foot { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 36px; }
.fleet-foot .btn[hidden] { display: none; }
.fleet-arrows { display: flex; gap: 10px; }
.fleet-arrows button { width: 46px; height: 46px; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--rule); color: var(--text); cursor: pointer; }
.fleet-arrows button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.fleet-arrows button:disabled { opacity: 0.35; cursor: default; }
.fleet-arrows svg { width: 16px; height: 16px; }
html[dir="rtl"] .fleet-arrows svg { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .fleet-img img { transition: none; } }
@media (max-width: 720px) { .section.fleet { padding-block: 80px; } .fleet-track { padding-inline: 16px; scroll-padding-inline: 16px; } .fleet-tabs { width: 100%; } .fleet-tabs button { flex: 1; padding: 0 12px; } }

/* Homepage: "An asset, not an investment" note and the structuring principle line. */
.note-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 56px; align-items: baseline; border-inline-start: 2px solid var(--gold); padding: 8px 0 8px 32px; padding-inline: 32px 0; }
.note-panel h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--ivory); }
.note-panel p { margin: 0; font-size: 15px; line-height: var(--lh-body); max-width: 68ch; }
@media (max-width: 760px) { .note-panel { grid-template-columns: 1fr; padding-inline-start: 20px; } }
.principle { margin: 0; max-width: 72ch; font-family: var(--display); font-size: 22px; line-height: 1.55; color: var(--ivory); }
html[lang="ar"] .principle { font-size: 21px; line-height: 1.9; }

/* Page-head contour lines drawn on a canvas (assets/js/site.js); the static image remains the fallback. */
.page-head { overflow: hidden; }
.page-head > .wrap { position: relative; z-index: 1; }
.ph-ripple { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-head.has-ripple, .theme-light .page-head.has-ripple { background-image: none; }

/* Yacht enquiry and brochure popup (templates/partials/yacht-enquiry.php). */
.yacht-dialog { padding: 0; border: 0; background: transparent; color: var(--text); width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; }
.yacht-dialog::backdrop { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(3px); }
.yacht-dialog[open] { animation: dlg-in 0.28s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .yacht-dialog[open] { animation: none; } }
.yacht-dialog form.enq { position: relative; border-top: 2px solid var(--gold); max-height: calc(100dvh - 32px); overflow-y: auto; gap: 16px; }
.dialog-title { margin: 0; padding-inline-end: 40px; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.25; color: var(--ivory); }
.dialog-intro { margin: 0; font-size: 14px; line-height: 1.7; }
.dialog-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid var(--rule); color: var(--text); cursor: pointer; }
.dialog-close:hover { border-color: var(--gold); color: var(--gold); }
.dialog-close svg { width: 14px; height: 14px; }
.yacht-dialog .motif-start { margin-bottom: -4px; }

/* Image lightbox (templates/partials/lightbox.php): enlarges any photo marked data-lightbox-open.
   Always a dark overlay regardless of the Light/Dark theme toggle, so its chrome uses fixed colours
   rather than the --text/--rule tokens (which flip for the light theme). */
.lightbox-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 48px; border: 0; background: transparent; display: none; box-sizing: border-box; }
.lightbox-dialog[open] { display: grid; grid-template-rows: 1fr; animation: dlg-in 0.28s ease; }
@media (prefers-reduced-motion: reduce) { .lightbox-dialog[open] { animation: none; } }
.lightbox-dialog::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox-dialog img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(245, 245, 245, 0.3); color: rgba(245, 245, 245, 0.92); cursor: pointer; }
.lightbox-arrow:hover, .lightbox-arrow:focus-visible { border-color: var(--gold); color: var(--gold); }
.lightbox-arrow svg { width: 18px; height: 18px; }
.lightbox-prev { inset-inline-start: 16px; }
.lightbox-next { inset-inline-end: 16px; }
.lightbox-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; color: rgba(245, 245, 245, 0.85); font-size: 13px; background: rgba(0, 0, 0, 0.4); padding: 4px 14px; }
.field textarea { min-height: 96px; padding: 12px 14px; background: var(--black); border: 1px solid var(--text); color: var(--text); font: 15px/1.6 var(--body); border-radius: 0; width: 100%; resize: vertical; }
.field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 1px var(--gold); }
.spec-panel .btn + .btn { margin-top: -6px; }

/* Buttons: rectangular with very slightly rounded corners, and a soft gold aura on hover. */
:root { --btn-radius: 4px; --btn-aura: 0 0 0 1px rgba(236, 201, 102, 0.28), 0 6px 22px rgba(236, 201, 102, 0.32); }
.theme-light main { --btn-aura: 0 0 0 1px rgba(184, 147, 58, 0.25), 0 6px 20px rgba(184, 147, 58, 0.3); }
.btn, .header-cta, .lang-btn, .pager button, .fleet-arrows button, .dialog-close,
.fleet-tabs, .seg, .theme-toggle { border-radius: var(--btn-radius); }
.fleet-tabs, .seg, .theme-toggle { overflow: hidden; }
.btn, .header-cta, .lang-btn, .pager button, .fleet-arrows button, .dialog-close, .fleet-tabs button, .theme-toggle button {
  transition: box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover, .btn:focus-visible, .header-cta:hover, .lang-btn:hover, .pager button:not(:disabled):hover,
.fleet-arrows button:not(:disabled):hover, .dialog-close:hover { box-shadow: var(--btn-aura); }
.fleet-tabs:hover, .seg:hover, .theme-toggle:hover { box-shadow: var(--btn-aura); }
@media (prefers-reduced-motion: reduce) { .btn, .header-cta, .lang-btn, .pager button, .fleet-arrows button, .dialog-close { transition: none; } }

/* Language button: a round circle with a short label ("عربي" / "EN"); the full name is in aria-label. */
.lang-btn { width: 48px; height: 48px; min-width: 0; min-height: 0; padding: 0; justify-content: center; gap: 0; border-radius: 50% !important; border: 1px solid var(--gold); }
.lang-btn .globe { display: none; }
.lang-btn [lang="ar"] { font-size: 14px; line-height: 1; }
.lang-btn [lang="en"] { font-size: 13px; letter-spacing: 0.08em; line-height: 1; }
/* Six page links: tighter spacing so the header stays on one row on desktop. */
/* Language circle sits to the right of "Request a consultation" in both languages
   (in Arabic its place first in the markup already puts it on the right). */

/* ---------- Our locations (locations.php) ----------
   Pins: filled gold = for sale, filled blue = for charter, rings = off-market (gold sale, blue charter). */
main { --pin-sale: #ECC966; --pin-charter: #7DB7E3; --pin-halo: rgba(0, 0, 0, 0.75); --map-sea: #05080B; }
.theme-light main { --pin-sale: #C99A2E; --pin-charter: #1F5F8B; --pin-halo: rgba(255, 255, 255, 0.9); --map-sea: #F8F7F3; }
.mk { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; box-sizing: border-box; }
.mk-sale { background: var(--pin-sale); }
.mk-charter { background: var(--pin-charter); }
.mk-om-sale { border: 2.5px solid var(--pin-sale); }
.mk-om-charter { border: 2.5px solid var(--pin-charter); }
.mk-pair { display: inline-flex; gap: 3px; }

.locmap { padding-block: 40px 24px; }
.loc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.loc-legend-h { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--text); margin-inline-end: 6px; }
html[lang="ar"] .loc-legend-h { letter-spacing: 0; font-size: 13px; }
.loc-legend button { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; background: transparent; color: var(--ivory); border: 1px solid var(--rule); border-radius: var(--btn-radius, 4px); font: inherit; font-size: 14px; cursor: pointer; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.loc-legend button:hover { border-color: var(--gold); box-shadow: var(--btn-aura); }
.loc-legend button[aria-pressed="false"] { opacity: 0.4; }
.loc-legend button[aria-pressed="false"] .mk { filter: grayscale(1); }
.loc-note { margin: 14px 0 20px; font-size: 13px; color: var(--text); opacity: 0.85; }
.loc-scroll-note { display: none; margin-top: 10px; }

.map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.map { position: relative; direction: ltr; aspect-ratio: 1000 / 637.9; background: var(--map-sea) url("../img/map-dark.svg") center / 100% 100% no-repeat; border: 1px solid var(--rule); }
.theme-light .map { background-image: url("../img/map-light.svg"); }
.loc-pin { position: absolute; transform: translate(-50%, -8px); display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; margin: 0; background: none; border: 0; color: var(--ivory); font: inherit; cursor: pointer; z-index: 1; }
.loc-pin::before { content: ''; position: absolute; inset: -6px -6px -4px; }
.loc-pin[hidden] { display: none; }
.loc-marks { display: flex; gap: 4px; padding: 2px; border-radius: 10px; background: var(--pin-halo); transition: transform .2s ease; }
.loc-marks .mk { box-shadow: 0 0 0 1px var(--pin-halo); }
.loc-name { font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; text-shadow: 0 0 4px var(--map-sea), 0 0 2px var(--map-sea); opacity: 0.85; }
html[lang="ar"] .loc-name { letter-spacing: 0; font-size: 12px; }
.loc-pin:hover, .loc-pin:focus-visible, .loc-pin.is-open, .loc-pin.is-hot { z-index: 3; }
.loc-pin:hover .loc-marks, .loc-pin:focus-visible .loc-marks, .loc-pin.is-open .loc-marks, .loc-pin.is-hot .loc-marks { transform: scale(1.3); box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(236, 201, 102, 0.45); }
.loc-pin:hover .loc-name, .loc-pin.is-open .loc-name, .loc-pin.is-hot .loc-name { opacity: 1; color: var(--gold); }
.theme-light .loc-pin:hover .loc-name, .theme-light .loc-pin.is-open .loc-name, .theme-light .loc-pin.is-hot .loc-name { color: #000; }
.loc-pin:focus-visible { outline: none; }
.loc-pin:focus-visible .loc-name { outline: 2px solid var(--gold); outline-offset: 2px; }

.map-tip { position: absolute; z-index: 5; width: min(320px, 80vw); max-height: 92%; overflow: auto; background: var(--panel); border: 1px solid var(--rule); border-top: 2px solid var(--gold); padding: 18px 20px 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); text-align: start; }
.theme-light .map-tip { background: #FFFFFF; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); }
.map-tip .loc-empty[hidden] { display: none; }

.loc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.loc-card { background: var(--panel); border: 1px solid var(--rule); padding: 24px 24px 26px; transition: border-color .2s, box-shadow .2s; scroll-margin-top: 120px; }
.loc-card:hover, .loc-card:target { border-color: var(--gold); }
.theme-light .loc-card { background: #FFFFFF; }
.loc-card.is-empty { opacity: 0.6; }
.loc-head { display: flex; flex-direction: column; gap: 4px; }
.loc-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--ivory); }
.loc-sub { font-size: 12px; letter-spacing: 0.06em; color: var(--text); opacity: 0.85; }
html[lang="ar"] .loc-sub { letter-spacing: 0; font-size: 13px; }
.loc-group { margin-top: 18px; }
.loc-group-h { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--ivory); }
html[lang="ar"] .loc-group-h { letter-spacing: 0; font-size: 13px; }
.loc-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.loc-group li { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 21px; }
.loc-yacht { font-family: var(--display); font-size: 19px; color: var(--ivory); text-decoration: none; line-height: 1.3; }
.loc-yacht:hover { color: var(--gold); }
.theme-light .loc-yacht:hover { color: #000; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.loc-meta { font-size: 13px; line-height: 1.6; color: var(--text); }
.loc-om-title { display: flex; align-items: center; gap: 9px; margin-inline-start: -21px; font-size: 15px; color: var(--ivory); }
.loc-om-link { min-height: 0; margin-top: 14px; padding-bottom: 3px; font-size: 14px; }
.loc-empty { margin: 16px 0 0; font-size: 13px; color: var(--text); }
main.loc-hide-sale [data-kind="sale"], main.loc-hide-charter [data-kind="charter"], main.loc-hide-om [data-kind="om"] { display: none; }

.cred-link { color: inherit; text-decoration: none; }
.cred-link:hover .cred-v { color: var(--ivory); }
.cred-more { font-size: 12px; color: var(--gold); margin-top: 2px; }
.foot-grid a.foot-h-link { color: var(--gold); }
.foot-grid a.foot-h-link:hover { color: var(--ivory); }
.foot-grid a.foot-more { color: var(--gold); }
.loc-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 14px; }
.loc-link .icon { width: 16px; height: 16px; color: var(--gold); }

@media (max-width: 760px) {
  .map { min-width: 720px; }
  .loc-scroll-note { display: block; }
}

/* Homepage services: links to Crew, Management and New builds below the service cards. */
/* Homepage "Beyond the transaction": three linked cards beneath the services, matching the service cards. */
.svc-more { display: grid; gap: 18px; margin-top: 8px; }
.svc-more-h { margin: 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.svc-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.svc-more-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 8px 16px; padding: 24px 26px; background: var(--panel);
  border: 1px solid var(--rule); text-decoration: none; color: var(--text); transition: border-color .2s ease; }
.svc-more-card:hover, .svc-more-card:focus-visible { border-color: var(--gold); }
.svc-more-t { font-family: var(--display); font-size: 22px; line-height: 1.25; color: var(--ivory); }
.svc-more-p { grid-column: 1; font-size: 14px; line-height: 1.6; }
.svc-more-go { grid-column: 2; grid-row: 1; color: var(--gold); font-size: 20px; line-height: 1.2; transition: transform .2s ease; }
.svc-more-card:hover .svc-more-go { transform: translateX(4px); }
html[dir="rtl"] .svc-more-go { transform: scaleX(-1); }
html[dir="rtl"] .svc-more-card:hover .svc-more-go { transform: scaleX(-1) translateX(4px); }
@media (max-width: 860px) { .svc-more-grid { grid-template-columns: minmax(0, 1fr); } }
html[lang="ar"] .svc-more-h { letter-spacing: 0; font-size: 13px; }

/* Article: further reading (Wikipedia references for the places and topics covered). */
.article-refs { max-width: 720px; margin: 8px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.article-refs h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--ivory); font-family: var(--body); }
.article-refs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.article-refs a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(236, 201, 102, 0.4); }
.article-refs a:hover { color: var(--ivory); }
.article-refs span { color: var(--text); opacity: 0.7; font-size: 12px; margin-inline-start: 6px; }
/* Coverage map as a section of Yachts available. */
.section.locmap { padding-block: 0; }
.section.locmap > .wrap { gap: 28px; }
.section.locmap .loc-note { margin: 12px 0 0; }
.section.locmap .loc-scroll-note { margin: -16px 0 0; }

/* Language menu (three languages): round button with the current language, list beneath. */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu[open] > summary { background: var(--gold); color: #000; }
.lang-list { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; min-width: 170px; margin: 0; padding: 6px; list-style: none; background: #0B0B0B; border: 1px solid var(--rule); border-top: 2px solid var(--gold); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.lang-list a { display: block; padding: 10px 14px; color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.lang-list a:hover, .lang-list a:focus-visible { color: var(--gold); background: rgba(236, 201, 102, 0.06); }
.lang-list a[aria-current] { color: var(--gold); }
.lang-list a[lang="ar"] { font-family: 'Noto Sans Arabic', 'Geeza Pro', Tahoma, sans-serif; font-size: 15px; }
.header-actions .lang-menu { order: 2; } /* language button at the outer edge in both directions */

/* Russian pages: Amiri has no Cyrillic, so headings use Cormorant Garamond (the brand name stays in Amiri). */
html[lang="ru"] { --display: 'Cormorant Garamond', 'Amiri', Georgia, serif; }
html[lang="ru"] .lang-btn [lang="ru"] { font-family: 'Open Sans', Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; line-height: 1; }

picture { display: contents; }
picture > source { display: none; } /* contents on <picture> would otherwise make <source> a real (zero-size) flex/grid item, breaking any multi-photo gallery grid */

/* ---------- Scroll motion ("Cinematic", chosen by the owner on 8 October 2026; assets/js/site.js initMotion) ----------
   Everything is visible without JavaScript and for visitors who ask for reduced motion. With motion, site.js
   holds elements below the first screen in their start state (.mo-armed) and releases them (.mo-in) as they
   scroll into view; only opacity, transform and clip-path change, so nothing shifts the layout. */
:root { --mo-dist: 28px; --mo-dur: 1.1s; --mo-stagger: .09s; --mo-zoom: 1.15; --mo-ease: cubic-bezier(.2, .7, .2, 1); }
html.motion .mo-armed { transition: opacity var(--mo-dur) var(--mo-ease), transform var(--mo-dur) var(--mo-ease); transition-delay: calc(var(--mo-i, 0) * var(--mo-stagger)); }
html.motion .mo-armed[data-mo="rise"]:not(.mo-in) { opacity: 0; transform: translateY(var(--mo-dist)); }
html.motion img.mo-armed[data-mo="unmask"] { transition: clip-path calc(var(--mo-dur) * 1.3) var(--mo-ease), transform calc(var(--mo-dur) * 2) var(--mo-ease); }
html.motion img.mo-armed[data-mo="unmask"]:not(.mo-in) { clip-path: inset(0 0 100% 0); transform: scale(var(--mo-zoom)); }
.fleet-img, .post-img, .yacht-img, .svc { overflow: hidden; }
/* Headings appear word by word from behind a mask (words wrapped by site.js; the HTML stays plain text). */
.mo-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.mo-w > span { display: inline-block; }
html.motion .mo-armed[data-mo="words"] { opacity: 1; transform: none; }
html.motion .mo-armed[data-mo="words"] .mo-w > span { transition: transform calc(var(--mo-dur) * 1.1) var(--mo-ease); transition-delay: calc(var(--mo-wi, 0) * 45ms); }
html.motion .mo-armed[data-mo="words"]:not(.mo-in) .mo-w > span { transform: translateY(105%); }
/* Home banner: full width from the start (no frame); as the visitor scrolls down, the photograph moves up a
   little within the banner (site.js sets --hy from 50% to 75%) and the text lifts away. */
html.motion .hero { background-position: center var(--hy, 50%); }
html.motion .hero .wrap { will-change: transform, opacity; }
/* Process steps pinned on wide screens: each stage lights in turn as the visitor scrolls. */
html.motion .mo-seq-stick { position: sticky; top: var(--hdr, 80px); }
html.motion .mo-seq .mo-seq-stick > .wrap { padding-block: 56px; }
html.motion .mo-seq .steps li { opacity: .32; transition: opacity .6s var(--mo-ease); position: relative; }
html.motion .mo-seq .steps li.mo-on, html.motion .mo-seq .steps li.mo-past { opacity: 1; }
html.motion .mo-seq .steps li::before { content: ''; position: absolute; top: -1px; inset-inline: 0; height: 2px; background: var(--gold);
  transform: scaleX(var(--mo-f, 0)); transform-origin: 0 50%; }
html[dir="rtl"].motion .mo-seq .steps li::before { transform-origin: 100% 50%; }
@media (prefers-reduced-motion: reduce) {
  html.motion .mo-armed, html.motion .mo-armed .mo-w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}
.offmarket + .offmarket { margin-top: 24px; }

/* Header layout (owner, 8 October 2026): one row across the full screen width: brand at the far left,
   the page links spread across the middle, "Request a consultation" and the language button at the far right
   (Arabic mirrors it). Where the row is too narrow for all three, the links drop to a bar beneath
   (below 1300px; below 1420px in Russian, whose link names are longer). */
.site-header .wrap { max-width: none; padding-inline: clamp(16px, 3vw, 48px); }
.site-header .header-row { padding-block: 14px; flex-wrap: nowrap; }
.nav-pages { order: 0; flex: 1 1 auto; min-width: 0; justify-content: space-evenly; gap: 14px; margin-inline: clamp(16px, 2.5vw, 48px);
  letter-spacing: 0.03em; border-top: 0; padding-top: 0; overflow: visible; width: auto; }
.nav-pages::-webkit-scrollbar { display: none; }
@media (max-width: 1360px) { .brand-sub { display: none; } }
@media (max-width: 1299px) {
  .site-header .header-row { flex-wrap: wrap; padding-block: 14px 0; row-gap: 12px; }
  .nav-pages { order: 3; flex: 1 1 100%; width: 100%; margin-inline: 0; justify-content: space-between; gap: 22px;
    border-top: 1px solid var(--rule); padding-top: 2px; overflow-x: auto; scrollbar-width: none; }
  .brand-sub { display: block; }
}
@media (min-width: 1300px) and (max-width: 1419px) {
  html[lang="ru"] .site-header .header-row { flex-wrap: wrap; padding-block: 14px 0; row-gap: 12px; }
  html[lang="ru"] .nav-pages { order: 3; flex: 1 1 100%; width: 100%; margin-inline: 0; justify-content: space-between; gap: 22px;
    border-top: 1px solid var(--rule); padding-top: 2px; overflow-x: auto; scrollbar-width: none; }
  html[lang="ru"] .brand-sub { display: block; }
}
@media (max-width: 560px) { .brand-sub { display: none; } }

/* WhatsApp (templates/partials/footer.php, owner 19 October 2026): a round gold button fixed in the
   bottom corner of every page - polished gold with a soft glow and a highlight that drifts on hover -
   plus a WhatsApp line under the office address in the footer. */
.wa-float {
  position: fixed; z-index: 40; bottom: 24px; inset-inline-end: 24px;
  width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  color: #1a1406; text-decoration: none;
  background: radial-gradient(120% 120% at 30% 20%, #FFF1C4 0%, #F3D27A 30%, #ECC966 55%, #B8952F 100%);
  border: 1px solid rgba(255, 241, 196, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 4px rgba(120, 90, 20, 0.45), 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 18px rgba(236, 201, 102, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 65%);
  background-size: 260% 100%; background-position: 120% 0; transition: background-position 0.7s ease;
}
.wa-float:hover, .wa-float:focus-visible { color: #000; transform: translateY(-2px) scale(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -2px 4px rgba(120, 90, 20, 0.45), 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 26px rgba(236, 201, 102, 0.55); }
.wa-float:hover::before { background-position: -20% 0; }
.wa-float:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.wa-float .wa-icon { width: 30px; height: 30px; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35)); }
@media (max-width: 700px) { .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; } .wa-float .wa-icon { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float::before { transition: none; } .wa-float:hover { transform: none; } }
@media print { .wa-float { display: none; } }
.foot-addr { font-style: normal; }
.foot-grid a.foot-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); }
.foot-grid a.foot-wa:hover { color: var(--ivory); }
.foot-wa .wa-icon { width: 16px; height: 16px; flex: none; }

/* Site search (search.php, templates/search.php, header search button) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search-btn svg { width: 18px; height: 18px; }
.search-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; width: min(420px, calc(100vw - 32px)); display: flex; gap: 8px; padding: 10px; background: #0B0B0B; border: 1px solid var(--rule); border-top: 2px solid var(--gold); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.search-form input[type="search"] { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; background: #000; color: var(--ivory); border: 1px solid var(--rule); font: inherit; font-size: 16px; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--gold); }
.search-form-page { display: flex; gap: 10px; max-width: 680px; }
.search-form-page input[type="search"] { min-height: 52px; font-size: 17px; }
.theme-light .search-form-page input[type="search"] { background: #fff; color: #000; }
.search-count { margin: 0; color: var(--text); font-size: 15px; }
.search-group > .wrap { padding-block: 40px 0; }
.search-group:last-of-type > .wrap { padding-bottom: 80px; }
.search-empty { padding-block: 40px 80px; }
.search-try { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.search-h { margin: 0 0 20px; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--ivory); }
.search-n { font-family: var(--body); font-size: 14px; color: var(--gold); vertical-align: middle; margin-inline-start: 6px; }
.search-yachts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.search-yacht { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--rule); color: var(--text); text-decoration: none; transition: border-color 0.2s ease; }
.search-yacht:hover, .search-yacht:focus-visible { border-color: var(--gold); color: var(--text); }
.search-yacht-img { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: #0d0d0d; }
.search-yacht-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-yacht-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.search-facts { font-size: 13px; color: var(--ivory); }
.search-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.search-list li { border-bottom: 1px solid var(--rule); }
.search-list a { display: flex; flex-direction: column; gap: 6px; padding: 18px 4px; color: var(--text); text-decoration: none; }
.search-list a:hover .search-title, .search-list a:focus-visible .search-title { color: var(--gold); }
.search-kind { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .search-kind { font-size: 13px; }
.search-title { font-family: var(--display); font-size: 22px; line-height: 1.3; color: var(--ivory); transition: color 0.2s ease; }
.search-snippet { font-size: 14px; line-height: 1.7; color: var(--text); }
.search-snippet mark, .search-title mark { background: rgba(236, 201, 102, 0.22); color: inherit; padding: 0 1px; border-bottom: 1px solid var(--gold); }
.theme-light .search-snippet mark, .theme-light .search-title mark { background: rgba(236, 201, 102, 0.45); }
@media (max-width: 560px) { .search-form-page { flex-direction: column; } .search-form-page .btn { width: 100%; } }

/* Header actions with the search circle: "Request a consultation" keeps its full size on one line with the
   text centred (the brand line gives way instead); on phones the circles are a little smaller so the
   search and language buttons stay beside the logo. */
.header-cta { flex: none; white-space: nowrap; justify-content: center; text-align: center; }
@media (max-width: 560px) {
  .header-actions { gap: 8px; }
  .header-actions .lang-btn { width: 42px; height: 42px; }
  .site-header .header-row { column-gap: 10px; }
}

/* Legal pages and links to them (4 November 2026): footer base links, privacy link under each form, legal text. */
.foot-base a { color: inherit; text-decoration: none; }
.foot-base a:hover { color: var(--gold); }
.form-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.theme-light .form-note a { color: #000; text-decoration-color: var(--gold); }
.legal-body { padding-block: 8px 24px; }
.legal-body .post-meta { margin: 0 0 8px; }
.legal-body h2:first-of-type { margin-top: 24px; }
