/* ============================================================
   MERIDIAN REAL ESTATE — DESIGN SYSTEM
   Version 1.0 · Maio 2026 · meridianrealestate.pt
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ---- Design Tokens ---- */
:root {
  --navy:        #03141e;
  --navy-90:     rgba(3,20,30,0.90);
  --navy-70:     rgba(3,20,30,0.70);
  --navy-50:     rgba(3,20,30,0.50);
  --navy-12:     rgba(3,20,30,0.12);
  --gray:        #788285;
  --gray-light:  #e8e8e6;
  --white:       #ffffff;
  --off-white:   #f7f6f4;
  --text:        #1c1c1c;
  --text-mid:    #4a4a4a;
  --text-light:  #888;

  --container:   1200px;
  --pad:         32px;

  --font-serif:  'Libre Baskerville', Georgia, serif;
  --font-sans:   'DM Sans', 'Avenir', Arial, sans-serif;

  --gold:        #C4A265;
  --gold-light:  rgba(196,162,101,0.14);

  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-fast:      0.20s;
  --t-mid:       0.30s;
  --t-slow:      0.45s;

  --shadow-xs:   0 1px 4px rgba(3,20,30,0.07);
  --shadow-sm:   0 2px 12px rgba(3,20,30,0.09);
  --shadow-md:   0 6px 28px rgba(3,20,30,0.11);
  --shadow-lg:   0 16px 56px rgba(3,20,30,0.14);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger automático para filhos de grelhas */
.reveal.delay-1 { transition-delay: 0.10s; }
.reveal.delay-2 { transition-delay: 0.20s; }
.reveal.delay-3 { transition-delay: 0.30s; }

/* Respeita a preferência do utilizador */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

/* Display / Títulos — Baskerville */
.t-display {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.10;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1, .t-h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2, .t-h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.20;
}

h3, .t-h3 {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.30;
}

/* Labels/Eyebrows — Avenir Light uppercase */
.t-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--gray);
}

/* Body — Avenir Roman */
.t-body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-mid);
}

/* Small — footnotes, meta */
.t-small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 96px 0;
}

.section--sm   { padding: 64px 0; }
.section--lg   { padding: 120px 0; }
.section--navy { background: var(--navy); -webkit-font-smoothing: antialiased; }
.section--gray { background: var(--off-white); }

.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
  display: block;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 20px;
}

.section__lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.80;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 48px;
}

/* On navy background */
.section--navy .section__eyebrow { color: var(--gold); }
.section--navy .section__title   { color: var(--white); }
.section--navy .section__lead    { color: rgba(255,255,255,0.70); }

/* Section header centrado */
.section__header--center { text-align: center; }
.section__header--center .section__lead { margin-left: auto; margin-right: auto; }

/* Linha decorativa Meridian (o I do logo) */
.meridian-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto 40px;
}
.section--navy .meridian-line { background: linear-gradient(to bottom, var(--gold), rgba(196,162,101,0.10)); }

/* ============================================================
   GRID SYSTEMS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: center; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: center; }

/* ============================================================
   BUTTONS
   ============================================================ */

/* Base */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

/* Primary — navy fill */
.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  -webkit-font-smoothing: antialiased;
}
.btn--primary:hover {
  background: #0d2d3f;
  border-color: #0d2d3f;
  box-shadow: var(--shadow-sm);
}

/* Outlined dark — sobre fundo branco */
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Outlined light — sobre fundo navy */
.btn--outline-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.40);
  -webkit-font-smoothing: antialiased;
}
.btn--outline-light:hover {
  color: var(--white);
  border-color: var(--white);
}

/* Text link */
.btn--text {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  border-bottom: 1px solid var(--navy-12);
  font-size: 12px;
}
.btn--text:hover { border-bottom-color: var(--navy); }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  height: 88px;
  transition: height var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
  -webkit-font-smoothing: antialiased;
}

#site-header.scrolled {
  height: 68px;
  box-shadow: 0 2px 24px rgba(3,20,30,0.30);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo img {
  height: 38px;
  width: auto;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-logo-text .wordmark {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--white);
  line-height: 1;
}

.header-logo-text .submark {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.50em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  line-height: 1;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

.header-nav__item {
  position: relative;
}

.header-nav__link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--t-fast);
  white-space: nowrap;
}

.header-nav__link:hover,
.header-nav__link.active {
  color: var(--white);
}

.header-nav__link .chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}

.header-nav__item:hover .chevron {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown */
.header-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 220px;
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              visibility var(--t-fast);
  transform: translateX(-50%) translateY(-6px);
}

