/* ---------------------------------------------
   DiPStrategy -- Base Styles
   style/base.css
   Global reset, CSS variables, typography base
   --------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

:root {
  --navy:         #093564;
  --lime:         #DEFF2D;
  --white:        #ffffff;
  --cream:        #f0f0e6;
  --font-headline: 'Montserrat', sans-serif;
  --font-body:     'Barlow', sans-serif;
}

html, body {
  width: 100%;
  background: #000;
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.sr-only-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Reading Progress Bar ────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: #DEFF2D;
  z-index: 4000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Font Size Toggle ────────────────────────── */
html[data-fs="1"] body {
  zoom: 1.25;
}

/* ── High Contrast Mode ──────────────────────── */

/* Semua text → solid putih (hilangkan rgba alpha) */
html[data-hc="1"] body * { color: #fff !important; }

/* Our Team: page bg cream tapi konten utama dark — paksa tetap putih */
html[data-hc="1"] .ot-page.hc-cream-bg * { color: #fff !important; }

/* Elemen berlatar terang → teks hitam */

/* Mega menu (bg putih) */
html[data-hc="1"] .mega-menu * { color: #000 !important; }

/* "Yang Kami Bangun" (bg cream: ec-yb-section, lp-yb-section, dst.) */
html[data-hc="1"] [class*="-yb-section"] *,
html[data-hc="1"] [class*="-yb-card"] * { color: #000 !important; }

/* Button CTA berlatar lime (seo-cta-primary, smm-cta-primary, dst.) */
html[data-hc="1"] [class*="-cta-primary"],
html[data-hc="1"] [class*="-cta-submit"],
html[data-hc="1"] .cta-submit,
html[data-hc="1"] .cta-chat-submit,
html[data-hc="1"] .mega-industries-cta { color: #000 !important; }

/* Industry Insight (bg lime) → teks hitam */
html[data-hc="1"] [class*="-ii-section"] * { color: #000 !important; }

/* FAQ sections → bg hitam (teks putih dari rule body *) */
html[data-hc="1"] [class*="-faq-section"] { background: #000 !important; }

/* Legal pages (Privacy Policy, T&C) — bg off-white → teks hitam */
html[data-hc="1"] .legal-body,
html[data-hc="1"] .legal-body * { color: #000 !important; }

/* Navy contact box di dalam legal body → tetap putih */
html[data-hc="1"] .legal-contact-box,
html[data-hc="1"] .legal-contact-box * { color: #fff !important; }

/* Latest Blog section (bg putih) → teks hitam */
html[data-hc="1"] .blog-section,
html[data-hc="1"] .blog-section * { color: #000 !important; }

/* Portfolio trust strip 3 kolom (bg putih) → teks hitam */
html[data-hc="1"] .pf-trust-section,
html[data-hc="1"] .pf-trust-section * { color: #000 !important; }

/* Portfolio filter pills & work cards (bg putih) → teks hitam */
html[data-hc="1"] .pf-filter-row span,
html[data-hc="1"] .pf-work-card,
html[data-hc="1"] .pf-work-card * { color: #000 !important; }

/* Scope pills di dalam card (bg navy) → teks putih */
html[data-hc="1"] .pf-scope-list span { color: #fff !important; }

/* Category badge (bg navy di dalam blog section) → tetap putih */
html[data-hc="1"] .blog-card-category { color: #fff !important; }

/* Elemen berlatar lime/cream (dideteksi JS via getComputedStyle) → teks hitam */
html[data-hc="1"] .hc-lime-bg,
html[data-hc="1"] .hc-lime-bg *,
html[data-hc="1"] .hc-cream-bg,
html[data-hc="1"] .hc-cream-bg * { color: #000 !important; }

/* ── reCAPTCHA badge (tersembunyi, disclaimer tampil di form) ── */
.grecaptcha-badge { visibility: hidden !important; }

.recaptcha-notice {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-top: 8px;
  line-height: 1.6;
}
.recaptcha-notice a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.recaptcha-notice a:hover {
  color: #fff;
}

/* Override untuk section berlatar terang (contact, industries modal) */
.ct-form-section .recaptcha-notice,
.ind-whitepaper-dialog .recaptcha-notice {
  color: rgba(9,53,100,0.55);
}
.ct-form-section .recaptcha-notice a,
.ind-whitepaper-dialog .recaptcha-notice a {
  color: rgba(9,53,100,0.75);
}
.ct-form-section .recaptcha-notice a:hover,
.ind-whitepaper-dialog .recaptcha-notice a:hover {
  color: var(--navy);
}

/* Focus Styles ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* --- SHARED ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- SHARED SERVICE HERO ANCHOR STRIP --- */
.seo-hero-content,
.smm-hero-content,
.kol-hero-content,
.ls-hero-content,
.ai-hero-content,
.wa-hero-content,
.ma-hero-content,
.ec-hero-content {
  padding-top: 150px !important;
  padding-bottom: 108px !important;
}

.seo-cta-group,
.smm-cta-group,
.kol-cta-group,
.ls-cta-group,
.ai-cta-group,
.wa-cta-group,
.ec-cta-group {
  margin-bottom: 0 !important;
}

.seo-anchor-strip,
.smm-anchor-strip,
.kol-anchor-strip,
.ls-anchor-strip,
.ai-anchor-strip,
.wa-anchor-strip,
.ma-anchor-strip,
.ec-anchor-strip {
  position: absolute !important;
  z-index: 1000 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  align-items: stretch !important;
  padding: 0 56px !important;
  padding-left: calc(30% + 56px) !important;
  margin-top: 0 !important;
}

.seo-anchor-item,
.smm-anchor-item,
.kol-anchor-item,
.ls-anchor-item,
.ai-anchor-item,
.wa-anchor-item,
.ma-anchor-item,
.ec-anchor-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  font-family: var(--font-body) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: inherit !important;
  padding: 24px 32px 24px 0 !important;
  margin-right: 0 !important;
  border-right: 1px solid rgba(255,255,255,0.1) !important;
  text-decoration: none !important;
}

.seo-anchor-item:not(:first-child),
.smm-anchor-item:not(:first-child),
.kol-anchor-item:not(:first-child),
.ls-anchor-item:not(:first-child),
.ai-anchor-item:not(:first-child),
.wa-anchor-item:not(:first-child),
.ma-anchor-item:not(:first-child),
.ec-anchor-item:not(:first-child) {
  padding-left: 32px !important;
}

.seo-anchor-item:last-child,
.smm-anchor-item:last-child,
.kol-anchor-item:last-child,
.ls-anchor-item:last-child,
.ai-anchor-item:last-child,
.wa-anchor-item:last-child,
.ma-anchor-item:last-child,
.ec-anchor-item:last-child {
  border-right: none !important;
  padding-right: 0 !important;
}

.service-anchor-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.service-anchor-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(255,255,255,0.45);
}

.seo-anchor-item:hover .service-anchor-title,
.smm-anchor-item:hover .service-anchor-title,
.kol-anchor-item:hover .service-anchor-title,
.ls-anchor-item:hover .service-anchor-title,
.ai-anchor-item:hover .service-anchor-title,
.wa-anchor-item:hover .service-anchor-title,
.ma-anchor-item:hover .service-anchor-title,
.ec-anchor-item:hover .service-anchor-title {
  color: #f0ff50;
}

@media (max-width: 900px) {
  .seo-hero-content,
  .smm-hero-content,
  .kol-hero-content,
  .ls-hero-content,
  .ai-hero-content,
  .wa-hero-content,
  .ma-hero-content,
  .ec-hero-content {
    padding-top: 130px !important;
    padding-bottom: 108px !important;
  }

  .seo-anchor-strip,
  .smm-anchor-strip,
  .kol-anchor-strip,
  .ls-anchor-strip,
  .ai-anchor-strip,
  .wa-anchor-strip,
  .ma-anchor-strip,
  .ec-anchor-strip {
    padding: 0 24px !important;
    overflow-x: auto !important;
  }

  .seo-anchor-item,
  .smm-anchor-item,
  .kol-anchor-item,
  .ls-anchor-item,
  .ai-anchor-item,
  .wa-anchor-item,
  .ma-anchor-item,
  .ec-anchor-item {
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    padding: 16px 8px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  .seo-anchor-item:not(:first-child),
  .smm-anchor-item:not(:first-child),
  .kol-anchor-item:not(:first-child),
  .ls-anchor-item:not(:first-child),
  .ai-anchor-item:not(:first-child),
  .wa-anchor-item:not(:first-child),
  .ma-anchor-item:not(:first-child),
  .ec-anchor-item:not(:first-child) {
    padding-left: 8px !important;
  }

  .service-anchor-title {
    justify-content: center;
  }
}

/* ── Site Breadcrumb ─────────────────────────────── */
.site-bc-wrap {
  position: static;
  height: 0;
  overflow: visible;
}

.site-bc {
  position: fixed;
  top: 80px;
  right: 56px;
  z-index: 200;
  pointer-events: auto;
}

.site-bc-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-bc-item,
.site-bc-sep {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.site-bc-link {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.site-bc-link:hover {
  color: var(--lime);
}

.site-bc-sep {
  color: rgba(255,255,255,0.25);
}

.site-bc-plain {
  color: rgba(255,255,255,0.35);
}

.site-bc-current {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

@media (max-width: 768px) {
  .site-bc {
    display: none;
  }
}
