:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --paper: #ffffff;
  --ink: #202124;
  --muted: #666b72;
  --line: #d9d8d0;
  --green: #1f5d49;
  --green-dark: #123a2e;
  --gold: #b8873b;
  --shadow: 0 18px 50px rgba(20, 29, 24, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(32, 33, 36, 0.08);
  background: rgba(247, 247, 243, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: white;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--green);
}

.hero {
  min-height: 74vh;
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(rgba(18, 58, 46, 0.72), rgba(18, 58, 46, 0.62)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80")
      center / cover;
  color: white;
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c780;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 22px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: white;
}

.hero .button.primary {
  background: white;
  color: var(--green-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 64px);
}

.section-heading {
  margin-bottom: 34px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.split > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
}

.stats {
  display: grid;
  gap: 12px;
}

.stats div,
.property-card,
.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.stats div {
  padding: 20px;
}

.stats strong,
.stats span {
  display: block;
}

.stats span {
  margin-top: 4px;
  color: var(--muted);
}

.muted {
  background: #eeeee7;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.property-card {
  min-height: 250px;
  padding: 26px;
}

.property-card p {
  color: var(--muted);
}

.managed-properties {
  margin-top: 0;
}

.managed-properties-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.managed-properties-header h3 {
  margin-bottom: 0;
}

.carousel-controls {
  display: inline-flex;
  gap: 8px;
}

.carousel-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.carousel-button:hover {
  border-color: var(--green);
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.managed-carousel {
  overflow: hidden;
}

.managed-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.managed-list::-webkit-scrollbar {
  display: none;
}

.managed-card {
  display: flex;
  flex: 0 0 calc((100% - 32px) / 3);
  min-height: 306px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.managed-card:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.managed-card span {
  display: block;
  margin: 20px 22px 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.managed-card h4 {
  margin: 12px 22px 6px;
  font-size: 1.24rem;
  line-height: 1.15;
}

.managed-card p {
  margin: 0 22px 18px;
  color: var(--muted);
}

.managed-card a {
  margin: auto 22px 22px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.managed-card a:hover {
  text-decoration: underline;
}

.property-summary {
  display: grid;
  width: calc(100% - 44px);
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin: 0 22px 20px;
}

.property-metrics {
  display: grid;
  gap: 8px;
}

.property-metrics div {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f3;
  padding: 10px 12px;
}

.property-metrics small,
.property-metrics strong {
  display: block;
}

.property-metrics small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.property-metrics strong {
  color: var(--green-dark);
  font-size: 1rem;
  line-height: 1.18;
}

.managed-card img,
.property-placeholder {
  width: 100%;
  height: 124px;
  border-radius: 8px;
  object-fit: cover;
  background:
    linear-gradient(rgba(31, 93, 73, 0.15), rgba(31, 93, 73, 0.15)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80")
      center / cover;
}

.property-type {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(31, 93, 73, 0.16);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card {
  padding: 24px;
}

.contact-card p {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .split,
  .property-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .managed-card {
    flex-basis: min(78vw, 420px);
  }

  .property-metrics {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 66vh;
  }
}

@media (max-width: 520px) {
  .managed-properties-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-controls {
    align-self: flex-end;
  }

  .managed-card {
    flex-basis: 88vw;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
  }

  .button {
    width: 100%;
  }
}
