/* ═══════════════════════════════════════════
   DOMUS — Design System
   Setúbal District
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── TOKENS ── */
:root {
  --black:       #141414;
  --graphite:    #1C1C1C;
  --mid:         #5E5E5E;
  --white:       #FFFFFF;
  --warm-white:  #F5F1EA;
  --stone:       #E0D6C8;
  --stone-dark:  #C8BFB3;
  --deep-green:  #2F4F3E;
  --terracotta:  #A66A4C;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', 'Helvetica Neue', Arial, sans-serif;

  --nav-h: 72px;
  --max-w: 1200px;
  --pad-x: 80px;
  --pad-x-sm: 24px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--black); color: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ── LOGO COMPONENT ── */
.logo {
  display: inline-flex;
  align-items: baseline;
  position: relative;
  gap: 0;
}
.logo-mark {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}
.logo-cap {
  position: absolute;
  top: 0; left: 0;
  height: .75px;
  background: currentColor;
}
.logo-pillars {
  display: flex;
  gap: 4px;
  align-self: flex-end;
}
.logo-pillar { width: .75px; background: currentColor; }
.logo-gap { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; }
.logo-wordmark {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.46em;
  padding-right: 0.46em;
  line-height: 1;
  white-space: nowrap;
}
.logo-district {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-right: 0.28em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.45;
}

/* nav size */
.logo-nav { font-size: 18px; }
.logo-nav .logo-mark    { height: 17.6px; margin-bottom: 0px; }
.logo-nav .logo-pillar  { height: 17.6px; }
.logo-nav .logo-cap     { width: 22px; }
.logo-nav .logo-gap     { width: 5px; }
.logo-nav .logo-wordmark { font-size: 18px; }
.logo-nav .logo-district { font-size: 6.5px; margin-top: 4px; }

/* footer size */
.logo-footer { font-size: 20px; }
.logo-footer .logo-mark   { height: 17.6px; margin-bottom: 3px; }
.logo-footer .logo-pillar { height: 17.6px; }
.logo-footer .logo-cap    { width: 25px; }
.logo-footer .logo-gap    { width: 6px; }
.logo-footer .logo-wordmark { font-size: 20px; }
.logo-footer .logo-district { font-size: 7px; margin-top: 4px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled-light {
  background: var(--white);
  border-color: var(--stone);
  color: var(--black);
}
.nav.scrolled-dark {
  background: var(--black);
  border-color: #222;
  color: var(--white);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}
.nav-links a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.lang-btn {
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.15em;
  padding: 5px 10px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.lang-btn:hover { opacity: 1; }

/* ── SECTION BASES ── */
.section-structure { background: var(--black); color: var(--white); }
.section-structure-light { background: var(--white); color: var(--black); }
.section-living { background: var(--stone); color: var(--black); }
.section-living-warm { background: var(--warm-white); color: var(--black); }
.section-green { background: var(--deep-green); color: var(--warm-white); }
.section-terra { background: var(--terracotta); color: var(--warm-white); }

.section-pad { padding: 120px var(--pad-x); }
.section-pad-sm { padding: 80px var(--pad-x); }
.inner { max-width: var(--max-w); margin: 0 auto; }

/* ── LABELS ── */
.label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 40px;
  display: block;
}

/* ── HERO ── */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) 160px;
  background: var(--black);
  color: var(--white);
  position: relative;
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  max-width: 800px;
}
.hero-headline em { font-style: italic; }
.hero-sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-top: 32px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  background: var(--terracotta);
  color: var(--warm-white);
  padding: 16px 28px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.hero-cta:hover { background: #8f5a3d; }
.hero-cta-arrow { transition: transform 0.2s; }
.hero-cta:hover .hero-cta-arrow { transform: translateX(5px); }
.scroll-cue {
  position: absolute;
  bottom: 40px;
  right: var(--pad-x);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: currentColor;
  opacity: 0.4;
}

/* ── MANIFESTO ── */
.manifesto-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.5;
  max-width: 640px;
}
.manifesto-text p + p { margin-top: 0.5em; }
.territory-tags {
  display: flex;
  gap: 32px;
  margin-top: 64px;
}
.territory-tag {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.4;
  position: relative;
  padding-left: 16px;
}
.territory-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: currentColor;
}

/* ── TRANSITION IMAGE ── */
.transition-image {
  width: 100%;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}
.transition-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── PROPERTY CARDS ── */
.property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 48px;
}
.property-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.property-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.property-card-image img {
  transition: transform 0.6s ease;
}
.property-card:hover .property-card-image img {
  transform: scale(1.03);
}
.property-card-info {
  padding: 24px 0 0;
}
.property-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 8px;
}
.property-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.property-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  display: flex;
  gap: 20px;
  margin-top: 8px;
}
.property-status {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0.5;
}
.property-price {
  font-family: var(--serif);
  font-size: 20px;
  margin-top: 8px;
  opacity: 0.8;
}

