@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --primary: #092677;
  --accent: #af1b3f; 
  --light-bg: #ffffff;
  --dark-text: #212529;
}

html{
   scroll-behavior: smooth;
}
html, body {
  overflow-x: clip !important; /* Never use overflow-x: hidden on body */
  position: relative;
}
*, *::after, *::before{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing:border-box;
}
:active, :hover, :focus{
  outline: 0 !important;
  outline-offset: 0;
}

body{
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-style: normal;
  background-color: var(--light-bg);
  color: var(--dark-text);
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 0.625rem;
}
::-webkit-scrollbar-track{
  background: var(--light-bg);
}
::-webkit-scrollbar-thumb{
  background: var(--accent);
}
/* Screen display */
#share-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--light-bg);
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* header styles */
h1,
h2,
h3, h4, h5, h6
{
    font-weight: 700;
    font-family: "Figtree", sans-serif;
}
.text-primary{
  color: var(--dark-text);
}
p{
  color: var(--dark-text);
  font-weight: 400;
  line-height: 1.75rem;
  letter-spacing: 1px;
  font-size: 1.125rem;
}
a {
    text-decoration: none;
}

header{
    background-color: var(--light-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    top: 30;
    position: sticky;
}
.navbar{
  background-color: #fff;
  height: 80px;
  margin: 20px;
  border-radius: 20px;
  padding: 0.5px

}
.navbar-brand{
  color: var(--primary);
  font-weight: 700;
  font-size: 24px;

}
.navbar-nav .nav-item {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0 0.625rem;
}

/* navigation icon */
.navbar-toggler {
    border: none;
    outline: none;
    font-size: 1.25rem;
}
.navbar-toggler:focus, .btn-close:focus {
    box-shadow: none;
    outline: none;
    border: unset;
}
.nav-link{
  font-weight: 600;
  color: var(--primary);
  position: relative;
  font-size: 1.125rem;
}
.navbar-light .navbar-nav .nav-link{
  color: var(--primary) !important;
  font-size: 1.125rem;
  letter-spacing: 1px;
}
.navbar-light:hover .navbar-nav:hover .nav-link:hover, .navbar-light:active .navbar-nav:active .nav-link:active {
  color: var(--accent) !important;

}
.nav-link:hover, .nav-link:active {
  color: var(--accent);
}
.navbar-light .navbar-toggler-icon {
color: var(--accent);
}
.navbar-nav {
    background-color: var(--light-bg);
}

.nav-link::before{
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transition: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent);
  visibility: hidden;
  transition: 0.3s ease-in-out;
}
/* buttons  */
.btn-mindcode {
  background-color: var(--accent);
  color: #fff;
  font-weight: 500;
  line-height: 1.625rem;
  font-size: 1.5rem;
  text-transform: capitalize;
  box-shadow: 0px 2px 10px -1px rgba(0, 0, 0, 0.048);
  transition: all 0.5s ease-in-out;
  display: inline-block;
  padding: 0.625rem 1.875rem;
}
.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border: 0.125rem solid var(--accent);
  font-weight: 500;
  line-height: 1.625rem;
  font-size: 1.5rem;
  text-transform: capitalize;
  box-shadow: 0px 2px 10px -1px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease-in-out;
  display: inline-block;
  padding: 0.625rem 1.875rem;
}
.btn-secondary:hover {
  background-color: var(--accent);
  color: #fff;
}

.btn-mindcode:hover {
  background-color: var(--primary);
  color: #fff;
}
/* ===== Animated background logo ===== */
.bg-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  z-index: -1;
  opacity: 0;
  transform: translate(0, 0) scale(0.9);
  transition: transform 1s ease, opacity 0.8s ease, top 1s ease, left 1s ease, right 1s ease;
  pointer-events: none;
}
.bg-logo img {
  width: 100%;
  height: auto;
}
.bg-logo.pos-hero {
  opacity: 0.12;
  top: 10%;
  right: 5%;
  left: auto;
  transform: translate(0, 0) scale(1) rotate(0deg);
}
.bg-logo.pos-services {
  opacity: 0.12;
  top: 40%;
  left: -5%;
  right: auto;
  transform: translate(0, 0) scale(1.1) rotate(8deg);
}
.bg-logo.pos-portfolio {
  opacity: 0.12;
  top: 65%;
  right: 2%;
  left: auto;
  transform: translate(0, 0) scale(0.9) rotate(-6deg);
}
.bg-logo.pos-process {
  opacity: 0.1;
  top: 85%;
  left: 8%;
  right: auto;
  transform: translate(0, 0) scale(1) rotate(4deg);
}

