/* ===== Base — "Meridian Gold" luxury real estate theme ===== */
:root {
  --bg: #0c0c0e;          /* page background, near-black charcoal */
  --navy: #101012;        /* dark section background (hero, footer, page-hero, cta-band) */
  --navy-dark: #060607;   /* deepest background (footer, hover shadows) */
  --gray-50: #121214;     /* subtle alt-section background */
  --gray-100: #1d1d20;    /* card borders / hover backgrounds */
  --gray-300: #33332f;    /* input borders */
  --gray-500: #9a9690;    /* muted secondary text */
  --gray-700: #cfcbc2;    /* body paragraph text on dark surfaces */
  --text: #f7f5f0;        /* headings / primary text, warm off-white */

  /* Meridian gold gradient */
  --gold-deep: #a9772f;
  --gold: #d9b25c;
  --gold-light: #f0d998;
  --gradient-gold: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 55%, var(--gold-light) 100%);
  --emerald: #1e5c48;     /* secondary accent for tags/eyebrows */

  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.65);
  --glow: 0 0 50px rgba(217, 178, 92, 0.2);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-700); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.section { padding: 84px 0; }
.section-sm { padding: 48px 0; }
.bg-alt { background: var(--gray-50); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy p { color: #c9c5bd; }

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .74rem;
  margin-bottom: 14px;
}
.eyebrow::before { content: "◆ "; color: var(--gold-deep); }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.lead { max-width: 640px; font-size: 1.08rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 4px; font-weight: 600; font-size: .92rem;
  letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--gradient-gold); color: #1a1408; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(217,178,92,.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: var(--gold); }
.btn-navy { background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.btn-navy:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.btn-block { width: 100%; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,12,14,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand img { width: 42px; height: 42px; flex: none; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; letter-spacing: .02em; }
.brand .brand-text small { font-size: .6rem; font-weight: 600; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; }
.footer-brand img { width: 38px; height: 38px; }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 13px; border-radius: 4px; font-weight: 500; font-size: .9rem; color: var(--gray-700); transition: background .15s ease, color .15s ease; }
.nav-links a:hover { background: var(--gray-100); color: var(--gold-light); }
.nav-links a.active { color: var(--gold-light); background: var(--gray-100); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 20px; font-size: .85rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--navy); padding: 10px 24px 20px; box-shadow: var(--shadow); display: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-text { display: none; }
}

/* ===== 3D skyline canvas backdrop ===== */
.skyline-canvas, .interior-canvas, .key-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1000px 550px at 85% -10%, rgba(217,178,92,.14), transparent 60%),
              radial-gradient(800px 450px at 5% 115%, rgba(30,92,72,.22), transparent 60%),
              var(--navy);
  color: #fff; padding: 108px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { color: #c9c5bd; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.8rem; color: var(--gold-light); font-weight: 700; }
.hero-stats div span { font-size: .85rem; color: #918d85; }

.hero-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px); }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; color: #e6e3db; font-size: .95rem; }
.hero-card .check { flex: none; width: 22px; height: 22px; border-radius: 3px; background: var(--gradient-gold); color: #1a1408; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; }

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

/* ===== Page header (inner pages) ===== */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(800px 380px at 85% -20%, rgba(217,178,92,.14), transparent 60%),
              radial-gradient(650px 320px at 10% 120%, rgba(30,92,72,.2), transparent 60%),
              var(--navy);
  color: #fff; padding: 68px 0 58px; text-align: center;
}
.breadcrumb { color: #918d85; font-size: .88rem; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ===== Grids / Cards ===== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: linear-gradient(180deg, #17171a, #0f0f11); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
a.card h3 { color: var(--text); }
a.card:hover h3 { color: var(--gold-light); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--glow); border-color: rgba(217,178,92,.4); }
.icon, .card .icon { width: 50px; height: 50px; border-radius: 6px; background: var(--gradient-gold); color: #1a1408; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; }
.icon img, .card .icon img { width: 26px; height: 26px; display: block; }
.card ul { padding-left: 18px; color: var(--gray-700); }

/* Property card image block */
.property-card { padding: 0; overflow: hidden; }
.property-media {
  height: 190px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #22231f, #141512);
  border-bottom: 1px solid var(--gray-100);
}
.property-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.property-card:hover .property-media img { transform: scale(1.06); }
.property-media .tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--gradient-gold); color: #1a1408; font-size: .72rem; font-weight: 800; padding: 5px 12px; border-radius: 3px; letter-spacing: .04em; }
.property-body { padding: 24px; }
.property-price { font-size: 1.4rem; font-weight: 700; color: var(--gold-light); margin-bottom: 4px; }
.property-meta { display: flex; gap: 16px; font-size: .85rem; color: var(--gray-500); margin-top: 12px; flex-wrap: wrap; }
.property-link { display: inline-block; margin-top: 16px; font-size: .85rem; font-weight: 700; color: var(--gold-light); }
a.card:hover .property-link { text-decoration: underline; }

