/* ---- Homepage: typography overrides ---- */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }

/* ---- Hero carousel ---- */
#heroCarousel { margin-top: 0; }
.hero-slide {
  height: 81vh;
  min-height: 488px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,31,60,0.82) 40%, rgba(10,31,60,0.35) 100%);
}
.hero-slide-1 { background-image: url('../images/slider-banners/banner101_1.jpg'); }
.hero-slide-2 { background-image: url('../images/slider-banners/banner102_1.jpg'); }
.hero-slide-3 { background-image: url('../images/slider-banners/banner103_1.jpg'); }
.hero-slide-4 { background-image: url('../images/slider-banners/banner104_1.jpg'); }
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-badge {
  display: inline-block;
  background: var(--blue-accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 18px;
  margin-bottom: 1.2rem;
}
.hero-content h1,
.hero-content h2.hero-title {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: titlecase;
}
.hero-content p.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 620px;
  line-height: 1.6;
}
.btn-hero {
  display: inline-block;
  background: var(--blue-accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  text-decoration: none;
  border: 2px solid var(--blue-accent);
  transition: background 0.25s, color 0.25s;
}
.btn-hero:hover { background: transparent; color: var(--white); }
.btn-hero-outline { background: transparent; border-color: rgba(255,255,255,0.5); margin-left: 12px; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); }
.carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; }
.carousel-indicators .active { background: var(--blue-light); }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: none; }

/* ---- About section ---- */
.about-section { padding: 90px 0; }
.about-section .about-img-wrap { position: relative; }
.about-img-hover-wrap { position: relative; overflow: hidden; }
.about-img-hover-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: opacity 0.45s ease; }
.about-img-grey { position: absolute; top: 0; left: 0; height: 100%; opacity: 0; }
.about-img-hover-wrap:hover .about-img-grey { opacity: 1; }
.about-img-hover-wrap:hover .about-img-main { opacity: 0; }
.about-section .cert-badge {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--blue-accent); color: var(--white);
  padding: 24px 28px; font-family: var(--font-oswald);
  font-weight: 600; font-size: 1.05rem; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.04em;
  min-width: 190px; text-align: center;
}
.about-section .cert-badge span { display: block; font-family: var(--font-oswald); font-size: 0.72rem; font-weight: 400; opacity: 0.85; letter-spacing: 0.1em; margin-bottom: 6px; }
.about-section p { font-size: 0.97rem; margin-bottom: 1rem; }
.btn-primary-custom {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-accent); color: var(--white);
  font-family: var(--font-head); font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 28px; text-decoration: none;
  border: 2px solid var(--blue-accent); transition: all 0.25s;
}
.btn-primary-custom:hover { background: transparent; color: var(--blue-accent); }
.btn-outline-custom { background: transparent; color: var(--blue-accent); border-color: var(--blue-accent); }
.btn-outline-custom:hover { background: var(--blue-accent); color: var(--white); }

