/* =========================================================
   Sky Homes Dubai — design tokens
   Palette: warm ivory ground, deep ink-navy, brass/gold accent,
   quiet sage for secondary signal. Serif display (Fraunces)
   for headlines, Inter for body/UI — a boutique Dubai property
   consultancy with a dusk-skyline, gold-on-ink hero moment.
   ========================================================= */

:root {
  --ivory: #F7F4EE;
  --ivory-dim: #EFEADF;
  --ink: #14182A;
  --ink-2: #1B2140;
  --ink-soft: #3A4152;
  --brass: #C9A15A;
  --brass-bright: #E9C888;
  --brass-deep: #8A6B3B;
  --sage: #4A5D50;
  --sage-tint: #E7ECE6;
  --line: #DAD3C3;
  --line-dark: rgba(247,244,238,0.14);
  --white: #FFFFFF;
  --error: #A6432F;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1160px;
  --radius: 4px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.22,.9,.32,1);
  --shadow-card: 0 1px 2px rgba(20,24,42,0.04), 0 12px 32px -16px rgba(20,24,42,0.18);
  --shadow-card-hover: 0 4px 10px rgba(20,24,42,0.06), 0 24px 48px -18px rgba(20,24,42,0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

::selection { background: var(--brass); color: var(--ink); }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .option-card:focus-within {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * {
  animation: revealChild .6s var(--ease) both;
}
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: .02s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: .09s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: .23s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: .30s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: .37s; }
@keyframes revealChild {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247,244,238,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -18px rgba(20,24,42,0.35);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height .25s var(--ease);
}
.site-header.is-scrolled .container { height: 64px; }

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo .mark {
  color: var(--brass);
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
  transition: transform .5s var(--ease);
}
.logo:hover .mark { transform: rotate(90deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a:not(.nav-cta) {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 8px 12px;
  position: relative;
  transition: color .15s;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:not(.nav-cta):hover,
.site-nav a.active { color: var(--ink); }
.site-nav a:not(.nav-cta):hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  margin-left: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(201,161,90,0.55); }
.nav-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(233,200,136,0.55) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.nav-cta:hover::before { transform: translateX(120%); }

.nav-toggle { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 14px 28px -14px rgba(20,24,42,0.5); transform: translateY(-2px); }
.btn-primary::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(233,200,136,0.45) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover::before { transform: translateX(130%); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass-deep); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: scale(0);
  animation: rippleAnim .6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(3); opacity: 0; }
}

/* ---------- hero (dusk skyline) ---------- */

.hero {
  position: relative;
  background: radial-gradient(ellipse 90% 70% at 20% 0%, #232a4a 0%, var(--ink) 55%),
              var(--ink);
  color: var(--ivory);
  padding: 108px 0 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  top: -220px; right: -120px;
  background: radial-gradient(circle, rgba(201,161,90,0.28) 0%, rgba(201,161,90,0) 68%);
  pointer-events: none;
  filter: blur(2px);
  animation: driftGlow 14s ease-in-out infinite alternate;
}
@keyframes driftGlow {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(-30px, 40px) scale(1.08); }
}

.hero-cursor-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(233,200,136,0.10), transparent 65%);
  transition: background .1s linear;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247,244,238,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,244,238,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}

.eyebrow-plain {
  color: var(--brass-bright);
  font-size: 0.92rem;
  margin-bottom: 18px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow-plain .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass-bright);
  box-shadow: 0 0 0 4px rgba(233,200,136,0.18);
}
:not(.hero) .eyebrow-plain { color: var(--brass-deep); }
:not(.hero) .eyebrow-plain .dot { background: var(--brass-deep); box-shadow: 0 0 0 4px rgba(138,107,59,0.14); }

.hero h1 { color: var(--ivory); }