/* ===== Numbered steps ===== */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step .num { counter-increment: step; flex: none; width: 44px; height: 44px; border-radius: 4px; background: var(--gradient-gold); color: #1a1408; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step .num::before { content: counter(step); }

/* ===== Testimonials ===== */
.quote-card { background: linear-gradient(180deg, #17171a, #0f0f11); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); }
.quote-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.quote-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-gold); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #1a1408; overflow: hidden; }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; background: var(--gradient-gold); overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.4); border: 2px solid rgba(217,178,92,.35); }
.avatar-lg img { width: 100%; height: 100%; display: block; object-fit: cover; }
.quote-person strong { display: block; font-size: .95rem; color: var(--text); }
.quote-person span { font-size: .82rem; color: var(--gray-500); }

/* ===== Pricing / plans ===== */
.price-card { text-align: center; position: relative; }
.price-card.featured { border: 1px solid var(--gold); box-shadow: var(--glow); transform: scale(1.03); }
.price-card .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient-gold); color: #1a1408; font-size: .72rem; font-weight: 800; padding: 5px 14px; border-radius: 3px; letter-spacing: .03em; }
.price-card .price { font-size: 2.2rem; font-weight: 800; margin: 14px 0 6px; color: var(--gold-light); }
.price-card .price span { font-size: .92rem; font-weight: 500; color: var(--gray-500); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; text-align: left; display: grid; gap: 10px; }
.price-card ul li { display: flex; gap: 10px; font-size: .92rem; color: var(--gray-700); }
.price-card ul li::before { content: "✓"; color: var(--gold); font-weight: 800; }

/* ===== FAQ accordion ===== */
.accordion { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.acc-item { border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #17171a, #0f0f11); }
.acc-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--text); }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; font-size: 1.3rem; color: var(--gold); transition: transform .2s ease; }
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-item .acc-body { padding: 0 24px 20px; color: var(--gray-700); }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--text); }
input, textarea, select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--gray-300); border-radius: 4px;
  font-size: .95rem; font-family: inherit; color: var(--text); background: #131315;
}
input::placeholder, textarea::placeholder { color: #706c64; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form-note { font-size: .82rem; color: var(--gray-500); }
.form-success { display: none; background: rgba(30,92,72,.18); border: 1px solid rgba(30,92,72,.5); color: #a9d9c4; padding: 14px 18px; border-radius: 4px; font-weight: 600; margin-top: 14px; }
.form-success.show { display: block; }

/* ===== Contact info blocks ===== */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon-sm { flex: none; width: 40px; height: 40px; border-radius: 4px; background: var(--gray-100); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-100); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.4) invert(.9) contrast(.9) sepia(.15); }

/* ===== CTA band ===== */
.cta-band {
  position: relative; overflow: hidden;
  background: radial-gradient(700px 300px at 15% 0%, rgba(217,178,92,.16), transparent 60%),
              radial-gradient(700px 300px at 90% 100%, rgba(30,92,72,.22), transparent 60%),
              linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 56px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9c5bd; }
.cta-band .hero-actions { justify-content: center; }
@media (max-width: 620px) { .cta-band { padding: 36px 22px; } }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #b5b1a8; padding: 60px 0 24px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .03em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #8a8680; font-size: .9rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: #605c56; }
.footer-bottom a:hover { color: var(--gold-light); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Misc pages (privacy/policy text) ===== */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose ul { color: var(--gray-700); }
.prose a { color: var(--gold-light); text-decoration: underline; }
.prose table { color: var(--gray-700); }
.prose th { color: var(--text); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: -200px; max-width: 760px; margin: 0 auto;
  background: #151517; color: #d9d5cd; border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  z-index: 200; transition: bottom .4s ease; border: 1px solid rgba(217,178,92,.28);
}
.cookie-banner.show { bottom: 20px; }
.cookie-banner p { color: #b5b1a8; font-size: .9rem; margin: 0; flex: 1 1 320px; }
.cookie-banner p a { color: var(--gold-light); font-weight: 700; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 10px 20px; font-size: .85rem; }
.cookie-actions .btn-ghost { background: transparent; color: #b5b1a8; border: 1px solid rgba(255,255,255,.2); }
.cookie-actions .btn-ghost:hover { background: rgba(255,255,255,.08); }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; } .cookie-actions { justify-content: center; } }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 4px;
  background: var(--gradient-gold); color: #1a1408; border: none; cursor: pointer; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; font-size: 1.1rem; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }
