/* ====================================================
   CNC Global Solusindo â€” style.css
   Brand: #c8102e (red), structure mirrors mettacctv.com
   ==================================================== */
:root {
  --brand: #c8102e;
  --brand-dark: #a50d26;
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --bg: #fff;
  --surface: #f8f8f8;
  --line: #e5e5e5;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  padding-top: 70px;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1,h2,h3,h4,h5 { line-height: 1.2; }
p { margin: 0 0 1em; }

/* ---- Utility ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.container-fluid { width: 100%; padding: 0; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row.g-0 { margin: 0; }
.row.g-0 > * { padding: 0; }
[class*="col-"] { padding: 0 12px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.d-none { display:none!important; }
.d-block { display:block!important; }
.d-flex { display:flex!important; }
.d-inline { display:inline!important; }
@media(min-width:768px){
  .col-md-2 { flex:0 0 16.666%;max-width:16.666%; }
  .col-md-3 { flex:0 0 25%;max-width:25%; }
  .col-md-6 { flex:0 0 50%;max-width:50%; }
  .col-md-12 { flex:0 0 100%;max-width:100%; }
  .d-md-none { display:none!important; }
  .d-md-block { display:block!important; }
  .d-md-inline { display:inline!important; }
}
@media(min-width:992px){
  .col-lg-4 { flex:0 0 33.333%;max-width:33.333%; }
  .col-lg-3 { flex:0 0 25%;max-width:25%; }
  .col-lg-6 { flex:0 0 50%;max-width:50%; }
  .col-lg-12 { flex:0 0 100%;max-width:100%; }
  .d-lg-none { display:none!important; }
  .d-lg-flex { display:flex!important; }
  .d-lg-block { display:block!important; }
}
@media(max-width:767px){
  .d-md-none { display:block!important; }
  .d-sm-none { display:none!important; }
}
@media(max-width:991px){
  .d-lg-none { display:block!important; }
}
.text-center { text-align:center; }
.text-start { text-align:left; }
.text-end { text-align:right; }
.text-muted { color:var(--muted); }
.text-light { color:#fff!important; }
.text-dark { color:var(--ink)!important; }
.fw-bold { font-weight:700; }
.mb-0 { margin-bottom:0!important; }
.mb-1 { margin-bottom:.25rem!important; }
.mb-2 { margin-bottom:.5rem!important; }
.mb-3 { margin-bottom:1rem!important; }
.mb-4 { margin-bottom:1.5rem!important; }
.mb-5 { margin-bottom:3rem!important; }
.mt-2 { margin-top:.5rem!important; }
.mt-3 { margin-top:1rem!important; }
.mt-4 { margin-top:1.5rem!important; }
.mt-5 { margin-top:3rem!important; }
.ms-2 { margin-left:.5rem!important; }
.ms-auto { margin-left:auto!important; }
.mx-auto { margin-left:auto!important;margin-right:auto!important; }
.me-1 { margin-right:.25rem!important; }
.me-2 { margin-right:.5rem!important; }
.me-3 { margin-right:1rem!important; }
.px-0 { padding-left:0!important;padding-right:0!important; }
.px-2 { padding-left:.5rem!important;padding-right:.5rem!important; }
.px-5 { padding-left:3rem!important;padding-right:3rem!important; }
.py-3 { padding-top:1rem!important;padding-bottom:1rem!important; }
.py-5 { padding-top:3rem!important;padding-bottom:3rem!important; }
.py-lg-0 { }
@media(min-width:992px){ .py-lg-0 { padding-top:0!important;padding-bottom:0!important; } }
.p-2 { padding:.5rem!important; }
.p-3 { padding:1rem!important; }
.p-4 { padding:1.5rem!important; }
.h-100 { height:100%; }
.w-100 { width:100%; }
.img-fluid { max-width:100%;height:auto;display:block; }
.rounded { border-radius:var(--radius)!important; }
.border { border:1px solid var(--line)!important; }
.border-secondary { border-color:#aaa!important; }
.shadow-sm { box-shadow:0 1px 3px rgba(0,0,0,.1); }
.list-unstyled { list-style:none;padding:0;margin:0; }
.overflow-auto { overflow-x:auto; }
.flex-nowrap { flex-wrap:nowrap!important; }
.align-items-center { align-items:center; }
.align-items-start { align-items:flex-start; }
.align-items-stretch { align-items:stretch; }
.justify-content-center { justify-content:center; }
.justify-content-between { justify-content:space-between; }
.justify-content-end { justify-content:flex-end; }
.flex-column { flex-direction:column; }
.d-flex.flex-column { display:flex;flex-direction:column; }
.bg-light { background:var(--surface)!important; }
.bg-white { background:#fff!important; }
.border-top { border-top:1px solid var(--line)!important; }
.border-bottom { border-bottom:1px solid var(--line)!important; }
.fs-4 { font-size:1.5rem; }
.fs-custom-small { font-size:.8rem; }
.fs-custom-medium { font-size:1rem; }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1020;
  background: #fff;
  border-bottom: 4px solid var(--brand);
  padding: .75rem 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.navbar-brand img { height: 36px; display: block; }
.navbar-nav { display: none; list-style: none; padding: 0; margin: 0; }
.navbar-nav.open { display: flex; flex-direction: column; width: 100%; border-top: 1px solid var(--line); padding-top: 8px; }
.nav-item a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-item a.active { color: var(--brand); }
.navbar-toggler {
  background: none; border: 1px solid var(--line); border-radius: 4px;
  padding: 4px 8px; cursor: pointer; font-size: .875rem;
}
.navbar-toggler-icon { display: block; width: 20px; height: 14px; position: relative; }
.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  display: block; width: 100%; height: 2px; background: var(--ink);
  position: absolute; left: 0;
}
.navbar-toggler-icon::before { content:''; top: 0; }
.navbar-toggler-icon span { top: 6px; }
.navbar-toggler-icon::after { content:''; bottom: 0; }
.ms-auto-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
@media(min-width:992px){
  .navbar-nav { display: flex; flex-direction: row; gap: 8px; align-items: center; }
  .navbar-toggler { display: none; }
  .nav-item a { padding: 8px 12px; }
}
@media(max-width:991.98px){
  .navbar-nav.open { max-height: calc(100vh - 70px); overflow-y: auto; overflow-x: hidden; }
}

/* ---- Navbar dropdown (Produk) ---- */
.dropdown { position: relative; }
.nav-item .dropdown-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
  background: none; border: 0; padding: 10px 0; font: inherit; font-weight: 500;
  color: var(--ink); cursor: pointer;
}
.dropdown-toggle::after {
  content: ''; width: 6px; height: 6px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.dropdown-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
.nav-item .dropdown-toggle.active { color: var(--brand); }
.dropdown-menu { display: none; list-style: none; margin: 0; padding: 0 0 0 16px; }
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu { display: block; }
.dropdown-menu .dropdown-item { padding: 12px 0; min-height: 44px; }
.dropdown-menu .dropdown-item:hover { color: var(--brand); }
@media(min-width:992px){
  .nav-item .dropdown-toggle { width: auto; padding: 8px 12px; }
  .nav-item .dropdown-toggle:hover { color: var(--brand); }
  .dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 260px; padding: 6px 0; z-index: 1030;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .dropdown-menu .dropdown-item { padding: 10px 16px; min-height: 0; }
  .dropdown-menu .dropdown-item:hover { background: var(--surface); }
}

/* ---- Nav hover/focus (NAV-2): link becomes the .btn-brand pill; padding stays at rest so nothing shifts ---- */
.nav-item > .nav-link { border-radius: 50px; transition: background .2s, color .2s; }
.nav-item > .nav-link:focus-visible { background: var(--brand); color: #fff; outline: 2px solid var(--brand-dark); outline-offset: 2px; }
@media (hover:hover) { .nav-item > .nav-link:hover { background: var(--brand); color: #fff; } }
.nav-item > .nav-link:active { background: var(--brand-dark); color: #fff; }
@media(max-width:991.98px){
  .nav-item > .nav-link { padding: 10px 12px; margin: 0 -12px; }
  .nav-item > .dropdown-toggle { width: calc(100% + 24px); }
}
.nav-item a.btn-brand, .nav-item a.btn-brand:hover { color: #fff!important; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 8px 20px; border-radius: 50px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s;
  font-size: .9rem; white-space: nowrap;
}
.btn-brand, .btn-info { background: var(--brand); color: #fff!important; border-color: var(--brand); }
.btn-brand:hover, .btn-info:hover { background: var(--brand-dark); }
.btn-outline-info { background: transparent; color: var(--brand)!important; border-color: var(--brand); }
.btn-outline-info:hover { background: #fff4f5; }
.btn-light { background: #fff; color: var(--brand)!important; border-color: #fff; }
.btn-light:hover { background: #f0f0f0; }
.btn-sm { padding: 4px 12px; font-size: .8rem; }
.rounded-pill { border-radius: 50px!important; }
.btn-hover-info:hover { background: var(--brand); color: #fff!important; }

/* ---- Hero Carousel ---- */
.carousel { position: relative; overflow: hidden; }
.carousel-inner { position: relative; }
.carousel-item { display: none; }
.carousel-item.active { display: block; }
.carousel-item img { width: 100%; display: block; }
.carousel-indicators {
  display: flex; justify-content: center; gap: 8px;
  position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2;
}
.carousel-indicators button {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.5); cursor: pointer; padding: 0;
}
.carousel-indicators button.active { background: #fff; }
.carousel-control-prev, .carousel-control-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.3); border: 0; padding: 12px;
  color: #fff; cursor: pointer; z-index: 2; border-radius: 4px;
}
.carousel-control-prev { left: 8px; }
.carousel-control-next { right: 8px; }
.carousel-control-prev-icon, .carousel-control-next-icon {
  display: inline-block; width: 20px; height: 20px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5z'/%3E%3C/svg%3E");
}
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4z'/%3E%3C/svg%3E");
}

/* ---- Brand logo bar ---- */
.brand-logo {
  max-height: 60px; object-fit: contain; cursor: pointer;
  filter: grayscale(40%); transition: filter .2s;
}
.brand-logo:hover { filter: grayscale(0%); }
.brand-logo.active-brand { filter: grayscale(0%); outline: 2px solid var(--brand); border-radius: 4px; }
#kameraCCTVBrandScroll, #aksesKontrolBrandScroll {
  position: sticky; top: 70px; z-index: 1010;
  background: #fff; border-bottom: 2px solid var(--line); padding: 10px 0;
}

/* ---- Service cards ---- */
.card-hover { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.img-container {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #212529;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.img-container img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
  transition: transform .2s ease;
}
.card-hover:hover .img-container img {
  transform: scale(1.15);
}
.img-overlay { display: none; }

/* ---- Product cards ---- */
.card.h-100 { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.card-body { padding: 12px; }
.normal-text-mobile { font-size: .9rem; }
.small-text-mobile { font-size: .8rem; }
.fs-mobile-very-medium { font-size: .85rem; }
.fs-mobile-very-smaller { font-size: .75rem; }
.brand-responsive-mobile { max-height: 24px; object-fit: contain; }
.mt-auto { margin-top: auto!important; }

/* ---- CTA section ---- */
.bg-brand, .bg-info { background: var(--brand)!important; }
.bg-info h2, .bg-brand h2 { color: #fff; }

/* ---- Sticky brand scroll ---- */
#kameraCCTVBrand, #aksesKontrolBrand { display: flex; gap: 16px; padding: 8px 0; }
#kameraCCTVBrand > div, #aksesKontrolBrand > div { flex: 0 0 auto; text-align: center; }

/* ---- Brand section toggle ---- */
.brand-section { display: none; }
.btn-group-header { background: #f0f0f0; border: 1px solid var(--line); color: var(--ink)!important; }
.btn-group-header.bg-info { background: var(--brand)!important; color: #fff!important; }

/* ---- Content section (product listings) ---- */
#content-section { padding: 16px 0; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 16px 0; }
@media(min-width:768px){ .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.product-card img { width: 100%; object-fit: contain; aspect-ratio: 1; padding: 8px; }
.product-card-body { padding: 12px; display: flex; flex-direction: column; flex:1; }
.product-card-body h5 { font-size: .9rem; margin: 0 0 4px; font-weight: 700; }
.product-card-body .price { font-weight: 700; font-size: .95rem; margin: 8px 0; }
.product-card-body .brand-img { max-height: 20px; object-fit: contain; }
.product-card-body .actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }

/* ---- About page ---- */
.head-office-img { width: 100%; border-radius: var(--radius); }
.cert-row { display: flex; gap: 16px; overflow-x: auto; padding: 8px 0; }
.cert-row img { flex: 0 0 auto; max-width: 200px; border: 1px solid var(--line); border-radius: var(--radius); }
.fade-in { opacity: 1; transition: opacity .5s ease-in-out; }
.fade-out { opacity: 0; transition: opacity .5s ease-in-out; }
.mission-text { display: none; }

/* ---- Footer ---- */
footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 24px; }
footer .custom-logo { max-height: 50px; }
footer h5 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
footer p, footer a { font-size: .875rem; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--brand); }
footer .row { gap: 24px 0; }
.fs-custom-small { font-size: .8rem; }

/* ---- Language switch (ID | EN) ---- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 50px; overflow: hidden; }
.lang-btn { background: none; border: 0; padding: 10px 16px; font: inherit; font-size: .85rem; line-height: 1; color: var(--muted); cursor: pointer; }
.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn[aria-pressed="true"] { font-weight: 700; color: var(--brand); }
.nav-lang { padding: 8px 0; }
.lang-fixed { position: fixed; top: 16px; right: 16px; background: #fff; }
@media(min-width:992px){ .nav-lang { padding: 0; margin-left: .5rem; } .lang-btn { padding: 8px 12px; } }
html.i18n-hold body { visibility: hidden; } /* EN mode only: hidden until the swap is done (head script adds the class) */

/* ---- AOS-lite: fade-up on scroll ---- */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].aos-animate { opacity: 1; transform: none; }
[data-aos="zoom-in-up"] { transform: scale(.95) translateY(10px); }
[data-aos="zoom-in-up"].aos-animate { transform: none; }

/* ---- Misc ---- */
.border-bottom-brand { border-bottom: 4px solid var(--brand); }
.visually-hidden { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

@media(prefers-reduced-motion:reduce){ *{ transition:none!important; } }


/* ---- About page (CNC-5) ---- */
.about-banner { position: relative; overflow: hidden; background: #222; }
.about-banner picture, .about-banner img { display: block; width: 100%; }
.about-banner img { height: clamp(220px, 32vw, 460px); object-fit: cover; object-position: right center; }
.about-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.88) 0%, rgba(20,20,20,.7) 55%, rgba(20,20,20,.2) 100%); }
.about-banner-text { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; }
.about-banner h1 { margin: 0; color: #fff; font-size: clamp(1.75rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: .04em; line-height: 1.1; }
.about-banner h1 span { display: block; }
.about-kicker { color: var(--brand); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 .25rem; }
.about-hero-title { color: var(--ink); font-weight: 700; font-size: clamp(1.6rem, 3.8vw, 2.6rem); line-height: 1.2; margin: 0 0 1rem; }
.about-lead { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.about-body { max-width: 860px; color: var(--ink); font-size: 1.05rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about-actions .btn { padding: 12px 28px; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; text-align: center; }
@media(min-width:768px){ .about-stats { grid-template-columns: repeat(4, 1fr); } }
.about-stat strong { display: block; font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.about-stat span { display: block; color: var(--ink); font-size: 1rem; font-weight: 400; }
.about-ico { display: block; width: 32px; height: 32px; max-width: 40px; max-height: 40px; flex: none; margin: 0 auto 8px; color: var(--ink); }
.about-why-row .about-ico { width: 72px; height: 72px; max-width: 72px; max-height: 72px; margin: 0; color: var(--brand); }
@media (max-width: 576px) { .about-why-row .about-ico { width: 56px; height: 56px; max-width: 56px; max-height: 56px; } }
.about-vm { margin-bottom: 2rem; }
.about-head { margin: 0 0 .5rem; color: var(--brand); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.about-vm p, .about-dash li { color: var(--ink); font-weight: 700; }
.about-vm p { margin: 0; }
.about-dash { list-style: none; margin: 0; padding: 0; }
.about-dash li { position: relative; padding-left: 1.25rem; margin-bottom: .5rem; }
.about-dash li::before { content: '–'; position: absolute; left: 0; }
.about-why-title { margin: 0 0 1.5rem; color: var(--brand); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.15; }
.about-why-title span { display: block; }
.about-why-title .about-why-name { font-size: 1.25em; }
.about-why { max-width: 760px; }
.about-why-row { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.about-why-row:first-child { border-top: 0; padding-top: 0; }
.about-why-row h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--ink); }
.about-brands { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px clamp(14px, 1.6vw, 20px); }
.about-brands .about-wordmark { font-family: Outfit, Inter, system-ui, sans-serif; font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: .02em; color: var(--ink); cursor: default; }
.about-brands + .about-brands { margin-top: 20px; }
.about-brands img { height: clamp(34px, 3.6vw, 47px); width: auto; max-width: 100%; object-fit: contain; cursor: default; }
.pt-5 { padding-top: 3rem; }
.pb-5 { padding-bottom: 3rem; }
