/* ==========================================================================
   Scott Duthie — White & Co | UAE Off-Plan & Real Estate Investment Consultant
   Shared stylesheet
   ========================================================================== */

:root {
  --navy: #455b58;
  --navy-light: #6a7c79;
  --gold: #b3a48f;
  --gold-light: #beb2a0;
  --off-white: #f7f5f1;
  --text-dark: #2d3b39;
  --text-muted: #696559;
  --border: #e4e0d8;
  --text-on-dark: #d1c8bc;
  --text-on-dark-dim: #918d81;
  --radius: 6px;
  --max-width: 1140px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  margin: 0 0 0.6em 0;
  line-height: 1.2;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em 0; color: var(--text-muted); }

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8em;
  display: block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1ebc59; }

.btn-block { width: 100%; justify-content: center; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }

/* ---- Header / Nav ---- */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo .logo-accent { color: var(--gold); }
.logo small {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--text-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--gold); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 1060px) {
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 16px;
  }
  nav.main-nav li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-wrap { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ---- Header alignment ---- */
.nav-cta .btn-outline { display: none; }
.nav-wrap { align-items: center; gap: 24px; }
.logo { text-align: center; align-items: center; justify-content: center; }
.logo-title { white-space: nowrap; }
nav.main-nav a { white-space: nowrap; display: block; line-height: 1.2; text-align: center; }
@media (min-width: 1061px) {
  .main-nav { flex: 1; display: flex; justify-content: center; align-items: center; }
  .main-nav ul { align-items: center; justify-content: center; gap: 22px; }
  .main-nav li { display: flex; align-items: center; }
  nav.main-nav a { font-size: 0.9rem; }
  .nav-cta { align-items: center; }
}
@media (min-width: 1061px) and (max-width: 1180px) {
  .nav-cta .btn-outline { display: none; }
  .nav-wrap { gap: 14px; }
  .main-nav ul { gap: 14px; }
  nav.main-nav a { font-size: 0.8rem; }
  .logo { font-size: 1.1rem; }
  .container.nav-wrap { padding-left: 24px; padding-right: 24px; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 90px 0 100px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { color: #fff; font-size: 3rem; }
.hero p.lead { color: var(--text-on-dark); font-size: 1.1rem; max-width: 520px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}

/* ---- Placeholder image blocks ---- */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #e4ddd0, #e4ddd0 10px, #ede7dc 10px, #ede7dc 20px);
  border: 1px dashed #a89f8c;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  min-height: 260px;
}
.img-placeholder.tall { min-height: 400px; }
.img-placeholder.square { aspect-ratio: 1/1; min-height: 0; }
.img-placeholder.wide { aspect-ratio: 16/9; min-height: 0; }
.photo-banner { display: block; width: 100%; max-width: 640px; height: auto; border-radius: var(--radius); margin: 0 auto; }
.photo-wide { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }

/* ---- Headshot ---- */
.headshot {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  justify-self: center;
}

/* ---- Sections ---- */
section { padding: 80px 0; }
section.alt { background: #fff; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head p { margin: 0 auto; }

/* ---- Feature grid ---- */
.grid {
  display: grid;
  gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(179,164,143,0.15);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 18px;
}

/* ---- Stats bar ---- */
.stats-bar {
  background: var(--navy);
  color: #fff;
  padding: 50px 0;
}
.stats-bar .grid-4 { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.stat-label { color: var(--text-on-dark); font-size: 0.9rem; }

/* ---- Process steps ---- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold);
  min-width: 44px;
}

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 60px 24px;
  border-radius: var(--radius);
}
.cta-banner h2 { color: var(--navy); }
.cta-banner .cta-row { justify-content: center; }

/* ---- Project cards ---- */
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.project-card .body { padding: 22px; }
.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.project-price {
  color: var(--gold);
  font-weight: 700;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 18px;
  margin-bottom: 0;
}

.form-success {
  background: #fff;
  border: 1px solid var(--gold);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.form-success h3 { margin: 0; font-size: 1.2rem; }
.form-error { color: #9b3b2e; font-size: 0.9rem; margin-top: 14px; }
.form-success[hidden], .form-error[hidden], #contact-form[hidden] { display: none; }

/* ---- Contact info list ---- */
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list .label { color: var(--navy); font-weight: 600; min-width: 90px; }

/* ---- Footer ---- */
footer.site-footer {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 50px 0 24px;
}
footer.site-footer .foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}
footer.site-footer h4 { color: #fff; font-size: 1rem; }
footer.site-footer a, footer.site-footer p { color: var(--text-on-dark-dim); }
footer.site-footer a { transition: color 0.2s; }
footer.site-footer a:hover { color: var(--gold); }
/* ---- Project cards: show full photo, smaller ---- */
.grid-3:has(.project-card) { max-width: 960px; margin-left: auto; margin-right: auto; }
.grid-3:has(.project-card) { align-items: stretch; }
.project-card { display: flex; flex-direction: column; height: 100%; }
.project-card img { width: 100%; aspect-ratio: 16/9 !important; height: auto !important; object-fit: cover !important; }
.project-card .body { display: flex; flex-direction: column; flex: 1; }
.project-card .project-meta { flex-wrap: wrap; gap: 4px 12px; min-height: 2.6em; align-items: flex-start; }
.project-card .btn-block { margin-top: auto; }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--text-on-dark-dim);
  text-align: center;
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 30px auto 0;
  text-align: center;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-lg { margin-top: 60px; }

/* ==========================================================================
   Investor Readiness Assessment (quiz)
   ========================================================================== */
.meta-row {
  display: flex;
  gap: 26px;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--text-on-dark);
}
.meta-row b { color: #fff; }

.assess-wrap { max-width: 640px; margin: 0 auto; }

.assess-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}
@media (max-width: 600px) {
  .assess-card { padding: 30px 22px; }
}

.assess-link {
  color: var(--gold);
  font-weight: 600;
}
.assess-link:hover { color: var(--navy); }

/* progress */
.progress { margin-bottom: 30px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.progress-label .pct { color: var(--gold); font-weight: 700; }
.bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold); width: 0%; transition: width 0.35s ease; }

.q-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.q-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; }

.opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.opt {
  text-align: left;
  background: var(--off-white);
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.opt:hover { background: #fff; border-left-color: var(--gold); }
.opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt.selected { background: #fff; border-color: var(--gold); border-left-color: var(--gold); }
.opt .opt-alt { display: block; margin-top: 4px; font-size: 0.82em; font-weight: 400; color: #777; }

.assess-back {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 6px 0;
}
.assess-back:hover { color: var(--navy); }

/* gate */
.gate-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(179,164,143,0.15);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 18px;
}
.gate-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; text-align: center; }

/* gauge */
.gauge-box { display: flex; flex-direction: column; align-items: center; margin: 4px 0 24px; }
.gauge-track { stroke: var(--border); }
.gauge-fill { stroke: var(--gold); transition: stroke-dashoffset 1.2s ease; }
.gauge-score {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: -84px;
}
.gauge-unit { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: -4px; }

.assess-tier {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  margin: 24px 0 6px;
}
.assess-tier-desc { color: var(--text-muted); text-align: center; font-size: 0.95rem; margin-bottom: 26px; }

.assess-insights { border-top: 1px solid var(--border); margin-bottom: 30px; }
.assess-insight {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-dark);
}
.assess-insight .tick { color: var(--gold); font-weight: 700; flex-shrink: 0; }

.hidden { display: none; }
.fade { animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; }
  .bar-fill, .btn, .opt, .gauge-fill { transition: none; }
}
