/* Spainik – modern homepage + shared header/footer sitewide */
body.sp-unified-chrome,
body.sp-home-modern {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1d21;
  background: #fff;
}

.sp-unified-chrome .site-wrap,
.sp-home-modern .site-wrap {
  overflow-x: hidden;
}

/* Sticky header */
.sp-unified-chrome .site-navbar.sp-header-modern,
.sp-home-modern .site-navbar.sp-header-modern {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.06);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  transition: box-shadow 0.3s ease;
}

.sp-unified-chrome .top-bar,
.sp-home-modern .top-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.sp-unified-chrome .top-bar a,
.sp-home-modern .top-bar a {
  color: #93c5fd;
}

.sp-unified-chrome .top-bar .social-media a,
.sp-home-modern .top-bar .social-media a {
  color: rgba(255, 255, 255, 0.85);
}

/* Hero */
.sp-hero-wrap {
  position: relative;
  min-height: 78vh;
  max-height: 900px;
}

.sp-hero-carousel .owl-stage-outer,
.sp-hero-carousel .owl-height {
  min-height: 78vh;
}

.sp-hero-slide {
  min-height: 78vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.sp-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(0, 98, 255, 0.45) 100%);
  z-index: 0;
}

.sp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 3rem 1rem 4rem;
  color: #fff;
}

.sp-hero-inner h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.sp-hero-inner p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.92;
  margin-bottom: 1.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

.sp-btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.sp-btn-outline-light:hover {
  background: #fff;
  color: #0062ff !important;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.sp-hero-carousel .owl-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.sp-hero-carousel .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.sp-hero-carousel .owl-dots .owl-dot.active span {
  background: #fff;
  width: 28px;
  border-radius: 6px;
}

/* Section headings */
.sp-section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.sp-section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}

.sp-section-head p {
  color: #475467;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

.sp-section {
  padding: 4.5rem 0;
}

.sp-section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Welcome split */
.sp-welcome-row {
  align-items: center;
}

.sp-welcome-text h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.sp-welcome-text p {
  color: #475467;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.sp-welcome-slider {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.sp-welcome-slider img {
  width: 100%;
  height: auto;
  display: block;
}

/* Quote band */
.sp-quote-band {
  background: linear-gradient(135deg, #0062ff 0%, #0044b3 100%);
  padding: 3.5rem 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sp-quote-band::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 4%;
  font-size: 8rem;
  line-height: 1;
  opacity: 0.12;
  font-family: Georgia, serif;
}

.sp-quote-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.sp-quote-inner h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  margin: 0;
}

/* Our Happy Customers */
.sp-customers {
  background: #f8fafc;
}

/* Blue accent bar centered under the heading text (not full container width) */
.sp-customers-head h2.sp-happy-customers-title,
.sp-about-happy-customers-head h2.sp-happy-customers-title {
  position: relative;
  display: inline-block;
  padding-bottom: 1.1rem;
  margin-bottom: 0.75rem;
}

.sp-customers-head h2.sp-happy-customers-title::after,
.sp-about-happy-customers-head h2.sp-happy-customers-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
}

.sp-customers-head {
  max-width: 640px;
  margin-bottom: 2.5rem !important;
}

.sp-customers-row {
  margin-top: 0.5rem;
}

.sp-customer-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 1.25rem 1rem;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sp-customer-card:hover {
  box-shadow: 0 12px 36px rgba(0, 98, 255, 0.12);
  transform: translateY(-4px);
}

.sp-customer-card img {
  width: 100%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Solution / product cards */
.sp-card-grid {
  margin-top: 0;
}

.sp-solution-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.sp-solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 98, 255, 0.15);
}

.sp-solution-card .sp-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.sp-solution-card .sp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sp-solution-card:hover .sp-card-img img {
  transform: scale(1.05);
}

.sp-solution-card .sp-card-body {
  padding: 1.5rem 1.35rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sp-solution-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.sp-solution-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.sp-link-arrow {
  font-weight: 700;
  color: #0062ff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.sp-link-arrow:hover {
  gap: 0.55rem;
}

/* Services strip */
.sp-services-section {
  background: #fff;
}

/* Why us */
.sp-why-grid .sp-why-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sp-why-grid .sp-why-card:hover {
  border-color: rgba(0, 98, 255, 0.25);
  box-shadow: 0 8px 28px rgba(0, 98, 255, 0.08);
}

.sp-why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 98, 255, 0.12), rgba(0, 98, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0062ff;
  font-size: 1.35rem;
}

