/* =========================================================
   FMS Financial Solutions — Site Styles
   Built on Bootstrap 5.3 — see index.html for CDN includes
   ========================================================= */

:root {
  --fms-blue: #0497D6;
  --fms-blue-light: #90C4E9;
  --fms-blue-pale: #D2E0EC;
  --fms-navy: #0B132B;
  --fms-navy-dark: #080F1E;
  --fms-orange: #FF5A36;
  --fms-orange-pale: #FFF0EC;
  --fms-bg-light: #F8FAFC;
  --fms-border: #CBD5E1;
  --fms-border-light: #E2E8F0;
  --fms-text-dark: #0F172A;
  --fms-text-body: #0B132B;
  --fms-text-muted: #475569;

  --font-heading: 'Outfit', 'Segoe UI', sans-serif;
  --font-body: 'Geist', 'Inter', 'Segoe UI', sans-serif;
  --font-nav: 'Roboto', 'Segoe UI', sans-serif;
  --font-metric: 'Alegreya Sans SC', 'Outfit', serif;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--fms-text-body);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--fms-text-dark);
}

a {
  color: var(--fms-blue);
}

.text-white-brand { color: #fff; }
.text-light-brand { color: var(--fms-blue-pale); }
.text-muted-brand  { color: var(--fms-text-muted); }

/* Shared badge pill used across sections */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--fms-orange-pale);
  color: var(--fms-orange);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-title {
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--fms-text-muted);
  line-height: 1.6;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
}

.btn-primary-brand {
  background: var(--fms-blue);
  border-color: var(--fms-blue);
  color: #fff;
}
.btn-primary-brand:hover,
.btn-primary-brand:focus {
  background: #037fb3;
  border-color: #037fb3;
  color: #fff;
}

.btn-light-brand {
  background: #fff;
  border: 1px solid var(--fms-border-light);
  color: var(--fms-text-dark);
}
.btn-light-brand:hover { background: var(--fms-blue-pale); }

.btn-outline-light-brand {
  background: var(--fms-blue-pale);
  border: 1px solid var(--fms-blue-pale);
  color: var(--fms-text-dark);
}
.btn-outline-light-brand:hover { background: #bcd3e6; }

/* =========================================================
   Header / Navbar
   ========================================================= */
.site-header {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--fms-border-light);
  z-index: 1030;
}

.navbar { padding: 0.85rem 0; }

.navbar-brand { display: flex; align-items: center; }

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.navbar-nav .nav-link {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 1rem;
  color: var(--fms-text-dark);
  padding: 0.4rem 0.2rem;
  position: relative;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--fms-blue);
}
.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--fms-blue);
  border-radius: 2px;
}

.payment-btn { white-space: nowrap; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: var(--fms-navy-dark);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--fms-blue);
  background: rgba(4, 151, 214, 0.1);
  border-radius: 99px;
  color: var(--fms-blue-pale);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.eyebrow-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fms-blue);
  display: inline-block;
}

.hero-title { margin-bottom: 1.25rem; }
.hero-title-light {
  display: block;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: var(--fms-blue-pale);
  margin-bottom: 0.25rem;
}
.hero-title-bold {
  display: block;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: #fff;
}

.hero-desc {
  color: var(--fms-blue-pale);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.pillars {
  margin-bottom: 2rem;
  padding: 0;
}
.pillars li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fms-orange);
  font-weight: 500;
  font-size: 0.9rem;
}
.pillars li i { color: var(--fms-blue); font-size: 1rem; }

.hero-visual {
  position: relative;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #11223b 0%, #0b132b 60%, #080f1e 100%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(56,189,248,0.2), transparent 45%),
    linear-gradient(0deg, rgba(8,15,30,0.78), rgba(8,15,30,0.4));
}

.floating-stat {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  background: #111B2E;
  border: 1px solid #3E5B86;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  max-width: 200px;
}
.floating-stat-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #38BDF8;
}
.floating-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #38BDF8;
  line-height: 1.3;
  margin-top: 2px;
}

/* =========================================================
   Services
   ========================================================= */
.services-section {
  background: var(--fms-bg-light);
  padding: 5rem 0 6rem;
}

.services-section .section-header { margin-left: auto; margin-right: auto; }

.service-card {
  background: #fff;
  border: 1px solid var(--fms-border);
  border-radius: 12px;
  padding: 2rem;
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--fms-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0B132B;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.service-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fms-text-dark);
  margin-bottom: 0;
}

/* =========================================================
   Active Litigation
   ========================================================= */
.litigation-section {
  background:
    linear-gradient(160deg, rgba(11,19,43,0.96), rgba(9,15,30,0.98)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 6px);
  padding: 5rem 0;
}

