:root {
  --red: #c2203f;
  --white: #ffffff;
  --gray: #f9fafb;
  --ink: #18202b;
  --muted: #6c7380;
  --line: #e7eaf0;
  --shadow: 0 24px 70px rgba(24, 32, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Barlow", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(231, 234, 240, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 36px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 184px;
}

.brand img {
  width: 52px;
  height: auto;
}

.brand strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #3b4350;
  font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links a {
  padding: 8px 2px;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-select {
  min-width: 78px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  box-shadow: 0 15px 34px rgba(194, 32, 63, 0.24);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--red);
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  background-position: center;
  background-size: cover;
}

.hero {
  min-height: 710px;
  background-position: center center;
  background-image:
    linear-gradient(90deg, rgba(24, 32, 43, 0.84), rgba(24, 32, 43, 0.56) 52%, rgba(24, 32, 43, 0.28)),
    url("lisboa-tejo-cristo-rei-hero.png");
}

.page-hero {
  min-height: 520px;
  background-image:
    linear-gradient(90deg, rgba(24, 32, 43, 0.7), rgba(24, 32, 43, 0.28) 58%, rgba(24, 32, 43, 0.06)),
    var(--hero-image);
}

.hero-inner,
.page-hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-inner {
  padding: 116px 0 72px;
}

.page-hero-inner {
  padding: 104px 0 68px;
}

.hero-copy,
.page-hero-copy {
  width: min(760px, 100%);
  color: var(--white);
}

.eyebrow,
.badge,
.tag {
  font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.red-text {
  color: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 790px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.38rem;
}

.hero-copy p,
.page-hero-copy p {
  width: min(650px, 100%);
  margin: 22px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  font-weight: 300;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr auto;
  gap: 12px;
  width: min(1040px, 100%);
  margin-top: 36px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 5px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 13px;
}

.field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.field select,
.field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Barlow", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
}

.search-panel .btn {
  min-width: 150px;
  min-height: 64px;
}

section {
  padding: 88px 0;
}

.section-gray {
  background: var(--gray);
}

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 455px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.property-grid,
.feature-grid,
.story-grid {
  display: grid;
  gap: 22px;
}

.property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.property-card,
.feature-card,
.story-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(24, 32, 43, 0.06);
}

.property-image,
.story-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--gray);
}

.story-image.wide {
  aspect-ratio: 16 / 10;
}

.property-image img,
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 0.88rem;
  padding: 6px 10px;
}

.property-body,
.story-body,
.feature-card {
  padding: 20px;
}

.price {
  color: var(--red);
  font-size: 1.45rem;
  font-weight: 700;
}

.property-body h3,
.story-body h3 {
  margin-top: 8px;
}

.property-body p,
.story-body p,
.feature-card p,
.copy p,
.area-list p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.stat {
  min-height: 54px;
  border-radius: 8px;
  background: var(--gray);
  padding: 8px;
}

.stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.stat span {
  color: var(--muted);
  font-size: 0.76rem;
}

.about,
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 52px;
}

.about-media,
.split-media {
  min-height: 450px;
  overflow: hidden;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
}

.about-media {
  background-image:
    linear-gradient(rgba(24, 32, 43, 0.08), rgba(24, 32, 43, 0.08)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=84");
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}

.about-copy p,
.copy p {
  color: #4e5663;
  font-size: 1.1rem;
}

.about-points,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.about-points {
  grid-template-columns: minmax(180px, 240px);
}

.point,
.metric,
.feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.point,
.metric {
  padding: 18px;
}

.point strong,
.metric strong {
  color: var(--red);
  font-size: 1.75rem;
  font-weight: 700;
}

.point span,
.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag {
  display: inline-flex;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  padding: 6px 10px;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.area-list article {
  border-top: 3px solid var(--red);
  background: var(--white);
  padding: 22px 0 0;
}

.cta-strip {
  padding: 46px 0;
  background: var(--red);
  color: var(--white);
}

.cta-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-strip h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cta-strip p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
}

.footer {
  background: #171b22;
  color: var(--white);
  padding: 58px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  width: min(280px, 100%);
  margin-bottom: 18px;
}

.footer p,
.footer a,
.footer li {
  color: rgba(255, 255, 255, 0.72);
}

.footer h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif;
}

.legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

@media (max-width: 1060px) {
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }
}

@media (max-width: 940px) {
  .hero {
    min-height: 760px;
  }

  .search-panel,
  .property-grid,
  .feature-grid,
  .story-grid,
  .about,
  .split,
  .footer-grid,
  .area-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .cta-strip .wrap,
  .legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-points,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav,
  .hero-inner,
  .page-hero-inner,
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand strong {
    font-size: 0.96rem;
  }

  .brand span {
    font-size: 0.76rem;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .page-hero {
    min-height: 500px;
  }

  h1 {
    font-size: 3rem;
  }

  section {
    padding: 66px 0;
  }

  .property-body,
  .story-body {
    padding: 17px;
  }

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