:root {
  --navy: #0b1f3a;
  --blue: #143f73;
  --light-blue: #eaf3ff;
  --gold: #c8a45d;
  --gold-soft: #fff2cf;
  --cream: #fbf5ea;
  --white: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #e9dfd0;
  --shadow: 0 24px 70px rgba(11,31,58,.14);
  --shadow-strong: 0 34px 110px rgba(11,31,58,.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(200,164,93,.2), transparent 26rem),
    linear-gradient(180deg, #ead9bf 0%, #f7efe2 45%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.index-page {
  background:
    radial-gradient(circle at 10% 8%, rgba(200,164,93,.22), transparent 26rem),
    radial-gradient(circle at 90% 18%, rgba(255,255,255,.38), transparent 24rem),
    linear-gradient(180deg, #d9c3a3 0%, #ead9bf 38%, #f4eadb 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 1rem 5vw;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233,223,208,.8);
}

.brand {
  display: grid;
  gap: .15rem;
  font-weight: 900;
  color: var(--navy);
}

.brand small {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

nav a {
  padding: .65rem .85rem;
  border-radius: 999px;
  color: var(--blue);
  font-weight: 800;
  font-size: .94rem;
}

nav a:hover,
.language-pill {
  background: var(--navy);
  color: white;
}

.graphic-hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  padding: 4.5rem 5vw 5rem;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .7;
  pointer-events: none;
}

.shape-one {
  width: 260px;
  height: 260px;
  left: -90px;
  top: 140px;
  background: rgba(200,164,93,.18);
}

.shape-two {
  width: 360px;
  height: 360px;
  right: -130px;
  bottom: 80px;
  background: rgba(20,63,115,.14);
}

.hero-top {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(950px, 92vw);
  margin: 0 auto 3rem;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
}

.hero-top h1 {
  margin: 0 auto 1rem;
  max-width: 900px;
  font-size: clamp(2.3rem, 5vw, 5.4rem);
  line-height: .96;
  color: var(--navy);
  letter-spacing: -.055em;
}

.hero-top p {
  max-width: 740px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.1rem;
}

.graphic-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 440px) minmax(220px, 1fr);
  grid-template-rows: auto auto;
  gap: 1.4rem;
  align-items: center;
  width: min(1220px, 94vw);
  margin: 0 auto;
}

.photo-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 1rem;
}

.photo-card {
  position: relative;
  padding: 1.1rem;
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,248,234,.86));
  border: 1px solid rgba(233,223,208,.95);
  box-shadow: var(--shadow-strong);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--gold-soft), var(--light-blue));
  border: 10px solid white;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.quick-guidance-box {
  position: absolute;
  top: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  width: min(86%, 310px);
  padding: .85rem .95rem;
  border-radius: 20px;
  background: rgba(11,31,58,.94);
  color: #fff;
  text-align: center;
  border: 2px solid var(--gold);
  box-shadow: 0 18px 45px rgba(11,31,58,.32);
  animation: quickPulse 1.35s infinite;
}

.quick-guidance-box span {
  display: block;
  margin-bottom: .55rem;
  font-size: .88rem;
  font-weight: 1000;
  letter-spacing: .04em;
}

.quick-guidance-box div {
  display: flex;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.quick-guidance-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .42rem .62rem;
  border-radius: 999px;
  background: #fff2cf;
  color: var(--navy);
  font-size: .76rem;
  font-weight: 1000;
}

.quick-guidance-box a:hover {
  background: #fff;
}

@keyframes quickPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 18px 45px rgba(11,31,58,.32), 0 0 0 0 rgba(200,164,93,.72);
  }

  50% {
    opacity: .82;
    box-shadow: 0 18px 45px rgba(11,31,58,.32), 0 0 0 10px rgba(200,164,93,0);
  }
}

.name-card {
  position: relative;
  margin: -3rem auto 0;
  width: calc(100% - 2rem);
  padding: 1.2rem;
  border-radius: 26px;
  background: rgba(11,31,58,.94);
  color: white;
  text-align: center;
  box-shadow: 0 18px 45px rgba(11,31,58,.32);
}

