/* Section headings */
.section-heading {
  color: #333333;
  font-family: "CerebriSans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.4;
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 0;
}

.text-color-primary {
  color: #008ed2;
}

/* Services section - alignment, spacing, responsiveness */
.services-section .service-card .service-content {
  height: auto;
}

.services-section .service-card .service-header h3 {
  margin-bottom: 0.75rem;
}

.services-section .service-card .service-deliverables {
  margin-top: 0.5rem;
}

.services-section .service-card .service-deliverables h4 {
  margin-bottom: 1rem;
}

.services-section .service-deliverables-list>div {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.6;
}

.services-section .service-deliverables-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.services-section .service-process-card {
  height: auto;
}

.services-section .service-process-steps>div {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

@media (max-width: 1023px) {
  .services-section .service-grid {
    gap: 1.5rem;
  }

  .services-section .service-content {
    padding-bottom: 0;
  }
}

@media (max-width: 639px) {
  .services-section .service-card {
    padding-left: 0;
    padding-right: 0;
  }

  .services-section .service-process-card {
    padding: 1.5rem;
  }
}

/* Case Studies - card layout with uniform spacing */
.case-studies-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Container (Bootstrap-compatible responsive) */
.container-responsive {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .container-responsive {
    max-width: 540px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container-responsive {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container-responsive {
    max-width: 960px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1200px) {
  .container-responsive {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container-responsive {
    max-width: 1320px;
  }
}

/* Page load: fade-in */
html {
  scroll-behavior: smooth;
}

body.page-loading {
  opacity: 0;
}

body.page-loaded {
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

/* Page unload: fade-out */
body.page-exiting {
  opacity: 0;
  transition: opacity 0.25s ease-in;
  pointer-events: none;
}

/* Scroll-reveal (IntersectionObserver will add .reveal-visible) */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-item.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-item.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Stagger children */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-container.reveal-visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.stagger-container.reveal-visible .stagger-item:nth-child(1) {
  transition-delay: 0s;
}

.stagger-container.reveal-visible .stagger-item:nth-child(2) {
  transition-delay: 0.05s;
}

.stagger-container.reveal-visible .stagger-item:nth-child(3) {
  transition-delay: 0.1s;
}

.stagger-container.reveal-visible .stagger-item:nth-child(4) {
  transition-delay: 0.15s;
}

.stagger-container.reveal-visible .stagger-item:nth-child(5) {
  transition-delay: 0.2s;
}

.stagger-container.reveal-visible .stagger-item:nth-child(6) {
  transition-delay: 0.25s;
}

.stagger-container.reveal-visible .stagger-item:nth-child(n+7) {
  transition-delay: 0.3s;
}

/* FAQ Accordion */
.faq-card {
  border-radius: 0.75rem !important;
}
.faq-item {
  transition: background-color 0.25s ease, box-shadow 0.3s ease, border-left-color 0.25s ease;
}
.faq-item.faq-open {
  background-color: #F8FBFF;
  border-left-color: #0B6CF0;
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.1);
}
.faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}
.faq-item.faq-open .faq-content {
  grid-template-rows: 1fr;
}
.faq-item .faq-content > div {
  overflow: hidden;
  min-height: 0;
}
.faq-item .faq-icon-plus { display: block; }
.faq-item .faq-icon-minus { display: none; }
.faq-item.faq-open .faq-icon-plus { display: none; }
.faq-item.faq-open .faq-icon-minus { display: block; }
.faq-item.faq-open .faq-icon {
  background-color: #0B6CF0 !important;
  color: white !important;
}

/* Line clamp (Tailwind CDN may not have it) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero slider dots override */
.hero-swiper {
  padding-bottom: 2.5rem;
}

.hero-swiper .swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.hero-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  border: none;
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #0B6CF0;
  transform: none;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  display: none;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: #1E293B;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  color: #0B6CF0;
}

@media (max-width: 768px) {

  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev {
    display: none;
  }
}

/* Header scrolled state */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Body base */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.swiper-button-next svg,
.swiper-button-prev svg {
  width: 20px !important;
  height: 20px !important;
}

/* Section background images with overlay */
.hero-section-bg {
  background: linear-gradient(135deg, #f8fbff 0%, #eaf2ff 40%, #dbeafe 100%);
}

.hero-section-overlay {
  background: transparent;
  z-index: 1;
}

.blog-section-bg {
  background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=75");
  background-size: cover;
  background-position: center;
}

.blog-section-overlay {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.96) 100%);
  z-index: 1;
}

.join-form-bg {
  background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&q=75");
  background-size: cover;
  background-position: center;
}

.join-form-overlay {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.94) 0%, rgba(255, 255, 255, 0.92) 50%, rgba(248, 250, 252, 0.94) 100%);
  z-index: 1;
}

/* Card enhancements */
.card-soft-shadow {
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.08), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

.card-soft-shadow:hover {
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.12), 0 4px 12px -4px rgba(0, 0, 0, 0.08);
}

.card-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover-lift:hover {
  transform: translateY(-4px);
}

/* Global border radius standardization - 5px */
button,
a[class*="inline-flex"],
input,
textarea,
select,
[class*="rounded"] {
  border-radius: 5px !important;
}

/* Footer visibility */
.footer,
.footer p,
.footer span,
.footer li {
  color: #ffffff;
  opacity: 0.9;
}

.footer a {
  color: #ffffff;
  opacity: 0.9;
  transition: color 0.3s, opacity 0.3s;
}

.footer a:hover {
  color: #008ed2;
  opacity: 1;
}

.footer svg,
.footer i {
  color: #ffffff;
  opacity: 0.95;
}

.footer svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
}

.footer h3 {
  color: #ffffff;
  opacity: 0.95;
}

/* Preserve circular elements (pagination bullets, avatars) */
[class*="rounded-full"],
.hero-swiper .swiper-pagination-bullet {
  border-radius: 9999px !important;
}