/* ============================================
   TECHSERVIS PRO - Microsoft Theme CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;600;700&display=swap');

:root {
  --ms-blue:       #0078D4;
  --ms-blue-dark:  #106EBE;
  --ms-blue-light: #C7E0F4;
  --ms-bg:         #F3F2F1;
  --ms-white:      #FFFFFF;
  --ms-gray-10:    #FAF9F8;
  --ms-gray-20:    #F3F2F1;
  --ms-gray-30:    #EDEBE9;
  --ms-gray-50:    #D2D0CE;
  --ms-gray-90:    #605E5C;
  --ms-gray-100:   #323130;
  --ms-red:        #D13438;
  --ms-green:      #107C10;
  --ms-orange:     #FF8C00;
  --radius:        4px;
  --shadow:        0 2px 8px rgba(0,0,0,.12);
  --shadow-lg:     0 4px 20px rgba(0,0,0,.15);
  --transition:    all .2s ease;
  --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--ms-gray-100);
  background: var(--ms-bg);
  line-height: 1.5;
}

a { color: var(--ms-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--ms-blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--ms-blue); color: #fff; border-color: var(--ms-blue); }
.btn-primary:hover { background: var(--ms-blue-dark); border-color: var(--ms-blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ms-blue); border-color: var(--ms-blue); }
.btn-outline:hover { background: var(--ms-blue-light); }
.btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa:hover { background: #1EBE57; border-color: #1EBE57; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ---- TOPBAR ---- */
.topbar {
  background: var(--ms-gray-100); color: #fff;
  font-size: 12px; padding: 5px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
}
.topbar a { color: var(--ms-gray-50); }
.topbar a:hover { color: #fff; }
.topbar .topbar-right { display: flex; gap: 20px; align-items: center; }

/* ---- HEADER / NAVBAR ---- */
.header {
  background: var(--ms-white);
  border-bottom: 1px solid var(--ms-gray-50);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.navbar {
  display: flex; align-items: center;
  height: 56px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--ms-blue);
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px; background: var(--ms-blue);
  border-radius: var(--radius); display: grid;
  grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px;
}
.logo-icon span {
  background: #fff; border-radius: 1px;
  display: block;
}
.logo-icon span:first-child { background: #F25022; }
.logo-icon span:nth-child(2) { background: #7FBA00; }
.logo-icon span:nth-child(3) { background: #00A4EF; }
.logo-icon span:nth-child(4) { background: #FFB900; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 6px 12px; border-radius: var(--radius);
  font-size: 14px; color: var(--ms-gray-90); font-weight: 400;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--ms-gray-20); color: var(--ms-blue);
}
.nav-wa-btn { margin-left: 8px; }

.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; color: var(--ms-gray-100);
  font-size: 20px;
}

/* ---- SLIDER ---- */
.slider-wrap {
  position: relative; overflow: hidden;
  background: var(--ms-blue-dark);
}
.slider-track {
  display: flex; transition: transform .5s cubic-bezier(.25,.1,.25,1);
}
.slide {
  min-width: 100%; position: relative;
  display: flex; align-items: center; min-height: 340px;
  overflow: hidden;
}
.slide-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #003A6C 0%, #0078D4 60%, #0091FF 100%);
  z-index: 0;
}
.slide-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .35; position: absolute; inset: 0;
}
.slide-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.slide-content {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
  width: 100%;
}
.slide-tag {
  display: inline-block; background: rgba(255,255,255,.2);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.slide-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700; color: #fff;
  line-height: 1.2; max-width: 560px;
  margin-bottom: 10px;
}
.slide-subtitle {
  font-size: 15px; color: rgba(255,255,255,.85);
  max-width: 480px; margin-bottom: 24px;
}
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.slide-actions .btn-outline {
  color: #fff; border-color: rgba(255,255,255,.6);
}
.slide-actions .btn-outline:hover { background: rgba(255,255,255,.15); }

