:root {
  --ink: #18201d;
  --muted: #667169;
  --paper: #f7f3ec;
  --paper-2: #eee7dc;
  --stone: #d6c6ad;
  --clay: #9d7258;
  --olive: #526655;
  --sea: #244f5a;
  --line: rgba(24, 32, 29, 0.14);
  --white: #fffaf3;
  --shadow: 0 24px 70px rgba(24, 32, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 243, 236, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(24, 32, 29, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  display: block;
  width: 124px;
  height: auto;
}

.site-header .brand-logo-dark {
  display: none;
}

.site-header.is-scrolled .brand-logo-light,
.site-header.is-open .brand-logo-light {
  display: none;
}

.site-header.is-scrolled .brand-logo-dark,
.site-header.is-open .brand-logo-dark {
  display: block;
}

.footer .brand-logo {
  width: 168px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.nav-cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 11px 16px;
}

.nav-private {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 250, 243, 0.94);
}

.site-header.is-scrolled .nav-private,
.site-header.is-open .nav-private {
  color: var(--white);
  background: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.menu-button span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-button span:last-child {
  transform: translateY(6px);
}

body.menu-open .menu-button span:first-child {
  transform: rotate(45deg);
}

body.menu-open .menu-button span:last-child {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px clamp(20px, 5vw, 72px) 48px;
  color: var(--white);
}

.hero img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 24, 22, 0.78), rgba(13, 24, 22, 0.34) 48%, rgba(13, 24, 22, 0.14)),
    linear-gradient(180deg, rgba(13, 24, 22, 0.48), rgba(13, 24, 22, 0.12) 44%, rgba(13, 24, 22, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 790px;
  padding-bottom: 78px;
}

.eyebrow,
.section-kicker {
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0d7ad;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 94px);
  max-width: 950px;
}

h2 {
  font-size: clamp(34px, 4.5vw, 64px);
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 250, 243, 0.88);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
}

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

.button.secondary {
  border: 1px solid rgba(255, 250, 243, 0.64);
}

.hero-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  background: rgba(255, 250, 243, 0.22);
  border: 1px solid rgba(255, 250, 243, 0.24);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 24px;
  background: rgba(24, 32, 29, 0.28);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  margin-bottom: 10px;
  color: #f0d7ad;
}

.hero-panel span {
  color: rgba(255, 250, 243, 0.86);
  font-size: 14px;
  line-height: 1.5;
}

section {
  padding: 96px clamp(20px, 5vw, 72px);
}

.intro-grid,
.showcase,
.estate-layout,
.territory,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.showcase h2,
.territory h2,
.contact h2 {
  max-width: 850px;
}

.intro p {
  font-size: 17px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
}

.metrics div {
  min-height: 160px;
  padding: 34px;
  background: var(--ink);
  color: var(--white);
}

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

.metrics span {
  margin-bottom: 20px;
  color: var(--stone);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metrics strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  line-height: 1.12;
}

.services,
.real-estate,
.tech-platform,
.method {
  background: var(--paper-2);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 42px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.62);
}

.service-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--clay);
  font-weight: 800;
}

.service-card p {
  margin-bottom: 0;
}

.service-card.featured {
  background: var(--sea);
  color: var(--white);
}

.service-card.featured p {
  color: rgba(255, 250, 243, 0.76);
}

.real-estate {
  background:
    linear-gradient(180deg, rgba(247, 243, 236, 0.42), rgba(238, 231, 220, 0.92)),
    var(--paper-2);
}

.real-estate .section-heading {
  max-width: 980px;
}

.real-estate .section-heading p {
  max-width: 760px;
  font-size: 17px;
}

.estate-layout {
  align-items: stretch;
  margin-top: 34px;
}

.estate-feature {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(24, 32, 29, 0.92), rgba(24, 32, 29, 0.7)),
    radial-gradient(circle at 78% 24%, rgba(214, 198, 173, 0.18), transparent 34%),
    var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.estate-feature p {
  max-width: 670px;
  color: rgba(255, 250, 243, 0.72);
}

.estate-feature h3 {
  max-width: 720px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
}

.estate-label {
  margin-bottom: auto;
  color: #f0d7ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
  font-weight: 800;
}

.estate-stack {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.estate-stack div {
  display: grid;
  gap: 12px;
  padding: 26px;
  background: var(--white);
}

.estate-stack strong {
  color: var(--clay);
}

.estate-stack span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

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

.property-card {
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
}

.property-card > div:last-child {
  padding: 24px;
}

.property-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.property-card p {
  margin-bottom: 0;
}

.property-visual {
  min-height: 210px;
  background-size: cover;
  background-position: center;
}

.property-visual.villa {
  background:
    linear-gradient(135deg, rgba(24, 32, 29, 0.06), rgba(36, 79, 90, 0.34)),
    url("assets/mares-hero.png") center / cover;
}

.property-visual.attic {
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.36), rgba(82, 102, 85, 0.55)),
    linear-gradient(130deg, #efe2d0 0 28%, #cbb897 28% 42%, #526655 42% 62%, #244f5a 62% 100%);
}

