/* ============================================
   SimuRetraite — Main Stylesheet
   Dark navy + Gold theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg: #0d1b2a;
  --bg2: #132236;
  --card: #1a2f45;
  --text: #f0f4f8;
  --text2: #94a3b8;
  --text3: #64748b;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --gold-light: #fbbf24;
  --border: #1e3a5f;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --transition: 0.25s ease;
  --max-width: 1200px;
  --header-h: 68px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Utility ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img,
.site-logo svg {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.logo-text span {
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(245, 158, 11, 0.1);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover { color: var(--gold); }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text3);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  color: var(--text3);
}

.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--gold); font-weight: 500; }

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 span {
  color: var(--gold);
}

.hero p.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 140px;
  transition: transform var(--transition), border-color var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text2);
  margin-top: 4px;
  display: block;
}

/* ── Section Commons ── */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg2);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-sub {
  color: var(--text2);
  font-size: 1rem;
  max-width: 540px;
}

.section-header {
  margin-bottom: 40px;
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap var(--transition);
}

.card-link:hover { gap: 10px; color: var(--gold-light); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 158, 11, 0.08);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 10px;
}

/* ── Calculator ── */
.calculator-page {
  padding: 40px 0 80px;
}

.calc-container {
  max-width: 760px;
  margin: 0 auto;
}

.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.calc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.calc-subtitle {
  color: var(--text2);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.02em;
}

.input-wrap {
  position: relative;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 11px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.input-wrap.has-suffix input {
  padding-right: 52px;
}

.input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 0.85rem;
  pointer-events: none;
  font-weight: 600;
}

/* Select arrow */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
  font-size: 0.85rem;
}

.select-wrap select {
  padding-right: 38px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 2px;
}

.calc-submit {
  margin-top: 28px;
  text-align: center;
}

/* Result box */
.result-box {
  display: none;
  margin-top: 28px;
  background: rgba(245, 158, 11, 0.07);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 28px;
  animation: fadeInUp 0.4s ease both;
}

.result-box.visible {
  display: block;
}

.result-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.result-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.result-item .r-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1.2;
}

.result-item .r-label {
  font-size: 0.8rem;
  color: var(--text2);
  margin-top: 4px;
  display: block;
}

.result-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text3);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ── FAQ ── */
.faq-section {
  padding: 60px 0;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 600;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  transition: transform 0.3s ease, background var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(245, 158, 11, 0.2);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

/* ── Blog Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.blog-card-img {
  height: 140px;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.blog-date {
  font-size: 0.78rem;
  color: var(--text3);
}

.blog-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
  flex: 1;
}

.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--gold); }

.blog-card p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 14px;
}

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.blog-read-more:hover { color: var(--gold-light); gap: 8px; }

/* ── Article ── */
.article-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 16px 0 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text3);
  font-size: 0.88rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar { order: -1; }
}

/* Article content */
.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 14px;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.article-content p {
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 0.97rem;
}

.article-content ul, .article-content ol {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
}

.article-content ul li {
  color: var(--text2);
  font-size: 0.97rem;
  line-height: 1.7;
  padding: 5px 0 5px 22px;
  position: relative;
}

.article-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.85rem;
  top: 6px;
}

.article-content ol {
  counter-reset: ol-counter;
}

.article-content ol li {
  color: var(--text2);
  font-size: 0.97rem;
  line-height: 1.7;
  padding: 5px 0 5px 28px;
  position: relative;
  counter-increment: ol-counter;
}

.article-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  top: 5px;
  width: 20px;
  height: 20px;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 20px;
}

.article-content strong { color: var(--text); font-weight: 700; }

.info-box {
  background: rgba(245, 158, 11, 0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  color: var(--text2);
}

.info-box strong { color: var(--gold); }

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.article-table th {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

.article-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--gold);
}

.sidebar-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-card ul li a {
  color: var(--text2);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card ul li a::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
}

.sidebar-card ul li a:hover { color: var(--gold); }

/* ── CTA Banner ── */
.cta-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text2);
  font-size: 1rem;
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul li a {
  color: var(--text2);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text3);
}

.footer-bottom a { color: var(--text3); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Mobile Bottom Nav ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(19, 34, 54, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  height: 62px;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
  display: flex;
  height: 100%;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 0.65rem;
  font-weight: 600;
  gap: 3px;
  text-decoration: none;
  transition: color var(--transition);
  padding: 4px 0;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--gold);
}

/* ── Legal / Contact pages ── */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 0.85rem;
  color: var(--text3);
  margin-bottom: 36px;
}

.legal-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-page p, .legal-page li {
  color: var(--text2);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 18px;
}

/* Contact */
.contact-card {
  max-width: 600px;
  margin: 60px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.contact-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-card p.subtitle {
  color: var(--text2);
  margin-bottom: 28px;
}

.form-group textarea {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition);
}

.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.success-msg {
  display: none;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: #10b981;
  font-weight: 600;
  margin-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .bottom-nav { display: flex; }

  body { padding-bottom: 62px; }

  .hero { padding: 48px 0 40px; }

  .calc-card { padding: 22px; }

  .stats-row { gap: 10px; }
  .stat-item { padding: 14px 18px; min-width: 110px; }

  .site-footer { padding-bottom: 80px; }
}

@media (min-width: 769px) {
  .bottom-nav { display: none; }
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Tooltips ── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--text);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ── Print ── */
@media print {
  .site-header, .bottom-nav, .site-footer { display: none; }
  body { background: white; color: black; }
}
