/* ===========================================================================
   style.css — Arabian Hills landing page
   1 tokens · 2 base · 3 buttons · 4 header · 5 hero · 6 stats bar
   7 sections · 8 modal · 9 floating bar · 10 footer · 11 responsive
   =========================================================================== */

/* 1) TOKENS ---------------------------------------------------------------- */
:root {
  --color-bg-dark:   #0b0b0b;
  --color-gold:      #c0a062;
  --color-gold-dark: #a8884a;
  --color-white:     #ffffff;
  --color-ink:       #111111;
  --color-mist:      #e7e7e5;
  --color-modal:     #3f483f;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Montserrat', Arial, sans-serif;

  --header-h: 110px;
  --statsbar-h: 92px;
  --maxw: 1280px;
}

/* 2) BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-white);
  background: var(--color-bg-dark);
  padding-bottom: var(--statsbar-h);   /* clears fixed bottom bar (desktop) */
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* 3) BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  border: 0;
  line-height: 1.2;
  transition: background-color .2s ease, transform .15s ease;
}
.btn--gold { background: var(--color-gold); color: var(--color-ink); padding: 14px 30px; font-size: 15px; }
.btn--gold:hover { background: var(--color-gold-dark); }

/* 4) HEADER ---------------------------------------------------------------- */
.site-header { background: var(--color-bg-dark); position: relative; z-index: 30; }
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.site-header__contacts { display: flex; align-items: center; gap: 20px; }
.site-header__contacts a { width: 26px; height: 26px; color: var(--color-white); transition: color .2s ease; }
.site-header__contacts a:hover { color: var(--color-gold); }
.site-header__contacts svg { width: 100%; height: 100%; fill: currentColor; }
.site-header__logo { justify-self: center; }
.site-header__logo img { max-height: 70px; width: auto; }
.site-header__cta { justify-self: end; }