/* Slider dots */
.slider-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  border: none; transition: var(--transition);
}
.slider-dot.active { background: #fff; transform: scale(1.3); }

/* Slider arrows */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: var(--transition);
  font-size: 16px;
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* ---- SECTIONS ---- */
.section { padding: 52px 0; }
.section-alt { background: var(--ms-white); }
.section-header { text-align: center; margin-bottom: 36px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ms-blue);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(20px, 3vw, 28px); font-weight: 700;
  color: var(--ms-gray-100); margin-bottom: 10px;
}
.section-desc {
  font-size: 14px; color: var(--ms-gray-90);
  max-width: 540px; margin: 0 auto;
}

/* ---- CATEGORY TABS ---- */
.cat-tabs {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 28px;
}
.cat-tab {
  padding: 8px 18px; border-radius: 20px;
  border: 1px solid var(--ms-gray-50); background: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--ms-gray-90); transition: var(--transition);
}
.cat-tab:hover { border-color: var(--ms-blue); color: var(--ms-blue); }
.cat-tab.active {
  background: var(--ms-blue); color: #fff;
  border-color: var(--ms-blue);
}

/* ---- CATEGORIES CARD ---- */
.categories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cat-card {
  background: var(--ms-white); border: 1px solid var(--ms-gray-30);
  border-radius: 6px; padding: 24px 20px;
  transition: var(--transition); cursor: pointer;
  text-align: center;
}
.cat-card:hover {
  border-color: var(--ms-blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
/* Gambar upload kategori */
.cat-img-wrap {
  width: 80px; height: 80px; border-radius: 8px;
  overflow: hidden; margin: 0 auto 14px;
  border: 1px solid var(--ms-gray-30);
}
.cat-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.cat-card:hover .cat-img-wrap img { transform: scale(1.06); }
/* Icon fallback */
.cat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ms-blue-light); color: var(--ms-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 14px;
}
.cat-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.cat-desc { font-size: 13px; color: var(--ms-gray-90); line-height: 1.5; }

/* ---- PRODUCTS GRID ---- */
.products-section { padding-top: 0; }
.cat-section { margin-bottom: 40px; }
.cat-section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 700; color: var(--ms-gray-100);
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--ms-blue);
}
.cat-section-title i {
  width: 32px; height: 32px; background: var(--ms-blue);
  color: #fff; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}

.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.product-card {
  background: var(--ms-white); border: 1px solid var(--ms-gray-30);
  border-radius: 6px; overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: var(--ms-blue);
}
.product-img {
  height: 170px; overflow: hidden; background: var(--ms-gray-20);
  position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ms-orange); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 2px; letter-spacing: .5px;
}
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.product-desc { font-size: 12px; color: var(--ms-gray-90); margin-bottom: 12px; flex: 1; line-height: 1.5; }
.product-price-wrap { margin-bottom: 12px; }
.price-label { font-size: 11px; color: var(--ms-gray-90); }
.price-coret { font-size: 12px; color: var(--ms-gray-90); text-decoration: line-through; }
.price-main { font-size: 18px; font-weight: 700; color: var(--ms-blue); }
.price-hubungi { font-size: 14px; font-weight: 700; color: var(--ms-gray-90); }
.product-features { margin-bottom: 14px; }
.product-features li {
  font-size: 12px; color: var(--ms-gray-90);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.product-features li i { color: var(--ms-green); font-size: 11px; }
.product-footer { display: flex; gap: 8px; }
.product-footer .btn { flex: 1; justify-content: center; }

/* ---- ABOUT STRIP ---- */
.about-strip { background: var(--ms-blue); padding: 40px 0; }
.about-strip .container {
  display: flex; align-items: center; gap: 40px;
}
.about-strip-text { flex: 1; }
.about-strip-text h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.about-strip-text p { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.6; }
.about-strip-btn { flex-shrink: 0; }
.about-strip-btn .btn { background: #fff; color: var(--ms-blue); border-color: #fff; }
.about-strip-btn .btn:hover { background: var(--ms-blue-light); }

/* ---- FEATURES ---- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item { text-align: center; padding: 20px 12px; }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--ms-blue-light); color: var(--ms-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 12px;
}
.feature-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.feature-desc { font-size: 12px; color: var(--ms-gray-90); line-height: 1.5; }

/* ---- TESTIMONIALS ---- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card {
  background: var(--ms-white); border: 1px solid var(--ms-gray-30);
  border-radius: 6px; padding: 20px;
}
.testi-stars { color: #FFB900; font-size: 13px; margin-bottom: 10px; }
.testi-msg { font-size: 13px; color: var(--ms-gray-90); line-height: 1.6; margin-bottom: 14px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ms-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 700; }
.testi-role { font-size: 11px; color: var(--ms-gray-90); }

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, #003A6C, #0078D4);
  padding: 52px 0; text-align: center;
}
.cta-section h2 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 15px; margin-bottom: 28px; }
.cta-section .btn-wa { font-size: 16px; padding: 14px 32px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--ms-gray-100); color: rgba(255,255,255,.75);
}
.footer-top { padding: 40px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand { }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.footer-socials a:hover { background: var(--ms-blue); color: #fff; }
.footer-heading { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; margin-bottom: 10px; color: rgba(255,255,255,.65);
}
.footer-contact li i { color: var(--ms-blue); margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 12px;
}

/* ---- FLOATING WA ---- */
.floating-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #25D366; color: #fff; width: 54px; height: 54px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: var(--transition);
}
.floating-wa:hover {
  color: #fff; background: #1EBE57;
  transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.55);
}
.floating-wa-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--ms-red); color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #003A6C, #0078D4);
  padding: 36px 0; color: #fff;
}
.page-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 14px; }
.breadcrumb { display: flex; gap: 8px; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 10px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ---- PRODUCT DETAIL ---- */
.detail-wrap { display: grid; grid-template-columns: 1fr 350px; gap: 28px; align-items: start; }
.detail-img {
  background: var(--ms-white); border: 1px solid var(--ms-gray-30);
  border-radius: 6px; overflow: hidden; height: 320px;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-card {
  background: var(--ms-white); border: 1px solid var(--ms-gray-30);
  border-radius: 6px; padding: 24px;
}
.detail-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--ms-blue); text-transform: uppercase;
  margin-bottom: 8px;
}
.detail-name { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.detail-desc { font-size: 14px; color: var(--ms-gray-90); line-height: 1.7; margin-bottom: 18px; }
.detail-price-box {
  background: var(--ms-gray-10); border: 1px solid var(--ms-gray-30);
  border-radius: var(--radius); padding: 16px; margin-bottom: 18px;
}
.detail-features { margin-bottom: 20px; }
.detail-features h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.detail-features li {
  display: flex; gap: 8px; font-size: 13px; margin-bottom: 6px;
}
.detail-features li i { color: var(--ms-green); margin-top: 2px; }
.detail-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---- ALERT ---- */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13px; margin-bottom: 16px;
  border-left: 3px solid;
}
.alert-success { background: #DFF6DD; border-color: var(--ms-green); color: #0B6010; }
.alert-error { background: #FDE7E9; border-color: var(--ms-red); color: #A80000; }
.alert-info { background: var(--ms-blue-light); border-color: var(--ms-blue); color: #003A6C; }

/* ---- MOBILE RESPONSIVE ---- */
@media (max-width: 900px) {
  .categories-grid, .products-grid, .features-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1/-1; }
  .detail-wrap { grid-template-columns: 1fr; }
  .about-strip .container { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .nav-links, .nav-wa-btn { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .nav-mobile {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: var(--ms-white); border-top: 1px solid var(--ms-gray-30);
    padding: 12px 16px; box-shadow: var(--shadow);
  }
  .nav-mobile.open { display: block; }
  .nav-mobile a {
    display: block; padding: 10px 8px;
    border-bottom: 1px solid var(--ms-gray-30);
    color: var(--ms-gray-100); font-size: 14px;
  }
  .categories-grid, .products-grid, .testi-grid, .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .slide { min-height: 260px; }
  .slide-content { padding: 0 20px; }
  .topbar .topbar-left { display: none; }
}