/* Accent orange — use sparingly (badges, highlight CTA, "Popular" tags) */
:root {
  --orange-accent: #f4900c;
}
.badge-popular {
  background-color: var(--orange-accent);
  color: #fff;
}

/* Safety net against horizontal overflow anywhere on the page */
html, body {
  overflow-x: hidden;
}

/* --- EXISTING HERO BASE (UNCHANGED) --- */
.hero-section {
    background: url('../images/hero.webp') no-repeat center center/cover;
    width: 100%;
    height: 100vh;
    border-radius: 0 0 30px 30px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; /* keeps content from bleeding past the hero */
    z-index: 1 !important;
}
.top-banner {
    padding: 0 9rem;
    text-align: left;
}
.hero-section::before {
  background-color: rgba(0, 0, 0, 0.6);
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 30px 30px;
}

.hero-contents {
    max-width: 700px; 
    color: #fff;
    position: relative;
    z-index: 1;
    padding-left: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 3rem;
}

/* --- content styles --- */
.hero-contents > h1 {
  font-size: clamp(2rem, 4vw, 3rem); 
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-contents > p {
  color: var(--light-bg);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* The Inline Animated Word Bracket */
.word-rotator-wrapper {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  height: 1.15em; /* Latch height so elements don't shift during rotation */
  vertical-align: top;
  overflow: hidden;
  margin-top: 0.1em;
}

/* Individual rotating word card states */
.word-rotate-item {
  position: absolute;
  left: 0;
  top: 0;
  color: #b31b3e; /* Your Crimson Red branding */
  opacity: 0;
  transform: translateY(60%); /* Enters sliding upwards */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  white-space: nowrap;
  font-weight: 800;
}

/* The active visual word */
.word-rotate-item.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

/* Move the outgoing word up and fade it out */
.word-rotate-item.outgoing {
  opacity: 0;
  transform: translateY(-60%);
}

.mobile-only {
  display: none;
}

@media (max-width: 991px) {
  .top-banner {
    padding: 0 4rem;
  }
  .hero-contents {
    padding-left: 1rem;
    max-width: 100%;
  }
  .hero-contents > h1 {
    font-size: 2.3rem; 
  }
}

@media (max-width: 768px) {
  .top-banner {
    padding: 0 2rem;
  }
  .mobile-only {
    display: block;
  }
  .word-rotator-wrapper {
    display: inline-flex;
    margin-left: 0;
    height: 1.2em;
  }
}
@media (max-width: 576px) {
  .hero-section {
    border-radius: 0 0 20px 20px; /* Slight scale down */
  }
  .hero-section::before {
    border-radius: 0 0 20px 20px;
  }
  .top-banner {
    padding: 0 1.5rem; /* Maximize side screen utility */
  }
  .hero-contents {
    gap: 0.8rem;
  }
  .hero-contents > h1 {
    font-size: 1.85rem !important; 
    line-height: 1.25;
  }
  .hero-contents > p {
    font-size: 0.92rem;
  }
  .word-rotator-wrapper {
    display: block;
    height: 1.3em; 
    margin-top: 0.2rem;
    margin-left: 0;
  }
  .two-btn {
    flex-direction: column; 
    gap: 0.5rem !important;
  }
  .two-btn > a {
    width: 100%;
    text-align: center;
  }
}
/* ===== Service cards ===== */
.service-card {
  background-color: #fff;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(9, 38, 119, 0.1);
  border-color: var(--primary);
}
.service-card h5 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 1rem;
}
.service-card a {
  color: var(--accent);
  font-size: 0.95rem;
}
.service-card a:hover {
  color: var(--primary);
}

/* ===== Portfolio cards ===== */
.portfolio-card {
  background-color: #fff;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(9, 38, 119, 0.1);
}
.portfolio-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.portfolio-card h6 {
  color: var(--primary);
  font-weight: 700;
}
.portfolio-card p {
  font-size: 0.9rem;
  line-height: 1.3rem;
  color: #6c757d;
}

/* blog */
.blog-teaser-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-teaser-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(9, 38, 119, 0.12);
}
.blog-teaser-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.blog-teaser-img.placeholder-img {
  background-color: #eef0f5;
  color: #b0b6c3;
  font-size: 2.5rem;
}
.blog-teaser-body {
  padding: 1.5rem;
}
.blog-teaser-body h5 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.blog-teaser-body p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}

