:root {
  --color-ink: #13201c;
  --color-ink-soft: #45554f;
  --color-forest: #163c34;
  --color-forest-2: #0b2a25;
  --color-gold: #b98d3f;
  --color-gold-dark: #8f6829;
  --color-gold-text: #765419;
  --color-ivory: #fbf7ed;
  --color-stone: #eee7d7;
  --color-mist: #f5f1e8;
  --color-white: #ffffff;
  --color-border: rgba(19, 32, 28, 0.13);
  --shadow-soft: 0 22px 70px rgba(13, 33, 28, 0.14);
  --shadow-card: 0 18px 50px rgba(15, 34, 30, 0.12);
  --radius-card: 8px;
  --radius-pill: 999px;
  --font-display: "Noto Naskh Arabic", Georgia, serif;
  --font-body: "Noto Sans Arabic", Arial, sans-serif;
  --max-width: 1180px;
  --header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a,
button {
  touch-action: manipulation;
}

html[lang="en"] {
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Josefin Sans", Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-align: right;
}

html[lang="en"] body {
  text-align: left;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-gold-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
input,
textarea {
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(185, 141, 63, 0.95);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--color-white);
  color: var(--color-forest);
  border-radius: var(--radius-card);
  transform: translateY(-140%);
}

html[lang="en"] .skip-link {
  right: auto;
  left: 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.section-dark {
  color: var(--color-white);
  background: var(--color-forest-2);
}

.section-light,
.section-muted {
  padding: 96px 0;
}

.section-light {
  background: var(--color-ivory);
}

.section-muted {
  background: var(--color-mist);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(251, 247, 237, 0.92);
  border-bottom: 1px solid rgba(19, 32, 28, 0.1);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(100% - 32px, var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-forest);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

html[lang="en"] .brand {
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-top: 2px solid var(--color-gold);
  transform: rotate(45deg);
}

.brand-mark::after {
  transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--color-ink-soft);
  font-weight: 600;
}

.nav-menu a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.language-switcher {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(22, 60, 52, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.64);
}

.language-option {
  min-width: 72px;
  min-height: 44px;
  padding: 8px 12px 7px;
  color: var(--color-ink-soft);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.language-option:hover,
.language-option.is-active {
  color: var(--color-white);
  background: var(--color-forest);
}

.nav-cta {
  padding: 0 18px;
  color: var(--color-forest);
  border: 1px solid rgba(22, 60, 52, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
}

.nav-cta:hover {
  color: var(--color-white);
  background: var(--color-forest);
  border-color: var(--color-forest);
}

.nav-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-forest);
}

.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-height));
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(5, 22, 19, 0.9), rgba(9, 32, 28, 0.72) 42%, rgba(9, 32, 28, 0.18)),
    url("assets/hero-villa.webp") center / cover;
  transform: scale(1.02);
}

html[lang="en"] .hero-media {
  background:
    linear-gradient(90deg, rgba(5, 22, 19, 0.9), rgba(9, 32, 28, 0.72) 42%, rgba(9, 32, 28, 0.18)),
    url("assets/hero-villa.webp") center / cover;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 84px 0 72px;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--color-gold-text);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

html[lang="en"] .eyebrow,
html[lang="en"] .card-kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.centered-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: 0;
}

html[lang="en"] .hero h1,
html[lang="en"] .section-heading h2,
html[lang="en"] .centered-heading h2,
html[lang="en"] .contact-copy h2 {
  line-height: 1.02;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.06rem, 1.4vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  line-height: 1.2;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--color-white);
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  box-shadow: 0 14px 34px rgba(185, 141, 63, 0.28);
}

.button-primary:hover {
  color: var(--color-white);
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
}

.button-ghost {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.button-ghost:hover {
  color: var(--color-forest);
  background: var(--color-white);
}

.hero-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-card);
  background: rgba(12, 36, 32, 0.72);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
}

.hero-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.14;
}