.litigation-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1.25rem;
}

.litigation-text {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.92;
}

.metric-card {
  background: var(--fms-blue-pale);
  border: 5px solid #38BDF8;
  border-radius: 20px;
  box-shadow: 0 18px 40px -12px rgba(242,56,155,0.15), 0 10px 24px -6px rgba(15,23,42,0.08);
  padding: 1.75rem 1.5rem 1.5rem;
}

.metric-label {
  display: block;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fms-orange);
  margin-bottom: 0.4rem;
}

.metric-headline {
  font-family: var(--font-metric);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fms-text-dark);
  margin-bottom: 1rem;
}

.metric-divider {
  border: none;
  border-top: 2px dashed rgba(209, 148, 89, 0.35);
  margin: 0 0 1rem;
}

.metric-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.metric-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 4.75rem;
  line-height: 1;
  color: var(--fms-orange);
}

.metric-sub {
  font-family: var(--font-metric);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--fms-text-dark);
  max-width: 12rem;
}

/* =========================================================
   Client Registration
   ========================================================= */
.registration-section {
  background: var(--fms-bg-light);
  padding: 5rem 0 6rem;
}

.registration-card {
  background: var(--fms-border-light);
  border: 1px solid var(--fms-blue);
  border-radius: 16px;
  padding: 2.5rem;
}

.registration-card h3 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.benefit-list {
  margin: 1.5rem 0 0;
  padding: 0;
}
.benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.benefit-list li:last-child { margin-bottom: 0; }

.check-wrap {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fms-orange-pale);
  color: var(--fms-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* =========================================================
   SMS Opt-in
   ========================================================= */
.sms-section {
  background:
    linear-gradient(0deg, rgba(11,19,43,0.88), rgba(11,19,43,0.88)),
    radial-gradient(circle at 20% 100%, rgba(255,90,54,0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(4,151,214,0.35), transparent 55%),
    var(--fms-navy);
  padding: 5rem 0;
}

.sms-form {
  max-width: 510px;
  background: var(--fms-navy);
  border: 1px solid var(--fms-blue);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
  border-radius: 16px;
  padding: 2rem;
}

.sms-form .form-label {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1C2541;
  border: 1px solid var(--fms-text-muted);
  border-radius: 8px;
  padding: 0.5rem 1rem;
}
.phone-input-wrap:focus-within {
  border-color: var(--fms-blue);
  box-shadow: 0 0 0 0.2rem rgba(4,151,214,0.25);
}
.phone-prefix { color: #fff; opacity: 0.6; font-size: 1rem; }
.phone-input-wrap .form-control {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.35rem 0;
  box-shadow: none;
}
.phone-input-wrap .form-control::placeholder { color: var(--fms-text-muted); }
.phone-input-wrap .form-control:focus { box-shadow: none; }

.consent-check { display: flex; align-items: flex-start; gap: 12px; }
.consent-check .form-check-input {
  margin-top: 0.3rem;
  width: 1.15rem;
  height: 1.15rem;
}
.consent-check .form-check-label {
  color: var(--fms-border-light);
  font-size: 0.78rem;
  line-height: 1.6;
}
.consent-check .form-check-label a { color: var(--fms-blue-light); }

.sms-form .invalid-feedback { color: #ff9c8a; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--fms-navy);
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.footer-address {
  font-family: var(--font-nav);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #fff;
  font-style: normal;
}
.footer-address a { color: #fff; text-decoration: none; }
.footer-address a:hover { text-decoration: underline; }

.footer-link {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-nav);
}
.footer-link:hover { color: var(--fms-blue-light); }
.footer-divider { margin: 0 0.75rem; opacity: 0.5; }

.footer-logo-box {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem 1.1rem;
}
.footer-logo-box .brand-logo { height: 40px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  color: var(--fms-blue-pale);
}

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--fms-blue);
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(4,151,214,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 1040;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #037fb3; }

/* =========================================================
   Scroll-reveal helper (progressive enhancement via JS)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    margin-top: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
  }
  .navbar-nav { margin-bottom: 1rem; }
  .payment-btn { width: 100%; justify-content: center; }
  .hero { padding: 2.5rem 0 3rem; text-align: left; }
  .hero-visual { min-height: 300px; margin-top: 1rem; }
  .litigation-section .row { text-align: left; }
  .metric-card { margin-top: 1rem; }
}

@media (max-width: 575.98px) {
  .hero-actions .btn,
  .hero-actions a { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .pillars { gap: 0.75rem 1.5rem !important; }
  .footer-logo-box { width: 100%; justify-content: center; }
  .site-footer .row > div { text-align: center !important; }
}
