: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;
}

.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,
.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%);
}

.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: "";
}

.visual-frame {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: linear-gradient(135deg, #d6c6ad, #f4eee4 58%, #9db2ad);
  box-shadow: var(--shadow);
}

.room {
  position: absolute;
  inset: 36px;
  perspective: 900px;
}

.wall,
.floor,
.window,
.sofa,
.table,
.tag {
  position: absolute;
}

.wall.back {
  inset: 28px 52px 132px 52px;
  background: linear-gradient(135deg, #efe2d0, #d7c2a7);
  transform: skewY(-2deg);
}

.wall.side {
  top: 46px;
  right: 42px;
  width: 34%;
  height: 55%;
  background: linear-gradient(160deg, rgba(82, 102, 85, 0.52), rgba(255, 250, 243, 0.4));
  transform: skewY(14deg);
}

.floor {
  left: 44px;
  right: 24px;
  bottom: 32px;
  height: 132px;
  background:
    linear-gradient(90deg, rgba(157, 114, 88, 0.22) 1px, transparent 1px),
    linear-gradient(#c6b18f, #a78362);
  background-size: 42px 100%, 100% 100%;
  transform: skewX(-16deg);
}

.window {
  top: 76px;
  left: 88px;
  width: 162px;
  height: 120px;
  border: 10px solid rgba(255, 250, 243, 0.92);
  background: linear-gradient(180deg, #8caeae, #244f5a);
  box-shadow: 0 18px 34px rgba(24, 32, 29, 0.18);
}

.sofa {
  left: 126px;
  bottom: 92px;
  width: 210px;
  height: 70px;
  border-radius: 8px 8px 3px 3px;
  background: #526655;
  box-shadow: 0 18px 30px rgba(24, 32, 29, 0.25);
}

.table {
  right: 108px;
  bottom: 82px;
  width: 116px;
  height: 42px;
  border-radius: 50%;
  background: #9d7258;
}

.tag {
  border: 1px solid rgba(24, 32, 29, 0.16);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(255, 250, 243, 0.88);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(24, 32, 29, 0.12);
}

.tag-one {
  top: 62px;
  right: 62px;
}

.tag-two {
  left: 52px;
  bottom: 64px;
}

.tag-three {
  right: 56px;
  bottom: 154px;
}

.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;
}

.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;
}

@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;
  }

  .hero {
    min-height: 860px;
  }

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

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

  .property-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,
  .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;
  }

  .visual-frame {
    min-height: 360px;
  }

  .window {
    left: 52px;
    width: 130px;
  }

  .sofa {
    left: 72px;
    width: 170px;
  }

  .table {
    right: 52px;
  }

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