@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #00B4A6;
  --color-primary-dark: #007A70;
  --color-brand-blue: #1A1A2E;
  --color-navy: #1A1A2E;
  --color-navy-mid: #334155;
  --color-header-bg: #ffffff;
  --color-footer-bg: #0F1117;
  --color-accent-blue: #00B4A6;
  --color-sky-blue: #66D8D0;
  --color-light-gray: #F4F5F7;
  --color-mid-gray: #64748B;
  --color-widget-teal: #00B4A6;
  --color-white: #ffffff;
  --font-main: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--color-navy-mid);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-navy);
  font-weight: 600;
}

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

a:hover {
  color: var(--color-primary-dark);
}

.text-brand-blue {
  color: var(--color-brand-blue) !important;
}

.color-accent {
  color: var(--color-accent-blue) !important;
}

.btn-primary-cta {
  background: var(--color-primary-dark);
  border: 0;
  border-radius: 50px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 35px;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-primary-cta:hover,
.btn-primary-cta:focus {
  background: var(--color-primary);
  color: #ffffff;
}

.site-header {
  background-color: var(--color-header-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-header .navbar {
  padding: 0.85rem 0;
}

.site-header .navbar-brand img {
  width: auto;
}

.site-header .nav-link,
.site-header .dropdown-toggle,
.site-header .navbar-text {
  color: var(--color-brand-blue) !important;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.site-header .nav-link::after {
  background-color: var(--color-brand-blue);
  border-radius: 999px;
  bottom: 0.2rem;
  content: "";
  height: 2px;
  left: 0.75rem;
  opacity: 0;
  position: absolute;
  right: 0.75rem;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active {
  color: var(--color-brand-blue) !important;
}

.site-header .nav-link:hover::after,
.site-header .nav-link:focus::after,
.site-header .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header .nav-link.active {
  font-weight: 700;
}

.site-header .navbar-toggler {
  border-color: rgba(0, 180, 166, 0.25);
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 180, 166, 0.25);
}

.site-header .dropdown-menu {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(26, 26, 46, 0.14);
}

.site-header .dropdown-header {
  color: var(--color-accent-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-left: 0;
  text-transform: uppercase;
}

.site-header .dropdown-item {
  color: var(--color-navy-mid);
  font-size: 0.95rem;
  padding-left: 0;
  padding-right: 0;
  white-space: normal;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
  background: transparent;
  color: var(--color-primary-dark);
}

.site-header .dropdown-menu.dropdown-menu-end {
  min-width: 16rem;
}

.site-footer {
  background-color: var(--color-footer-bg);
  color: white;
}

.footer-heading {
  color: var(--color-sky-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal {
  font-size: 0.8rem;
  line-height: 1.7;
}

.section-sky-blue {
  background: linear-gradient(135deg, #1A1A2E 0%, #00B4A6 100%);
}

.section-light-gray {
  background-color: #f2f2f2;
}

.partner-logo {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 90px;
}

.partner-logo img {
  filter: grayscale(100%);
  max-height: 60px;
  max-width: 100%;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.partner-logo:hover img {
  filter: grayscale(0);
  transform: translateY(-2px);
}

.credit-number {
  color: var(--color-primary);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.credit-title {
  color: var(--color-navy);
  font-size: 1.25rem;
  font-weight: 600;
}

.credit-desp {
  color: #6d7685;
}

.review-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 180, 166, 0.08);
  height: 100%;
  padding: 1.5rem;
}

.hero-section {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  min-height: 60vh;
  position: relative;
}

.hero-section::before,
.page-hero::before {
  background: linear-gradient(90deg, rgba(26, 26, 46, 0.85) 0%, rgba(26, 26, 46, 0.5) 55%, rgba(26, 26, 46, 0.2) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-section > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
}

.home-hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #0D5F5A 60%, #00B4A6 100%);
  min-height: clamp(640px, 82vh, 820px);
  overflow: hidden;
  padding: 4.5rem 0 7rem;
}

.home-hero::before {
  display: none;
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.home-hero-title {
  color: #ffffff;
  font-size: clamp(2.85rem, 6vw, 4.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 9ch;
}

.home-hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 28rem;
}

.home-hero-card {
  max-width: 31rem;
}

.home-hero-card-title {
  color: var(--color-primary);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-hero-card-copy {
  color: #333333;
}

.home-hero-card .btn-primary-cta {
  letter-spacing: 0;
  padding: 0.95rem 1.5rem;
  text-transform: none;
}

.home-hero-visual {
  margin-inline: auto;
  max-width: 33rem;
  padding: 2rem 0 2.5rem;
  position: relative;
}

.home-hero-swoosh {
  bottom: 0;
  height: auto;
  left: -2rem;
  max-width: 36rem;
  position: absolute;
  width: 115%;
  z-index: 1;
}

.home-hero-image-blob {
  border-radius: 54% 46% 38% 62% / 42% 55% 45% 58%;
  box-shadow: 0 24px 60px rgba(26, 26, 46, 0.28);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.home-hero-image {
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.home-hero-wave {
  bottom: -1px;
  left: 0;
  line-height: 0;
  position: absolute;
  right: 0;
  z-index: 1;
}

.home-hero-wave svg {
  display: block;
  height: 120px;
  width: 100%;
}

.feature-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(0, 180, 166, 0.08);
  height: 100%;
}

.feature-card .feature-icon {
  height: 72px;
  width: 72px;
}

.section-copy {
  max-width: 780px;
}

.simple-block hr {
  border-color: rgba(26, 26, 46, 0.12);
  margin: 2rem 0;
  opacity: 1;
}

.process-card,
.quote-card,
.stat-card,
.info-card {
  background: #ffffff;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(0, 180, 166, 0.08);
  height: 100%;
}

.page-hero-base {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  min-height: 430px;
  position: relative;
}

.about-stat {
  font-size: 2.2rem;
  font-weight: 700;
}

.about-stat-label {
  color: var(--color-mid-gray);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
}

.loan-step-title {
  color: var(--color-accent-blue);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tabs-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(0, 180, 166, 0.08);
  padding: 1.5rem;
}

.nav-tabs .nav-link {
  color: var(--color-navy-mid);
  font-weight: 600;
}

.nav-tabs .nav-link.active {
  border-color: var(--color-accent-blue) var(--color-accent-blue) #fff;
  color: var(--color-accent-blue);
}

.content-copy h2,
.content-copy h3,
.content-copy h4 {
  color: var(--color-accent-blue);
  margin-top: 1.5rem;
}

.content-copy p,
.content-copy li {
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  height: 2.25rem;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0 0.65rem;
}

.stat-highlight {
  color: var(--color-accent-blue);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

@media (max-width: 991.98px) {
  .site-header .dropdown-menu {
    box-shadow: none;
    min-width: 100% !important;
  }

  .site-header .nav-link::after {
    left: 0;
    right: auto;
    width: 2.75rem;
  }

  .hero-section,
  .page-hero {
    min-height: auto;
  }

  .home-hero {
    padding: 3.75rem 0 5.5rem;
  }

  .home-hero-copy {
    margin-inline: auto;
    text-align: center;
  }

  .home-hero-subtitle,
  .home-hero-card {
    margin-inline: auto;
  }

  .home-hero-card {
    text-align: left;
  }

  .home-hero-visual {
    max-width: 28rem;
    padding-top: 1rem;
  }

  .home-hero-swoosh {
    left: -0.5rem;
    width: 108%;
  }

  .home-hero-wave svg {
    height: 78px;
  }
}

/* ── Acestus overrides ── */

.brand-wordmark {
  color: var(--color-brand-blue);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-sub {
  color: var(--color-mid-gray);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: var(--color-sky-blue);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stat-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2) !important;
}

.stat-number {
  color: var(--color-brand-blue);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-unit {
  font-size: 1rem;
  font-weight: 500;
}

.stat-label {
  color: var(--color-mid-gray);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
}

.feature-icon-text {
  font-size: 2.5rem;
}

.section-sky-blue-tint {
  background: #E6FAF9;
}

.text-white-75 {
  color: rgba(255,255,255,0.82);
}

.who-check {
  color: var(--color-sky-blue);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-outline-primary-cta {
  border: 2px solid var(--color-primary-dark);
  border-radius: 50px;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 28px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline-primary-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.page-hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #0D5F5A 60%, #00B4A6 100%);
  color: white;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  color: white;
}

.page-hero .text-white-75 {
  color: rgba(255, 255, 255, 0.85);
}

.page-content {
  max-width: 780px;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content ul {
  line-height: 2;
}

.site-footer .brand-wordmark {
  font-size: 1.5rem;
}

.footer-legal {
  border-color: rgba(255,255,255,0.1) !important;
}

.border-white-10 {
  border-color: rgba(255,255,255,0.1) !important;
}
