/* ============================================================
   IndahSmart CMS - Custom Stylesheet
   Tema: Biru korporat teknologi + aksen cyan
   ============================================================ */

:root {
  --is-primary: #0d47a1;
  --is-primary-dark: #082f6b;
  --is-primary-light: #1565c0;
  --is-accent: #00b8d4;
  --is-accent-soft: #e3f7fb;
  --is-dark: #0e1a2b;
  --is-body: #45516a;
  --is-wa: #25d366;
  --is-wa-dark: #1da851;
  --is-radius: 16px;
  --is-shadow: 0 10px 30px rgba(13, 71, 161, .10);
  --is-shadow-lg: 0 20px 45px rgba(13, 71, 161, .16);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--is-body);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-text { color: var(--is-dark); }
a { color: var(--is-primary-light); text-decoration: none; }
a:hover { color: var(--is-primary); }

.text-accent { color: var(--is-accent) !important; }

/* ---------------- TOP BAR ---------------- */
.topbar {
  background: var(--is-dark);
  color: #c7d2e4;
  font-size: .82rem;
  padding: 7px 0;
}
.topbar i { color: var(--is-accent); }
.topbar-social a {
  color: #c7d2e4;
  margin-left: 12px;
  transition: color .2s;
}
.topbar-social a:hover { color: var(--is-accent); }

/* ---------------- NAVBAR ---------------- */
.main-navbar {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(14, 26, 43, .08);
  padding-top: .55rem;
  padding-bottom: .55rem;
  transition: all .3s ease;
  z-index: 1030;
}
.main-navbar.scrolled {
  padding-top: .25rem;
  padding-bottom: .25rem;
  box-shadow: 0 6px 20px rgba(14, 26, 43, .12);
}
.brand-logo {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 10px;
}
.brand-icon { font-size: 2rem; color: var(--is-primary); }
.brand-text { line-height: 1.15; }
.brand-text strong { font-size: 1.08rem; letter-spacing: .2px; }
.brand-text small { font-size: .68rem; color: var(--is-body); font-weight: 500; }

.main-navbar .nav-link {
  color: var(--is-dark);
  font-weight: 600;
  font-size: .95rem;
  margin: 0 .35rem;
  padding: .55rem .85rem !important;
  border-radius: 10px;
  transition: all .2s ease;
  position: relative;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--is-primary);
  background: var(--is-accent-soft);
}
.main-navbar .dropdown-menu {
  border: 0;
  border-radius: 12px;
  padding: .5rem;
  margin-top: .35rem;
}
.main-navbar .dropdown-item {
  border-radius: 8px;
  font-weight: 500;
  padding: .5rem .9rem;
  color: var(--is-dark);
}
.main-navbar .dropdown-item:hover {
  background: var(--is-accent-soft);
  color: var(--is-primary);
}

.btn-wa {
  background: var(--is-wa);
  border-color: var(--is-wa);
  color: #fff;
  font-weight: 600;
  transition: all .2s;
}
.btn-wa:hover, .btn-wa:focus {
  background: var(--is-wa-dark);
  border-color: var(--is-wa-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------------- HERO / SLIDER ---------------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--is-dark);
}
.hero-slider .carousel-item {
  height: min(86vh, 680px);
  min-height: 430px;
}
.hero-slide-img,
.hero-slide-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-video {
  pointer-events: none;
  object-fit: contain;
  /* teknik "cover" 16:9: iframe selalu menutupi slide penuh */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-width: 177.78vh;   /* 100vh * 16/9 */
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 100%;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 25, 60, .82) 8%, rgba(10, 37, 92, .55) 45%, rgba(0, 184, 212, .18) 100%);
}
.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-caption .container { position: relative; }
.hero-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 3.3rem);
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.hero-subtitle {
  color: #e4edff;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  max-width: 620px;
  margin-top: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0, 184, 212, .18);
  border: 1px solid rgba(0, 184, 212, .55);
  color: #b8f3ff;
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(4px);
}
.hero-slider .carousel-indicators [data-bs-target] {
  width: 34px;
  height: 5px;
  border-radius: 4px;
}
.hero-kb { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.carousel-caption-btn .btn { box-shadow: 0 8px 22px rgba(0,0,0,.25); }

/* ---------------- SECTIONS ---------------- */
.section { padding: 84px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%); }