.hero-card p:not(.card-kicker) {
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.hero .eyebrow,
.hero .card-kicker,
.section-dark .eyebrow {
  color: #e4c987;
}

.demo-disclosure {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(11, 42, 37, 0.72);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.hero-card dl div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card dt {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.hero-card dd {
  margin: 2px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.search-panel {
  position: relative;
  z-index: 5;
  margin-top: -44px;
}

.property-search {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(19, 32, 28, 0.12);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.2;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--color-ink);
  border: 1px solid rgba(19, 32, 28, 0.2);
  border-radius: 6px;
  background: var(--color-white);
}

.field textarea {
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(185, 141, 63, 0.75);
}

.search-feedback,
.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--color-forest);
  font-weight: 700;
}

.stats-band {
  padding: 68px 0 48px;
  background: var(--color-ivory);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  padding: 26px 20px;
  text-align: center;
  border-inline-start: 1px solid var(--color-border);
}

.stat:first-child {
  border-inline-start: 0;
}

.stat strong {
  display: block;
  color: var(--color-forest);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--color-ink-soft);
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-heading h2,
.centered-heading h2,
.contact-copy h2 {
  color: var(--color-forest);
  font-size: clamp(2.2rem, 5vw, 4.3rem);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--color-forest);
  font-weight: 800;
  border-bottom: 2px solid var(--color-gold);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.listing-card,
.feature-card,
.agent-card,
.contact-form {
  border: 1px solid rgba(19, 32, 28, 0.12);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.listing-card {
  overflow: hidden;
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 34, 30, 0.16);
}

.listing-image {
  min-height: 290px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.listing-image span {
  padding: 8px 12px 6px;
  color: var(--color-white);
  border-radius: var(--radius-pill);
  background: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.listing-image-one {
  background-image: linear-gradient(rgba(11, 42, 37, 0.02), rgba(11, 42, 37, 0.08)), url("assets/riyadh-penthouse.webp");
}

.listing-image-two {
  background-image: linear-gradient(rgba(11, 42, 37, 0.02), rgba(11, 42, 37, 0.08)), url("assets/red-sea-villa.webp");
}

.listing-image-three {
  background-image: linear-gradient(rgba(11, 42, 37, 0.02), rgba(11, 42, 37, 0.08)), url("assets/alula-estate.webp");
}

.listing-body {
  padding: 24px;
}

.listing-location {
  margin: 0 0 8px;
  color: var(--color-gold-dark);
  font-weight: 800;
}

.listing-body h3,
.feature-card h3,
.agent-info h3,
.contact-form h3,
.footer h2 {
  margin: 0;
  color: var(--color-forest);
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.2;
}

.listing-body h3 {
  font-size: 1.42rem;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  color: var(--color-ink-soft);
  list-style: none;
}

.property-meta li {
  padding-inline-end: 10px;
  border-inline-end: 1px solid rgba(19, 32, 28, 0.18);
}

.property-meta li:last-child {
  border-inline-end: 0;
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.listing-footer strong {
  color: var(--color-forest);
  font-size: 1.08rem;
}

.listing-footer a,
.agent-info a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--color-gold-dark);
  font-weight: 800;
}

.centered-heading {
  max-width: 740px;
  margin: 0 auto 40px;
  text-align: center;
}

.centered-heading p:not(.eyebrow) {
  margin: 18px auto 0;
  color: var(--color-ink-soft);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 28px;
}

.feature-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--color-gold-dark);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.feature-card h3 {
  font-size: 1.18rem;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--color-ink-soft);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.agent-card {
  overflow: hidden;
}

.agent-card img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.agent-info {
  padding: 22px;
}

.agent-info h3 {
  margin-top: 6px;
  font-size: 1.18rem;
}

.agent-info p {
  margin: 8px 0;
  color: var(--color-ink-soft);
}

.agent-info strong {
  color: var(--color-forest);
}

.contact-section {
  padding: 96px 0;
  background:
    linear-gradient(250deg, rgba(8, 31, 27, 0.95), rgba(18, 54, 47, 0.86)),
    url("assets/hero-villa.webp") center / cover;
}

html[lang="en"] .contact-section {
  background:
    linear-gradient(110deg, rgba(8, 31, 27, 0.95), rgba(18, 54, 47, 0.86)),
    url("assets/hero-villa.webp") center / cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: center;
}

.contact-copy h2 {
  color: var(--color-white);
}

.contact-copy p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

address {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  font-style: normal;
}

address a,
address span {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-data-note {
  color: #fff2c9;
  font-size: 0.875rem;
  line-height: 1.7;
}

.demo-form-notice {
  margin: -12px 0 20px;
  padding: 10px 12px;
  border-inline-start: 3px solid var(--color-gold-dark);
  color: var(--color-ink-soft);
  background: var(--color-mist);
  font-size: 0.875rem;
  line-height: 1.7;
}

.contact-form {
  padding: 30px;
}

.contact-form h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form .field {
  margin-bottom: 16px;
}

.contact-form .button {
  width: 100%;
}

.footer {
  padding: 64px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  background: #071c19;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.footer .brand {
  color: var(--color-white);
}

.footer p {
  max-width: 360px;
  margin: 18px 0 0;
}

.footer h2 {
  color: var(--color-white);
  font-size: 1rem;
}

.footer a:not(.brand) {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-card {
    max-width: 520px;
  }

  .property-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    gap: 6px;
    padding: 18px 24px 24px;
    background: rgba(251, 247, 237, 0.98);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transform: translateY(-120%);
    visibility: hidden;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-menu a {
    width: 100%;
    justify-content: center;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
  }

  .language-option {
    flex: 1 1 0;
  }

  .nav-cta {
    margin-top: 6px;
  }

  .hero-grid {
    padding: 68px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.3rem);
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(5, 22, 19, 0.92), rgba(9, 32, 28, 0.66)),
      url("assets/hero-villa.webp") center / cover;
  }

  .hero-actions,
  .section-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .text-link {
    width: 100%;
  }

  .property-search,
  .stats-grid,
  .listing-grid,
  .feature-grid,
  .agent-grid,
  .contact-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 34px;
  }

  .stats-band {
    padding-top: 58px;
  }

  .stat {
    border-inline-start: 0;
    border-top: 1px solid var(--color-border);
  }

  .stat:first-child {
    border-top: 0;
  }

  .section-light,
  .section-muted,
  .contact-section {
    padding: 72px 0;
  }

  .listing-image {
    min-height: 250px;
  }

  .contact-form {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .section-inner,
  .nav-shell {
    width: min(100% - 24px, var(--max-width));
  }

  .hero-card,
  .listing-body,
  .feature-card,
  .agent-info {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .button:hover,
  .listing-card:hover {
    transform: none;
  }
}
