:root {
  --primary-blue: #082b8f;
  --dark-blue: #071b52;
  --royal-blue: #1749d1;
  --gold: #c9971a;
  --green: #08a878;
  --light-green: #eaf8f3;
  --light-blue: #f4f7ff;
  --dark-text: #1e2430;
  --muted-text: #6b7280;
  --white: #fff;
  --border: #e5e7eb;
  --shadow: 0 22px 55px rgba(7, 27, 82, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.7;
}
a { color: var(--primary-blue); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
main { padding-top: 84px; }

.serif { font-family: "Playfair Display", Georgia, serif; }
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
}
h1, h2, h3, h4 { color: var(--dark-blue); font-weight: 800; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3vw, 3.2rem); }
p { color: var(--muted-text); }

.risense-navbar {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(229,231,235,.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 38px rgba(7,27,82,.06);
}
.navbar-brand img { display: block; }
.brand-logo {
  width: 220px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
  border-radius: 4px;
}
.nav-link {
  color: var(--dark-blue);
  font-weight: 700;
  font-size: .94rem;
  padding: .65rem .8rem !important;
}
.nav-link.active, .nav-link:hover { color: var(--primary-blue); }
.navbar-toggler { border: 0; box-shadow: none !important; }
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 22px 45px rgba(7,27,82,.12);
  padding: 10px;
  min-width: 270px;
}
.dropdown-item {
  color: var(--dark-blue);
  font-weight: 700;
  border-radius: 6px;
  padding: .68rem .75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dropdown-item i {
  color: var(--gold);
  width: 18px;
  text-align: center;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--light-blue);
  color: var(--primary-blue);
}
.dropdown-divider { border-color: var(--border); }

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown:focus-within > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .navbar .dropdown:hover > .dropdown-toggle,
  .navbar .dropdown:focus-within > .dropdown-toggle {
    color: var(--primary-blue);
  }
}

.btn {
  border-radius: 6px;
  font-weight: 800;
  padding: .82rem 1.2rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 12px 28px rgba(201,151,26,.22); }
