/* FintechPaa - Custom Styles */
:root {
  --fp-primary: #0f766e;
  --fp-primary-dark: #0d5c56;
  --fp-secondary: #0e7490;
  --fp-accent: #06b6d4;
  --fp-dark: #0f172a;
  --fp-light: #f8fafc;
  --fp-gradient: linear-gradient(135deg, #0f766e 0%, #0e7490 50%, #06b6d4 100%);
  --fp-shadow: 0 4px 6px -1px rgba(15, 118, 110, 0.1), 0 2px 4px -2px rgba(15, 118, 110, 0.1);
  --fp-radius: 12px;
  --fp-focus-ring: 0 0 0 3px rgba(15, 118, 110, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--fp-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 0.5rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--fp-primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--fp-radius);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0.5rem;
  outline: 3px solid var(--fp-accent);
  outline-offset: 2px;
}

/* ---- Navbar ---- */
.navbar {
  padding: 0.75rem 0;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--fp-primary) !important;
  transition: opacity 0.2s;
}

.navbar-brand:hover { opacity: 0.9; }

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--fp-dark) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--fp-primary) !important;
  background: rgba(15, 118, 110, 0.08);
}

.navbar-nav .nav-item + .nav-item { margin-left: 0.125rem; }

/* Nav CTA: visual separation before Get Started */
.navbar-nav .nav-cta-wrap {
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-nav .btn-fp-primary { padding: 0.5rem 1.25rem; font-size: 0.9375rem; }

/* Dropdowns */
.navbar .dropdown-menu {
  min-width: 220px;
  padding: 0.5rem 0;
  margin-top: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--fp-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown-item {
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fp-dark);
  border-radius: 6px;
  margin: 0 0.35rem;
  width: calc(100% - 0.7rem);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: rgba(15, 118, 110, 0.1);
  color: var(--fp-primary);
}

.navbar .dropdown-toggle::after { margin-left: 0.35em; vertical-align: 0.2em; }

/* Mobile navbar */
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 1rem 0 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .navbar-nav .nav-link { padding: 0.6rem 0.75rem !important; }
  .navbar-nav .nav-cta-wrap {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .navbar-nav .btn-fp-primary { width: 100%; justify-content: center; }
  .navbar .dropdown-menu { margin-top: 0.25rem; margin-left: 0.5rem; border-radius: 8px; }
}

/* Legacy nav-link for non-navbar usage (e.g. footer) */
.nav-link {
  font-weight: 500;
  color: var(--fp-dark) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link.active { color: var(--fp-primary) !important; }

.btn-fp-primary {
  background: var(--fp-gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--fp-radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-fp-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--fp-shadow);
}

.btn-fp-outline {
  border: 2px solid var(--fp-primary);
  color: var(--fp-primary);
  font-weight: 600;
  border-radius: var(--fp-radius);
  background: transparent;
  transition: all 0.2s;
}

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

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 55%);
}

/* Hero with background image – image behind text, soft overlay (paths relative to CSS file) */
.hero.hero-with-bg {
  position: relative;
  min-height: 280px;
  background-color: var(--fp-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero.hero-bg-about { background-image: url("../images/about-mission.png"); }
.hero.hero-bg-services { background-image: url("../images/solutions-overview.png"); }
.hero.hero-bg-case-studies { background-image: url("../images/case-studies-delivery.png"); }
.hero.hero-bg-contact { background-image: url("../images/hero-fintech.png"); }
.hero.hero-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Stronger overlay so text is easy to read; image still subtly visible */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 253, 250, 0.84) 50%, rgba(255, 255, 255, 0.9) 100%);
  z-index: 0;
}
.hero.hero-with-bg .container {
  position: relative;
  z-index: 1;
}

/* Inline image – blended into layout, soft corners and shadow */
.img-wrap-blend {
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 12px 40px rgba(15, 118, 110, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  background: var(--fp-light);
  border: 1px solid rgba(15, 118, 110, 0.08);
}
.img-wrap-blend img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  vertical-align: middle;
}
/* Optional: fade bottom edge so image blends into next section */
.img-wrap-blend.img-fade-bottom {
  position: relative;
}
.img-wrap-blend.img-fade-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--fp-light), transparent);
  pointer-events: none;
}

.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.2; }

.hero .lead,
main .lead {
  font-size: 1.15rem;
  line-height: 1.65;
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.card-fp {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--fp-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
  overflow: hidden;
}

.card-fp:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.12);
}

.bg-fp-light { background: var(--fp-light); }

.footer {
  background: var(--fp-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

.footer a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--fp-accent); }

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  margin-top: 2rem;
}

.gradient-text { background: var(--fp-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.15), rgba(6, 182, 212, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fp-primary);
}

.breadcrumb { background: transparent; padding: 1rem 0; font-size: 0.9rem; }
.breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }
.breadcrumb-item a { color: var(--fp-secondary); text-decoration: none; border-bottom: none !important; }
.breadcrumb-item a:hover { color: var(--fp-primary); text-decoration: underline; border-bottom: none !important; }

/* Form controls – focus state */
.form-control:focus,
.form-select:focus {
  border-color: var(--fp-primary);
  box-shadow: var(--fp-focus-ring);
}
.form-control, .form-select {
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* In-content links */
main a:not(.btn):not(.nav-link):not(.dropdown-item):not(.breadcrumb-item a) {
  color: var(--fp-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
main a:not(.btn):not(.nav-link):not(.dropdown-item):not(.breadcrumb-item a):hover {
  color: var(--fp-primary-dark);
  border-bottom-color: currentColor;
}

/* Stats / number blocks */
.hero .rounded-3.bg-fp-light,
section .rounded-3.bg-fp-light {
  transition: box-shadow 0.2s, transform 0.2s;
}
.hero .rounded-3.bg-fp-light:hover,
section .rounded-3.bg-fp-light:hover {
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);
}

/* Focus visible for keyboard users */
*:focus-visible {
  outline: 2px solid var(--fp-primary);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--fp-primary);
  outline-offset: 2px;
}
.form-control:focus-visible,
.form-select:focus-visible {
  outline: none;
  box-shadow: var(--fp-focus-ring);
}

.footer h5, .footer h6 { letter-spacing: 0.02em; }
.footer .small { line-height: 1.6; }

@media (max-width: 991px) {
  .navbar-collapse { padding: 1rem 0; }
  .hero { padding: 3rem 0 2rem; }
  .hero .lead, main .lead { font-size: 1.05rem; }
}
