:root {
  --color-ink: #111111;
  --color-ink-soft: #343434;
  --color-paper: #f5f2ec;
  --color-surface: #ffffff;
  --color-muted: #74706a;
  --color-line: #ded8cf;
  --color-accent: #806f51;
  --color-accent-dark: #5f5038;
  --color-sage: #66715f;
  --shadow-soft: 0 20px 60px rgba(17, 17, 17, 0.08);
  --shadow-card: 0 14px 34px rgba(17, 17, 17, 0.08);
  --radius: 8px;
  --container: 1160px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--color-ink);
  color: var(--color-surface);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-height);
  background: rgba(245, 242, 236, 0.92);
  border-bottom: 1px solid rgba(222, 216, 207, 0.74);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 242, 236, 0.95);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 150px;
}

.brand img {
  width: 158px;
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

.nav-panel,
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-panel {
  margin-left: auto;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--color-ink-soft);
  font-size: 0.91rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-accent-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius);
  background: var(--color-ink);
  color: var(--color-surface);
  font-size: 0.94rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.button-small {
  min-height: 44px;
  padding: 0.68rem 1.05rem;
  white-space: nowrap;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--color-surface);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--color-surface);
  border-color: var(--color-surface);
  color: var(--color-ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header-height) + 7rem) 0 7rem;
  background: var(--color-ink);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.48) 46%, rgba(17, 17, 17, 0.18)),
    linear-gradient(0deg, rgba(17, 17, 17, 0.62), rgba(17, 17, 17, 0.06) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-surface);
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-dark .eyebrow,
.cta-section .eyebrow {
  color: #d5c5a4;
}

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

h1 {
  max-width: 800px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.7rem, 5.7vw, 5.45rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.section {
  padding: 6.5rem 0;
}

.section-light {
  background: var(--color-surface);
}

.section-heading {
  max-width: 700px;
}

.section-heading p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.about-grid,
.why-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-copy > p,
.property-content > p,
.contact-details > p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.highlight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.highlight-row div,
.service-card,
.contact-form {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.highlight-row div {
  padding: 1.25rem;
}

.highlight-row strong,
.highlight-row span {
  display: block;
}

.highlight-row span {
  margin-top: 0.35rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  min-height: 260px;
  padding: 1.45rem;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 1.45rem 1.45rem auto;
  width: 34px;
  height: 2px;
  background: var(--color-sage);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(128, 111, 81, 0.5);
  box-shadow: var(--shadow-soft);
}

.card-index {
  display: inline-block;
  margin-bottom: 2.3rem;
  color: var(--color-accent);
  font-weight: 800;
}

.service-card p,
.why-list p {
  color: var(--color-muted);
}

.property-section {
  background: #ebe6dc;
}

.property-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.property-media {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.property-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.property-tags span {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--color-ink-soft);
  font-weight: 700;
}

.section-dark {
  background: var(--color-ink);
  color: var(--color-surface);
}

.section-dark .section-heading p,
.section-dark .why-list p {
  color: rgba(255, 255, 255, 0.68);
}

.why-list {
  display: grid;
  gap: 1rem;
}

.why-list div {
  padding: 0 0 1.05rem 1.35rem;
  border-left: 2px solid var(--color-accent);
}

.why-list strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.cta-section {
  padding: 5rem 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.72)),
    url("assets/real-estate-cta.png") center/cover;
  color: var(--color-surface);
}

.cta-content {
  max-width: 760px;
}

.cta-content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.contact-section {
  background: var(--color-surface);
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-line);
}

.contact-list span {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fbfaf7;
  color: var(--color-ink);
  padding: 0.85rem 0.9rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(128, 111, 81, 0.14);
}

.contact-form textarea {
  resize: vertical;
}

.full-field {
  grid-column: 1 / -1;
}

.form-note {
  min-height: 1.3rem;
  margin: 0;
  color: var(--color-sage);
  font-weight: 700;
}

.site-footer {
  padding: 4rem 0 1.5rem;
  background: var(--color-ink);
  color: var(--color-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand img {
  width: 150px;
}

.site-footer p {
  max-width: 470px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.4rem;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.9rem;
}

.floating-contact {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--color-accent-dark);
  color: var(--color-surface);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.18);
  font-size: 0.9rem;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .highlight-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand img {
    width: 142px;
    max-height: 52px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: none;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-panel.is-open {
    display: grid;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    display: grid;
    gap: 0.2rem;
  }

  .nav-links a {
    display: block;
    padding: 0.7rem 0.2rem;
  }

  .hero {
    min-height: 88vh;
    padding: calc(var(--header-height) + 5rem) 0 4rem;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(17, 17, 17, 0.84), rgba(17, 17, 17, 0.58)),
      linear-gradient(0deg, rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.1) 45%);
  }

  .section {
    padding: 4.5rem 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.25rem, 12vw, 3.45rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .property-media {
    padding: 0;
  }

  .floating-contact {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 820px) {
  [data-nav-panel].is-open {
    display: grid;
    pointer-events: auto;
    transform: translateY(0) !important;
  }
}
