/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Highlight */
.highlight {
  color: #4a90e2;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #4a90e2;
  color: white;
  padding: 8px 16px;
  z-index: 1001;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid white;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0a1f44;
  color: white;
  transition: all 0.3s ease;
  margin-bottom: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: rgba(8, 25, 56, 0.99);
}


/* ── Brand Bar ── */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(74,144,226,0.35));
  transition: filter 0.3s, transform 0.3s;
}

.logo-icon:hover,
.logo:hover .logo-icon {
  filter: drop-shadow(0 0 16px rgba(0,136,255,0.8));
  transform: rotate(-3deg) scale(1.05);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logo-text {
  color: white !important;
  font-weight: 900;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.5px;
  font-family: 'Arial Black', Arial, sans-serif;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo-blue {
  color: #0077cc !important;
  text-shadow: none !important;
}

/* Ensure no inherited green ever overrides logo */
.logo .logo-blue,
.logo-text .logo-blue,
header .logo-blue {
  color: #0077cc !important;
  text-shadow: none !important;
}

.logo-thin {
  font-weight: 300;
  color: rgba(255,255,255,0.92) !important;
  letter-spacing: 1px;
  font-size: 1.65rem;
}

.logo-tagline {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.42);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 500;
  font-family: sans-serif;
}

.header-cta-btn {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(74,144,226,0.35);
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: linear-gradient(135deg, #357abd, #2a6099);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,144,226,0.5);
}

/* ── Navigation ── */
.main-nav {
  background: #ffffff;
  padding: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: #0a1f44;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: block;
  padding: 10px 16px;
  letter-spacing: 0.2px;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #4a90e2;
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #4a90e2;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 70%;
}

/* Mobile responsive header */
@media (max-width: 768px) {

  .header-top {
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo img {
    height: 42px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .logo-tagline {
    display: none;
  }

  .header-cta-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .nav-menu {
    gap: 0;
  }

  .nav-menu li a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 70px 0 80px;
  display: block;
  min-height: calc(100vh - 105px);
  box-sizing: border-box;
}

/* Hero slideshow slides */
.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
  will-change: opacity;
  transform: translateZ(0);
}
.hero-slide.active {
  opacity: 1;
}
/* Dark overlay on each slide — lighter so images show through */
.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    rgba(10,31,68,0.60) 0%,
    rgba(10,31,68,0.72) 60%,
    rgba(10,31,68,0.80) 100%
  );
}

.hero:focus {
  outline: none;
}
/* Stats bar inside hero */
.hero-stats {
  margin-top: 50px;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 30px;
  position: relative;
  z-index: 1;
}
.hero-stats .stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: nowrap;
  gap: 1rem;
  text-align: center;
}
.hero-stats .stat-number {
  display: block;
  font-size: 2.0rem;
  font-weight: 700;
  color: #4a90e2;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.hero-stats .stat-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);
}


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

.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.hero h2 {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.9rem;
  line-height: 1.4;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 1.3rem;
  opacity: 0.95;
  line-height: 1.7;
}

/* Static text styling */
.static-text {
  display: inline-block;
  margin-right: 6px;
  color: rgba(255,255,255,0.9);
}