.btn-gold:hover { background: #b48412; border-color: #b48412; color: #fff; }
.btn-blue { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; }
.btn-blue:hover { background: var(--dark-blue); border-color: var(--dark-blue); color: #fff; }
.btn-outline-blue { border: 1px solid var(--primary-blue); color: var(--primary-blue); background: #fff; }
.btn-outline-blue:hover { background: var(--primary-blue); color: #fff; }

.section { padding: 92px 0; }
.section-light { background: var(--light-blue); }
.section-green { background: var(--light-green); }
.page-hero {
  padding: 82px 0 56px;
  background: linear-gradient(180deg, #fff 0%, var(--light-blue) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.4rem, 4vw, 4.3rem); }
.breadcrumb-lite { color: var(--muted-text); font-weight: 700; font-size: .92rem; }
.breadcrumb-lite a { color: var(--primary-blue); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 18%, rgba(8,168,120,.10), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f8faff 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--border);
}
.hero-copy { max-width: 650px; }
.hero h1 .serif { color: var(--primary-blue); }
.hero-visual {
  padding: 22px;
  border: 1px solid #dde6ff;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  border-radius: 8px;
}
.hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  display: block;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(7,27,82,.05);
}
.trust-item { background: #fff; padding: 25px; }
.trust-item strong { display: block; color: var(--dark-blue); font-size: 1.5rem; }

.info-card, .service-card, .blog-card, .calc-card, .contact-card, .legal-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(7,27,82,.06);
}
.info-card { padding: 28px; height: 100%; }
.icon-box {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  color: var(--primary-blue);
  background: var(--light-blue);
  border: 1px solid #dde6ff;
  border-radius: 6px;
  margin-bottom: 18px;
}
.services-grid > [class*="col-"] {
  display: flex;
}
.service-card, .calc-card, .blog-card { height: 100%; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.service-card {
  width: 100%;
  min-height: 455px;
  display: flex;
  flex-direction: column;
}
.service-card:hover, .calc-card:hover, .blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .body, .calc-card .body, .blog-card .body { padding: 26px; }
.service-card .body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card .body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card .body a {
  margin-top: auto;
}
.service-card-image {
  width: 100%;
  height: 180px !important;
  min-height: 180px;
  max-height: 180px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f6f8ff;
  padding: 8px;
}
.service-detail-image {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f6f8ff;
  padding: 10px;
}
.blog-card img, .blog-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--light-blue); }

.split-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.split-panel .panel-dark { background: var(--dark-blue); color: #fff; padding: 40px; }
.split-panel .panel-dark h2, .split-panel .panel-dark p { color: #fff; }
.split-panel .panel-light { padding: 40px; }
.leadership-panel .panel-light {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.leadership-panel .panel-light h2 {
  max-width: 620px;
}
.leadership-bios {
  display: grid;
  gap: 18px;
  margin: 24px 0 28px;
}
.leadership-bio {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
}
.leadership-bio h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.leadership-bio p {
  margin-bottom: 0;
}
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  height: 100%;
}
.leadership-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.leadership-card h3 {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 10px 0 6px;
}
.leadership-card p {
  margin-bottom: 0;
}
.leadership-photo-frame {
  width: 100%;
  height: 330px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  border: 3px solid rgba(255,255,255,.22);
  background: linear-gradient(180deg, #eef2f8 0%, #dfe6f0 100%);
  box-shadow: 0 18px 38px rgba(0,0,0,.2);
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { margin-bottom: 14px; padding-left: 30px; position: relative; color: var(--muted-text); }
.list-check li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--green);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin-top: 14px;
}
.service-list li {
  margin-bottom: 0;
}
.wealth-flow {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.wealth-flow-step {
  position: relative;
  padding: 16px 18px;
  border: 1px solid #dde6ff;
  border-radius: 8px;
  background: var(--light-blue);
  color: var(--dark-blue);
  font-weight: 800;
}
.wealth-flow-step:not(:last-child)::after {
  content: "\f063";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 22px;
  bottom: -18px;
  color: var(--gold);
  font-size: .9rem;
}

@media (max-width: 991.98px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .leadership-photo-frame {
    max-width: 320px;
    height: 340px;
  }
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: start;
}
.calculator-panel, .result-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.control-row { margin-bottom: 24px; }
.control-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.control-head label { font-weight: 800; color: var(--dark-blue); }
.control-head input {
  width: 148px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .55rem .7rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: right;
}
input[type="range"] { width: 100%; accent-color: var(--primary-blue); }
.chart-wrap { max-width: 320px; margin: 0 auto 24px; }
.result-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.result-line span { color: var(--muted-text); }
.result-line strong { color: var(--dark-blue); text-align: right; }
.result-line.total strong { color: var(--primary-blue); font-size: 1.35rem; }
.small-note { font-size: .88rem; color: var(--muted-text); }
.table-responsive { border: 1px solid var(--border); border-radius: 8px; overflow: auto; }
.table th { color: var(--dark-blue); white-space: nowrap; }

.contact-card { padding: 28px; }
.form-control, .form-select {
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: .8rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 .2rem rgba(8,43,143,.12);
}
.form-label { font-weight: 800; color: var(--dark-blue); }
.alert { border-radius: 6px; }

.accordion-button { font-weight: 800; color: var(--dark-blue); }
.accordion-button:not(.collapsed) { color: var(--primary-blue); background: var(--light-blue); }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(8,43,143,.12); }

.site-footer {
  background: var(--dark-blue);
  color: rgba(255,255,255,.78);
  padding-top: 64px;
}
.footer-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  border-radius: 8px;
}
.footer-cta h2, .site-footer h3 { color: #fff; }
.site-footer h3 { font-size: 1rem; margin-bottom: 18px; }
.site-footer a { display: block; color: rgba(255,255,255,.78); margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-logo {
  width: 240px;
  height: 82px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  padding: 8px 10px;
  border-radius: 6px;
}
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a, .social-links span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: rgba(255,255,255,.78);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .9rem;
  color: rgba(255,255,255,.68);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #128c7e;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: 0 16px 35px rgba(18,140,126,.28);
  font-weight: 800;
  animation: pulse-soft 2.8s infinite;
}
.whatsapp-float:hover { color: #fff; background: #0d7d71; }
@keyframes pulse-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.not-found { min-height: 68vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-size: clamp(5rem, 16vw, 12rem); line-height: .9; font-weight: 900; color: var(--primary-blue); }

@media (max-width: 991px) {
  main { padding-top: 76px; }
  .navbar-collapse { padding: 16px 0 20px; }
  .hero { min-height: auto; padding: 70px 0; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .calculator-shell { grid-template-columns: 1fr; }
  .result-panel { order: 2; }
  .footer-cta, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575px) {
  .section { padding: 64px 0; }
  .page-hero { padding: 56px 0 40px; }
  .brand-logo {
    width: 158px;
    height: 52px;
  }
  .service-card {
    min-height: 420px;
  }
  .service-card-image {
    height: 165px;
  }
  .service-list {
    grid-template-columns: 1fr;
  }
  .trust-strip { grid-template-columns: 1fr; }
  .hero-visual { padding: 10px; }
  .calculator-panel, .result-panel, .contact-card, .info-card { padding: 20px; }
  .control-head { align-items: flex-start; flex-direction: column; }
  .control-head input { width: 100%; text-align: left; }
  .whatsapp-float { right: 14px; bottom: 14px; padding: 12px; }
  .whatsapp-float span { display: none; }
}
