/* Reliable Advisory — brand overrides on Bootstrap 5 */

:root {
  --ra-bg-deep: #060c18;
  --ra-bg: #0a0f1e;
  --ra-bg-elevated: #0d1528;
  --ra-text: #e8dfc8;
  --ra-text-muted: #8a7a5a;
  --ra-gold: #c8a84a;
  --ra-gold-soft: #b4964a;
  --ra-gold-dim: #6a6050;
  --ra-border: rgba(180, 150, 74, 0.15);
  --ra-border-strong: rgba(180, 150, 74, 0.35);
  --ra-card-bg: rgba(255, 255, 255, 0.02);
  --ra-band: rgba(180, 150, 74, 0.04);
  --ra-font: Georgia, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ra-font);
  background: var(--ra-bg);
  color: var(--ra-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background layers */
.ra-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(180, 150, 80, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(20, 60, 100, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, var(--ra-bg) 0%, var(--ra-bg-deep) 100%);
}

.ra-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(180, 150, 80, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 150, 80, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.ra-content {
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar-ra {
  background: rgba(6, 12, 24, 0.92) !important;
  border-bottom: 1px solid var(--ra-border);
  backdrop-filter: blur(10px);
}

.navbar-ra .navbar-brand {
  max-width: calc(100% - 4rem);
}

.navbar-ra .navbar-brand.ra-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ra-nav-mark {
  display: block;
  flex-shrink: 0;
}

/* Navbar wordmark: Reliable / Advisory / Financial Services LLC */
.ra-navbar-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.08;
  min-width: 0;
}

.ra-navbar-line1 {
  font-family: var(--ra-font);
  font-size: clamp(0.52rem, 1.1vw, 0.62rem);
  font-weight: normal;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d4ccc0;
}

.ra-navbar-line2 {
  font-family: var(--ra-font);
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ra-gold);
  text-shadow: 0 0 14px rgba(200, 168, 74, 0.22);
  margin-top: 0.06rem;
  line-height: 1.05;
}

.ra-navbar-rule {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  max-width: 11.5rem;
  margin: 0.18rem 0 0.12rem;
}

.ra-navbar-rule-left,
.ra-navbar-rule-right {
  flex: 1;
  height: 1px;
  min-width: 0.5rem;
}

.ra-navbar-rule-left {
  background: linear-gradient(to right, transparent, rgba(180, 150, 74, 0.5));
}

.ra-navbar-rule-right {
  background: linear-gradient(to left, transparent, rgba(180, 150, 74, 0.5));
}

.ra-navbar-rule-diamond {
  color: var(--ra-gold-soft);
  font-size: 0.45rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.85;
}

.ra-navbar-line3 {
  font-family: var(--ra-font);
  font-size: clamp(0.42rem, 1vw, 0.52rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ra-text-muted);
  line-height: 1.2;
}

@media (max-width: 374.98px) {
  .ra-navbar-line3 {
    letter-spacing: 0.18em;
  }
}

.navbar-ra .nav-link {
  color: var(--ra-text-muted) !important;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s ease;
}

.navbar-ra .nav-link:hover,
.navbar-ra .nav-link:focus {
  color: var(--ra-gold) !important;
}

.navbar-ra .nav-link.active {
  color: var(--ra-gold) !important;
}

.navbar-ra .navbar-toggler {
  border-color: var(--ra-border-strong);
}

.navbar-ra .navbar-toggler-icon {
  filter: invert(0.85) sepia(0.3);
}

/* Buttons */
.btn-ra-outline {
  --bs-btn-color: var(--ra-gold);
  --bs-btn-border-color: var(--ra-gold-soft);
  --bs-btn-hover-bg: rgba(180, 150, 74, 0.12);
  --bs-btn-hover-border-color: var(--ra-gold);
  --bs-btn-hover-color: var(--ra-text);
  --bs-btn-active-bg: rgba(180, 150, 74, 0.2);
  --bs-btn-active-border-color: var(--ra-gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
}

.btn-ra-solid {
  --bs-btn-bg: rgba(200, 168, 74, 0.18);
  --bs-btn-border-color: var(--ra-gold-soft);
  --bs-btn-color: var(--ra-text);
  --bs-btn-hover-bg: rgba(200, 168, 74, 0.28);
  --bs-btn-hover-border-color: var(--ra-gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
}

/* Hero */
/* Skip link (accessibility + SEO) */
.ra-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ra-bg-elevated);
  color: var(--ra-gold);
  border: 1px solid var(--ra-border-strong);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ra-skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  outline: none;
}

/* Homepage primary heading (visible h1 for search engines) */
.ra-hero-h1 {
  font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  font-weight: normal;
  letter-spacing: 0.06em;
  color: #d4c8a8;
  line-height: 1.35;
  max-width: 28rem;
  margin: 0 auto 1rem;
  padding: 0 0.75rem;
}

.ra-seo-intro {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #9a9080;
  max-width: 38rem;
}

.hero-ra {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
  opacity: 0;
  transform: translateY(24px);
  animation: raHeroIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes raHeroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-ra .ra-logo-hero {
  max-width: min(100%, 520px);
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
}

.hero-ra .ra-wordmark .line1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: normal;
  letter-spacing: 0.15em;
  color: var(--ra-text);
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-ra .ra-wordmark .line2 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: bold;
  letter-spacing: 0.25em;
  color: var(--ra-gold);
  text-transform: uppercase;
  line-height: 1.15;
}

.hero-ra .ra-subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--ra-text-muted);
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.ra-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(340px, 100%);
  margin: 1.75rem 0 1.5rem;
}

