/* =========================================================================
   SUITES & SHORES — Stylesheet
   Aesthetic: Coastal luxury · Aman / Six Senses / Soho House influence
   Palette: Deep marine, warm sand, ivory, brass accent
   ========================================================================= */

:root {
  /* Color tokens */
  --ink: #0f1e2a;            /* deep marine ink — text + brand */
  --ink-soft: #2c3d4d;
  --ink-mute: #5b6a78;
  --bone: #f5efe5;           /* warm bone / sand surface */
  --ivory: #faf6ef;          /* ivory page background */
  --paper: #ffffff;
  --sand: #e9dfcc;           /* deeper sand for dividers */
  --brass: #b48a3c;          /* brass / ochre accent */
  --brass-soft: #c9a460;
  --sea: #1f4d5a;            /* muted sea green */
  --line: rgba(15, 30, 42, 0.12);
  --line-strong: rgba(15, 30, 42, 0.22);
  --shadow-sm: 0 1px 2px rgba(15, 30, 42, 0.06), 0 1px 1px rgba(15, 30, 42, 0.04);
  --shadow-md: 0 8px 28px -10px rgba(15, 30, 42, 0.18), 0 2px 6px rgba(15, 30, 42, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(15, 30, 42, 0.35);

  /* Type */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Noto Naskh Arabic", "Amiri", serif;

  /* Spacing */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 132px);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
}

/* ---------------- Reset & base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* RTL adjustments */
html[dir="rtl"] body { font-family: var(--font-arabic); }
html[dir="rtl"] .serif-italic { font-style: normal; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; }
h4 { font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; color: var(--ink); }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.serif-italic { font-style: italic; font-weight: 400; color: var(--brass); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.2rem;
}

/* ---------------- Layout ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--ivory); }
.btn--primary:hover { background: var(--sea); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.btn--outline-light { background: transparent; color: var(--ivory); border: 1px solid rgba(245, 239, 229, 0.55); }
.btn--outline-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.link-arrow:hover { color: var(--brass); border-color: var(--brass); }

/* ============================================================ NAV ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.brand__mark { width: 38px; height: 38px; color: var(--ink); }
.brand__wordmark { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand__name em { font-style: italic; color: var(--brass); font-weight: 400; }
.brand__tagline { font-size: 0.7rem; color: var(--ink-mute); letter-spacing: 0.04em; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--ink);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover { color: var(--brass); }
.nav__links a.btn { padding: 0.6em 1.3em; }

.lang-toggle {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}
.lang-toggle:hover { color: var(--brass); border-color: var(--brass); }
html[data-lang="en"] [data-lang-ar] { display: none; }
html[data-lang="ar"] [data-lang-en] { display: none; }

@media (max-width: 880px) {
  .nav__links a:not(.btn) { display: none; }
  .brand__tagline { display: none; }
}

/* ============================================================ HERO ============================================================ */
.hero {
  position: relative;
  min-height: min(94vh, 880px);
  display: flex;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1b3849 0%, #0f1e2a 100%);
  z-index: -2;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  filter: saturate(0.9) contrast(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,42,0.25) 0%, rgba(15,30,42,0.45) 60%, rgba(15,30,42,0.7) 100%);
  z-index: -1;
}
.hero__content {
  padding-block: clamp(120px, 18vh, 200px) 80px;
  max-width: 880px;
}
.hero .eyebrow { color: var(--brass-soft); }
.hero__title { color: var(--ivory); font-weight: 400; }
.hero__title span { display: block; }
.hero__lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: rgba(245, 239, 229, 0.85);
  margin-top: 24px;
  max-width: 60ch;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero__stats {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 72px;
  border-top: 1px solid rgba(245, 239, 229, 0.18);
  padding-top: 28px;
  max-width: 600px;
}
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1;
}
.hero__stats span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 229, 0.7);
  margin-top: 8px;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  color: rgba(245, 239, 229, 0.75);
  animation: hover 2.2s ease-in-out infinite;
}
@keyframes hover {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============================================================ INTRO ============================================================ */
.intro {
  padding-block: var(--section-y);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.intro__pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; }
.intro__pillars li {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.intro__pillars li:first-child { border-top-color: var(--ink); }
.intro__pillars h3 { margin-bottom: 8px; }
.intro__pillars p { font-size: 0.95rem; color: var(--ink-mute); margin: 0; }
@media (max-width: 880px) {
  .intro__grid { grid-template-columns: 1fr; }
}

/* ============================================================ COLLECTION ============================================================ */
.collection {
  padding-block: var(--section-y);
  background: var(--bone);
}
.collection__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.collection__head h2 { max-width: 18ch; margin-top: 8px; }

.filter { display: inline-flex; padding: 4px; background: var(--paper); border-radius: 999px; box-shadow: var(--shadow-sm); }
.filter__btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-mute);
  font-weight: 500;
  transition: all 0.25s ease;
}
.filter__btn.is-active { background: var(--ink); color: var(--ivory); }
.filter__btn:not(.is-active):hover { color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 36px;
}