/* ===== Sections ===== */
/* Logo sits above section backgrounds */
.bg-logo {
  z-index: 5;
}

/* Actual readable content stays above the logo */
.hero-contents,
.services-section .container,
.portfolio-section .container,
.blog-section .container,
.process-section .container,
.cta-section .container {
  position: relative;
  z-index: 6;
}
section:not(.cta-section):not(.what-you-get-scroll-section):not(.solutions-section) h2 {
  color: var(--primary);
}

/* ===== CTA section ===== */
.cta-section {
  background-color: var(--primary);
  border-radius: 30px;
  margin: 2rem 20px;
  color: #fff;
}
.cta-section h2 {
  color: #fff;
}
.cta-section .btn-mindcode {
  background-color: var(--orange-accent);
}
.cta-section .btn-mindcode:hover {
  background-color: #fff;
  color: var(--primary);
}

/* ===== Contact hero section ===== */
.hero-contact-section {
  position: relative;
  background: linear-gradient(135deg, #0f1f52 0%, #112c74 35%, #0a183d 100%);
  padding: 6rem 0;
  overflow: hidden;
}
.hero-contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(244, 144, 12, 0.18), transparent 28%);
}
.hero-layout {
  position: relative;
  z-index: 1;
  align-items: center;
}
.hero-copy {
  color: #fff;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  color: #fff;
}
.hero-form-column {
  display: flex;
  justify-content: center;
}
.hero-form {
  width: 100%;
  max-width: 620px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(4, 14, 36, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2rem;
}
.hero-form .row {
  --bs-gutter-y: 1.5rem;
}
.hero-form label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}
.hero-form label span {
  color: var(--accent);
}
.hero-form input {
  width: 100%;
  height: 54px;
  border: 1px solid #dfe7f5;
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: var(--dark-text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.hero-form input:focus {
  border-color: rgba(9, 38, 119, 0.75);
  box-shadow: 0 0 0 4px rgba(9, 38, 119, 0.1);
  outline: none;
}
.hero-form input::placeholder {
  color: #7f8da6;
}
.hero-consent {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #5d6f8d;
}
.hero-submit {
  margin-top: 1.5rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #d3446d 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.hero-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(175, 27, 63, 0.28);
}

@media (max-width: 991px) {
  .hero-contact-section {
    padding: 4.5rem 0;
  }
  .hero-copy {
    text-align: center;
    margin-bottom: 2rem;
  }
  .hero-form-column {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .hero-form {
    padding: 1.25rem;
    border-radius: 18px;
  }
  .hero-form input {
    height: 50px;
  }
  .hero-submit {
    font-size: 0.96rem;
  }
}

/* ===== Process steps ===== */
.process-section h5 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--primary);
  color: #fff;
  margin-top: 4rem;
}
.footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.5rem;
}
.footer-title {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* subscribe*/

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom small {
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a {
  color: #fff;
}
.footer-subscribe input {
  display: block;
  width: 100%;
  min-width: 100px;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.footer-subscribe button {
  display: block;
  width: 100%;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: none;
  background-color: var(--orange-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}
.footer-subscribe button:hover {
  background-color: var(--primary);
}
/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  transition: background-color 0.3s ease;
}
.back-to-top:hover {
  background-color: var(--primary);
}

/* Section badge / eyebrow text */
.section-badge {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Service icons */
.service-icon {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* Alternating section backgrounds */
.services-section {
  background-color: #f8f9fc;
}
.portfolio-section {
  background-color: #ffffff;
}
.blog-section {
  background-color: #f8f9fc;
}
.process-section {
  background-color: #ffffff;
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Stats strip */
.stats-section {
  background-color: var(--primary);
  border-radius: 30px 30px 30px 30px;
}
.stat-number {
  color: #fff;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}
.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* What You Get */
/* .what-you-get-section {
  background-color: #ffffff;
} */
.benefit-card {
  transition: transform 0.3s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
}
.benefit-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.benefit-card h5 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Testimonials */
.testimonials-section {
  background-color: #f8f9fc;
}
.testimonial-card {
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 15px rgba(9, 38, 119, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(9, 38, 119, 0.1);
}
.testimonial-card img {
  width: 100%;
  height: auto;
  display: block;
}

.testimonials-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--primary);
}


/* Page hero  other pages */
.page-hero {
  background: url('../images/hero.webp') no-repeat center center/cover;
  position: relative;
  margin-top: 100px;
  padding: 5rem 0;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(9, 38, 119, 0.85); /* navy overlay instead of black, ties to brand */
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0.75rem 0;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
}
.page-hero .section-badge {
  color: var(--orange-accent);
}

/* Pricing cards */
.pricing-card {
  background-color: #fff;
  border: 1px solid #eee;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(9, 38, 119, 0.1);
}
.pricing-card.featured {
  border: 2px solid var(--accent);
}
.pricing-card h5 {
  color: var(--primary);
  font-size: 1.25rem;
}
.pricing-card .price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.5rem 0 1.25rem;
}
.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
}
.pricing-list li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #f1f1f1;
}
.pricing-list i {
  color: var(--accent);
  margin-right: 0.5rem;
}
.pricing-card .btn {
  margin-top: 1.5rem;
  font-size: 1rem;
}
.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.about-photo {
  box-shadow: 0 10px 30px rgba(9, 38, 119, 0.15);
}

.approach-icon {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}
.leader-card {
  background-color: #fff;
  border: 1px solid #eee;
}
.leader-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 3px solid var(--primary);
}
.leader-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
/* What You Get Section */
.what-you-get-scroll-section {
  background: linear-gradient(135deg, #0f1f52 0%, #112c74 35%, #0a183d 100%) !important;
  color: #fff;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
  overflow: hidden;
}

.what-you-get-scroll-section .section-badge {
  color: var(--accent);
}

.what-you-get-scroll-section h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}

.what-you-get-scroll-section > .container-fluid > p:not(.section-badge):not(.swipe-hint) {
  color: rgba(255, 255, 255, 0.7);
}

.benefit-scroll-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow-x: auto;
  overflow-y: visible;
  /* Top & bottom padding gives room for the curve */
  padding: 5rem max(5vw, calc(50vw - 280px)) 8rem;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.benefit-scroll-track::-webkit-scrollbar {
  display: none;
}

.benefit-scroll-track.dragging {
  cursor: grabbing;
  user-select: none;
}
/* NEW: The customized mouse trailing overlay */
.custom-swipe-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999 !important; /* Forces it over fixed elements */
  background: #b31b3e; /* MindCode Crimson */
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  pointer-events: none; /* Allows mouse interactions to bypass overlay */
  opacity: 0; /* Starts invisible */
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* Visbility rules when hovering active target fields */
.benefit-scroll-viewport:hover ~ .custom-swipe-cursor,
.custom-swipe-cursor.visible {
  opacity: 1 !important;
  transform: scale(1) !important;
}
.benefit-scroll-card {
  flex: 0 0 500px;
  width: 500px;
  height: 500px;
  position: relative;
  border: none;
  border-radius: 28px;
  overflow: hidden;

  /* Ensure image covers properly */
  background-color: #1a1a1a; /* Fallback so card isn't invisible */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  display: flex;
  align-items: flex-end;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform-origin: center 130%;
  will-change: transform;
}

.benefit-overlay {
  position: absolute;
  inset: 0;
  /* Leaves the top/middle transparent so the imagery pops */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 95%);
  pointer-events: none;
  z-index: 1;
}

.benefit-text {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  color: #fff;
}

.benefit-text h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.benefit-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5rem;
  margin-bottom: 0;
}

