﻿:root {
  --brand: #14b86f;
  --brand-dark: #0f8f56;
  --brand-ink: #0a5a39;
  --accent: #ff8a1f;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #dbe6f3;
  --soft: #f3f8ff;
  --surface: #ffffff;
  --radius-lg: 1.25rem;
  --radius-md: 0.95rem;
  --elev-1: 0 14px 34px rgba(15, 23, 42, 0.08);
  --elev-2: 0 24px 56px rgba(15, 23, 42, 0.12);
  --nav-offset: 92px;
  --nav-offset-mobile: 84px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 111, 0.08), transparent 62%),
    radial-gradient(1100px 520px at 95% 6%, rgba(14, 165, 233, 0.08), transparent 58%),
    #f8fbff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  padding-top: var(--nav-offset);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.footer-title,
.navbar .nav-link {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

.site-header {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 1030;
  top: 0;
  left: 0;
  right: 0;
}

.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(7, 11, 18, 0.95) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.55);
}

.brand-logo {
  height: 62px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.18));
}

.navbar .navbar-toggler {
  border: 1px solid rgba(226, 232, 240, 0.32);
  border-radius: 0.65rem;
  padding: 0.32rem 0.52rem;
}

.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(20, 184, 111, 0.2);
}

.navbar .navbar-toggler-icon {
  filter: invert(1);
}

.navbar .nav-link {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: #e2e8f0;
  padding: 0.45rem 0.6rem;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.05rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #1dc8ad);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: #8ef1c2;
}

.navbar .offcanvas-lg {
  border-left: 0;
}

.navbar .offcanvas-body {
  padding: 0;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-success {
  border: 0;
  background: linear-gradient(135deg, #16c172, #0ea75f);
  box-shadow: 0 10px 24px rgba(14, 167, 95, 0.28);
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(135deg, #12aa63, #0b8a4e);
}

.btn-outline-success {
  border-color: rgba(20, 184, 111, 0.5);
  color: var(--brand-ink);
  background: rgba(255, 255, 255, 0.88);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  color: #fff;
  background: linear-gradient(135deg, #16c172, #0ea75f);
  border-color: transparent;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 6rem 0 4.8rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(20, 184, 111, 0.18), transparent 40%),
    radial-gradient(circle at 88% 0%, rgba(249, 115, 22, 0.18), transparent 42%),
    linear-gradient(180deg, #fcfeff 0%, #f3f8ff 100%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  width: 480px;
  height: 480px;
  right: -140px;
  top: -180px;
  background: radial-gradient(circle, rgba(20, 184, 111, 0.26) 0%, rgba(20, 184, 111, 0) 70%);
  animation: floatSlow 12s ease-in-out infinite;
}

.hero::after {
  width: 420px;
  height: 420px;
  left: -170px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 72%);
  animation: floatSlow 14s ease-in-out infinite reverse;
}

.hero h1 {
  font-weight: 800;
  line-height: 1.08;
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin-bottom: 0;
  max-width: 15ch;
  animation: riseIn 0.8s ease forwards;
}

.hero p {
  color: var(--ink-soft);
  font-size: 1.18rem;
  max-width: 54ch;
  animation: riseIn 1s ease forwards;
}

.home-carousel-section {
  padding-top: 1.2rem;
}

.home-carousel {
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--elev-2);
}

.home-carousel .carousel-item {
  min-height: 560px;
  position: relative;
}

.home-carousel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.home-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(3, 14, 27, 0.82) 0%, rgba(3, 14, 27, 0.45) 52%, rgba(3, 14, 27, 0.15) 100%);
}

.home-carousel .carousel-caption {
  left: 7%;
  right: auto;
  bottom: 12%;
  width: min(660px, 86%);
  text-align: left;
}

.home-carousel .carousel-caption h1,
.home-carousel .carousel-caption p {
  color: #f8fafc;
  max-width: 100%;
}

.home-carousel .carousel-caption p {
  font-size: 1.14rem;
}

.home-carousel .carousel-indicators {
  margin-bottom: 1rem;
}

.home-carousel .carousel-indicators [data-bs-target] {
  width: 40px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background-color: rgba(255, 255, 255, 0.5);
}