.header-nav__item:hover .header-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header-dropdown a {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  padding: 10px 24px;
  transition: color var(--t-fast), background var(--t-fast);
  letter-spacing: 0.02em;
}

.header-dropdown a:hover {
  color: var(--navy);
  background: var(--off-white);
}

/* CTA no header */
.header-cta {
  margin-left: 12px;
  flex-shrink: 0;
  font-size: 11px;
  padding: 10px 20px;
}

/* Separador de idioma */
.header-lang {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.38);
  margin-left: 4px;
  cursor: pointer;
  padding: 8px 10px;
  flex-shrink: 0;
}

/* PT | EN language switcher */
.header-lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  margin-left: 4px;
}
.header-lang-switch > span {
  color: rgba(255,255,255,0.22);
}
.lang-link {
  color: rgba(255,255,255,0.40);
  text-decoration: none;
  padding: 4px 2px;
  transition: color var(--t-fast);
}
.lang-link:hover { color: rgba(255,255,255,0.80); }
.lang-link--active {
  color: var(--white);
  pointer-events: none;
  cursor: default;
}

/* Mobile toggle */
.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.header-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.75);
  transition: transform var(--t-mid), opacity var(--t-fast);
}

.header-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.header-burger.open span:nth-child(2) { opacity: 0; }
.header-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  overflow-y: auto;
  padding: 32px var(--pad) 48px;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
  pointer-events: none;
}

.mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--t-fast);
}

.mobile-menu a:hover { color: var(--white); }

.mobile-menu .mobile-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  padding: 24px 0 8px;
  border-bottom: none;
  cursor: default;
}

.mobile-menu a.sub {
  padding-left: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.mobile-lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.mobile-lang-switch > span { color: rgba(255,255,255,0.22); }
.mobile-lang-switch .lang-link { color: rgba(255,255,255,0.45); padding: 0; }
.mobile-lang-switch .lang-link:hover { color: var(--white); }
.mobile-lang-switch .lang-link--active { color: var(--white); pointer-events: none; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 48px;
  -webkit-font-smoothing: antialiased;
}

.footer-logo {
  display: block;
  margin: 0 auto 56px;
  text-align: center;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin: 0 auto;
}

.footer-logo-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.footer-logo-text .wordmark {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1;
}

.footer-logo-text .submark {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.50em;
  color: rgba(255,255,255,0.40);
  text-transform: uppercase;
  line-height: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  text-align: center;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.footer-col p,
.footer-col address {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 2.0;
  color: rgba(255,255,255,0.65);
  font-style: normal;
}

.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--white); }

.footer-col .ami-text {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  line-height: 1.7;
  margin-top: 12px;
}

.footer-ig-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.50) !important;
}
.footer-ig-link:hover { color: rgba(255,255,255,0.80) !important; }

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px 0 0;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  padding: 4px 14px;
  border-right: 1px solid rgba(255,255,255,0.10);
  transition: color var(--t-fast);
}
.footer-nav a:last-child { border-right: none; }
.footer-nav a:hover { color: rgba(255,255,255,0.70); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.22);
  line-height: 1.6;
}

.footer-bottom .tarifas {
  font-size: 10px;
  color: rgba(255,255,255,0.16);
  max-width: 380px;
  text-align: right;
}

/* ============================================================
   HERO — HOMEPAGE (full-bleed video)
   ============================================================ */
.hero {
  min-height: 92vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/team/Meridian_team.png') center center / cover no-repeat;
  overflow: hidden;
}

/* ---- Overlay escuro sobre o vídeo/foto ---- */
.hero__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3,20,30,0.58);
  z-index: 1;
  pointer-events: none;
}

/* Gradiente extra na base — facilita leitura dos CTAs */
.hero__photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, rgba(3,20,30,0.70), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ---- Hero Video ---- */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

/* Reduced motion — fallback para foto estática (WCAG 2.1 AA) */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* Img fallback — só para prefers-reduced-motion; escondida por defeito */
.hero__photo-img { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__photo-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 30%;
    z-index: 0;
  }
}

/* Mobile — vídeo activo (autoplay+muted+playsinline funciona em iOS)
   background-image removido para evitar imagem dupla               */
@media (max-width: 600px) {
  .hero__photo { background-image: none; }
}

.hero__inner {
  padding: 140px max(var(--pad), 6vw) 96px max(var(--pad), 6vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.01em;
  max-width: 700px;
  margin-bottom: 32px;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.80;
  color: rgba(255,255,255,0.60);
  max-width: 480px;
  margin-bottom: 48px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll span {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.30), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 0.8; }
}

