/* ============================================================
   CECTANK Clone v2.0.0 — homepage modules.
   Hero slider with centred caption + dash indicators (matches
   the cectank.com Swiper hero), stats band, services, about,
   products, certifications, applications carousel, global
   market, latest news/projects, CTA.
   ============================================================ */

/* ---------------- Hero slider ---------------- */
.hero-carousel { position: relative; height: clamp(380px, 58vh, 620px); overflow: hidden; background: var(--ce-primary-dark); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 20, 45, .18), rgba(0, 20, 45, .38)); }
.hero-content { position: relative; max-width: 980px; padding: 0 24px; color: #fff; }
.hero-content h1, .hero-content h2 {
  color: #fff; font-size: clamp(24px, 3.6vw, 46px); font-weight: 700; line-height: 1.2;
  display: inline-block; padding: 14px 26px; margin: 0 auto 18px;
  background: rgba(0, 20, 45, .32); backdrop-filter: blur(1px);
}
.hero-content p { font-size: clamp(15px, 1.8vw, 18px); color: #eef4fa; max-width: 720px; margin: 0 auto 24px; }
.hero-content .btn { margin-top: 4px; }

.hero-arrows { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 18px; pointer-events: none; }
.hero-arrow { pointer-events: auto; background: rgba(0, 0, 0, .28); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer; transition: background .2s; }
.hero-arrow:hover { background: rgba(0, 0, 0, .5); }

.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dot { width: 28px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); border: 0; cursor: pointer; padding: 0; transition: background .2s; }
.hero-dot.active { background: #fff; }

/* ---------------- Stats band ---------------- */
.stats-band { background: var(--ce-primary); color: #fff; padding: 34px 0; }
.stats-band .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stats-band .stat b { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.1; }
.stats-band .stat span { color: #cfdcec; font-size: 14px; }

/* ---------------- Services & support ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service { background: #fff; border: 1px solid var(--ce-line); border-radius: var(--ce-radius); padding: 30px 26px; text-align: center; transition: box-shadow .2s ease, transform .2s ease; }
.service:hover { box-shadow: var(--ce-shadow); transform: translateY(-4px); }
.service .ic { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #eaf1f9; color: var(--ce-primary); font-size: 28px; }
.service h3 { font-size: 18px; margin-bottom: 10px; }
.service p { color: var(--ce-muted); font-size: 14px; margin: 0; }

/* ---------------- About band ---------------- */
.about-band { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: center; }
.about-band .about-copy h2 { margin-bottom: 16px; }
.about-band .about-copy p { color: var(--ce-muted); }
.about-band img { border-radius: var(--ce-radius); box-shadow: var(--ce-shadow); }
.about-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.about-tile { text-align: center; }
.about-tile img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 8px; box-shadow: none; }
.about-tile h4 { font-size: 14px; margin: 0; }

/* ---------------- Products highlight ---------------- */
.product-highlight { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.product-tabs { display: flex; flex-direction: column; gap: 12px; }
.product-tab { border-left: 3px solid var(--ce-line); padding: 8px 0 8px 18px; cursor: pointer; color: var(--ce-muted); font-weight: 600; }
.product-tab.active { border-left-color: var(--ce-primary); color: var(--ce-primary); }

/* ---------------- Certifications ---------------- */
.cert-wall { display: flex; flex-wrap: wrap; gap: 26px 40px; justify-content: center; align-items: center; }
.cert-wall img { height: 66px; width: auto; object-fit: contain; filter: grayscale(0); transition: transform .2s ease; }
.cert-wall img:hover { transform: scale(1.06); }

/* ---------------- Applications carousel ---------------- */
.app-carousel { position: relative; }
.app-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card { position: relative; border-radius: var(--ce-radius); overflow: hidden; height: 320px; box-shadow: var(--ce-shadow); }
.app-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.app-card:hover img { transform: scale(1.05); }
.app-card .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 32, 66, .88) 0%, rgba(0, 32, 66, .12) 65%, rgba(0, 32, 66, 0) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; }
.app-card .overlay h3 { color: #fff; margin: 0 0 6px; font-size: 18px; }
.app-card .overlay p { color: #dbe6f2; font-size: 13px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-nav { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.app-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ce-line); background: #fff; color: var(--ce-primary); cursor: pointer; font-size: 16px; }
.app-nav button:hover { background: var(--ce-primary); color: #fff; border-color: var(--ce-primary); }

/* ---------------- Global market ---------------- */
.global-band { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: center; }
.global-band img { border-radius: var(--ce-radius); }
.global-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; text-align: center; }
.global-stats .stat b { display: block; font-size: clamp(26px, 3vw, 36px); color: var(--ce-primary); font-weight: 700; line-height: 1.1; }
.global-stats .stat span { color: var(--ce-muted); font-size: 13px; }

/* ---------------- Project references ---------------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { position: relative; display: block; border-radius: var(--ce-radius); overflow: hidden; height: 260px; box-shadow: var(--ce-shadow); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-card .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 32, 66, .88), rgba(0, 32, 66, 0) 70%); display: flex; align-items: flex-end; padding: 20px; color: #fff; }
.project-card .overlay h3 { color: #fff; margin: 0; font-size: 17px; }
.project-card .overlay span { color: #9fc3e6; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------------- Latest news / projects ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--ce-line); border-radius: var(--ce-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.news-card:hover { box-shadow: var(--ce-shadow); transform: translateY(-4px); }
.news-date { position: absolute; top: 14px; left: 14px; background: var(--ce-primary); color: #fff; border-radius: var(--ce-radius); text-align: center; padding: 8px 12px; line-height: 1; }
.news-date b { display: block; font-size: 20px; }
.news-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.news-thumb { position: relative; height: 200px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-body h3 { font-size: 17px; margin: 0 0 8px; }
.news-body h3 a { color: var(--ce-primary); }
.news-body p { color: var(--ce-muted); font-size: 14px; margin: 0 0 14px; }
.news-body .read-more { margin-top: auto; color: var(--ce-accent); font-weight: 600; font-size: 14px; }

/* ---------------- Responsive (home) ---------------- */
@media (max-width: 992px) {
  .services-grid, .news-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .app-track { grid-template-columns: repeat(2, 1fr); }
  .about-band, .product-highlight, .global-band { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  .hero-carousel { height: clamp(320px, 72vh, 480px); }
  .services-grid, .news-grid, .project-grid, .app-track { grid-template-columns: 1fr; }
  .stats-band .container { grid-template-columns: 1fr; gap: 14px; }
  .global-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .card, .faq-a, .app-card img, .news-card { transition: none; }
}