.name-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: white;
  letter-spacing: -.04em;
}

.name-card p:last-child {
  margin: .4rem 0 0;
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}

.trust-strip div {
  padding: 1rem .7rem;
  text-align: center;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-strip strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}

.trust-strip span {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.feature-box {
  min-height: 220px;
  padding: 1.45rem;
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(233,223,208,.95);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 90px rgba(11,31,58,.18);
  border-color: rgba(200,164,93,.85);
}

.feature-box span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 1000;
}

.feature-box h2 {
  margin: 1rem 0 .55rem;
  color: var(--navy);
  font-size: 1.8rem;
  letter-spacing: -.035em;
}

.feature-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.box-explore {
  grid-column: 1;
  grid-row: 1;
  margin-right: 1.2rem;
}

.box-homes {
  grid-column: 3;
  grid-row: 1;
  margin-left: 1.2rem;
}

.box-investment {
  grid-column: 1;
  grid-row: 2;
  margin-right: 1.2rem;
}

.box-rentals {
  grid-column: 3;
  grid-row: 2;
  margin-left: 1.2rem;
}

.welcome-card {
  width: min(1080px, 90vw);
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,246,228,.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.welcome-icon {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: var(--navy);
  color: white;
  font-size: 2rem;
  font-weight: 1000;
}

.welcome-card h2,
.section-heading h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.welcome-card p,
.section-heading p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.04rem;
}

.cta-row,
.wizard-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.3rem;
  flex-wrap: wrap;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: .95rem 1.3rem;
  font-weight: 900;
  font-size: .98rem;
  line-height: 1.2;
}

.primary,
button {
  background: var(--navy);
  color: white;
}

.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

.testimonials {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 1.4rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .6rem;
}

.testimonial-grid article {
  position: relative;
  padding: 1.25rem;
  border-radius: 28px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stars {
  color: var(--gold);
  font-weight: 1000;
  margin-bottom: .6rem;
  letter-spacing: .08em;
}

.testimonial-grid p {
  margin: 0;
  color: #3d4655;
  line-height: 1.65;
}

.page-wrap {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 4.5rem 0;
}

.page-hero {
  padding: 3rem 0;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.lead-section,
.explore-showcase,
.manual-property-section {
  padding: 2rem;
  border-radius: 34px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.manual-property-section {
  margin-top: 2rem;
}

.lead-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.lead-section h2,
.showcase-intro h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.lead-section p,
.showcase-intro p {
  color: var(--muted);
  line-height: 1.7;
}

.lead-form {
  display: grid;
  gap: .9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  font: inherit;
  background: #fffdf9;
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(200,164,93,.45);
  outline-offset: 3px;
}

.form-note {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: .9rem 1rem;
  border-radius: 16px;
  background: #eaf7ef;
  color: #146c2e;
  font-weight: 800;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: .5rem;
}

.wizard-progress span {
  padding: .7rem .8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  text-align: center;
}

.wizard-progress span.active {
  background: var(--navy);
  color: #fff;
}

.wizard-step {
  display: none;
  gap: .9rem;
}

.wizard-step.active {
  display: grid;
}

.guidance-output {
  padding: 1.3rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,242,207,.78));
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(11,31,58,.1);
}

.guidance-output h3 {
  margin: 0 0 .7rem;
  color: var(--navy);
  font-size: 1.55rem;
}

.guidance-output p {
  color: var(--muted);
  line-height: 1.7;
}

.guidance-output small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

#quick-questions,
#featured-properties {
  scroll-margin-top: 7rem;
}

.showcase-intro {
  max-width: 780px;
  margin-bottom: 1.6rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.video-card,
.property-card,
.manual-property-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(11,31,58,.1);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-fallback-link {
  padding: 1rem;
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
}

.video-fallback-link a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.property-photo-space,
.property-image-placeholder,
.manual-property-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(200,164,93,.38), rgba(255,242,207,.72)),
    linear-gradient(180deg, #d9c3a3, #f4eadb);
}

