/* ==========================================================================
   Mohammed Al-Khazaali | REALTOR®  —  Site Styles
   Refined luxury real-estate theme: deep navy, warm gold, soft cream.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Mulish:wght@300;400;500;600;700&display=swap');

:root {
  --navy:        #0F2138;
  --navy-deep:   #0A1626;
  --charcoal:    #1E2730;
  --gold:        #C5A059;
  --gold-soft:   #D8B570;
  --gold-tint:   #F3EBDA;
  --white:       #FFFFFF;
  --cream:       #F6F3EE;
  --line:        #E4DED4;
  --text:        #2C3138;
  --muted:       #6B7178;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Mulish', system-ui, sans-serif;

  --max: 1180px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(15,33,56,.06);
  --shadow-md: 0 14px 38px rgba(15,33,56,.12);
  --ease: all .3s cubic-bezier(.4,.0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { text-decoration: none; color: var(--navy); transition: var(--ease); }

img { max-width: 100%; height: auto; display: block; }

.container { width: min(92%, var(--max)); margin: 0 auto; }
.section   { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--white { background: var(--white); }
.text-center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
  display: inline-block;
}

.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(197,160,89,.35); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-secondary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------------------------------------------- */
header {
  background: var(--navy-deep);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(197,160,89,.22);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.05rem 0;
}
.logo a {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.logo a span { color: var(--gold); }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,.86); font-size: .93rem; font-weight: 500; position: relative; }
.nav-links a:not(.nav-phone)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--gold); transition: var(--ease);
}
.nav-links a:not(.nav-phone):hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.nav-phone {
  color: var(--navy-deep) !important;
  background: var(--gold);
  padding: .5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
}
.nav-phone:hover { background: var(--gold-soft); }
.hamburger {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.6rem; cursor: pointer; line-height: 1;
}

/* ---------- Hero ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(197,160,89,.20), transparent 60%),
    radial-gradient(900px 500px at 15% 110%, rgba(197,160,89,.10), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  opacity: .6;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 4rem 0; }
.hero-content h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero-content h1 em { color: var(--gold); font-style: normal; }
.hero-content .lead { color: rgba(255,255,255,.85); margin: 0 auto 2.4rem; font-size: 1.15rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats / Trust bar ----------------------------------------- */
.stats-bar { background: var(--charcoal); color: var(--white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat-item { padding: 2.2rem 1rem; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.1); }
.stat-item h3 { color: var(--gold); font-size: 1.5rem; margin-bottom: .25rem; }
.stat-item p { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; letter-spacing: .02em; }

/* ---------- Split (image + text) -------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse { grid-template-columns: 1.15fr 1fr; }
.split-body h2 { margin-bottom: 1.2rem; }
.split-body p { margin-bottom: 1.2rem; color: var(--muted); }
.split-body .btn { margin-top: .6rem; }

/* Headshot framing for transparent PNG */
.portrait-frame {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.portrait-frame::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(transparent, rgba(197,160,89,.18));
}
.portrait-frame img { position: relative; z-index: 1; width: 100%; }
.portrait-frame--light { background: linear-gradient(165deg, #EDE7DB 0%, var(--gold-tint) 100%); }

/* ---------- Feature cards (Why work with me) -------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  text-align: center;
  transition: var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  width: 58px; height: 58px; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h4 { margin-bottom: .5rem; }
.feature-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Listings -------------------------------------------------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.listing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
}
.listing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.listing-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.listing-card:hover .listing-media img { transform: scale(1.05); }
.listing-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--gold); color: var(--navy-deep);
  font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 4px;
}
.listing-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.listing-price { font-family: var(--font-head); font-size: 1.55rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.listing-price small { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); }
.listing-content h4 { margin-bottom: .2rem; }
.listing-addr { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.listing-specs {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  padding: .9rem 0; margin-bottom: 1.2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: .88rem; color: var(--text);
}
.listing-specs span { display: inline-flex; align-items: center; gap: .4rem; }
.listing-specs strong { color: var(--navy); font-weight: 700; }
.listing-actions { margin-top: auto; display: flex; gap: .6rem; }
.listing-actions .btn { flex: 1; }

.listing-placeholder {
  display: grid; place-items: center; text-align: center;
  min-height: 240px; padding: 2rem; color: var(--muted);
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--white);
}
.listing-placeholder p { margin: 0; font-style: italic; }

/* ---------- Listing detail page --------------------------------------- */
.detail-hero {
  position: relative; height: 52vh; min-height: 360px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(10,22,38,.82)); }
.detail-hero-inner { position: relative; z-index: 2; color: var(--white); padding-bottom: 2.2rem; }
.detail-hero-inner .listing-tag { position: static; display: inline-block; margin-bottom: .9rem; }
.detail-hero-inner h1 { color: var(--white); margin-bottom: .3rem; }
.detail-hero-inner p { color: rgba(255,255,255,.85); margin: 0; }

.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.fact-row { display: flex; flex-wrap: wrap; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; }
.fact { }
.fact span { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.fact strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); font-weight: 600; }

.amenity-list { list-style: none; columns: 2; gap: 1rem; }
.amenity-list li { padding: .35rem 0 .35rem 1.6rem; position: relative; font-size: .95rem; }
.amenity-list li::before { content: ''; position: absolute; left: 0; top: .75rem; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }

.agent-card {
  position: sticky; top: 95px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  box-shadow: var(--shadow-md);
}
.agent-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid var(--gold); }
.agent-card h4 { color: var(--white); margin-bottom: .1rem; }
.agent-card .agent-role { color: var(--gold); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.4rem; }
.agent-card .btn { margin-bottom: .7rem; }
.agent-card .btn:last-child { margin-bottom: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .9rem;
}
.gallery-grid figure { margin: 0; }
.gallery-item {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; cursor: pointer; transition: var(--ease);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-grid figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,16,28,.94);
  display: none; align-items: center; justify-content: center;
  padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.25); cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; transition: var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.lightbox-close { top: 4vh; right: 4vw; }