.home-carousel .carousel-indicators .active {
  background-color: #fff;
}

.home-carousel .carousel-control-prev,
.home-carousel .carousel-control-next {
  width: 9%;
}

.card-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid #dbe7f3;
  margin-bottom: 0.85rem;
  background: #f8fafc;
}

.media-stack {
  position: relative;
  min-height: 430px;
}

.media-stack img {
  position: absolute;
  width: 67%;
  border-radius: 1rem;
  border: 4px solid #fff;
  box-shadow: var(--elev-2);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  animation: floatSlow 7s ease-in-out infinite;
}

.media-stack img:nth-child(1) {
  left: 0;
  top: 8%;
  z-index: 3;
}

.media-stack img:nth-child(2) {
  right: 0;
  top: 0;
  z-index: 2;
  animation-delay: 0.6s;
}

.media-stack img:nth-child(3) {
  right: 14%;
  bottom: 0;
  z-index: 4;
  animation-delay: 1.2s;
}

.media-stack-sm {
  min-height: 360px;
}

.media-stack-sm img {
  width: 62%;
}

.photo-strip {
  display: grid;
  gap: 1rem;
}

.photo-strip img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid #d7e3f1;
  box-shadow: var(--elev-1);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 111, 0.25);
  background: rgba(20, 184, 111, 0.08);
  color: var(--brand-ink);
  font-family: 'Sora', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 2.2rem;
}

.soft-section {
  background:
    linear-gradient(180deg, rgba(243, 248, 255, 0.92) 0%, rgba(238, 246, 255, 0.86) 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.feature-card,
.loan-card,
.info-card,
.calc-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #fefefe 100%);
  height: 100%;
  box-shadow: var(--elev-1);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.loan-card::before,
.info-card::before,
.calc-card::before,
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 184, 111, 0.08), rgba(14, 165, 233, 0.06) 45%, rgba(249, 115, 22, 0.07));
  opacity: 0;
  transition: opacity 0.26s ease;
  pointer-events: none;
}

.feature-card:hover,
.loan-card:hover,
.info-card:hover,
.calc-card:hover,
.contact-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--elev-2);
  border-color: rgba(20, 184, 111, 0.32);
}

.feature-card:hover::before,
.loan-card:hover::before,
.info-card:hover::before,
.calc-card:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