.hero p.lead {
  font-size: 1.15rem;
  margin-top: 18px;
  max-width: 46ch;
  color: #C6C9D4;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero .btn-outline { border-color: rgba(247,244,238,0.4); color: var(--ivory); }
.hero .btn-outline:hover { border-color: var(--brass); color: var(--brass-bright); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}

.hero-stats .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ivory);
  display: block;
  font-variant-numeric: tabular-nums;
}
.hero-stats .label { font-size: 0.87rem; color: #A6AAB8; }

.hero-panel {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: var(--ivory);
  position: relative;
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.hero-panel:hover { transform: translateY(-4px); border-color: rgba(201,161,90,0.4); }

.hero-panel h3 { color: var(--ivory); position: relative; }
.hero-panel p { color: #C6C9D4; position: relative; }

.hero-panel-list { list-style: none; margin: 22px 0 0; padding: 0; position: relative; }
.hero-panel-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.94rem;
  color: #E4E5EA;
  opacity: 0;
  transform: translateX(-8px);
  animation: liSlide .5s var(--ease) forwards;
}
.hero-panel-list li:nth-child(1) { animation-delay: .15s; }
.hero-panel-list li:nth-child(2) { animation-delay: .25s; }
.hero-panel-list li:nth-child(3) { animation-delay: .35s; }
.hero-panel-list li:nth-child(4) { animation-delay: .45s; }
.hero-panel-list li:nth-child(5) { animation-delay: .55s; }
@keyframes liSlide { to { opacity: 1; transform: translateX(0); } }
.hero-panel-list li:first-child { border-top: none; }
.hero-panel-list .tick { color: var(--brass-bright); font-weight: 600; }

.hero-skyline {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-top: 20px;
}
.hero-skyline svg { width: 100%; height: auto; display: block; }

/* ---------- sections ---------- */

section { padding: 76px 0; }
.section-border { border-bottom: 1px solid var(--line); }
.section-alt { background: var(--ivory-dim); }

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head p { margin-top: 12px; }

/* how it works / steps */

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.step-cell {
  --mx: 50%; --my: 50%;
  padding: 32px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease);
}
.step-cell::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(201,161,90,0.10), transparent 70%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.step-cell:hover::before { opacity: 1; }
.step-cell:hover { background: var(--white); }

.step-cell .idx {
  font-family: var(--font-display);
  color: var(--brass);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 14px;
  transition: transform .3s var(--ease);
}
.step-cell:hover .idx { transform: translateX(4px); }

.step-cell h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-cell p { font-size: 0.92rem; margin: 0; }

/* value grid */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-item {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.value-item::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(201,161,90,0.14), transparent 70%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.value-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(201,161,90,0.35);
}
.value-item:hover::before { opacity: 1; }

.value-item h3 { display: flex; align-items: center; gap: 10px; }
.value-item .glyph {
  width: 34px; height: 34px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-deep);
  font-family: var(--font-display);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.value-item:hover .glyph { background: var(--ink); color: var(--brass-bright); border-color: var(--ink); }

/* ---------- featured communities gallery ---------- */

.community-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--brass) transparent;
}
.community-scroller::-webkit-scrollbar { height: 6px; }
.community-scroller::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

.community-card {
  scroll-snap-align: start;
  flex: 0 0 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  position: relative;
  height: 320px;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.community-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 28px 50px -22px rgba(20,24,42,0.45); }

.community-card .cc-art { position: absolute; inset: 0; }
.community-card .cc-art svg { width: 100%; height: 100%; }

.community-card .cc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,42,0) 30%, rgba(20,24,42,0.92) 100%);
}

.community-card .cc-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px;
}
.community-card .cc-tag {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--brass-bright);
  margin-bottom: 6px;
  display: block;
}
.community-card h3 { color: var(--ivory); font-size: 1.15rem; margin-bottom: 4px; }
.community-card .cc-price { font-size: 0.85rem; color: #C6C9D4; margin: 0; }

.community-nav {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.community-nav button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background .2s, border-color .2s, transform .2s;
}
.community-nav button:hover { border-color: var(--brass); transform: translateY(-2px); }

/* ---------- testimonial carousel ---------- */

.testimonial-wrap { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-track { position: relative; min-height: 168px; }
.testimonial-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.testimonial-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.testimonial-slide blockquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 18px;
}
.testimonial-slide cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testimonial-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: var(--line); cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.testimonial-dots button.active { background: var(--brass); transform: scale(1.3); }

/* proof strip */

.proof-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 26px 0;
}
.proof-strip .item { font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.proof-strip .item b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: block;
  font-variant-numeric: tabular-nums;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--ivory);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(201,161,90,0.22), transparent 68%);
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
}
.cta-band h2 { color: var(--ivory); margin-bottom: 6px; }
.cta-band p { color: #C6C9D4; margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}

.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; transition: color .15s; }
.footer-grid a:hover { color: var(--brass-deep); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

.footer-reg-strip {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 4px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.footer-reg-strip a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer-reg-strip strong { color: var(--ink); font-weight: 600; }

/* ---------- cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 300;
  background: var(--ink);
  color: var(--ivory);
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line-dark);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
  animation: bannerUp .5s var(--ease);
}
@keyframes bannerUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner p {
  color: #D6D8DE;
  margin: 0;
  font-size: 0.86rem;
  max-width: 68ch;
}
.cookie-banner a { color: var(--ivory); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 18px; font-size: 0.86rem; }
.cookie-banner .btn-outline { border-color: rgba(247,244,238,0.4); color: var(--ivory); }
.cookie-banner .btn-outline:hover { border-color: var(--brass); color: var(--brass); }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner-actions { justify-content: flex-start; }
}

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  display: none;
  transform: translateY(100%);
  transition: transform .35s var(--ease);
  box-shadow: 0 -12px 30px -18px rgba(20,24,42,0.3);
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (max-width: 880px) {
  .sticky-cta { display: block; }
}

/* ---------- forms (shared) ---------- */

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(201,161,90,0.18);
}

.field { margin-bottom: 20px; }
.field-hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
.field-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 6px;
  display: none;
}
.field.invalid input,
.field.invalid select { border-color: var(--error); }
.field.invalid .field-error { display: block; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  background: var(--white);
  transition: border-color .2s, background .2s, transform .18s var(--ease), box-shadow .2s;
  position: relative;
}
.option-card:hover { border-color: var(--brass); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.option-card input { position: absolute; opacity: 0; }
.option-card .oc-title { font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }
.option-card .oc-sub { font-size: 0.82rem; color: var(--ink-soft); }
.option-card.selected {
  border-color: var(--brass);
  background: var(--sage-tint);
  animation: cardPop .3s var(--ease);
}
@keyframes cardPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.option-card.selected .oc-title::after {
  content: "✓";
  color: var(--brass-deep);
  float: right;
}

/* ---------- budget slider ---------- */

.budget-slider-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.budget-readout {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.budget-readout .cur { font-size: 1.1rem; color: var(--brass-deep); vertical-align: 4px; margin-right: 6px; }
.budget-sub { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 22px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass) var(--fill, 30%), var(--line) var(--fill, 30%), var(--line) 100%);
  outline: none;
  margin: 10px 0 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--brass-bright);
  cursor: pointer;
  transition: transform .15s;
  box-shadow: 0 4px 12px rgba(20,24,42,0.3);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--brass-bright);
  cursor: pointer;
}
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 6px; background: var(--line);
}

