/* ===================== VARIABLES ===================== */
:root {
  --navy: #0F2D5E;
  --navy-mid: #1B3A6B;
  --navy-light: #2A4F8A;
  --green: #3DA84A;
  --green-light: #52C25F;
  --green-pale: #E8F5EA;
  --green-dark: #2D8C3A;
  --white: #FFFFFF;
  --bg: #F4F7FB;
  --bg2: #EBF0F8;
  --card: #FFFFFF;
  --text: #0F2D5E;
  --text-muted: #6B7D94;
  --border: #D8E3F0;
  --shadow-sm: 0 2px 12px rgba(15,45,94,0.08);
  --shadow: 0 6px 30px rgba(15,45,94,0.12);
  --shadow-lg: 0 16px 60px rgba(15,45,94,0.18);
  --radius: 18px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===================== NAV ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,45,94,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  text-decoration: none;
}
.nav-logo {
  width: 38px; height: 38px; border-radius: 10px;
  overflow: hidden; background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-brand-text {
  font-family: 'Sora', sans-serif;
  font-size: 18px; font-weight: 800; color: white; letter-spacing: -0.3px;
}
.nav-brand-text span { color: var(--green-light); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
@media (max-width: 768px) { .nav-links { display: none; } }
.nav-link {
  padding: 8px 14px; border-radius: 10px;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.7); cursor: pointer;
  border: none; background: none; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-link.active { color: white; background: rgba(61,168,74,0.25); }
.nav-link .nl-icon { font-size: 15px; }

/* MOBILE NAV — bottom */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,45,94,0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}
@media (max-width: 768px) { .bottom-nav { display: flex; } }
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 4px; cursor: pointer; border: none; background: none;
  transition: all 0.2s; text-decoration: none;
}
.bn-icon { font-size: 20px; line-height: 1; transition: transform 0.2s; }
.bn-label {
  font-family: 'Sora', sans-serif; font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,0.5); letter-spacing: 0.3px;
  text-transform: uppercase;
}
.bn-item.active .bn-label { color: var(--green-light); }
.bn-item.active .bn-icon { transform: scale(1.15); }

/* ===================== PAGE WRAPPER ===================== */
.page-wrap {
  padding-top: 64px;
  padding-bottom: 80px;
  min-height: 100vh;
}
@media (min-width: 769px) { .page-wrap { padding-bottom: 40px; } }

.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 50%, #1a4a7a 100%);
  position: relative; overflow: hidden;
  padding: 60px 20px 70px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61,168,74,0.15) 0%, transparent 70%);
}
.hero-geo {
  position: absolute; width: 500px; height: 500px;
  border: 1px solid rgba(255,255,255,0.04); border-radius: 50%;
  top: -200px; right: -200px;
}
.hero-geo2 {
  position: absolute; width: 300px; height: 300px;
  border: 1px solid rgba(61,168,74,0.1); border-radius: 50%;
  bottom: -100px; left: -100px;
}
.hero-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.hero-logo {
  width: 120px; height: 120px; border-radius: 50%;
  background: white; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 0 0 4px rgba(76,175,80,0.5);
  overflow: hidden;
  animation: heroFade 0.7s ease both;
}
.hero-logo img { width: 120px; height: 120px; object-fit: cover; object-position: center top; }
@keyframes heroFade { from { opacity:0; transform: translateY(20px) scale(0.9); } to { opacity:1; transform:none; } }
.hero-eyebrow {
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 14px;
  animation: fadeUp 0.6s 0.15s ease both;
}
.hero h1 {
  font-family: 'Sora', sans-serif; font-size: clamp(28px, 6vw, 48px);
  font-weight: 800; color: white; line-height: 1.15;
  letter-spacing: -1px; margin-bottom: 16px;
  animation: fadeUp 0.6s 0.25s ease both;
}
.hero h1 span { color: var(--green-light); }
.hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 36px;
  animation: fadeUp 0.6s 0.35s ease both;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.85); } }

.hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  animation: fadeUp 0.6s 0.5s ease both;
}
@media (max-width: 500px) { .hero-cards { grid-template-columns: 1fr; } }
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px 14px;
  cursor: pointer; transition: all 0.25s;
  backdrop-filter: blur(8px);
  text-decoration: none; display: block;
}
.hero-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); border-color: rgba(61,168,74,0.4); }
.hero-card-icon { font-size: 28px; margin-bottom: 10px; }
.hero-card-title { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: white; }
.hero-card-sub { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* STATS STRIP */
.stats-strip { background: white; padding: 28px 20px; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 640px; margin: 0 auto; text-align: center; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-num span { color: var(--green); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* SERVICES */
.section { padding: 48px 0 16px; }
.section-title { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.section-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--card); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: all 0.25s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--green-light); }
.service-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.service-title { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.service-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* TESTIMONIALS */
.testi-grid { display: flex; flex-direction: column; gap: 14px; }
.testi-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); position: relative; overflow: hidden; }
.testi-card::before { content: '"'; position: absolute; top: -10px; right: 16px; font-size: 100px; color: var(--green-pale); font-family: Georgia, serif; line-height: 1; pointer-events: none; }
.testi-stars { color: #F4A400; font-size: 14px; margin-bottom: 10px; }
.testi-text { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 14px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: white; }
.testi-name { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--navy); }
.testi-role { font-size: 11px; color: var(--text-muted); }

/* CTA BAND */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius); padding: 32px 24px; margin: 32px 0;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(61,168,74,0.2) 0%, transparent 70%); border-radius: 50%; }
.cta-band h3 { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: white; margin-bottom: 8px; }
.cta-band p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 20px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; border: none; transition: all 0.22s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white; box-shadow: 0 6px 20px rgba(61,168,74,0.35); width: 100%;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(61,168,74,0.45); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-navy { background: var(--navy); color: white; box-shadow: var(--shadow-sm); width: 100%; }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ===================== TOOL STYLES ===================== */
.tool-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 36px 20px 32px; position: relative; overflow: hidden;
}
.tool-header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 30px; background: var(--bg); clip-path: ellipse(60% 100% at 50% 100%); }
.tool-header h2 { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: white; margin-bottom: 6px; }
.tool-header p { font-size: 14px; color: rgba(255,255,255,0.65); }
.tool-content { max-width: 700px; margin: 0 auto; padding: 24px 20px 56px; }
.tool-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 16px; }
.tool-card-title { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }

/* RESULT HERO */
.result-hero { background: linear-gradient(135deg, var(--navy), var(--navy-light)); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.result-hero-inner { padding: 28px 24px; text-align: center; }
.result-label { font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.result-amount { font-family: 'Sora', sans-serif; font-size: clamp(36px,8vw,56px); font-weight: 900; color: white; line-height: 1; margin-bottom: 10px; }
.result-amount span { font-size: 0.5em; font-weight: 600; color: rgba(255,255,255,0.65); }
.result-sub { font-size: 13px; color: rgba(255,255,255,0.6); }

/* FORM FIELDS */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { width: 100%; padding: 12px 44px 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; color: var(--text); background: var(--bg); transition: border-color 0.2s; appearance: none; }
.input-wrap input:focus { outline: none; border-color: var(--green); background: white; }
.input-unit { position: absolute; right: 14px; font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--text-muted); pointer-events: none; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; height: 6px; border-radius: 3px; appearance: none; background: var(--border); cursor: pointer; }
.range-row input[type=range]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green); box-shadow: 0 2px 8px rgba(61,168,74,0.4); cursor: pointer; }
.range-display { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 800; color: var(--navy); min-width: 52px; text-align: right; }
select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text); background: var(--bg); appearance: none; }
select:focus { outline: none; border-color: var(--green); }
.pill-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.pill-tab { flex: 1; padding: 9px 4px; border-radius: 30px; font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--border); background: var(--bg); color: var(--text-muted); transition: all 0.2s; }
.pill-tab.active { background: var(--navy); color: white; border-color: var(--navy); }

/* DETAIL ROWS */
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bg2); }
.detail-row:last-child { border-bottom: none; }
.dr-label { font-size: 13px; color: var(--text-muted); }
.dr-value { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); }
.dr-value.accent { color: var(--green-dark); }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.info-box { background: rgba(61,168,74,0.08); border: 1px solid rgba(61,168,74,0.2); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; color: var(--green-dark); line-height: 1.6; margin-bottom: 16px; }

/* SIM GRID */
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 700px) { .sim-grid { grid-template-columns: 1fr; } }

/* FADE-IN */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* PAGE FOOTER */
.page-footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  text-align: center; font-size: 12px; line-height: 1.8;
  padding: 28px 20px; margin-top: 48px;
}
.page-footer strong { color: rgba(255,255,255,0.8); }

/* CONFIRMATION / ERRORS */
#rdv-confirm { display:none; background:#e8f5ea; border:1.5px solid var(--green); border-radius:var(--radius-sm); padding:18px; text-align:center; color:var(--green-dark); font-family:'Sora',sans-serif; font-weight:700; margin-top:16px; }
#rdv-error { display:none; background:#fde8e8; border:1.5px solid #e53e3e; border-radius:var(--radius-sm); padding:14px; text-align:center; color:#c53030; font-size:13px; margin-top:12px; }
