/* ─────────────────────────────────────────
   DESIGN TOKENS  (mirror index.html palette)
───────────────────────────────────────── */
:root {
  --navy:   #0A192F;
  --gold:   #C5A059;
  --gold-lt:#d4b47a;
  --white:  #ffffff;
  --off:    #f4f1ec;
  --muted:  #8892b0;
  --border: rgba(197,160,89,0.25);
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Montserrat', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAVBAR (matches index exactly) ── */
.header {
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.navbar-brand {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--white) !important;
  text-decoration: none;
  letter-spacing: 1px;
}
.navbar-brand em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); margin: 5px 0; transition: .3s;
}

/* ── HERO BANNER ── */
.page-banner {
  background: linear-gradient(135deg, #0d2140 0%, var(--navy) 60%, #061220 100%);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(197,160,89,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-banner .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.page-banner h1 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
  margin-bottom: 20px;
}
.page-banner h1 em { color: var(--gold); font-style: normal; }
.page-banner p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}
.line-dec {
  width: 50px; height: 2px;
  background: var(--gold);
  margin: 20px auto;
}

/* ── CALCULATOR NAV TABS ── */
.calc-nav {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 900;
}
.calc-nav .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.calc-tabs {
  display: flex;
  list-style: none;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.calc-tabs::-webkit-scrollbar { display: none; }
.calc-tabs li a {
  display: block;
  padding: 18px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .2s;
}
.calc-tabs li a:hover { color: var(--white); }
.calc-tabs li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── MAIN LAYOUT ── */
.calc-section {
  display: none;
  padding: 60px 20px 80px;
  animation: fadeUp .4s ease both;
}
.calc-section.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.container { max-width: 1140px; margin: 0 auto; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── SECTION HEADING ── */
.section-intro { padding-right: 20px; }
.section-intro h2 {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.25;
  margin-bottom: 4px;
}
.section-intro h2 em { color: var(--gold); font-style: normal; }
.section-intro .line-dec { margin: 18px 0; }
.section-intro p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 16px;
}
.section-intro .feature-list {
  list-style: none;
  margin: 24px 0;
}
.section-intro .feature-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-intro .feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── CALCULATOR CARD ── */
.calc-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.calc-card h3 {
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 24px;
}

/* ── FORM ELEMENTS ── */
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.calc-row.single { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(197,160,89,0.3);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(197,160,89,0.08);
}
.form-group select option { background: var(--navy); color: var(--white); }

/* Range slider */
.slider-wrapper { display: flex; flex-direction: column; gap: 6px; }
.slider-wrapper input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(197,160,89,0.3);
  border-radius: 2px;
  border: none;
  padding: 0;
  cursor: pointer;
}
.slider-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(197,160,89,0.4);
}
.slider-wrapper input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}
.slider-val {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  text-align: right;
}

/* ── RESULT BOX ── */
.result-box {
  background: var(--gold);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  margin-top: 24px;
}
.result-box .res-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.7;
  margin-bottom: 8px;
}
.result-box .res-value {
  font-family: var(--ff-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 16px;
}
.result-box .res-breakdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid rgba(10,25,47,0.2);
  padding-top: 14px;
  flex-wrap: wrap;
}
.result-box .res-breakdown span {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
}
.result-box .res-breakdown strong { font-weight: 700; }

/* ── CTA BUTTON ── */
.btn-kapital {
  display: inline-block;
  margin-top: 20px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn-kapital:hover {
  background: #061220;
  color: var(--gold-lt);
  transform: translateY(-1px);
}

/* ── DISCLAIMER ── */
.disclaimer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 10px;
  color: rgba(136,146,176,0.8);
  line-height: 1.5;
}
.disclaimer strong { color: rgba(197,160,89,0.9); }

/* ── ALL CALCULATORS OVERVIEW ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.overview-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.overview-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.overview-card .icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.overview-card h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 10px;
}
.overview-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  padding: 50px 20px 30px;
}
footer .container { max-width: 1140px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 14px;
}
.footer-logo em { color: var(--gold); font-style: normal; }
.footer-col p, .footer-col ul {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  list-style: none;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: border-color .2s, color .2s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid var(--border);
    padding: 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 13px; }
  .nav-toggle { display: block; }
  .section-intro { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .calc-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