.section-tag {
  display: inline-block;
  color: var(--is-accent);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .6rem;
}
.section-title {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: .8rem;
}
.section-desc { max-width: 640px; }

/* ---------------- FEATURE CARDS ---------------- */
.feature-card {
  background: #fff;
  border-radius: var(--is-radius);
  padding: 2rem 1.6rem;
  height: 100%;
  box-shadow: var(--is-shadow);
  border: 1px solid #eef3fb;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--is-primary), var(--is-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--is-shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--is-primary), var(--is-primary-light));
  margin-bottom: 1.2rem;
  box-shadow: 0 10px 20px rgba(13, 71, 161, .25);
  transition: transform .3s;
}
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.06); }
.feature-card h4 { font-size: 1.05rem; font-weight: 700; }

/* ---------------- PRODUCT CARDS ---------------- */
.product-card {
  background: #fff;
  border-radius: var(--is-radius);
  overflow: hidden;
  border: 1px solid #eef3fb;
  box-shadow: var(--is-shadow);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--is-shadow-lg); }
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef3fb;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.07); }
.product-cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(13, 71, 161, .92);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px;
  letter-spacing: .4px;
}
.product-body { padding: 1.2rem 1.3rem 1.4rem; }
.product-body h5 {
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-body p {
  font-size: .84rem;
  margin-bottom: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { color: var(--is-primary); font-weight: 700; font-size: .9rem; }

.category-card {
  position: relative;
  display: block;
  border-radius: var(--is-radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--is-shadow);
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(8,25,60,0) 30%, rgba(8,25,60,.88) 100%);
  color: #fff;
}
.category-overlay h4 { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: .25rem; }
.category-overlay span { font-size: .82rem; color: #cfe3ff; }

/* ---------------- ARTICLES ---------------- */
.article-card {
  background: #fff;
  border-radius: var(--is-radius);
  overflow: hidden;
  border: 1px solid #eef3fb;
  box-shadow: var(--is-shadow);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--is-shadow-lg); }
.article-thumb { aspect-ratio: 16/9; overflow: hidden; background: #eef3fb; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.article-card:hover .article-thumb img { transform: scale(1.06); }
.article-body { padding: 1.2rem 1.3rem 1.4rem; }
.article-meta { font-size: .76rem; color: #7d8aa5; text-transform: uppercase; letter-spacing: .6px; }
.article-body h5 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: .5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-body p { font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- CLIENTS ---------------- */
.clients-strip { overflow: hidden; position: relative; }
.clients-track {
  display: flex;
  gap: 1rem;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.clients-strip:hover .clients-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-chip {
  background: #fff;
  border: 1px solid #e6edf8;
  border-radius: 14px;
  padding: 1rem 1.6rem;
  font-weight: 600;
  color: var(--is-dark);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(13,71,161,.06);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.client-chip i { color: var(--is-accent); font-size: 1.2rem; }

/* ---------------- GALLERY ---------------- */
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  box-shadow: var(--is-shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-ov {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 25, 60, .45);
  color: #fff; font-size: 1.6rem;
  opacity: 0; transition: opacity .25s;
}
.gallery-item:hover .gallery-ov { opacity: 1; }

/* ---------------- PAGE BANNER ---------------- */
.page-banner {
  background: linear-gradient(120deg, var(--is-primary-dark), var(--is-primary) 55%, var(--is-primary-light));
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(0,184,212,.18);
}
.page-banner h1 { color: #fff; font-weight: 800; }
.page-banner .breadcrumb { --bs-breadcrumb-divider-color: #9fc1f5; }
.page-banner .breadcrumb a { color: #cfe3ff; }
.page-banner .breadcrumb-item.active { color: #8fd9e8; }

/* ---------------- ARTICLE / PAGE CONTENT ---------------- */
.page-content img { max-width: 100%; height: auto; border-radius: 12px; }
.page-content h3, .page-content h4 { font-weight: 700; margin-top: 1.6rem; }
.page-content ul li, .page-content ol li { margin-bottom: .4rem; }
.page-content blockquote {
  border-left: 4px solid var(--is-accent);
  padding: .8rem 1.2rem;
  background: var(--is-accent-soft);
  border-radius: 0 12px 12px 0;
}
.detail-meta { font-size: .85rem; color: #7d8aa5; }
.detail-meta i { color: var(--is-accent); }

/* ---------------- CONTACT ---------------- */
.contact-card {
  background: #fff;
  border-radius: var(--is-radius);
  box-shadow: var(--is-shadow);
  border: 1px solid #eef3fb;
  padding: 1.8rem;
  height: 100%;
  transition: transform .25s;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card .ci {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--is-accent-soft);
  color: var(--is-primary);
  font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.map-wrap { border-radius: var(--is-radius); overflow: hidden; box-shadow: var(--is-shadow); min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------------- CTA & FOOTER ---------------- */
.cta-section {
  background: linear-gradient(120deg, var(--is-primary-dark), var(--is-primary) 60%, var(--is-accent) 130%);
  color: #fff;
}
.cta-section h3 { color: #fff; font-weight: 800; }
.cta-section .opacity-90 { opacity: .9; color: #dbe8ff; }

.footer { background: var(--is-dark); color: #a9b8d3; }
.footer-title { color: #fff; font-weight: 700; font-size: 1.02rem; margin-bottom: 1rem; position: relative; padding-bottom: .55rem; }
.footer-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 38px; height: 3px;
  border-radius: 3px;
  background: var(--is-accent);
}
.footer-about { font-size: .88rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #a9b8d3; font-size: .9rem; transition: all .2s; }
.footer-links a:hover { color: var(--is-accent); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; font-size: .88rem; }
.footer-contact i { color: var(--is-accent); margin-top: .15rem; }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2.2rem 0 1.2rem; }
.footer-copy { font-size: .82rem; color: #7d8aa5; }
.footer-social a {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #cfdaf0;
  margin-right: .5rem;
  transition: all .25s;
}
.footer-social a:hover { background: var(--is-accent); color: #fff; transform: translateY(-3px); }

/* ---------------- FLOATING BUTTONS ---------------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 88px;
  width: 56px; height: 56px;
  background: var(--is-wa);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  z-index: 1050;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }
.wa-float::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5);
  animation: waPulse 1.8s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(.8); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--is-primary);
  color: #fff;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s;
  z-index: 1050;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--is-primary-dark); }

/* ---------------- SEARCH RESULTS ---------------- */
.search-highlight mark { background: #fff3a3; padding: 0 2px; border-radius: 3px; }

/* ---------------- MISC ---------------- */
.btn-primary-is {
  background: linear-gradient(135deg, var(--is-primary), var(--is-primary-light));
  border: 0;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: .6rem 1.6rem;
  box-shadow: 0 8px 20px rgba(13,71,161,.3);
  transition: all .25s;
}
.btn-primary-is:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(13,71,161,.4); color: #fff; }

.badge-soft {
  background: var(--is-accent-soft);
  color: var(--is-primary);
  font-weight: 600;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .75rem;
}

.pagination .page-link { border-radius: 10px !important; margin: 0 3px; color: var(--is-primary); font-weight: 600; border: 1px solid #e3ebf7; }
.pagination .page-item.active .page-link { background: var(--is-primary); border-color: var(--is-primary); }

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .main-navbar .nav-link { margin: .1rem 0; }
  .hero-slider .carousel-item { min-height: 380px; height: 62vh; }
  .section { padding: 60px 0; }
}
@media (max-width: 575.98px) {
  .brand-text small { display: none; }
  .wa-float { right: 16px; bottom: 78px; width: 50px; height: 50px; font-size: 1.5rem; }
}
