/* ============================================
   THE WAY — Intermediação de Crédito
   CSS Principal
   ============================================ */

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

:root {
  /* ── Brand palette ── */
  --primary: #7a9ea4;       /* slate */
  --primary-dark: #5c8289;
  --primary-light: #dde9eb;
  --accent: #c4aa87;        /* champagne/beige */
  --accent-dark: #9e845f;
  --accent-light: #efe5d6;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #c4aa87;
  --text: #1a1a18;          /* near-black */
  --text-muted: #6a6a64;
  --text-light: #9a9a94;
  --bg: #ffffff;
  --bg-soft: #f4f4f2;       /* off-white */
  --bg-blue: #dde9eb;       /* slate-light */
  --border: #ddddd8;
  --border-light: #ebebea;
  --shadow-sm: 0 1px 3px rgba(26,26,24,0.07), 0 1px 2px rgba(26,26,24,0.04);
  --shadow: 0 4px 16px rgba(26,26,24,0.08), 0 2px 6px rgba(26,26,24,0.04);
  --shadow-lg: 0 20px 60px rgba(26,26,24,0.10), 0 8px 24px rgba(26,26,24,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

section { padding: 5rem 0; }

/* ---- BANCO DE PORTUGAL BAR ---- */
.bportugal-bar {
  background: linear-gradient(135deg, #1a1a18 0%, #3a3a38 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.55rem 0;
  text-align: center;
  letter-spacing: 0.01em;
}
.bportugal-bar .container { display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.bpt-icon { font-size: 1rem; }
.bpt-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(147,197,253,0.4);
  transition: color var(--transition);
}
.bpt-link:hover { color: #fff; border-color: #fff; text-decoration: none; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  line-height: 1;
}
.logo-the { color: var(--text); letter-spacing: 0.04em; }
.logo-way { color: var(--accent); letter-spacing: 0.08em; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-light); }
.nav-portal {
  background: #1a1a18 !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 0.45rem 1rem !important;
}
.nav-portal:hover { background: var(--accent) !important; color: var(--text) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1a1a18 0%, #3a3a38 100%);
  color: white;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(26,26,24,0.25);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,26,24,0.35);
  background: linear-gradient(135deg, #2a2a28 0%, #4a4a48 100%);
  color: white;
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { font-size: 1.05rem; padding: 0.9rem 2rem; }

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-phone:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---- SECTION HEADERS ---- */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 2rem));
  z-index: 9999;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: none;
  animation: slideUp 0.4s ease;
}
.cookie-banner.visible { display: block; }

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-icon { font-size: 1.5rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text strong { display: block; margin-bottom: 0.25rem; font-size: 0.95rem; }
.cookie-text p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.cookie-text a { color: var(--accent); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }

.btn-cookie-reject {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.btn-cookie-reject:hover { border-color: var(--text); color: var(--text); }

.btn-cookie-accept {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  transition: all var(--transition);
}
.btn-cookie-accept:hover { background: var(--accent-dark); }

/* ---- HERO ---- */
.hero {
  min-height: 85vh;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #dde9eb 0%, #f4f4f2 55%, #efe5d6 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.blob1 { width: 600px; height: 600px; background: radial-gradient(circle, #afc4c8 0%, transparent 70%); top: -200px; right: -100px; animation: drift1 12s ease-in-out infinite; }
.blob2 { width: 400px; height: 400px; background: radial-gradient(circle, #e8ddd0 0%, transparent 70%); bottom: -100px; left: 5%; animation: drift2 15s ease-in-out infinite; }
.blob3 { width: 300px; height: 300px; background: radial-gradient(circle, #dde9eb 0%, transparent 70%); top: 40%; left: 40%; animation: drift3 10s ease-in-out infinite; }

@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,20px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-15px)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-10px,20px)} }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.3);opacity:0.7} }

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-text h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.trust-item { display: flex; flex-direction: column; }
.trust-num { font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.trust-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.trust-divider { width: 1px; height: 2.5rem; background: var(--border); }

/* HERO CARD WRAP */
.hero-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-floating-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

.floating-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.fch-icon { font-size: 1.75rem; }
.fch-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.fch-name { font-size: 0.95rem; font-weight: 700; }
.fch-badge { margin-left: auto; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 100px; }
.fch-badge.approved { background: #d1fae5; color: #065f46; }

.floating-card-body { display: flex; flex-direction: column; gap: 0.5rem; }
.fcb-row { display: flex; justify-content: space-between; font-size: 0.88rem; }
.fcb-row span { color: var(--text-muted); }
.fcb-row strong { color: var(--text); }

.floating-card-pulse {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  background: var(--accent-light);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
}

/* FUNNEL WIDGET */
.funnel-widget {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.fw-step { display: none; }
.fw-step.active { display: block; }

.fw-question {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.fw-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.fw-opt {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  color: var(--text);
}
.fw-opt:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.fw-opt.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

.fw-range-wrap { margin-bottom: 1rem; }
.fw-range-wrap input[type=range] { width: 100%; margin-bottom: 0.5rem; accent-color: var(--accent); }
.fw-range-display { text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--accent); }

.fw-input {
  width: 100%;
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color var(--transition);
  color: var(--text);
}
.fw-input:focus { border-color: var(--accent); }

.fw-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0.75rem 0;
  cursor: pointer;
}
.fw-gdpr input { flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
.fw-gdpr a { color: var(--accent); }

.fw-submit { width: 100%; }

.fw-success { text-align: center; padding: 1rem 0; }
.fw-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.fw-success h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.fw-success p { font-size: 0.88rem; color: var(--text-muted); }

.fw-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
}
.fw-progress-bar { height: 100%; background: var(--accent); transition: width 0.3s ease; border-radius: 0 3px 3px 0; }

.fw-next { width: 100%; }

/* ---- SERVICES ---- */
.services-section { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-dark));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card.featured { border-color: var(--primary); box-shadow: 0 4px 20px rgba(122,158,164,0.18); }
.service-card.featured::before { opacity: 1; }

.sc-badge-top {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sc-emoji { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.sc-features { list-style: none; margin-bottom: 1.5rem; }
.sc-features li { font-size: 0.82rem; color: var(--text-muted); padding: 0.2rem 0; font-weight: 500; }
.sc-cta { font-size: 0.85rem; font-weight: 700; color: var(--accent); transition: gap var(--transition); }

/* ---- HOW SECTION ---- */
.how-section { background: linear-gradient(135deg, #1a1a18 0%, #3a3a38 100%); }
.how-section .section-head h2 { color: white; }
.how-section .section-tag { background: rgba(255,255,255,0.2); color: white; }
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 3rem;
}
.how-step {
  flex: 1;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  margin: 0 0.5rem;
  color: white;
  transition: background var(--transition);
}
.how-step:hover { background: rgba(255,255,255,0.14); }
.hs-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  line-height: 1;
  margin-bottom: 1rem;
}
.hs-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.hs-content p { font-size: 0.85rem; opacity: 0.75; line-height: 1.6; }
.how-arrow { font-size: 1.5rem; color: rgba(255,255,255,0.3); padding-top: 2.5rem; flex-shrink: 0; }
.how-cta { text-align: center; }
.how-cta .btn-primary { background: var(--accent); color: var(--text); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.how-cta .btn-primary:hover { background: var(--accent-light); color: var(--text); }

/* ---- CALCULADORAS ---- */
.calc-section { background: var(--bg-soft); }
.calc-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: white;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: fit-content;
}
.calc-tab {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}
.calc-tab.active { background: #1a1a18; color: white; }
.calc-tab:hover:not(.active) { background: var(--bg-soft); color: var(--text); }

.calc-panel { display: none; }
.calc-panel.active { display: block; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.calc-field { margin-bottom: 1.25rem; }
.calc-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; }
.calc-field input[type=number] {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition);
  color: var(--text);
}
.calc-field input:focus { border-color: var(--accent); }

.calc-result { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.result-circle {
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 6px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}
.rc-value { font-size: 2.25rem; font-weight: 700; color: var(--accent); line-height: 1; }
.rc-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.result-info { width: 100%; }
.ri-status { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; padding: 0.45rem 0.85rem; border-radius: 8px; }
.ri-status.ok { background: #d1fae5; color: #065f46; }
.ri-status.warn { background: #fef3c7; color: #92400e; }
.ri-status.danger { background: #fee2e2; color: #991b1b; }
#te-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.result-big { text-align: center; width: 100%; }
.rb-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.rb-value { font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.25rem; }
.rb-sub { font-size: 0.85rem; color: var(--text-muted); }

.calc-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-light);
  background: var(--bg-soft);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

/* ---- REVIEWS ---- */
.reviews-section { background: var(--bg-soft); }
.reviews-global { display: flex; align-items: center; gap: 0.75rem; justify-content: center; margin-top: 0.5rem; }
.stars { color: var(--accent); font-size: 1.25rem; letter-spacing: 0.1em; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.review-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-card.featured-review { background: #1a1a18; color: white; border-color: transparent; }
.featured-review .rc-stars { color: var(--accent); }
.featured-review p { color: rgba(255,255,255,0.9); }
.featured-review .rc-author strong { color: white; }
.featured-review .rc-author small { color: rgba(255,255,255,0.6); }

.rc-stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.review-card p { font-size: 0.88rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 1.25rem; font-style: italic; }
.rc-author { display: flex; align-items: center; gap: 0.75rem; }
.rc-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.featured-review .rc-avatar { background: rgba(255,255,255,0.2); color: white; }
.rc-author strong { font-size: 0.88rem; display: block; }
.rc-author small { font-size: 0.75rem; color: var(--text-light); }

/* ---- NEWS ---- */
.news-section { background: var(--bg); }
.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}
.news-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card.featured-news { background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-blue) 100%); border-color: var(--border); }
.nc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
}
.news-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.75rem; }
.news-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.nc-footer { display: flex; align-items: center; justify-content: space-between; }
.nc-date { font-size: 0.75rem; color: var(--text-light); }
.nc-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.nc-link:hover { text-decoration: underline; }

/* ---- CONTACT ---- */
.contact-section { background: var(--bg-soft); }.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }

.contact-left .section-tag { margin-bottom: 1rem; }
.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.contact-left > p { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.ci-item { display: flex; align-items: flex-start; gap: 0.85rem; }
.ci-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.ci-item a { color: var(--text); font-weight: 600; text-decoration: none; }
.ci-item a:hover { color: var(--accent); }
.ci-item small { font-size: 0.75rem; color: var(--text-muted); }

.social-links { display: flex; gap: 0.75rem; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: white;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.contact-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}
.contact-form-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cf-field { margin-bottom: 1rem; }
.cf-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.35rem; }
.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition);
  color: var(--text);
  background: white;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus { border-color: var(--accent); }
.cf-field textarea { resize: vertical; }

.cf-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  cursor: pointer;
}
.cf-gdpr input { flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
.cf-gdpr a { color: var(--accent); }

.form-success {
  text-align: center;
  padding: 2rem;
  font-weight: 600;
  color: var(--success);
  background: #d1fae5;
  border-radius: 10px;
}

/* ---- FUNNEL MODAL ---- */
.funnel-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26,26,24,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.funnel-overlay.open { display: flex; }

.funnel-modal {
  background: white;
  border-radius: 16px;
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: 0 32px 80px rgba(26,26,24,0.22), 0 8px 24px rgba(26,26,24,0.10);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
  display: flex;
  flex-direction: column;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Top bar */
.fm-topbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  flex-shrink: 0;
}
.fm-logo-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: #1a1a18;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.fm-header-text { flex: 1; display: flex; flex-direction: column; }
.fm-header-title { font-size: 0.88rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.fm-header-sub { font-size: 0.7rem; color: var(--text-muted); }

.funnel-close {
  width: 30px; height: 30px;
  border: 1.5px solid var(--border);
  background: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.funnel-close:hover { background: var(--bg-soft); color: var(--text); border-color: var(--text-muted); }

/* Step indicator */
.fm-stepper {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem 0.75rem;
  gap: 0;
  flex-shrink: 0;
}
.fm-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.fms-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
}
.fm-stepper-item.active .fms-dot { background: #1a1a18; transform: scale(1.25); }
.fm-stepper-item.done .fms-dot { background: var(--primary); }
.fms-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.3s;
  white-space: nowrap;
}
.fm-stepper-item.active .fms-label { color: var(--text); }
.fm-stepper-item.done .fms-label { color: var(--primary); }
.fm-stepper-line { flex: 1; height: 1px; background: var(--border-light); margin: 0 0.5rem; margin-bottom: 1.1rem; }

/* Body */
.fm-body {
  padding: 1.25rem 1.5rem 1rem;
  flex: 1;
}

.fm-step { display: none; }
.fm-step.active { display: block; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

/* Labels */
.fm-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* Product buttons (step 1) */
.fm-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.fm-product-btn {
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--border);
  background: white;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}
.fm-product-btn:hover { border-color: #1a1a18; background: var(--bg-soft); }
.fm-product-btn.selected { border-color: #1a1a18; background: var(--bg-soft); }
.fm-product-icon { font-size: 1.4rem; line-height: 1; margin-bottom: 0.2rem; }
.fm-product-name { font-size: 0.88rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.fm-product-detail { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; font-weight: 400; }

/* Selected badge (step 2) */
.fm-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* Amount slider (step 2) */
.fm-amount-row { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 0.25rem; }
.fm-slider { flex: 1; accent-color: #1a1a18; cursor: pointer; }
.fm-amount-box { text-align: right; flex-shrink: 0; }
.fm-amount-value { display: block; font-size: 1.75rem; font-weight: 700; color: #1a1a18; line-height: 1; }
.fm-amount-limits { display: block; font-size: 0.68rem; color: var(--text-light); margin-top: 0.15rem; }

/* Prazo grid (step 2) */
.fm-prazo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fm-prazo {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  background: white;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  white-space: nowrap;
}
.fm-prazo:hover { border-color: #1a1a18; color: #1a1a18; }
.fm-prazo.selected { border-color: #1a1a18; background: #1a1a18; color: white; }

/* Step actions */
.fm-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}
.fm-back-btn {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color var(--transition);
}
.fm-back-btn:hover { color: var(--text); }

/* Eligibility cards (step 3) */
.fm-elig-card {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
  transition: all var(--transition);
}
.fm-elig-card.answered { border-color: var(--primary); background: white; }
.fm-elig-hidden { display: none; }
.fm-elig-q {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.7rem;
}
.fm-elig-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: #1a1a18; color: white;
  font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fm-elig-btns { display: flex; gap: 0.5rem; }
.fm-elig-btn {
  font-family: var(--font); font-size: 0.82rem; font-weight: 600;
  padding: 0.4rem 1rem; border: 1.5px solid var(--border);
  background: white; border-radius: 100px; cursor: pointer;
  transition: all var(--transition); color: var(--text-muted);
}
.fm-elig-btn:hover { border-color: #1a1a18; color: #1a1a18; }
.fm-elig-btn.active-yes { border-color: #10b981; background: #d1fae5; color: #065f46; }
.fm-elig-btn.active-no  { border-color: #ef4444; background: #fee2e2; color: #991b1b; }
.fm-elig-result {
  padding: 0.85rem 1rem; border-radius: 8px;
  font-size: 0.83rem; font-weight: 600; margin-top: 0.5rem; line-height: 1.55;
}
.fm-elig-result.ok   { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.fm-elig-result.warn { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.fm-elig-result.bad  { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }

/* Profile buttons (step 4) */
.fm-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.fm-profile-btn {
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  background: white;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}
.fm-profile-btn:hover { border-color: #1a1a18; background: var(--bg-soft); }
.fm-profile-btn.selected { border-color: #1a1a18; background: var(--bg-soft); }
.fm-profile-icon { font-size: 1.2rem; flex-shrink: 0; }
.fm-profile-name { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.3; }

/* Contact fields (step 4) */
.fm-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.fm-field { display: flex; flex-direction: column; gap: 0.3rem; }
.fm-field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.fm-field input {
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition);
  color: var(--text);
  background: white;
}
.fm-field input:focus { border-color: #1a1a18; }
.fm-field input::placeholder { color: var(--text-light); }

.fm-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  cursor: pointer;
}
.fm-gdpr input { flex-shrink: 0; margin-top: 3px; accent-color: #1a1a18; }
.fm-gdpr a { color: var(--text); font-weight: 600; }
.fm-gdpr em { font-style: normal; color: var(--text-light); }

.fm-submit-btn { width: 100%; justify-content: center; font-size: 0.95rem; padding: 0.9rem; }

.fm-legal {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.85rem;
  line-height: 1.55;
}

/* Success */
.fm-success-wrap { text-align: center; padding: 1.5rem 0; }
.fm-success-check {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #d1fae5;
  color: #065f46;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.fm-success-wrap h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.fm-success-wrap p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; }

/* Progress bar */
.fm-progress-wrap {
  height: 3px;
  background: var(--border-light);
  flex-shrink: 0;
}
.fm-progress-bar {
  height: 100%;
  background: #1a1a18;
  transition: width 0.4s ease;
}

@media (max-width: 480px) {
  .fm-product-grid { grid-template-columns: 1fr; }
  .fm-profile-grid { grid-template-columns: 1fr; }
  .fm-fields { grid-template-columns: 1fr; }
  .fm-fields .fm-field[style*="grid-column"] { grid-column: 1; }
  .fm-amount-row { flex-direction: column; align-items: stretch; }
  .fm-amount-box { text-align: center; }
}
/* ---- FOOTER ---- */
.footer {
  background: #1a1a18;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}
.logo-way-f { color: var(--primary); }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; margin-bottom: 1.25rem; }

.bpt-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(196,170,135,0.1);
  border: 1px solid rgba(196,170,135,0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 1.25rem;
  display: block;
  width: fit-content;
}
.bpt-footer-badge:hover { background: rgba(196,170,135,0.2); color: var(--accent-light); text-decoration: none; }

.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  font-size: 1.1rem;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.footer-social a:hover { opacity: 1; }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: white; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-company { font-size: 0.82rem; line-height: 1.7; }
.footer-company strong { color: white; }
.footer-company a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-company a:hover { color: white; }
.footer-legal-text { font-size: 0.75rem; line-height: 1.65; color: rgba(255,255,255,0.3); }
.footer-legal-text p { margin-bottom: 0.4rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; flex-direction: column; justify-content: center; align-items: center; z-index: 499; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-burger { display: flex; z-index: 501; position: relative; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-card-wrap { order: -1; }
  .hero-floating-card { display: none; }

  .how-steps { flex-direction: column; }
  .how-arrow { display: none; }
  .how-step { margin: 0; width: 100%; }

  .calc-grid { grid-template-columns: 1fr; }
  .calc-tabs { flex-wrap: wrap; width: 100%; }

  .reviews-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr; }

  .fm-opts { grid-template-columns: 1fr; }
  .fm-prazo-grid { grid-template-columns: repeat(3, 1fr); }
  .fw-options { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 1rem; }
  .bportugal-bar .container { gap: 0.25rem; font-size: 0.72rem; }
}

/* AOS simple polyfill */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: none; }
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos="fade-right"] { transform: translateX(-20px); }
[data-aos="fade-right"].aos-animate { transform: none; }
[data-aos="fade-left"] { transform: translateX(20px); }
[data-aos="fade-left"].aos-animate { transform: none; }