/* ── CTA LINK ── */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  opacity: 0.7;
  transition: opacity 0.2s, gap 0.2s;
}
.cta-link:hover { opacity: 1; gap: 20px; }

/* ── HOW IT WORKS ── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 64px;
}
.how-col-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.how-col-text {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.65;
  max-width: 400px;
  margin-bottom: 32px;
}
.how-divider {
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.2;
  margin-bottom: 40px;
}

/* ── COMPRAMOS TEASER ── */
.teaser-text {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.3;
  max-width: 700px;
  margin-bottom: 48px;
}

/* ── TERRITORY SECTION ── */
.territory-prose {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  max-width: 600px;
}
.territory-prose p + p { margin-top: 1em; }

/* ── FOOTER ── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px var(--pad-x) 48px;
  border-top: 1px solid #1C1C1C;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 64px;
  border-bottom: 1px solid #1C1C1C;
}
.footer-nav {
  display: flex;
  gap: 48px;
}
.footer-nav-col { display: flex; flex-direction: column; gap: 16px; }
.footer-nav-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 4px;
}
.footer-nav-link {
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.footer-nav-link:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
}
.footer-copy {
  font-size: 10px;
  opacity: 0.25;
  letter-spacing: 0.1em;
}
.footer-social {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* ── FADE IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PROPERTY PAGE ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.page-subtitle {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.45;
}

/* full property listing */
.listing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.listing-card {
  background: var(--warm-white);
  color: var(--black);
  overflow: hidden;
}
.listing-image { aspect-ratio: 3/2; overflow: hidden; }
.listing-body { padding: 40px; }
.listing-type {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 12px;
}
.listing-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}
.listing-location {
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.55;
  margin-bottom: 24px;
}
.listing-specs {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--stone-dark);
  border-bottom: 1px solid var(--stone-dark);
}
.spec { display: flex; flex-direction: column; gap: 4px; }
.spec-label { font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.4; }
.spec-value { font-family: var(--serif); font-size: 20px; }
.listing-desc {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.65;
  margin-bottom: 32px;
}
.listing-delivery {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 24px;
}

/* ── COMPRAMOS PAGE ── */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 64px; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid #222;
}
.step:first-child { border-top: 1px solid #222; }
.step-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  opacity: 0.2;
  line-height: 1;
}
.step-content {}
.step-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.step-text {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.6;
  max-width: 480px;
}

/* permuta box */
.permuta-box {
  border: 1px solid #222;
  padding: 48px;
  margin-top: 80px;
}
.permuta-box-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 24px;
}
.permuta-box-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 16px;
}
.permuta-box-text {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.6;
  max-width: 520px;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  margin-top: 64px;
}
.form-field { margin-bottom: 32px; }
.form-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 10px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #333;
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--white); }
.form-textarea { resize: none; height: 100px; }
.form-select option { background: var(--black); }
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: border-color 0.2s, gap 0.2s;
}
.form-submit:hover { border-color: var(--white); gap: 24px; }

/* ── BUY / SELL SPLIT ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-panel {
  padding: 100px var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}
.split-panel-buy  { background: var(--stone);  color: var(--black); }
.split-panel-sell { background: var(--black);  color: var(--white); border-left: 1px solid #1a1a1a; }
.split-panel-title {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1;
}
.split-panel-body {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.6;
  max-width: 320px;
  margin: 28px 0 40px;
}

/* contact page extras */
.contact-intro {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 440px;
  margin-bottom: 64px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid #222;
  padding-top: 32px;
}
.contact-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.contact-detail-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
}
.contact-detail-value {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.65;
}
.contact-success-text {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 300;
  line-height: 1.5;
  max-width: 560px;
  margin-top: 16px;
  opacity: 0.75;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --pad-x: var(--pad-x-sm); }

  .nav { padding: 0 var(--pad-x-sm); }
  .nav-links { gap: 20px; }
  .nav-links li:not(:last-child):not(.lang-wrap) { display: none; }

  .hero { padding: 0 var(--pad-x-sm) 60px; }

  .section-pad { padding: 80px var(--pad-x-sm); }
  .section-pad-sm { padding: 60px var(--pad-x-sm); }

  .property-grid, .how-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-section { grid-template-columns: 1fr; }
  .split-panel { min-height: 360px; padding: 72px var(--pad-x-sm); }
  .split-panel-sell { border-left: none; border-top: 1px solid #1a1a1a; }
  .listing-grid { grid-template-columns: 1fr; }

  .footer { padding: 60px var(--pad-x-sm) 40px; }
  .footer-top { flex-direction: column; gap: 48px; }

  .step { grid-template-columns: 50px 1fr; gap: 24px; }
  .permuta-box { padding: 32px 24px; }
}
