/*
Theme Name:   DNAcorpora Child
Theme URI:    https://dnacorpora.com
Description:  Child theme for DNAcorpora — built on Astra
Author:       DNAcorpora
Author URI:   https://dnacorpora.com
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  dnacorpora-child
*/

/* ══════════════════════════════════════════
   CSS VARIABLES
══════════════════════════════════════════ */
:root {
  --black:        #080808;
  --black-soft:   #0F0F0F;
  --black-card:   #141414;
  --black-mid:    #1A1A1A;
  --black-hi:     #222222;
  --gold:         #C9A84C;
  --gold-light:   #DFB96A;
  --gold-dim:     rgba(201,168,76,0.12);
  --gold-border:  rgba(201,168,76,0.22);
  --white:        #FFFFFF;
  --gray:         #888888;
  --gray-dim:     #555555;
  --border-soft:  rgba(255,255,255,0.06);
  --fh: 'Plus Jakarta Sans', sans-serif;
  --fs: 'Playfair Display', serif;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-pill:  100px;
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fh);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ══════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--fh);
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--white);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1rem; font-weight: 700; }
p  { color: rgba(255,255,255,.80); font-size: .9rem; line-height: 1.75; }

em.serif {
  font-style: italic;
  font-family: var(--fs);
  font-weight: 400;
  color: var(--gold);
}

/* ══════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════ */
.dna-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}
.dna-section {
  padding: 84px 56px;
}
.dna-section--dark  { background: var(--black); }
.dna-section--soft  { background: var(--black-soft); }