.swipe-hint {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 576px) {
  .benefit-scroll-card {
    flex: 0 0 280px;
    width: 280px;
    height: 340px;
    border-radius: 20px;
  }
  .benefit-scroll-track {
    gap: 1.5rem;
    padding-left: max(5vw, calc(50vw - 140px));
    padding-right: max(5vw, calc(50vw - 140px));
    padding-top: 5rem;
    padding-bottom: 6rem;
  }
}
.faq-bubble {
  background-color: #fff;
  border-radius: 28px;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(9, 38, 119, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.faq-bubble:hover {
  box-shadow: 0 15px 35px rgba(9, 38, 119, 0.14);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-left: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.faq-question:not(.collapsed) .faq-icon {
  transform: rotate(45deg);
  background-color: var(--primary);
}

.faq-answer p {
  padding: 0 2rem 1.5rem;
  font-size: 1rem;
  margin: 0;
}
.hero-form textarea,
.hero-form select.quote-select {
  width: 100%;
  border: 1px solid #dfe7f5;
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: var(--dark-text);
  font-size: 1rem;
  font-family: inherit;
}
.hero-form textarea:focus,
.hero-form select.quote-select:focus {
  border-color: rgba(9, 38, 119, 0.75);
  box-shadow: 0 0 0 4px rgba(9, 38, 119, 0.1);
  outline: none;
}

/* Thank you popup */
.quote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 38, 119, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}
.quote-modal {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.quote-modal h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Container creates scroll track */
.solutions-section {
  background-color: var(--primary);
  color: #fff;
  height: 350vh;
  position: relative;
  margin: 0;
  padding: 0;
  z-index: 1;
}

/* Freezes on screen while cards scroll */
.solutions-sticky-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 130px 1.5rem 2rem; */
  box-sizing: border-box;
  overflow: hidden;
}

/* Header Styles */
.solutions-header {
  max-width: 820px;
  text-align: center;
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.solutions-header .section-badge {
  color: #b31b3e; /* MindCode Solve Crimson */
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.solutions-title {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.solutions-desc {
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto;
}

/* Card Anchor Box */
.solutions-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 420px;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
}

/* White Cards with Deep Navy & Crimson Details */
.solution-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: var(--primary); 
  border-radius: 24px;
  padding: 3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  gap: 3rem;
  border-top: 5px solid var(--primary); 
  box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.45);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent); 
  letter-spacing: -0.02em;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(11, 37, 104, 0.08);
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
}

.card-title {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--primary); /* MindCode Deep Navy */
  margin: 0;
}