.lightbox-nav.prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 3vw; top: 50%; transform: translateY(-50%); }

/* ---------- Reviews --------------------------------------------------- */
.review-wrap { display: grid; grid-template-columns: .8fr 1.4fr; gap: 2.5rem; align-items: center; }
.review-agent {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; text-align: center;
}
.review-agent img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.2rem; border: 3px solid var(--gold-tint); }
.review-agent h4 { margin-bottom: .25rem; }
.review-agent .agent-role { color: var(--muted); font-size: .85rem; margin-bottom: 1.4rem; }
.review-stars { color: var(--gold); letter-spacing: .15em; margin-bottom: 1.4rem; }
.quote-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.6rem 2.4rem 2rem;
}
.quote-card::before {
  content: '\201C'; font-family: var(--font-head); font-size: 4.5rem; color: var(--gold);
  position: absolute; top: .4rem; left: 1.3rem; line-height: 1;
}
.quote-card p { font-style: italic; font-size: 1.05rem; color: var(--text); padding-top: 1.6rem; margin-bottom: 1.3rem; }
.quote-card .reviewer { font-family: var(--font-head); color: var(--navy); font-weight: 600; }
.quote-card a { color: var(--gold); font-size: .9rem; font-weight: 600; display: inline-block; margin-top: .8rem; }
.quote-card a:hover { color: var(--gold-soft); }

/* ---------- Contact --------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info .info-block { margin-bottom: 1.5rem; }
.contact-info .info-block strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.contact-info a.big-link { font-size: 1.2rem; color: var(--gold); font-weight: 700; }
.social-row a { margin-right: 1.1rem; color: var(--navy); font-weight: 600; font-size: .92rem; }
.social-row a:hover { color: var(--gold); }
.map-embed { width: 100%; height: 260px; border: 0; border-radius: var(--radius); margin-top: 1rem; }

.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--navy); }
.form-control {
  width: 100%; padding: .8rem .9rem; font-family: var(--font-body); font-size: .95rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--cream); transition: var(--ease);
}
.form-control:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(197,160,89,.15); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------------------------------------------------- */
footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem; margin-bottom: 2.5rem; }
footer h3 { color: var(--white); margin-bottom: .8rem; }
footer h3 span { color: var(--gold); }
footer h5 { color: var(--gold); font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col p { font-size: .92rem; margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .92rem; display: block; padding: .15rem 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-bottom .disclaimer { font-size: .76rem; margin-top: .5rem; }

/* ---------- Reveal animation ------------------------------------------ */
/* Only hide when JS is active; never leave content invisible otherwise. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 860px) {
  .split, .split--reverse, .detail-grid, .contact-grid, .review-wrap, .footer-top {
    grid-template-columns: 1fr;
  }
  .split--reverse .portrait-frame { order: -1; }
  .agent-card { position: static; }
  .review-agent { max-width: 360px; margin: 0 auto; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--navy-deep); padding: .5rem 0 1rem;
    border-bottom: 1px solid rgba(197,160,89,.22);
  }
  .nav-links.active { display: flex; }
  .nav-links a { padding: .85rem 7%; }
  .nav-links a:not(.nav-phone)::after { display: none; }
  .nav-phone { margin: .6rem 7% 0; text-align: center; }
  .amenity-list { columns: 1; }
}

/* ==========================================================================
   Conversion CTA band  +  sticky mobile contact bar
   ========================================================================== */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 85% -20%, rgba(197,160,89,.22), transparent 60%);
}
.cta-band-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding: clamp(2.6rem, 5vw, 3.6rem) 0;
}
.cta-band .eyebrow { color: var(--gold-soft); }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 46ch; }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sticky mobile contact bar */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    padding: .55rem; background: var(--navy-deep);
    border-top: 1px solid rgba(197,160,89,.32);
    box-shadow: 0 -6px 20px rgba(0,0,0,.25);
  }
  .mobile-bar .btn { padding: .8rem; font-size: .92rem; border-radius: 6px; }
  body { padding-bottom: 66px; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1; }
}