/* ══════════════════════════════════════════
   SECTION LABELS & TITLES
══════════════════════════════════════════ */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 14px;
}
.sec-label::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--gold);
}
.sec-title {
  max-width: 560px;
  margin-bottom: 12px;
}
.sec-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.80);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 44px;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-gold {
  background: var(--gold);
  color: var(--black);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  border: none;
  cursor: pointer;
  letter-spacing: -.01em;
  font-family: var(--fh);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.28);
  color: var(--black);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.65);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .88rem;
  border: 1px solid var(--border-soft);
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fh);
}
.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--white);
}
.btn-gold-sm {
  background: var(--gold);
  color: var(--black);
  padding: 10px 20px;
  border-radius: 7px;
  font-weight: 700;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  white-space: nowrap;
  font-family: var(--fh);
}
.btn-gold-sm:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--black); }
.btn-ghost-sm {
  background: transparent;
  color: rgba(255,255,255,.80);
  padding: 10px 20px;
  border-radius: 7px;
  font-weight: 600;
  font-size: .8rem;
  border: 1px solid var(--border-soft);
  transition: all .2s;
  white-space: nowrap;
  font-family: var(--fh);
}
.btn-ghost-sm:hover { border-color: var(--gold-border); color: var(--white); }
.btn-wa {
  background: #25D366;
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  font-family: var(--fh);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.28);
  color: #fff;
}

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.dna-card {
  background: var(--black-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.dna-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.dna-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
}
.dna-card:hover::after { transform: scaleX(1); }
.dna-card--featured {
  background: linear-gradient(135deg, #181400 0%, #1a1600 100%);
  border-color: var(--gold-border);
}
.dna-card--featured::after { transform: scaleX(1); }

/* ══════════════════════════════════════════
   BADGE / TAG
══════════════════════════════════════════ */
.dna-badge {
  display: inline-block;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dna-tag {
  display: inline-block;
  background: var(--black-mid);
  color: rgba(255,255,255,.55);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: .62rem;
  font-weight: 600;
  border: 1px solid var(--border-soft);
}

/* ══════════════════════════════════════════
   CTA BAND (reusable)
══════════════════════════════════════════ */
.cta-band {
  background: var(--black-mid);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 32px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band__text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: 4px;
}
.cta-band__text p { font-size: .8rem; color: rgba(255,255,255,.80); }
.cta-band__btns { display: flex; gap: 10px; flex-shrink: 0; }

/* ══════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════ */
.trust-bar {
  background: var(--black-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 56px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.trust-bar__label {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-bar__items { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.trust-bar__item  { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.55); }

/* ══════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 44px;
}
.faq-item {
  background: var(--black-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 22px;
  transition: border-color .2s;
  cursor: pointer;
}
.faq-item:hover { border-color: var(--gold-border); }
.faq-item.open  { border-color: var(--gold-border); }
.faq-q {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.faq-q .faq-icon {
  color: var(--gold);
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: transform .3s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  font-size: .78rem;
  color: rgba(255,255,255,.80);
  line-height: 1.65;
  margin-top: 10px;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .08s; }
.rd2 { transition-delay: .16s; }
.rd3 { transition-delay: .24s; }

/* ══════════════════════════════════════════
   GRID TEXTURE (hero bg)
══════════════════════════════════════════ */
.grid-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════
   ASTRA OVERRIDES — remove default padding
══════════════════════════════════════════ */
.ast-container,
.site-content,
#content { padding: 0 !important; max-width: 100% !important; }
.entry-content { margin: 0 !important; }
.ast-article-single { padding: 0 !important; }
.site-main { margin: 0 !important; }

/* hide Astra header — we use our own */
#masthead { display: none !important; }

/* ══════════════════════════════════════════
   LIVE DOT
══════════════════════════════════════════ */
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  animation: livepulse 2s infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(1.5); }
}

/* ══════════════════════════════════════════
   ASTRA WHITE STRIP FIX
   Hapus semua padding/margin bawaan Astra
══════════════════════════════════════════ */
html, body { background: var(--black) !important; }
body.ast-page-builder-template { padding-top: 0 !important; }
.ast-page-builder-template .site-content,
.ast-page-builder-template #content,
.entry-content,
.ast-container,
.site-main,
#primary,
#main,
.ast-article-single,
.post-content-area { 
  padding: 0 !important; 
  margin: 0 !important;
  max-width: 100% !important;
}
/* Remove any white Astra header remnants */
#masthead, .ast-masthead-custom-spacing,
.ast-above-header-bar, .ast-below-header-bar { display: none !important; }
/* Remove body top padding Astra adds for sticky header */
.ast-header-break-point .ast-primary-header-bar,
.ast-desktop .ast-primary-header-bar { display: none !important; }
body { padding-top: 0 !important; margin-top: 0 !important; }
/* Ensure page content starts right after our nav */
.ast-single-post .site-content,
.page .site-content,
.home .site-content { padding-top: 0 !important; }

/* ══════════════════════════════════════════
   TRUST BAR — MARQUEE SCROLL ANIMATION
══════════════════════════════════════════ */
.trust-bar__items {
  display: flex;
  gap: 40px;
  animation: trustScroll 20s linear infinite;
  white-space: nowrap;
}
.trust-bar__items:hover { animation-play-state: paused; }
@keyframes trustScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   GHOST BUTTON — MORE VISIBLE
══════════════════════════════════════════ */
.btn-ghost {
  background: rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.9) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.4) !important;
  color: var(--white) !important;
}

/* ══════════════════════════════════════════
   NAV DROPDOWN
══════════════════════════════════════════ */
.dna-nav__links li { position: relative; }
.dna-nav__links li ul {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: var(--black-card);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 8px;
  z-index: 300;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.dna-nav__links li:hover > ul,
.dna-nav__links li:focus-within > ul { display: block; }
.dna-nav__links li ul li { display: block; border: none; padding: 0; }
.dna-nav__links li ul li a {
  display: block;
  padding: 9px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.75) !important;
  border-radius: 7px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.dna-nav__links li ul li a:hover {
  background: var(--gold-dim);
  color: var(--gold) !important;
}
/* Arrow indicator for parent item */
.dna-nav__links li:has(> ul) > a::after {
  content: ' ↓';
  font-size: .65rem;
  opacity: .6;
}

/* ══════════════════════════════════════════
   GLOBAL COLOR FIX — ALL GRAY TO WHITE
   Override semua warna abu-abu di seluruh theme
══════════════════════════════════════════ */
body, p, li, span, div {
  color: inherit;
}
/* Base text colors */
.sec-desc,
.dna-pain,
.step p,
.dna-case__sub,
.faq-a,
.dna-tools__label,
.dna-res-card__body p,
.dna-blog-card__excerpt,
.dna-article__content,
.tools-text p,
.dna-layanan__desc,
.dna-process-item p,
.dna-benefit span:last-child,
.dna-vismis__card p,
.dna-team__info p,
.dna-about__story-text p,
.dna-sidebar-sub p,
.dna-sidebar-cta-box p,
.footer-widget p { 
  color: rgba(255,255,255,.78) !important; 
}
/* Section descriptions */
p.sec-desc { color: rgba(255,255,255,.75) !important; }
/* Card text */
.dna-card p, .dna-svc-card p, .service-card p { color: rgba(255,255,255,.75) !important; }
/* Trust bar */
.trust-bar__label { color: rgba(255,255,255,.5) !important; }
.trust-bar__item  { color: rgba(255,255,255,.75) !important; }
/* Footer */
.dna-footer__brand p { color: rgba(255,255,255,.6) !important; }
.dna-footer__col a, .ft-col a { color: rgba(255,255,255,.5) !important; }
.dna-footer__col a:hover, .ft-col a:hover { color: var(--gold) !important; }
.dna-footer__loc, .ft-loc { color: rgba(255,255,255,.45) !important; }
.footer-widget__title, .ft-col h4, .dna-footer__col h4 { color: rgba(255,255,255,.4) !important; }
.dna-footer__bottom p { color: rgba(255,255,255,.3) !important; }
/* Nav */
.dna-nav__links a { color: rgba(255,255,255,.85) !important; }
/* Step numbers and labels */
.dna-step__num { background: var(--gold) !important; color: var(--black) !important; }
/* Meta info */
.dna-blog-card__date,
.dna-article__date,
.dna-article__read-time,
.dna-sidebar-posts__date { color: rgba(255,255,255,.45) !important; }
/* Case metrics */
.dna-case__lbl, .cm-lbl { color: rgba(255,255,255,.55) !important; }
/* Kontak channels */
.dna-kontak-channel__note { color: rgba(255,255,255,.6) !important; }
/* Scroll hint */
.dna-hero__scroll { color: rgba(255,255,255,.5) !important; }
.dna-hero__scroll-line { background: rgba(255,255,255,.3) !important; }
/* Tagline below rotating text */
.dna-hero__tagline { color: rgba(255,255,255,.65) !important; }
/* Audit tool labels */
.dna-tools__label { color: rgba(255,255,255,.7) !important; }
.dna-tools__audit-hd { color: var(--gold) !important; }
/* Ghost button — more visible */
.btn-ghost, a.btn-ghost {
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
}
.btn-ghost:hover, a.btn-ghost:hover {
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.45) !important;
}
/* ══════════════════════════════════════════
   WHITE STRIP FIX — NUCLEAR OPTION
   Paksa semua elemen Astra jadi transparan/hitam
══════════════════════════════════════════ */
html { background: #080808 !important; }
body { background: #080808 !important; padding: 0 !important; margin: 0 !important; }
#page, .site, .site-content, #content,
#primary, #main, .site-main,
.ast-container, .ast-article-single,
.entry-content, .post-content-area,
.page-content, .ast-page-builder-template { 
  background: transparent !important;
  padding: 0 !important; 
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
/* Hide Astra's own header completely */
#masthead, header#masthead,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar,
.ast-masthead-custom-spacing { 
  display: none !important; 
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Remove Astra body padding for fixed header */
.ast-header-break-point body,
body.ast-desktop { padding-top: 0 !important; }
/* Force page hero background */
.dna-page-hero, .dna-hero { background: #080808 !important; }
/* ══════════════════════════════════════════
   INSIGHT PAGE — use our archive template styling
   even if WordPress falls back to default
══════════════════════════════════════════ */
.blog .site-main,
.archive .site-main,
.category .site-main { 
  background: #080808 !important; 
  padding: 0 !important;
}

/* ══════════════════════════════════════════
   GLOBAL COLOR OVERRIDE — abu2 → putih
   Berlaku untuk SEMUA halaman
══════════════════════════════════════════ */
p, li, span, div { color: inherit; }
.sec-desc, .section-desc { color: rgba(255,255,255,.7) !important; }
.dna-card p, .dna-case__sub, .dna-step p,
.dna-layanan__desc, .dna-benefit span:last-child,
.dna-process-item p, .faq-a,
.dna-tools__label, .dna-vismis__card p,
.dna-about__story-text p { color: rgba(255,255,255,.75) !important; }
.trust-bar__label { color: rgba(255,255,255,.5) !important; }
.trust-bar__item  { color: rgba(255,255,255,.8) !important; }
.dna-case__lbl, .cp-metric-label,
.dna-sidebar-posts__date { color: rgba(255,255,255,.55) !important; }


/* ══════════════════════════════════════════
   GENERATEPRESS — minimal overrides
   GP is clean by default, just hide its header/footer
   since we render our own
══════════════════════════════════════════ */
/* Hide GP default header & footer - we use our own */
.site-header, .site-footer,
.navigation-branding { display: none !important; }

/* Remove GP body padding */
body { padding: 0 !important; }
.site-content, .inside-site-content,
#primary, .content-area,
.inside-article, .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
.site-main { margin: 0 !important; }
/* Remove GP page hero padding */
.page .entry-header { display: none !important; }

/* ══════════════════════════════════════════
   LOGO — support custom logo via Customizer
══════════════════════════════════════════ */
.dna-nav__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ══════════════════════════════════════════
   LOGO SIZE FIX
══════════════════════════════════════════ */
.dna-nav__logo-img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* ══════════════════════════════════════════
   SCROLL OFFSET — halaman detail jangan
   ketutup nav saat klik anchor
══════════════════════════════════════════ */
html { scroll-padding-top: 80px; }
section[id], div[id] { scroll-margin-top: 80px; }

/* ══════════════════════════════════════════
   FOOTER TEXT — force white
══════════════════════════════════════════ */
.dna-footer__col a,
.dna-footer__col li a { color: rgba(255,255,255,.62) !important; }
.dna-footer__col a:hover { color: var(--gold) !important; }
.dna-footer__col h4 { color: rgba(255,255,255,.4) !important; }
.dna-footer__brand p { color: rgba(255,255,255,.62) !important; }
.dna-footer__loc { color: rgba(255,255,255,.45) !important; }
.dna-footer__bottom p { color: rgba(255,255,255,.35) !important; }

/* ══════════════════════════════════════════
   HERO VISUAL — mobile
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .dna-hero { grid-template-columns: 1fr !important; }
  .dna-hero__visual { display: none; }
}

/* ══════════════════════════════════════════
   NAV LOGO — force proper size
══════════════════════════════════════════ */
.dna-nav__logo img,
.dna-nav__logo-img {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;
}

/* ══════════════════════════════════════════
   HERO IMAGE — full height fill
══════════════════════════════════════════ */
.dna-hero {
  min-height: 100vh;
}
.dna-hero__visual {
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   PAGE HERO — fix judul ketiban nav
   nav height = 66px, tambah padding atas
══════════════════════════════════════════ */
/* dna-page-hero-fix */
.dna-page-hero {
  padding-top: 130px !important;
}
.dna-page-hero__inner {
  padding-top: 0 !important;
  padding-bottom: 60px !important;
}