/* Animation for Enterprise-Grade Solutions text */
.animated-text {
  display: inline-block;
  animation: slideInFromRight 1.2s ease-out forwards;
  color: #4a90e2;
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  60% {
    opacity: 1;
    transform: translateX(-5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Service Rotator ── */
.service-rotator {
  position: relative;
  min-height: 90px;
  margin: 1.2rem 0 0.6rem;
}
.service-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.service-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.service-label {
  display: inline-block;
  font-size: 1.01rem;
  font-weight: 700;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(74,144,226,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  padding: 4px 17px;
  margin-bottom: 0.7rem;
}
.service-slide p {
  color: rgba(255,255,255,0.88);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}
/* Dot indicators */
.rotator-dots {
  display: flex;
  gap: 7px;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.rdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
  opacity: 0.4;
}
.rdot.active {
  background: #4a90e2;
  transform: scale(1.3);
  opacity: 0.6;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: #4a90e2;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74,144,226,0.3);
}

.btn.large {
  padding: 11px 30px;
  font-size: 0.85rem;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(74,144,226,0.4);
  letter-spacing: 0.2px;
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn.secondary {
  background: transparent;
  border: 1px solid white;
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Section Padding Fix for Fixed Header — JS sets scroll-padding-top dynamically */
html {
  scroll-padding-top: 100px;
  scroll-behavior: auto;
}

/* Stats Bar */
.stats-bar {
  display: none;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.stat-item {
  flex: 1 1 200px;
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: #4a90e2;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  opacity: 1;
}

/* Sections */
section {
  padding: 0;
}

/* Scroll offset fix for sticky header — applied to every anchor section */
#home,
#services,
#why-us,
#industries,
#partners,
#clients,
#insights,
#contact,
.section-padding {
  scroll-margin-top: 105px;
}

/* Section default padding */
.section-padding {
  padding: 50px 0;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #0a1f44;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Benefits Grid - 4 COLUMNS IN ONE ROW */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Industries Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Insights Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Cards */
.service-card,
.benefit,
.insight-card,
.testimonial {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Image wrapper for badge overlay */
.service-card .img-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.service-card .img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0;
}

.service-card .img-wrapper .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e8f5e9;
  color: #228B22;
  border: 1px solid #c8e6c9;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card:hover,
.benefit:hover,
.insight-card:hover,
.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.service-card h3,
.benefit h3,
.insight-card h3 {
  margin-bottom: 1rem;
  color: #0a1f44;
  font-size: 1.4rem;
}

.benefit i,
.insight-card i {
  font-size: 2.5rem;
  color: #4a90e2;
  margin-bottom: 1rem;
}

.benefit p {
  flex-grow: 1;
}

/* Industry */
.industry {
  background: #0a1f44;
  color: white;
  padding: 1.5rem;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.3s;
}

.industry:hover {
  transform: translateY(-3px);
}

/* Partners Section */
.partners {
  background: #f8f9fa;
  padding: 60px 0 25px;
  margin: 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem;
  align-items: center;
  justify-items: center;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  text-align: center;
  padding: 0.5rem;
}

.partner-logo:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.partner-logo i {
  font-size: 3rem;
  transition: transform 0.3s;
}

.partner-logo small {
  display: block;
  font-size: 0.68rem;
  color: #4a90e2;
  letter-spacing: 0.5px;
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.partner-category {
  margin-bottom: 1.2rem;
}

.partner-category-title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a90e2;
  margin-bottom: 0.6rem;
  position: relative;
}

.partner-category-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #4a90e2;
  margin: 6px auto 0;
  border-radius: 2px;
}

.partner-logo:hover i {
  transform: scale(1.1);
}

.partner-logo span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

/* Testimonials */
.testimonial {
  text-align: center;
}

.testimonial img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #4a90e2;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
  color: #555;
  flex-grow: 1;
}

.testimonial cite {
  font-weight: 600;
  color: #4a90e2;
  font-style: normal;
}

/* Insights */
.insights {
  background: white;
}

.insight-card {
  border-left: 4px solid #4a90e2;
}

.read-more {
  color: #4a90e2;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* Contact */
.contact {
  background: #f8f9fa;
}

.contact .or {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact .or a {
  color: #0a1f44;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
}

.contact .or a:hover {
  color: #4a90e2;
}

.business-hours {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #555;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.business-hours .emergency {
  color: #4a90e2;
  font-weight: 500;
  font-size: 0.9rem;
}

.privacy-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #777;
}

.privacy-note a {
  color: #4a90e2;
  text-decoration: none;
}

.privacy-note a:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #4a90e2;
  border-color: transparent;
}

.contact-form button {
  width: fit-content;
  justify-self: center;
  margin-top: 1rem;
}

/* Footer */
footer {
  background: #0a1f44;
  color: white;
  text-align: center;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.footer-services-col,
.footer-areas-col {
  line-height: 2;
}

.footer-services-col p,
.footer-areas-col p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-services-col p strong,
.footer-areas-col p strong {
  opacity: 1;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-services-col a,
.footer-areas-col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-services-col a:hover,
.footer-areas-col a:hover {
  color: #4a90e2;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-business-info {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.footer-business-info strong {
  font-size: 1.3rem;
}

.footer-business-info a {
  color: white;
  text-decoration: none;
}

.footer-business-info a:hover {
  color: #4a90e2;
}

.license {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.footer-links {
  margin: 1.5rem 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: #4a90e2;
}

.social {
  margin-top: 1.5rem;
}

.social a {
  color: white;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s;
  display: inline-block;
}

.social a:hover {
  color: #4a90e2;
  transform: translateY(-3px);
}

.copyright {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.dmca {
  margin-top: 1rem;
  font-size: 0.8rem;
}

.dmca a {
  color: white;
  text-decoration: none;
  opacity: 0.7;
}

.dmca a:hover {
  opacity: 1;
  color: #4a90e2;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #4a90e2;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(74,144,226,0.4);
  z-index: 999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-cta i {
  font-size: 1.2rem;
}

.floating-cta:hover {
  background: #357abd;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(74,144,226,0.5);
}

.floating-cta:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: white;
  padding: 1rem;
  text-align: center;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 3px solid #4a90e2;
}

.cookie-consent p {
  max-width: 600px;
  margin: 0;
}

.cookie-consent a {
  color: #4a90e2;
  text-decoration: underline;
}

.cookie-consent a:hover {
  color: #6aa9ff;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 30px 0 30px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0 20px;
  }

  .btn.large {
    padding: 14px 28px;
    font-size: 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .stats-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .floating-cta {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .cookie-consent {
    flex-direction: column;
    padding: 1rem;
  }
  
  .footer-business-info {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-links a {
    display: inline-block;
    margin: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .service-card img {
    height: 160px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Rating & Review Section ── */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #f8f9fa;
  border-radius: 16px;
  padding: 28px 36px;
  margin: 3rem 0 2rem;
  border: 1px solid #e8ecf0;
  flex-wrap: wrap;
}

.rating-overall {
  text-align: center;
  min-width: 110px;
}

.rating-big-num {
  display: block;
  font-size: 3.6rem;
  font-weight: 800;
  color: #0a1f44;
  line-height: 1;
}

.rating-stars-display {
  color: #f5a623;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin: 4px 0;
}

.rating-count {
  font-size: 0.82rem;
  color: #888;
}

.rating-bars {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #555;
}

.rating-bar-row > span:first-child {
  width: 32px;
  text-align: right;
  color: #f5a623;
  font-weight: 600;
}

.rating-bar-row > span:last-child {
  width: 24px;
  color: #888;
}

.bar-track {
  flex: 1;
  height: 10px;
  background: #e0e7ef;
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f5a623, #f9c46b);
  border-radius: 10px;
  transition: width 1s ease;
}

/* ── Leave a Review Box ── */
.leave-review-box {
  background: #fff;
  border: 2px solid #e8ecf0;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 2.5rem;
  text-align: center;
  transition: border-color 0.3s;
}

.leave-review-box:hover {
  border-color: #4a90e2;
}

.leave-review-box h3 {
  color: #0a1f44;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.leave-review-box > p {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.star-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.star-pick {
  font-size: 2.4rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.star-pick:hover,
.star-pick.hovered,
.star-pick.selected {
  color: #f5a623;
  transform: scale(1.2);
}

.star-label {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 14px;
  min-height: 1.2em;
}

.review-form-fields {
  margin-top: 16px;
  text-align: left;
}

.review-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.review-form-row input,
.review-form-fields textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dde4ed;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #f8f9fa;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.review-form-row input:focus,
.review-form-fields textarea:focus {
  outline: none;
  border-color: #4a90e2;
  background: #fff;
}

.review-form-fields textarea {
  resize: vertical;
  margin-bottom: 14px;
}

.review-form-fields .btn {
  width: 100%;
  justify-content: center;
  border-radius: 50px;
  font-size: 1rem;
  padding: 12px;
}

.review-success {
  color: #228B22;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px;
  background: #e8f5e9;
  border-radius: 10px;
  margin-top: 16px;
}

.review-success i {
  margin-right: 6px;
}

/* ── Dynamic submitted reviews ── */
.dynamic-reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 1rem;
}

.dynamic-review-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dynamic-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a1f44, #4a90e2);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dynamic-review-body {
  flex: 1;
}

.dynamic-review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 6px;
}

.dynamic-review-name {
  font-weight: 700;
  color: #0a1f44;
  font-size: 0.97rem;
}

.dynamic-review-role {
  font-size: 0.82rem;
  color: #888;
}

.dynamic-review-stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 1px;
}

.dynamic-review-date {
  font-size: 0.78rem;
  color: #bbb;
}

.dynamic-review-text {
  color: #555;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 6px 0 0;
}

@media (max-width: 600px) {
  .rating-summary { flex-direction: column; gap: 20px; padding: 20px; }
  .review-form-row { flex-direction: column; }
  .leave-review-box { padding: 24px 18px; }
}

/* Hide top utility bar when scrolled to save space and remove dark strip */
header.scrolled {
  background: #0a1f44;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Keep nav bar always white with dark text regardless of scroll state */
header.scrolled .main-nav {
  background: #ffffff;
}
header.scrolled .nav-menu li a {
  color: #0a1f44;
}

/* Keep logo visible on scrolled dark header */
header.scrolled .logo-text,
header.scrolled .logo-tagline {
  color: white;
}
header.scrolled .header-top {
  background: #0a1f44;
}


/* ── Performance: content-visibility for below-fold sections ── */
#services, #why-us, #industries, #partners, #clients, #insights, #contact {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* ── Font display swap for any custom fonts ── */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Reduce motion for accessibility & performance ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}