.card-desc {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  color: #4a5568;
  margin: 0;
}

@media (max-width: 768px) {
  .solutions-sticky-stage {
    padding: 110px 1rem 1.5rem;
  }
  .solutions-card-wrapper {
    height: 380px;
    max-width: 92%;
  }
  .solution-card {
    padding: 2rem 1.8rem;
  }
}
/* Category pills */
.blog-pill {
  background-color: #eef0f5;
  color: var(--primary);
  border: none;
  border-radius: 30px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: 20px !important;
}
.blog-pill:hover {
  background-color: rgba(9, 38, 119, 0.1);
}
.blog-pill.active {
  background-color: var(--primary);
  color: #fff;
}

/* Featured post */
.blog-featured-img {
  height: 320px;
  border-radius: 20px;
}
.blog-featured-img.placeholder-img {
  background-color: #eef0f5;
  color: #b0b6c3;
  font-size: 3rem;
}
.blog-featured h3 {
  color: var(--primary);
}
.blog-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Recent posts list */
.blog-list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}
.blog-list-item:first-child {
  padding-top: 0;
}
.blog-list-item h5 {
  color: var(--primary);
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}
.blog-list-item:hover h5 {
  color: var(--accent);
}

.tool-card {
  background-color: #fff;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(9, 38, 119, 0.1);
}
.tool-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.tool-card h5 {
  color: var(--primary);
}
.affiliate-disclosure {
  font-size: 0.85rem;
  color: #888;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.offer-card {
  background-color: #fff;
  border: 2px solid var(--accent);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(175, 27, 63, 0.15);
}
.offer-badge {
  display: inline-block;
  background-color: var(--orange-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
}
.offer-card h5 {
  color: var(--primary);
}
.offers-note {
  font-size: 0.85rem;
  color: #888;
}

/* blog */
.blog-post-title {
  color: var(--primary);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.blog-post-excerpt {
  font-size: 1.2rem;
  color: #555;
  max-width: 750px;
  margin-top: 1rem;
}
.blog-post-byline {
  color: #888;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.blog-post-byline strong {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.blog-post-image {
  width: 100%;
  border-radius: 24px;
  max-height: 480px;
  object-fit: cover;
}
.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--dark-text);
}
.blog-post-body h2 {
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.blog-post-body p {
  margin-bottom: 1.5rem;
}
.blog-post-body img {
  width: 100%;
  border-radius: 16px;
  margin: 1.5rem 0;
}