.ra-rule::before,
.ra-rule::after {
  content: "";
  flex: 1;
  height: 1px;
}

.ra-rule::before {
  background: linear-gradient(to right, transparent, var(--ra-gold-soft));
}

.ra-rule::after {
  background: linear-gradient(to left, transparent, var(--ra-gold-soft));
}

.ra-rule .diamond {
  color: var(--ra-gold-soft);
  font-size: 1rem;
  line-height: 1;
}

.hero-ra .ra-slogan {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: #d4c8a8;
  max-width: 32rem;
  line-height: 1.55;
  margin: 0 auto;
}

.hero-ra .ra-slogan .highlight {
  color: var(--ra-gold);
}

.hero-ra .ra-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--ra-gold-dim);
  text-transform: uppercase;
  margin-top: 1.25rem;
}

/* Stats strip */
.ra-stats {
  border-top: 1px solid var(--ra-border);
  border-bottom: 1px solid var(--ra-border);
  background: var(--ra-band);
  padding: 2.5rem 1rem;
}

.ra-stats .stat-num {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--ra-gold);
  font-weight: normal;
  letter-spacing: 0.05em;
}

.ra-stats .stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ra-text-muted);
  margin-top: 0.35rem;
}

/* Section headings */
.ra-section-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--ra-gold-soft);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.ra-section-title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: normal;
  color: var(--ra-text);
  margin: 0;
}

/* Service cards */
.service-card {
  border: 1px solid var(--ra-border);
  background: var(--ra-card-bg);
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: border-color 0.35s ease, background 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--ra-gold-soft), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  border-color: var(--ra-border-strong);
  background: rgba(180, 150, 74, 0.07);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .icon {
  font-size: 1.6rem;
  color: var(--ra-gold-soft);
  margin-bottom: 0.85rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4c8a8;
  font-weight: bold;
  margin: 0 0 0.65rem;
}

.service-card p {
  font-size: 0.85rem;
  color: #7a7060;
  line-height: 1.6;
  margin: 0;
}

/* Values band */
.ra-values {
  border-top: 1px solid var(--ra-border);
  border-bottom: 1px solid var(--ra-border);
  background: var(--ra-band);
  padding: 2.5rem 1rem;
}

.ra-values .value-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: #b4a070;
  text-transform: uppercase;
}

.ra-values .value-item .dot {
  color: var(--ra-gold-soft);
  font-size: 0.5rem;
}

/* CTA band */
.ra-cta {
  padding: 4rem 1rem;
  text-align: center;
}

/* Footer */
.footer-ra {
  border-top: 1px solid var(--ra-border);
  padding: 2.5rem 1rem 2rem;
  background: rgba(6, 12, 24, 0.5);
}

.footer-ra .ra-footer-mark {
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
}

.footer-ra .footer-brand {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--ra-gold-dim);
  text-transform: uppercase;
}

.footer-ra .footer-disclaimer {
  font-size: 0.7rem;
  color: #4a4438;
  letter-spacing: 0.08em;
  max-width: 36rem;
  margin: 0 auto;
}

.footer-ra a {
  color: var(--ra-text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.footer-ra a:hover {
  color: var(--ra-gold);
}

/* Page header (inner pages) */
.ra-page-header {
  padding: 4rem 1rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--ra-border);
}

.ra-page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: normal;
  color: var(--ra-text);
  margin: 0 0 0.5rem;
}

.ra-page-header p.lead {
  font-size: 1rem;
  color: var(--ra-text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

/* Contact form */
.ra-form .form-control,
.ra-form .form-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ra-border);
  color: var(--ra-text);
}

.ra-form .form-control:focus,
.ra-form .form-select:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ra-gold-soft);
  color: var(--ra-text);
  box-shadow: 0 0 0 0.2rem rgba(200, 168, 74, 0.15);
}

.ra-form .form-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ra-text-muted);
}

/* Tools embed placeholders */
.tools-embed {
  min-height: 220px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--ra-border-strong);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ra-text-muted);
  font-size: 0.8rem;
  font-style: italic;
  padding: 1rem;
  text-align: center;
}

/* Embedded third-party calculator iframes */
.tools-iframe-wrap {
  position: relative;
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--ra-border);
  background: #f0f0f0;
}

.tools-iframe-wrap iframe {
  display: block;
  width: 100%;
  min-height: 400px;
  border: 0;
  background: #fff;
}

@media (min-width: 992px) {
  .tools-iframe-wrap iframe {
    min-height: 460px;
  }
}

.tools-open-external {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.tools-open-external a {
  color: var(--ra-gold);
  text-decoration: none;
}

.tools-open-external a:hover {
  text-decoration: underline;
}

.card-tools {
  border: 1px solid var(--ra-border);
  background: var(--ra-card-bg);
  border-radius: 2px;
  height: 100%;
}

.card-tools .card-body {
  display: flex;
  flex-direction: column;
}

.card-tools h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #d4c8a8;
  margin-bottom: 0.5rem;
}

.card-tools p {
  font-size: 0.85rem;
  color: #7a7060;
  flex-grow: 0;
}

/* Legal stubs */
.ra-legal {
  padding: 2rem 0 4rem;
  max-width: 42rem;
  margin: 0 auto;
}

.ra-legal h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
  color: var(--ra-gold-soft);
}

.ra-legal p {
  color: #9a9080;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Pulse (optional logo glow) */
@keyframes raPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.ra-logo-glow {
  animation: raPulse 3s ease-in-out infinite;
}