/* ============================================================
   HERO — PÁGINAS INTERNAS
   ============================================================ */
.page-hero {
  background:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px),
    radial-gradient(ellipse 75% 65% at 18% -8%, rgba(196,162,101,0.09) 0%, transparent 68%),
    linear-gradient(158deg, #04253c 0%, var(--navy) 58%);
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
  padding: 160px 0 80px;
  -webkit-font-smoothing: antialiased;
}

.page-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 20px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 20px;
}

.page-hero__sub {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.80;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-card {
  display: flex;
  flex-direction: column;
}

.team-card__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: transparent;
  margin-bottom: 24px;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t-slow) var(--ease);
}

.team-card:hover .team-card__photo img {
  transform: scale(1.03);
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}

.team-card__role {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.team-card__bio {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 20px;
}

.team-card__contact {
  font-size: 13px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.03em;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  padding: 40px 36px;
  border: 1px solid var(--navy-12);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.service-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card__num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--navy-12);
  line-height: 1;
  margin-bottom: 20px;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 14px;
}

.service-card__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.80;
  color: var(--text-mid);
  margin-bottom: 28px;
}

/* ---- Service Icon (Compra Q&A rows) ---- */
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.service-icon--light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: flex;
  align-items: flex-start;
}

.step-arrow {
  flex-shrink: 0;
  width: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 38px;
  color: var(--navy-30);
}

.step-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 20px 24px;
  background: var(--white);
  border: 1px solid var(--navy-12);
  border-radius: 4px;
  position: relative;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.step-item:hover {
  box-shadow: 0 8px 28px rgba(3, 20, 30, 0.08);
  border-color: rgba(3, 20, 30, 0.22);
}

.step-item__head {
  position: relative;
  margin-bottom: 20px;
}

.step-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background 0.25s ease, color 0.25s ease;
}

.step-item:hover .step-item__icon {
  background: var(--navy);
  color: var(--white);
}

.step-item__num {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-item__title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-item__text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
  margin: 0;
}

/* ============================================================
   REVIEWS
   ============================================================ */
/* ============================================================
   REVIEWS LAYOUT & CAROUSEL
   ============================================================ */
.reviews-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

/* --- Info panel (left) --- */
.reviews-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-info__glogo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-info__business {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  line-height: 1.3;
}

.reviews-info__score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-info__num {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--navy);
  line-height: 1;
}

.reviews-info__stars {
  display: flex;
  gap: 2px;
  color: #FBBC04;
  font-size: 18px;
}

.reviews-info__count {
  font-size: 12px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.5;
}

.reviews-info__all {
  font-size: 12px;
  font-weight: 400;
  color: var(--navy-70);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.reviews-info__all:hover { color: var(--navy); }

.reviews-info__cta {
  margin-top: 4px;
  font-size: 12px;
  padding: 10px 18px;
  align-self: flex-start;
}

/* --- Carousel (right) --- */
.reviews-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.reviews-overflow {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

/* Nav buttons */
.reviews-nav-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--navy-12);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}

.reviews-nav-btn:hover:not(:disabled) {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.reviews-nav-btn:disabled {
  opacity: 0.30;
  cursor: default;
}

/* --- Review card --- */
.review-card {
  flex-shrink: 0;
  flex-grow: 0;
  width: 30%; /* fallback before JS runs — JS overrides with exact px */
  min-width: 220px;
  background: var(--white);
  padding: 28px 24px;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.review-card__avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.review-card__meta {
  flex: 1;
  min-width: 0;
}

.review-card__name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card__date {
  font-size: 11px;
  font-weight: 300;
  color: var(--gray);
  margin-top: 2px;
}

.review-card__gicon {
  flex-shrink: 0;
  margin-top: 2px;
}

.review-card__stars {
  display: flex;
  gap: 2px;
}

.review-card__star {
  color: #FBBC04;
  font-size: 15px;
}

.review-card__text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.75;
  color: var(--navy-70);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Agent property compact cards (página de agente) ──────── */
.agent-prop-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--navy-12);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
  margin-bottom: 16px;
}
.agent-prop-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.agent-prop-thumb {
  width: 140px;
  min-height: 100px;
  flex-shrink: 0;
  background-color: var(--off-white);
  background-size: cover;
  background-position: center;
}
.agent-prop-info {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agent-prop-title {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}
.agent-prop-location {
  font-size: 12px;
  color: var(--gray);
  margin: 0;
  letter-spacing: 0.3px;
}
.agent-prop-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0 0;
}
.agent-prop-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
}
@media (max-width: 600px) {
  .agent-prop-thumb { width: 100px; min-height: 80px; }
  .agent-prop-title { font-size: 14px; }
}