.feature-card h5,
.loan-card h5,
.info-card h5,
.contact-card h5,
.calc-card h5 {
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.contact-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid #d8e4f2;
  background: linear-gradient(120deg, #f8fbff 0%, #eef5ff 52%, #f8fbff 100%);
  position: relative;
  overflow: hidden;
}

.contact-badge::after {
  content: '';
  position: absolute;
  right: -22px;
  top: -22px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.contact-badge-icon {
  min-width: 58px;
  height: 34px;
  padding: 0 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  z-index: 1;
}

.contact-badge-text {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  position: relative;
  z-index: 1;
}

.contact-badge-phone {
  background: linear-gradient(120deg, #e7f9f0 0%, #ddf6ef 54%, #f2fbf7 100%);
}

.contact-badge-phone .contact-badge-icon {
  background: linear-gradient(120deg, #169f62 0%, #0f766e 100%);
}

.contact-badge-email {
  background: linear-gradient(120deg, #e9f2ff 0%, #dce8ff 54%, #f1f6ff 100%);
}

.contact-badge-email .contact-badge-icon {
  background: linear-gradient(120deg, #2563eb 0%, #0ea5e9 100%);
}

.contact-badge-location {
  background: linear-gradient(120deg, #fff2e5 0%, #ffe7cf 54%, #fff6ec 100%);
}

.contact-badge-location .contact-badge-icon {
  background: linear-gradient(120deg, #ea580c 0%, #f59e0b 100%);
}

.info-card ul,
.loan-card ol,
.info-card ol {
  padding-left: 1.05rem;
}

.calc-result .row {
  border-bottom: 1px dashed #cfdeef;
  padding: 0.65rem 0;
}

.calc-result .row:last-child {
  border-bottom: 0;
}

.form-control,
.form-select {
  border-radius: var(--radius-md);
  border-color: #cdd9e8;
  padding: 0.64rem 0.82rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(20, 184, 111, 0.5);
  box-shadow: 0 0 0 0.24rem rgba(20, 184, 111, 0.18);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 1rem !important;
  overflow: hidden;
  box-shadow: var(--elev-1);
}

.faq-item .accordion-button {
  font-weight: 700;
  font-size: 1.04rem;
  background: #fff;
}

.faq-item .accordion-button:not(.collapsed) {
  color: var(--brand-ink);
  background: rgba(20, 184, 111, 0.1);
  box-shadow: none;
}

.site-footer {
  margin-top: 2.5rem;
  background: linear-gradient(180deg, #070b12 0%, #0b1220 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
}

.footer-logo {
  height: 56px;
  width: auto;
}

.footer-title {
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #f8fafc;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #8ef1c2;
}

.site-footer .text-secondary,
.site-footer .small {
  color: #94a3b8 !important;
}

main > section {
  animation: fadeInSection 0.45s ease both;
}

main > section:nth-of-type(2) {
  animation-delay: 0.05s;
}

main > section:nth-of-type(3) {
  animation-delay: 0.1s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(16px);
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: var(--nav-offset-mobile);
  }

  .brand-logo {
    height: 54px;
  }

  .brand-logo-offcanvas {
    height: 60px;
  }

  .navbar .offcanvas {
    width: min(86vw, 340px);
    max-width: 340px;
    height: 100vh;
    background: linear-gradient(165deg, #050b16 0%, #081325 62%, #0b1d34 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: 18px 0 42px rgba(2, 6, 23, 0.62);
    color: #e2e8f0;
  }

  .navbar .offcanvas-header {
    padding: 1rem 1.1rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 8, 18, 0.72);
  }

  .navbar .offcanvas-body {
    padding: 0.85rem 1.25rem 1.4rem;
    overflow-y: auto;
  }

  .navbar .offcanvas .site-nav-list {
    align-items: flex-start !important;
    gap: 0.1rem !important;
  }

  .navbar .offcanvas .nav-link {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .navbar .offcanvas .nav-link::after {
    display: none;
  }

  .navbar .offcanvas .nav-link:hover,
  .navbar .offcanvas .nav-link:focus,
  .navbar .offcanvas .nav-link.active {
    color: #8ef1c2;
  }

  .navbar .offcanvas .btn.btn-success {
    margin-top: 0.85rem;
    font-size: 1rem;
    padding: 0.62rem 1.2rem;
  }

  .offcanvas-backdrop.show {
    opacity: 0.62;
  }

  body.nav-open .navbar .navbar-toggler {
    opacity: 0;
    pointer-events: none;
  }

  .navbar .nav-link::after {
    display: none;
  }

  .hero {
    padding-top: 4.2rem;
    padding-bottom: 3.4rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .home-carousel .carousel-item {
    min-height: 500px;
  }

  .home-carousel .carousel-caption {
    left: 6%;
    width: 88%;
  }

  .media-stack,
  .media-stack-sm {
    min-height: 340px;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 2.9rem;
  }

  .feature-card,
  .loan-card,
  .info-card,
  .calc-card,
  .contact-card {
    padding: 1.05rem;
  }

  .home-carousel .carousel-item {
    min-height: 470px;
  }

  .home-carousel .carousel-caption {
    bottom: 14%;
    width: 90%;
  }

  .home-carousel .carousel-caption h1 {
    font-size: 1.8rem;
    line-height: 1.15;
  }

  .home-carousel .carousel-caption p {
    font-size: 1rem;
  }

  .home-carousel .carousel-control-prev,
  .home-carousel .carousel-control-next {
    display: none;
  }

  .card-thumb {
    height: 122px;
  }

  .media-stack,
  .media-stack-sm {
    min-height: 310px;
  }

  .media-stack img {
    width: 68%;
    border-width: 3px;
  }

  .media-stack img:nth-child(1) {
    top: 2%;
  }

  .media-stack img:nth-child(3) {
    right: 6%;
  }

  .photo-strip img {
    height: 140px;
  }
}