/* ---- RDSO CTA section ---- */
.rdso-section {
  background-color: #071629;
  background-image: linear-gradient(rgba(21,101,192,0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(21,101,192,0.18) 1px, transparent 1px), linear-gradient(135deg, #071629 0%, #0a2548 60%, #0d3060 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  padding: 76px 0; position: relative; overflow: hidden;
}
.rdso-section::before { content: ''; position: absolute; top: -60px; right: -60px; width: 320px; height: 320px; border: 50px solid rgba(30,136,229,0.07); border-radius: 50%; pointer-events: none; }
.rdso-section::after { content: ''; position: absolute; bottom: -80px; left: -40px; width: 240px; height: 240px; border: 36px solid rgba(30,136,229,0.05); border-radius: 50%; pointer-events: none; }
.rdso-section .section-label { color: var(--blue-light); }
.rdso-section h2 { color: var(--white); }
.rdso-section p { font-size: 1rem; max-width: 580px; color: rgba(255,255,255,0.7); }
.rdso-section .divider-line { background: var(--blue-light); }
.btn-rdso-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue-accent); color: var(--white);
  font-family: var(--font-oswald); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 18px 42px; text-decoration: none;
  border: 2px solid var(--blue-accent); transition: all 0.3s ease;
  position: relative; z-index: 1;
}
.btn-rdso-cta:hover { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.btn-rdso-cta i { font-size: 1.2rem; }

/* ---- Highlights ---- */
.highlights-section { background: var(--off-white); padding: 80px 0; }
.highlight-card { background: var(--white); padding: 36px 28px; height: 100%; border-bottom: 3px solid transparent; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.highlight-card:hover { border-color: var(--blue-accent); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(21,101,192,0.1); }
.highlight-icon { width: 56px; height: 56px; background: var(--blue-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.highlight-icon i { font-size: 1.5rem; color: var(--blue-light); }
.highlight-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.highlight-card p { font-size: 0.9rem; }

/* ---- Products section ---- */
.products-section { padding: 90px 0; }
.product-card { position: relative; overflow: hidden; background: var(--white); border: 1px solid #e0e7ef; transition: box-shadow 0.3s; }
.product-card:hover { box-shadow: 0 16px 48px rgba(13,59,110,0.12); }
.product-card .product-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.4s ease; }
.product-card:hover .product-img { transform: scale(1.04); }
.product-card .product-img-wrap { overflow: hidden; }
.product-card .product-body { padding: 22px 22px 20px; }
.product-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.product-card p { font-size: 0.88rem; margin-bottom: 1rem; }
.product-card .learn-more { font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: border-color 0.2s, gap 0.2s; }
.product-card .learn-more:hover { border-color: var(--blue-accent); gap: 10px; }

/* ---- Clients logo carousel ---- */
.clients-section { background: var(--off-white); padding: 80px 0; }
#clientLogoCarousel .carousel-inner { padding: 0 4px; }
.client-logo-slide { display: flex; gap: 16px; justify-content: center; align-items: stretch; }
.client-logo-item { flex: 0 0 calc(25% - 12px); display: flex; align-items: center; justify-content: center; padding: 20px 16px; background: var(--white); border: 1px solid #e0e7ef; filter: grayscale(100%); opacity: 0.65; transition: filter 0.3s, opacity 0.3s; min-height: 90px; }
.client-logo-item:hover { filter: none; opacity: 1; }
.client-logo-item img { max-width: 100%; max-height: 58px; object-fit: contain; }
#clientLogoCarousel .carousel-control-prev, #clientLogoCarousel .carousel-control-next { width: 40px; background: var(--blue-dark); opacity: 1; top: 50%; transform: translateY(-50%); height: 40px; border-radius: 0; }
#clientLogoCarousel .carousel-control-prev { left: -20px; }
#clientLogoCarousel .carousel-control-next { right: -20px; }
#clientLogoCarousel .carousel-control-prev-icon, #clientLogoCarousel .carousel-control-next-icon { width: 16px; height: 16px; }

/* ---- About collage ---- */
.about-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 420px; gap: 10px; }
.about-collage-img { overflow: hidden; position: relative; }
.about-collage-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.about-collage-img:hover img { transform: scale(1.06); }

/* ---- CTA section (homepage gradient version) ---- */
.cta-section { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%); padding: 90px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -80px; right: -80px; width: 400px; height: 400px; border: 60px solid rgba(255,255,255,0.04); border-radius: 50%; }
.cta-section::after { content: ''; position: absolute; bottom: -120px; left: -60px; width: 320px; height: 320px; border: 40px solid rgba(255,255,255,0.03); border-radius: 50%; }
.cta-section h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 1rem; text-transform: uppercase; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1rem; }
.btn-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--blue-dark); font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 36px; text-decoration: none; transition: all 0.25s; }
.btn-cta:hover { background: var(--blue-light); color: var(--white); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero-slide { height: 53vh; }
  .about-section .cert-badge { left: 0; bottom: 0; position: static; margin-top: 1rem; }
  .rdso-section .text-lg-end { text-align: left !important; margin-top: 2rem; }
  .about-collage { grid-template-rows: 260px; }
}
@media (max-width: 767px) {
  .hero-slide { height: auto; min-height: 0; padding: 52px 0 44px; }
  .btn-hero-outline { margin-left: 0; margin-top: 10px; display: block; width: max-content; }
  .hero-badge { white-space: normal; max-width: 100%; letter-spacing: 0.1em; font-size: 0.72rem; padding: 5px 14px; }
  .client-logo-item { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 575px) {
  .about-collage { grid-template-columns: 1fr; grid-template-rows: 220px 220px; }
}