.property-photo-space img,
.manual-property-image img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
}

.property-photo-space .photo-placeholder,
.manual-property-image .photo-placeholder {
  display: grid;
  place-items: center;
  gap: .35rem;
  width: 100%;
  min-height: 240px;
  padding: 1.5rem;
  text-align: center;
  color: var(--navy);
  font-weight: 1000;
}

.property-photo-space .photo-placeholder small,
.manual-property-image .photo-placeholder small {
  display: block;
  max-width: 260px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.45;
}

.manual-property-image > span:not(.photo-placeholder),
.property-link-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 3;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(11,31,58,.92);
  color: white;
  font-size: .76rem;
  font-weight: 1000;
}

.property-image-placeholder span {
  display: block;
  font-size: 1.8rem;
  font-weight: 1000;
  color: var(--navy);
}

.property-card-content,
.manual-property-content {
  padding: 1.4rem;
}

.property-card-content h3,
.manual-property-content h3 {
  margin: 0 0 .8rem;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1.15;
}

.property-card-content p,
.manual-property-content p {
  color: var(--muted);
  line-height: 1.7;
}

.manual-property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.bottom-contact-bar {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 1.1rem 5vw;
}

.bottom-contact-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: .94rem;
}

.bottom-contact-inner a {
  color: #f6d28b;
  font-weight: 800;
}

.crm-private-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(200,164,93,.18), transparent 26rem),
    linear-gradient(180deg, #ead9bf 0%, #f7efe2 100%);
}

.crm-login-card {
  width: min(520px, 92vw);
  margin: 5rem auto;
  padding: 2rem;
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.crm-login-card h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 1rem;
}

.crm-dashboard-hidden {
  display: none;
}

.login-error {
  display: none;
  padding: .9rem 1rem;
  border-radius: 16px;
  background: #ffe8e8;
  color: #9b1c1c;
  font-weight: 800;
}

.logout-button {
  margin-top: 1rem;
}

.crm-tools {
  display: grid;
  grid-template-columns: 1fr 240px auto auto;
  gap: .75rem;
  margin-bottom: 1rem;
}

.danger {
  background: #9b1c1c;
}

.crm-table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.crm-table th,
.crm-table td {
  padding: .9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: .92rem;
}

.crm-table th {
  background: var(--cream);
  color: var(--navy);
}

.crm-table select {
  min-width: 130px;
  padding: .55rem;
}

.empty-state {
  padding: 1.25rem;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 2rem 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.45);
}

@media (max-width: 1040px) {
  .graphic-stage,
  .lead-section,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .manual-property-grid {
    grid-template-columns: 1fr 1fr;
  }

  .photo-panel,
  .box-explore,
  .box-homes,
  .box-investment,
  .box-rentals {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
  }

  .photo-panel {
    order: -1;
    max-width: 440px;
    margin: 0 auto;
  }

  .feature-box {
    min-height: auto;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .crm-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
  }

  nav a {
    padding: .55rem .7rem;
  }

  .graphic-hero {
    padding-top: 2.5rem;
  }

  .trust-strip,
  .welcome-card,
  .wizard-progress,
  .manual-property-grid {
    grid-template-columns: 1fr;
  }

  .welcome-card {
    padding: 1.4rem;
  }

  .welcome-icon {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    font-size: 1.4rem;
  }

  .bottom-contact-inner {
    justify-content: flex-start;
  }

  .video-embed {
    min-height: 300px;
  }

  .quick-guidance-box {
    top: .95rem;
    width: min(90%, 285px);
    padding: .75rem .8rem;
  }

  .quick-guidance-box span {
    font-size: .8rem;
  }

  .quick-guidance-box a {
    font-size: .72rem;
    padding: .38rem .55rem;
  }

  .lead-section,
  .explore-showcase,
  .manual-property-section {
    padding: 1.25rem;
    border-radius: 26px;
  }

  .property-photo-space img,
  .manual-property-image img {
    height: 220px;
  }
}