.sp-why-card h5 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.sp-why-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* CTA split */
.sp-cta-split {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
}

.sp-cta-split h3 {
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.sp-cta-split p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.sp-cta-split .sp-line {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 2rem;
}

@media (max-width: 767px) {
  .sp-cta-split .sp-line {
    border-left: none;
    padding-left: 0;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

.sp-btn-primary-solid {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 1.75rem;
  background: #0062ff;
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid #0062ff;
  transition: all 0.25s ease;
}

.sp-btn-primary-solid:hover {
  background: #fff;
  color: #0062ff !important;
  border-color: #fff;
}

/* Footer modern — compact, matches light sections + site blues */
.sp-footer-modern {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #64748b;
  padding: 1.75rem 0 0;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sp-footer-modern > .container > .row {
  margin-bottom: 0;
}

.sp-footer-modern h4,
.sp-footer-modern .footer-heading {
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sp-footer-modern > .container > .row > [class*="col-"] {
  margin-bottom: 1rem !important;
}

.sp-footer-modern > .container > .row > [class*="col-"] > p,
.sp-footer-modern > .container > .row > [class*="col-"] .mb-0 {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.sp-footer-modern a {
  color: #475569;
}

.sp-footer-modern a:hover {
  color: #2563eb;
}

.sp-footer-modern ul.list-unstyled li {
  margin-bottom: 0.25rem;
}

.sp-footer-modern ul.list-unstyled li a {
  font-size: 0.8125rem;
}

.sp-footer-bottom {
  border-top: 1px solid #e2e8f0;
  margin-top: 0.5rem;
  padding: 0.65rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.5);
}

.sp-footer-bottom p {
  margin: 0;
}

.sp-footer-modern .social-media-footer a {
  color: #64748b;
  font-size: 1.05rem;
}

.sp-footer-modern .social-media-footer a:hover {
  color: #2563eb;
}

/* Scroll reveal */
.sp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.sp-reveal.sp-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo row in header (image size set in spainik-premium.css) */
.sp-unified-chrome .site-logo-text,
.sp-home-modern .site-logo-text {
  font-size: 1.62rem !important;
}

/* About page — larger hero & imagery */
body.sp-about-page .sp-about-cover.site-blocks-cover.inner-page-cover,
body.sp-about-page .sp-about-cover.site-blocks-cover.inner-page-cover > .container > .row {
  min-height: 92vh !important;
  height: auto !important;
  max-height: none !important;
}

body.sp-about-page .sp-about-cover {
  background-size: cover !important;
  background-position: center center !important;
}

@media (max-width: 991.98px) {
  body.sp-about-page .sp-about-cover.site-blocks-cover.inner-page-cover,
  body.sp-about-page .sp-about-cover.site-blocks-cover.inner-page-cover > .container > .row {
    min-height: 72vh !important;
  }
}

body.sp-about-page .sp-about-feature-img,
body.sp-about-page .sp-about-client-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
  display: block;
}

body.sp-about-page .sp-about-feature-img {
  min-height: 280px;
  object-fit: contain;
  background: #f1f5f9;
  padding: 0.5rem;
}

body.sp-about-page .sp-about-client-img {
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 992px) {
  body.sp-about-page .sp-about-client-img {
    min-height: 420px;
    max-height: 560px;
  }
}

/* About — Our Happy Customers carousel (3 slides, dots) */
body.sp-about-page .sp-about-happy-customers-wrap {
  background: #f8fafc;
}

body.sp-about-page .sp-about-happy-customers-head {
  max-width: 640px;
  margin-bottom: 2.25rem !important;
}

body.sp-about-page .sp-about-happy-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 0.5rem 0.5rem 2.75rem;
}

body.sp-about-page .sp-about-happy-slide img {
  width: auto;
  max-width: 100%;
  max-height: 540px;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.16);
}

@media (min-width: 992px) {
  body.sp-about-page .sp-about-happy-slide {
    min-height: 440px;
  }

  body.sp-about-page .sp-about-happy-slide img {
    max-height: 640px;
  }
}

body.sp-about-page .sp-about-happy-carousel .owl-dots {
  text-align: center;
  margin-top: 0.25rem;
}

body.sp-about-page .sp-about-happy-carousel .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 6px 7px;
  background: #cbd5e1 !important;
  display: block;
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease;
}

body.sp-about-page .sp-about-happy-carousel .owl-dot.active span,
body.sp-about-page .sp-about-happy-carousel .owl-dot:hover span {
  background: #2563eb !important;
  transform: scale(1.1);
}