.budget-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.budget-presets { display: flex; gap: 10px; flex-wrap: wrap; }
.budget-chip {
  border: 1px solid var(--line);
  background: var(--ivory);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.budget-chip:hover { border-color: var(--brass); transform: translateY(-1px); }
.budget-chip.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ---------- simple content pages (about/contact/policy) ---------- */

.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero p { font-size: 1.05rem; }

.policy-body h2 { margin-top: 2em; font-size: 1.3rem; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body ul { color: var(--ink-soft); padding-left: 20px; }
.policy-body li { margin-bottom: 8px; }
.policy-updated { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 40px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.team-card .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--sage);
  font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.team-card h3 { margin-bottom: 2px; font-size: 1.02rem; }
.team-card .role { color: var(--brass-deep); font-size: 0.85rem; margin-bottom: 10px; }
.team-card p { font-size: 0.9rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-info-item:first-child { border-top: none; padding-top: 0; }
.contact-info-item h3 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p { margin: 0; font-size: 0.94rem; }

/* ---------- funnel-specific ---------- */

.funnel-shell {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  background: var(--ivory);
}

.funnel-progress-wrap {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.funnel-progress-bar {
  height: 4px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.funnel-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 16.6%;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass-bright));
  transition: width .45s var(--ease);
}
.funnel-progress-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  width: 40px;
  animation: progressShimmer 1.6s ease-in-out infinite;
}
@keyframes progressShimmer {
  from { transform: translateX(-40px); }
  to { transform: translateX(240px); }
}
.funnel-progress-meta {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 28px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.funnel-step-dots {
  display: flex;
  gap: 6px;
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 28px 0;
}
.funnel-step-dots span {
  height: 3px; flex: 1;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.funnel-step-dots span.done,
.funnel-step-dots span.current { background: var(--brass); }

.funnel-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0 60px;
}

.funnel-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

.funnel-step { display: none; }
.funnel-step.active { display: block; animation: stepIn .4s var(--ease); }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.funnel-step .kicker {
  color: var(--brass-deep);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.funnel-step h2 { margin-bottom: 8px; }
.funnel-step .sub { margin-bottom: 30px; }

.funnel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
}
.funnel-nav .back-link {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  transition: color .15s;
}
.funnel-nav .back-link:hover { color: var(--ink); }
.funnel-nav .spacer { flex: 1; }

.trust-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 22px;
}
.trust-note .lock { color: var(--sage); }

/* ---------- thank you (success) ---------- */

.thankyou-body {
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
  padding: 100px 28px;
  position: relative;
}
.thankyou-body .badge {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
  position: relative;
}
.thankyou-body .badge svg { width: 28px; height: 28px; }
.thankyou-body .badge svg path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck .6s .2s var(--ease) forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.confetti-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: confettiFloat 2.4s ease-out forwards;
}
@keyframes confettiFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-70px) scale(1); }
}

.thankyou-body ul { padding-left: 20px; color: var(--ink-soft); }
.thankyou-body li { margin-bottom: 8px; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-skyline { margin-top: 40px; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .team-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .option-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 76px 0 0; }
  section { padding: 54px 0; }
  .community-card { flex: 0 0 240px; height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