/* 5) HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 56%) 0%, rgb(0 0 0 / 53%) 55%, rgb(0 0 0 / 71%) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 1100px; padding: 0 24px; }
.hero__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1.02;
  margin: 0 0 .35em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.hero__subtitle { font-family: var(--font-serif); font-size: clamp(1.3rem, 3vw, 2.1rem); letter-spacing: .04em; margin: 0 0 1.1em; }
.hero__tagline {
  font-family: var(--font-sans); font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; font-size: clamp(.8rem, 1.6vw, 1.05rem); margin: 0 0 2em;
}
.hero__cta { font-size: 16px; padding: 16px 36px; }

/* 6) STICKY STATS BAR ------------------------------------------------------ */
.stats-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(11,11,11,.92); backdrop-filter: blur(4px);
  border-top: 1px solid rgba(192,160,98,.35);
}
.stats-bar__inner {
  max-width: var(--maxw); margin: 0 auto; min-height: var(--statsbar-h);
  padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.stats-bar__items { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.stats-bar__item { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.stats-bar__label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.stats-bar__value { font-family: var(--font-serif); font-size: 20px; color: #eadfc4; }
.stats-bar__cta { white-space: nowrap; text-transform: uppercase; }

/* SECTION THEME CONVENTION */
.section--light { background: #ffffff; color: #222222; }
.section--dark  { background: var(--color-bg-dark); color: var(--color-white); }

/* 7) SECTIONS -------------------------------------------------------------- */

/* ABOUT (single image right) */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 760px; }
.about__text { padding: 90px clamp(32px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.about__heading {
  font-family: var(--font-serif); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.1; margin: 0 0 .7em; color: #1a1a1a;
}
.about__body { font-size: 1.05rem; line-height: 1.75; color: #444; max-width: 56ch; }
.about__body p { margin: 0 0 1em; }
.about__stats { display: flex; gap: clamp(28px, 4vw, 64px); margin: 44px 0; flex-wrap: wrap; }
.about__stat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.about__stat-icon { height: 56px; width: auto; }
.about__stat-value { font-size: 1.6rem; font-weight: 500; color: #1a1a1a; }
.about__stat-label { font-size: 1.05rem; color: #333; }
.about__cta { align-self: flex-start; text-transform: uppercase; }
.about__media { position: relative; min-height: 420px; }
.about__media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* PLOTS */
.plots { padding: 60px 0; }
.plots__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); }
.plots__item { padding: 6px 24px; text-align: center; border-right: 1px solid rgba(192,160,98,.7); }
.plots__item:last-child { border-right: 0; }
.plots__title { margin: 0 0 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; color: #111; }
.plots__range { margin: 0; font-family: var(--font-serif); font-size: 1.25rem; color: #555; }

/* LEAD FORM SECTIONS */
.lead { position: relative; background-size: cover; background-position: center; padding: 90px 0; }
.lead__overlay { position: absolute; inset: 0; background: rgba(40,42,40,.55); }
.lead__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.lead__heading { font-family: var(--font-sans); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; margin: 0 0 36px; color: #fff; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__row { display: grid; gap: 28px; margin-bottom: 28px; }
.lead__row--row { grid-template-columns: repeat(3, 1fr); }
.lead__row--stacked { grid-template-columns: 1fr; gap: 22px; }
.lead--center { text-align: center; }
.lead--center .lead__inner { max-width: 1000px; }
.lead--center .lead__form { text-align: left; }
.lead__subtitle { text-transform: uppercase; letter-spacing: .18em; font-size: .95rem; color: rgba(255,255,255,.85); margin: 0 0 38px; }
.lead__field { display: flex; flex-direction: column; }
.lead__field label { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.req { color: #e23b3b; margin-left: 2px; }
.lead__field input, .lead__field select {
  height: 46px; border: 0; background: #f1f1ee; padding: 0 14px;
  font-family: var(--font-sans); font-size: 1rem; color: #222;
}
.lead__field input:focus, .lead__field select:focus,
.modal__field input:focus, .modal__field select:focus { outline: 2px solid var(--color-gold); outline-offset: 1px; }
.lead__phone { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.lead__phone select { min-width: 0; }
.lead__submit { text-transform: none; padding: 14px 34px; }
.lead__submit:disabled, .modal__submit:disabled { opacity: .65; cursor: not-allowed; }
.lead__msg { margin: 18px 0 0; font-size: 1rem; min-height: 1.2em; }
.lead__msg.is-ok { color: #bfe6c2; }
.lead__msg.is-error { color: #ffb4b4; }

/* FEATURES */
.features-intro { background: #fff; text-align: center; padding: 64px 24px 40px; }
.features-intro__title { font-family: var(--font-serif); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0; color: #1a1a1a; }
.features { background: var(--color-mist); padding: 30px 0 80px; }
.feature { max-width: var(--maxw); margin: 0 auto; padding: 40px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.feature--media-right .feature__media { order: 2; }
.feature__media img { width: 100%; height: auto; object-fit: cover; }
.feature__heading { font-family: var(--font-sans); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 0 0 .6em; color: #1a1a1a; }
.feature__body { font-size: 1.05rem; line-height: 1.65; color: #555; margin: 0 0 32px; max-width: 52ch; }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-bottom: 36px; }
.feature__item { display: flex; align-items: center; gap: 16px; }
.feature__icon { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.feature__label { font-size: 1.05rem; color: #333; }
.feature__cta { text-transform: uppercase; }

/* LOCATION */
.location { background: #dfe7e7; line-height: 0; }
.location img { width: 100%; height: auto; display: block; }

/* PAYMENT (dark text on light marble) */
.payment { position: relative; background-size: cover; background-position: center; text-align: center; padding: 90px 24px; color: #1a1a1a; }
.payment__overlay { position: absolute; inset: 0; background: rgba(255,255,255,.18); }
.payment__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.payment__title { font-family: var(--font-serif); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 50px; }
.payment__steps { display: flex; justify-content: center; align-items: flex-start; gap: clamp(40px, 9vw, 140px); flex-wrap: wrap; }
.payment__step { display: flex; flex-direction: column; gap: 8px; max-width: 240px; }
.payment__percent { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 400; }
.payment__label { font-size: 1.05rem; color: #333; }
.payment__note { margin: 24px 0 36px; font-size: 1.05rem; }
.payment__cta { text-transform: uppercase; }

/* AMENITIES (no icons) */
.amenities { background: #fff; padding: 64px 0 80px; }
.amenities__title { font-family: var(--font-serif); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; text-align: center; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 48px; color: #1a1a1a; }
.amenities__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.amenities__media img { width: 100%; height: 350px; object-fit: cover; }
.amenities__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; }
.amenities__col { list-style: none; margin: 0; padding: 0; }
.amenities__col li { padding: 9px 0; font-size: 1.02rem; color: #333; border-bottom: 1px solid #eee; }
.amenities__cta-wrap { text-align: center; margin-top: 44px; }
.amenities__cta-wrap .btn { text-transform: uppercase; }

/* 8) MODAL ----------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal__dialog {
  position: relative; z-index: 2;
  width: calc(100% - 32px); max-width: 640px;
  margin: 7vh auto; background: var(--color-modal); color: #fff;
  padding: 46px clamp(24px, 5vw, 56px); border-radius: 4px;
  max-height: 86vh; overflow-y: auto;
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 2px solid #fff; color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: rgba(255,255,255,.15); }
.modal__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin: 0 0 30px; }
.modal__field { display: flex; flex-direction: column; margin-bottom: 20px; }
.modal__field label { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.modal__field input, .modal__field select {
  width: 100%; height: 46px; border: 0; background: #f1f1ee; padding: 0 14px;
  font-family: var(--font-sans); font-size: 1rem; color: #222;
}
.modal__submit { margin-top: 6px; }

/* 9) FLOATING CONTACT BAR -------------------------------------------------- */
.floatbar { position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 3px; }
.floatbar__link {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: rgba(20,28,22,.88); color: #fff; padding: 11px 13px;
  border-radius: 6px 0 0 6px; font-size: .8rem; transition: background-color .2s ease;
}
.floatbar__link:hover { background: rgba(20,28,22,1); }
.floatbar__link svg { width: 22px; height: 22px; fill: var(--color-gold); flex: 0 0 auto; }
/* icons only — hide the numbers / email on every screen size */
.floatbar__text { display: none; }

/* 10) FOOTER --------------------------------------------------------------- */
.site-footer { background: #000; color: #cfcfcf; text-align: center; padding: 26px 16px; }
.site-footer p { margin: 0; font-size: .95rem; letter-spacing: .02em; }

/* 11) RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .about__text { padding: 64px clamp(28px, 5vw, 64px); }
  .feature { padding: 32px 28px; }
}

@media (max-width: 900px) {
  .plots__inner { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .plots__item:nth-child(2) { border-right: 0; }
  .lead__row--row { grid-template-columns: 1fr; gap: 20px; }
  .amenities__inner { grid-template-columns: 1fr; }
  .amenities__cols { grid-template-columns: repeat(2, 1fr); }
  .amenities__media img { height: 280px; }
}

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; min-height: 0; }
  .about__text { padding: 56px 22px 40px; }
  .about__media { min-height: 320px; }
  .about__stats { justify-content: space-between; gap: 16px; }
  .about__stat-value { font-size: 1.3rem; }
  .about__stat-label { font-size: .92rem; }

  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature--media-right .feature__media,
  .feature--media-left  .feature__media { order: -1; }
  .feature__grid { gap: 20px; }
}

@media (max-width: 768px) {
  :root { --header-h: 84px; }

  /* hide header contacts + Contact Now on mobile; center the lone logo */
  .site-header__contacts,
  .site-header__cta { display: none; }
  .site-header__inner { grid-template-columns: 1fr; justify-items: center; padding: 12px 18px; }
  .site-header__logo { justify-self: center; }
  .site-header__logo img { max-height: 52px; }

  /* hide the bottom sticky stats bar entirely on mobile */
  .stats-bar { display: none; }
  body { padding-bottom: 0; }

  /* floating bar: icons only on mobile (numbers hidden to avoid overflow) */
  .floatbar__text { display: none; }
  .floatbar__link { padding: 9px; }
  .floatbar__link svg { width: 20px; height: 20px; }

  .modal__dialog { margin: 5vh auto; padding: 40px 22px; }
}

@media (max-width: 560px) {
  .plots__inner { grid-template-columns: 1fr; }
  .plots__item { border-right: 0; border-bottom: 1px solid rgba(192,160,98,.5); padding-bottom: 22px; }
  .plots__item:last-child { border-bottom: 0; }
  .amenities__cols { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .feature__grid { grid-template-columns: 1fr; }
  .lead__phone { grid-template-columns: 110px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}