.property-visual.masia {
  background:
    linear-gradient(135deg, rgba(24, 32, 29, 0.14), rgba(157, 114, 88, 0.4)),
    linear-gradient(140deg, #d6c6ad 0 24%, #9d7258 24% 48%, #f7f3ec 48% 68%, #526655 68% 100%);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.audience-grid article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
}

.audience-grid span {
  margin-bottom: auto;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audience-grid h3 {
  max-width: 620px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: 16px;
  padding: clamp(28px, 5vw, 54px);
  background: var(--ink);
  color: var(--white);
}

.access-panel h3 {
  max-width: 680px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

.access-panel p {
  max-width: 680px;
  color: rgba(255, 250, 243, 0.72);
}

.access-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: rgba(255, 250, 243, 0.08);
  border: 1px solid rgba(255, 250, 243, 0.16);
}

.access-form label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.access-form input,
.access-form select {
  width: 100%;
  border: 1px solid rgba(255, 250, 243, 0.22);
  background: rgba(255, 250, 243, 0.95);
  color: var(--ink);
  font: inherit;
  padding: 13px;
}

.nda-check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: rgba(255, 250, 243, 0.82);
  font-weight: 600;
  line-height: 1.45;
}

.nda-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.access-form button {
  min-height: 50px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.showcase {
  align-items: center;
}

.showcase ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.showcase li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  line-height: 1.6;
}

.showcase li::before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--olive);
  content: "";
}

.preview-video {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.preview-video video,
.preview-video img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.preview-video figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: var(--ink);
  color: rgba(255, 250, 243, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

.preview-video figcaption span {
  color: #f0d7ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tech-platform {
  background:
    linear-gradient(180deg, rgba(24, 32, 29, 0.94), rgba(24, 32, 29, 0.9)),
    var(--ink);
  color: var(--white);
}

.tech-platform .section-heading {
  max-width: 960px;
}

.tech-platform h2 {
  color: var(--white);
}

.tech-platform .section-heading p {
  max-width: 760px;
  color: rgba(255, 250, 243, 0.72);
  font-size: 17px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(255, 250, 243, 0.14);
  border: 1px solid rgba(255, 250, 243, 0.14);
}

.tech-grid article {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: rgba(255, 250, 243, 0.06);
}

.tech-grid span {
  margin-bottom: auto;
  color: #f0d7ad;
  font-weight: 800;
}

.tech-grid h3 {
  margin-top: 44px;
  color: var(--white);
}

.tech-grid p {
  margin-bottom: 0;
  color: rgba(255, 250, 243, 0.72);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline article {
  min-height: 290px;
  padding: 28px;
  background: var(--paper);
}

.timeline span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.legal-support {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  background: var(--paper);
}

.legal-support h2 {
  max-width: 820px;
}

.legal-support p {
  max-width: 720px;
  font-size: 17px;
}

.legal-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-card > span {
  display: block;
  margin-bottom: 26px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
}

.legal-credential {
  width: fit-content;
  margin: -4px 0 22px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--olive);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-link {
  display: inline-flex;
  width: fit-content;
  margin: -8px 0 24px;
  border-bottom: 1px solid currentColor;
  color: var(--clay);
  font-weight: 800;
}

.legal-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.legal-card li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  line-height: 1.55;
}

.legal-card li::before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clay);
  content: "";
}

.legal-note {
  border-left: 3px solid var(--clay);
  padding-left: 14px;
  color: var(--olive);
  font-weight: 700;
}

.territory {
  background: var(--ink);
  color: var(--white);
}

.territory p {
  color: rgba(255, 250, 243, 0.72);
}

.territory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.territory-list span {
  border: 1px solid rgba(255, 250, 243, 0.22);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 250, 243, 0.06);
}

.contact {
  align-items: center;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  min-height: 52px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 38px clamp(20px, 5vw, 72px);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.footer p {
  margin-bottom: 0;
}

.footer-private-link {
  margin-left: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
}

.detail-page {
  padding-top: 118px;
}

.detail-hero {
  padding-bottom: 64px;
  background: var(--paper);
}

.detail-hero h1 {
  max-width: 980px;
}

.detail-hero p {
  max-width: 760px;
  font-size: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-top: 0;
}

.detail-steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-steps article {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--white);
}

.detail-steps strong {
  color: var(--clay);
}

.detail-steps span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  line-height: 1.12;
}

.plain-check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.plain-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

@media (max-width: 980px) {
  .menu-button {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 82px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    border-radius: 0;
  }

  .nav-private,
  .site-header.is-scrolled .nav-private,
  .site-header.is-open .nav-private {
    border-radius: 0;
    color: var(--white);
    background: var(--ink);
  }

  .hero {
    min-height: 860px;
  }

  .hero-panel,
  .metrics,
  .service-grid,
  .tech-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .intro-grid,
  .showcase,
  .estate-layout,
  .access-panel,
  .legal-support,
  .detail-grid,
  .territory,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    width: 96px;
  }

  .hero {
    min-height: 780px;
    padding: 128px 18px 24px;
  }

  .hero-content {
    padding-bottom: 34px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .metrics,
  .service-grid,
  .tech-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  section {
    padding: 72px 18px;
  }

  .metrics div {
    min-height: 132px;
  }

  .service-card,
  .timeline article {
    min-height: auto;
  }

  .service-card span,
  .timeline span {
    margin-bottom: 28px;
  }

  .preview-video figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