/* Responsive */
@media (max-width: 900px) {
  .reviews-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .reviews-info {
    align-items: center;
    text-align: center;
  }
  .reviews-info__cta { align-self: center; }
  /* card widths handled by JS */
}

@media (max-width: 600px) {
  .reviews-nav-btn { width: 36px; height: 36px; }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 0;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--t-fast);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  background: var(--white);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23788285' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-note {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   PROPERTIES GRID
   ============================================================ */
.property-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-light);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.property-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.property-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--off-white);
  position: relative;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.property-card:hover .property-card__image img { transform: scale(1.04); }

.property-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--navy);
  color: var(--white);
  position: absolute;
  top: 16px;
  left: 16px;
  -webkit-font-smoothing: antialiased;
}

.property-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-card__zone {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.property-card__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.property-card__price {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  margin-top: auto;
}

.property-card__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  border-top: 1px solid var(--gray-light);
  padding-top: 12px;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.stat-item {
  padding: 40px 32px;
  text-align: center;
  background: var(--navy);
}

.stat-item__num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-item__label {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   EXTRA MILE LIST
   ============================================================ */
.em-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--navy-12);
}

.em-item {
  background: var(--white);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background var(--t-fast);
}

.em-item:hover { background: var(--off-white); }

.em-item__icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--navy-12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.em-item__title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}

.em-item__text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.70;
  color: var(--text-mid);
}

/* ============================================================
   UTILS
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center  { text-align: center; }
.text-white   { color: var(--white); }
.text-navy    { color: var(--navy); }
.text-gray    { color: var(--gray); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* Page top padding (compensar header fixo) */
.page-top { padding-top: 88px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --container: 960px; --pad: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }

  .section { padding: 72px 0; }
  .section--lg { padding: 88px 0; }

  /* Header mobile */
  .header-nav,
  .header-cta,
  .header-lang,
  .header-lang-switch { display: none; }
  .header-burger { display: flex; }
  #site-header { height: 64px; }
  #site-header.scrolled { height: 56px; }
  .mobile-menu { top: 56px; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2-1, .grid-1-2       { grid-template-columns: 1fr; gap: 40px; }
  .grid-1-2 > div:first-child,
  .grid-2-1 > div:first-child { position: static !important; }
  .stats-grid                 { grid-template-columns: 1fr; }
  .em-list                    { grid-template-columns: 1fr; }
  .form-row                   { grid-template-columns: 1fr; }
  .process-steps              { flex-direction: column; border-left: 2px solid var(--navy-12); padding-left: 24px; margin-left: 10px; gap: 0; }
  .step-arrow                 { display: none; }
  .step-item                  { width: 100%; margin-bottom: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom .tarifas { text-align: center; max-width: 100%; }
  .footer-nav { flex-direction: column; align-items: center; }
  .footer-nav a { border-right: none; padding: 6px 0; }

  /* Hero */
  .hero { min-height: 72vh; }
  .hero__photo { background-position: center top; }
  .hero__photo::before { background: rgba(3,20,30,0.65); }
  .hero__inner { padding: 120px var(--pad) 72px; max-width: 100%; }
  .hero__title { font-size: clamp(28px, 8vw, 44px); }
  .page-hero { padding: 120px 0 60px; }
}

@media (max-width: 480px) {
  :root { --pad: 16px; }
  .btn { padding: 13px 24px; font-size: 11px; }
  .btn-group { flex-direction: column; align-items: flex-start; }
}

/* ── Team cards — grid 2 colunas no mobile ────────────────── */
@media (max-width: 600px) {
  .team-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 16px;
    align-items: start;
    border-bottom: 1px solid var(--navy-12);
    padding-bottom: 24px;
  }
  .team-card__photo {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: stretch;
    width: 90px;
    aspect-ratio: unset;
    min-height: 120px;
    margin-bottom: 0;
  }
  .team-card__name {
    grid-column: 2; grid-row: 1;
    font-size: 16px; margin-bottom: 4px;
  }
  .team-card__role {
    grid-column: 2; grid-row: 2;
    font-size: 10px; margin-bottom: 10px;
  }
  .team-card__bio {
    grid-column: 2; grid-row: 3;
    font-size: 13px; margin-bottom: 12px;
  }
  .team-card > div:last-child {
    grid-column: 1 / 3; grid-row: 4;
    margin-top: 4px;
  }
}
