/* ===== FINQUES TORRA XICOY — SHARED STYLES ===== */

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

:root {
  --cream: #f5f2ed;
  --cream-dark: #ece8e1;
  --dark: #1e1e1e;
  --dark-brown: #2c2420;
  --mid: #6b6560;
  --light-line: #d8d3cc;
  --accent: #1e1e1e;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  color: var(--mid);
  font-size: 0.9rem;
  line-height: 1.8;
}

.label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.label::before {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--mid);
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--light-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
}

.nav-logo-box {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
}

.nav-logo-box span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.nav-logo-cols {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}

.nav-logo-col {
  width: 4px;
  height: 12px;
  background: var(--dark);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.nav-logo-text small {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-lang {
  display: flex;
  gap: 0;
}

.lang-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--light-line);
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.lang-btn.active, .lang-btn:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.nav-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.5rem;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: all 0.3s;
}

/* Mobile menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark-brown);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.menu-overlay.open { transform: translateX(0); }

.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-bottom: 3rem;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.menu-links a:hover { color: rgba(255,255,255,0.6); }

.menu-contact {
  margin-top: auto;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.menu-contact a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  margin-top: 0.3rem;
}

/* ===== MAIN CONTENT ===== */
main { padding-top: 70px; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--cream-dark); }

.container { max-width: 720px; margin: 0 auto; }
.container-wide { max-width: 900px; margin: 0 auto; }



/* ===== HERO STATS BAR ===== */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--light-line);
  margin-top: 4rem;
}

.hero-stat {
  padding: 1.6rem 2rem;
  border-right: 1px solid var(--light-line);
  text-align: center;
}
.hero-stat:last-child { border-right: none; }

.hero-stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero-stat-l {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.5;
}
.hero-stat-l span { display: block; }

@media (max-width: 768px) {
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(3) {
    border-top: 1px solid var(--light-line);
    border-right: 1px solid var(--light-line);
  }
  .hero-stat:nth-child(4) {
    border-top: 1px solid var(--light-line);
    border-right: none;
  }
}

@media (max-width: 480px) {
  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-stat-n { font-size: 1.8rem; }
  .hero-stat { padding: 1.2rem; }
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 2rem 4rem;
  background: var(--cream);
}

.hero h1 { margin: 1.5rem 0 1.5rem; }
.hero p { font-size: 1rem; max-width: 480px; }

/* ===== SERVICE CARDS ===== */
.service-card {
  border: 1px solid var(--light-line);
  border-radius: 0;
  padding: 2.5rem;
  background: var(--cream);
  margin-bottom: 1px;
}

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--mid);
  border-bottom: 1px solid var(--light-line);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

.service-card h3 { margin-bottom: 1rem; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: color 0.2s;
}

.service-link:hover { color: var(--dark); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  text-decoration: none;
  border: 2px solid var(--dark);
  transition: all 0.25s;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.btn-primary:hover {
  background: transparent;
  color: var(--dark);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  text-decoration: none;
  border: 1.5px solid var(--dark);
  transition: all 0.25s;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

/* ===== PROPERTY CARD ===== */
.property-card {
  background: var(--white);
  border: 1px solid var(--light-line);
  margin-bottom: 2rem;
}

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

.property-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-badge {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--light-line);
}

.property-info { padding: 1.5rem; }

.property-info h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }

.property-address {
  font-size: 0.75rem;
  color: var(--mid);
  margin-bottom: 1rem;
}

.property-specs {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
  padding: 0.8rem 0;
  margin-bottom: 1rem;
}

.property-spec { display: flex; flex-direction: column; }

.property-spec strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.property-spec span {
  font-size: 0.65rem;
  color: var(--mid);
  letter-spacing: 0.05em;
}

.property-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.property-features li {
  font-size: 0.8rem;
  color: var(--mid);
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.property-features li::before {
  content: '—';
  color: var(--mid);
  flex-shrink: 0;
}

/* ===== STATS ===== */
.stats-row {
  display: flex;
  gap: 2.5rem;
  margin: 2.5rem 0;
}

.stat strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 400;
  display: block;
  line-height: 1;
}

.stat span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ===== QUOTE ===== */
blockquote {
  border-left: 3px solid var(--dark);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.5;
}

/* ===== CONTACT INFO ===== */
.contact-item {
  border-left: 3px solid var(--dark);
  padding: 0.5rem 0 0.5rem 1.2rem;
  margin-bottom: 1.5rem;
}

.contact-item .contact-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.3rem;
}

.contact-item a, .contact-item p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.3;
}

/* ===== FORM ===== */
.form-card {
  background: var(--cream-dark);
  padding: 2rem;
  border: 1px solid var(--light-line);
}

.form-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--light-line);
  padding: 0.85rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 1.2rem;
  display: block;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--dark);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--light-line);
}

.form-textarea { min-height: 120px; resize: vertical; }

/* ===== TABS ===== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--light-line);
  margin-bottom: 2rem;
}

.tab-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--mid);
  cursor: pointer;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--dark);
  border-bottom-color: var(--dark);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-brown);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem 2rem;
}

footer h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.8rem;
}

footer p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-section-title {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.8rem;
  margin-top: 1.5rem;
}

footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

footer a:hover { color: var(--white); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 2rem 0 1rem;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--mid);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--light-line);
  background: var(--cream);
}

.breadcrumb a { color: var(--mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb span { opacity: 0.5; }

/* ===== IMAGE GALLERY ===== */
.img-gallery {
  position: relative;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
}

.gallery-slide {
  min-width: 100%;
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav.prev { left: 0.5rem; }
.gallery-nav.next { right: 0.5rem; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0;
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-dot.active { background: white; }

/* ===== PRICE ===== */
.property-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--dark);
  margin: 0.5rem 0 1rem;
}

/* ===== UTILS ===== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-mid { color: var(--mid); }
.text-dark { color: var(--dark); }
.hr { border: none; border-top: 1px solid var(--light-line); margin: 2rem 0; }

/* ===== LANG HIDDEN ===== */
[data-lang] { display: none; }
[data-lang].active { display: block; }
span[data-lang].active { display: inline; }
h1[data-lang].active { display: block; }
h2[data-lang].active { display: block; }
h3[data-lang].active { display: block; }
p[data-lang].active { display: block; }
a[data-lang].active { display: block; }
div[data-lang].active { display: block; }
label[data-lang].active { display: block; }
.lang-btn { display: block; }
