/*
Theme Name: RPS Wealth
Template: impact-lab
Version: 1.0.0
Text Domain: impact-lab-child
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:wght@400;500&display=swap');

:root {
  --bg: #050914;
  --bg2: #091426;
  --text: #f4f6f8;
  --muted: #a8b2c2;
  --line: rgba(255, 255, 255, .13);
  --accent: #aebed1;
  --blue: #6f9bc8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(circle at 72% 18%, #10243d 0, transparent 35%), linear-gradient(145deg, var(--bg), #02050b 70%);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

a { color: inherit; text-decoration: none; }

.nav {
  height: 112px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(4, 8, 16, .58);
  backdrop-filter: blur(18px);
}

body.admin-bar .nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .nav {
    top: 46px;
  }
}

.brand { display: flex; align-items: center; }

.brand img {
  height: 88px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(110, 165, 220, .14));
}

.links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c3ccd8;
  height: 100%;
}

.talk {
  border: 1px solid rgba(255, 255, 255, .32);
  padding: 12px 19px;
  border-radius: 30px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: .2s;
}

.talk:hover {
  background: rgba(180, 205, 230, .1);
  border-color: #d8e3ef;
}

.btn {
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
  background: rgba(180, 205, 230, .1);
  color: #f4f6f8;
  border-color: #d8e3ef;
}

.nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-dropbtn {
  appearance: none;
  background: none;
  border: 0;
  color: #c3ccd8;
  font: inherit;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  line-height: 1;
}

.chevron {
  font-size: 14px;
  margin-left: 4px;
  opacity: .8;
  transition: transform .25s;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 285px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(5, 10, 19, .96);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown:hover .chevron,
.nav-dropdown:focus-within .chevron,
.nav-dropdown.open .chevron {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 12px 13px;
  border-radius: 7px;
  font-size: 10px;
  letter-spacing: .13em;
  color: #bfc9d6;
  white-space: normal;
  line-height: 1.45;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.anchor {
  position: relative;
  top: -120px;
  display: block;
  visibility: hidden;
}

.footer {
  padding: 60px 5vw;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: #8e99aa;
  font-size: 11px;
}

.footer-logo {
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 112px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(110, 165, 220, .14));
}

.footer-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 66.666%;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #f4f6f8;
}

.footer-band-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 30px;
  min-height: 120px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.footer-band-item:last-child { border-right: 0; }

.footer-band-item > span,
.footer-band-item .footer-kicker {
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 500;
  color: #f4f6f8;
  text-transform: uppercase;
}

.footer-band-item > span {
  display: block;
  margin-bottom: 14px;
}

.footer-band-item b {
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 400;
  color: #7e8da0;
  line-height: 1.6;
}

.footer-band-item--action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-talk {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .32);
  padding: 12px 19px;
  border-radius: 30px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f4f6f8;
  transition: .2s;
}

.footer-talk:hover {
  background: rgba(180, 205, 230, .1);
  border-color: #d8e3ef;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-disclosure p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.footer-disclosure .footer-title {
  margin-bottom: 4px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-policies a:hover {
  text-decoration: underline;
}

.footer-disclosure p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  body.rps-nav-compact .nav { height: 92px; }
  body.rps-nav-compact .brand img { height: 72px; width: auto; }
  body.rps-nav-compact .links { display: none; }

  body.rps-nav-open .nav { height: 88px; padding: 0 20px; }
  body.rps-nav-open .brand img { height: 68px; }
  body.rps-nav-open .links { gap: 14px; font-size: 9px; }
  body.rps-nav-open .talk { display: none; }

  .footer-logo img { height: 88px; }
  .footer-band { width: 100%; grid-template-columns: 1fr; }
  .footer-band-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-band-item:last-child { border-bottom: 0; }
  .footer-bar { flex-direction: column; gap: 20px; }
}

@media (max-width: 620px) {
  body.rps-nav-open .links a:nth-child(1),
  body.rps-nav-open .links a:nth-child(2),
  body.rps-nav-open .links > a:nth-last-child(2) { display: none; }
  body.rps-nav-open .nav-dropdown { margin-left: auto; }
}