/* ---- Property Card ---- */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  overflow: hidden;
  cursor: pointer;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(15, 30, 42, 0.85);
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.card__rating {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}
.card__rating svg { width: 13px; height: 13px; color: var(--brass); }

.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card__city { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.card__country { font-size: 0.78rem; color: var(--ink-mute); }
.card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
}
.card__desc { font-size: 0.92rem; color: var(--ink-mute); line-height: 1.55; margin-bottom: 18px; }
.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.card__specs span { display: inline-flex; align-items: center; gap: 6px; }
.card__specs strong { color: var(--ink); font-weight: 600; }
.card__amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.card__amenity {
  font-size: 0.74rem;
  background: var(--bone);
  color: var(--ink-soft);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.card__cta { margin-top: auto; display: flex; gap: 10px; }
.card__cta .btn { flex: 1; padding: 0.75em 1em; font-size: 0.85rem; }

/* ============================================================ CITY SECTION ============================================================ */
.city {
  padding-block: var(--section-y);
  background: var(--ivory);
}
.city__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.city--reverse .city__grid { direction: rtl; }
.city--reverse .city__copy { direction: ltr; }
html[dir="rtl"] .city--reverse .city__grid { direction: ltr; }
html[dir="rtl"] .city--reverse .city__copy { direction: rtl; }

.city__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.city__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,42,0) 60%, rgba(15,30,42,0.35) 100%);
  border-radius: inherit;
}
.city__media--miami { background-image: url("../images/miami.jpg"); }
.city__media--dubai { background-image: url("../images/dubai.jpg"); }

.city__copy h2 { margin-bottom: 24px; max-width: 16ch; }
@media (max-width: 880px) {
  .city__grid { grid-template-columns: 1fr; direction: ltr !important; }
  .city__media { aspect-ratio: 4/3; }
}

/* ============================================================ ABOUT ============================================================ */
.about {
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--ivory);
}
.about .eyebrow { color: var(--brass-soft); }
.about h2, .about h3 { color: var(--ivory); }
.about__title { max-width: 22ch; margin-bottom: 64px; }
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.owner {
  background: rgba(245, 239, 229, 0.04);
  border: 1px solid rgba(245, 239, 229, 0.12);
  border-radius: var(--r-lg);
  padding: 36px 32px;
}
.owner__monogram {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-soft) 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.owner h3 { margin-bottom: 4px; }
.owner__role { color: var(--brass-soft); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.owner p { color: rgba(245, 239, 229, 0.75); font-size: 0.95rem; }
.owner--quote { background: transparent; border: 0; padding: 24px 0; }
.owner--quote blockquote {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--ivory);
  font-style: italic;
  font-weight: 400;
  margin: 0 0 18px;
  padding: 0;
}
.owner--quote cite { color: var(--brass-soft); font-style: normal; font-size: 0.88rem; letter-spacing: 0.08em; }
@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ============================================================ INQUIRY ============================================================ */
.inquire {
  padding-block: var(--section-y);
  background: var(--bone);
}
.inquire__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.inquire__copy h2 { margin-bottom: 20px; max-width: 14ch; }
.inquire__contact {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 22px;
}
.inquire__contact li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.inquire__contact li > span:first-child {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.inquire__contact a { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.inquire__contact a:hover { color: var(--brass); border-color: var(--brass); }

/* Form */
.form {
  background: var(--paper);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
  .inquire__contact li { grid-template-columns: 1fr; gap: 4px; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 0.95rem;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 30, 42, 0.08);
}
.form__note { font-size: 0.82rem; color: var(--ink-mute); margin: 4px 0 0; text-align: center; }
.form__success {
  background: var(--ivory);
  border: 1px solid var(--brass);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
}
.form__success strong { color: var(--ink); font-weight: 600; }

@media (max-width: 880px) {
  .inquire__grid { grid-template-columns: 1fr; }
}

/* ============================================================ FOOTER ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(245, 239, 229, 0.75);
  padding-top: 72px;
  padding-bottom: 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 239, 229, 0.12);
}
.footer__brand .brand__name { color: var(--ivory); font-size: 1.6rem; margin-bottom: 12px; display: inline-block; }
.footer__brand p { color: rgba(245, 239, 229, 0.6); max-width: 38ch; font-size: 0.92rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: var(--ivory); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.footer__col a { color: rgba(245, 239, 229, 0.65); font-size: 0.92rem; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--brass-soft); }
.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  font-size: 0.82rem;
  color: rgba(245, 239, 229, 0.45);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================ LIGHTBOX ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 30, 42, 0.96);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.lightbox__inner img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__caption {
  color: rgba(245, 239, 229, 0.7);
  font-size: 0.92rem;
  text-align: center;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(245, 239, 229, 0.08);
  border: 1px solid rgba(245, 239, 229, 0.18);
  color: var(--ivory);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(245, 239, 229, 0.18); }
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; }

/* ============================================================ MOTION ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
