/*
Theme Name:  Senandika NAC
Theme URI:   https://www.nacindonesia.com
Author:      Apergu Solutions
Author URI:  https://apergu.com
Description: Minimal WordPress theme untuk Senandika NAC Indonesia. Dioptimalkan untuk Elementor Free. Semua layout dibangun via Elementor — theme ini hanya menyediakan typography, colors, dan global styles.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: senandika-nac
Tags:        custom-colors, custom-menu, featured-images, full-width-template, elementor
*/

/* ═══ DESIGN TOKENS ═══ */
:root {
  --nac-navy:  #1a1e5e;
  --nac-blue:  #2D3182;
  --nac-gold:  #F5C518;
  --nac-white: #ffffff;
  --nac-off:   #f7f7fb;
  --nac-gray:  #eeeef6;
  --nac-muted: #9090aa;
  --nac-text:  #111128;
  --nac-serif: 'Literata', Georgia, serif;
  --nac-sans:  'DM Sans', system-ui, sans-serif;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--nac-sans);
  color: var(--nac-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--nac-serif);
  line-height: 1.2;
  color: var(--nac-text);
}
p { line-height: 1.72; color: #44445a; }

/* ═══ ELEMENTOR OVERRIDES ═══ */
/* Remove default WP margin on Elementor pages */
.elementor-page .entry-content,
.elementor-page .post-content { padding: 0; margin: 0; }

/* Full width sections */
.elementor-section.elementor-section-full_width { padding-left: 0; padding-right: 0; }

/* Remove WP admin bar offset jika diperlukan */
.elementor-editor-active .nac-navbar-fixed { top: 32px; }

/* ═══ NAVBAR (dibangun manual, bukan Elementor) ═══ */
#nac-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 72px;
  background: rgba(26,30,94,.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .3s, box-shadow .3s;
}
#nac-nav.scrolled {
  background: var(--nac-navy);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.nac-nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nac-logo {
  font-family: var(--nac-serif); font-size: 1.25rem;
  font-weight: 700; color: #fff;
}
.nac-logo span { color: var(--nac-gold); }
.nac-menu { display: flex; align-items: center; gap: .1rem; }
.nac-menu a {
  padding: .45rem .85rem; border-radius: 6px;
  font-size: .84rem; font-weight: 500;
  color: rgba(255,255,255,.7); transition: all .2s;
}
.nac-menu a:hover,
.nac-menu .current-menu-item > a { color: #fff; background: rgba(255,255,255,.1); }
.nac-menu .current-menu-item > a { color: var(--nac-gold); background: rgba(245,197,24,.12); }
.nac-menu-cta > a {
  background: var(--nac-gold) !important;
  color: var(--nac-navy) !important;
  font-weight: 700 !important;
}
.nac-menu-cta > a:hover { background: #e8b800 !important; }

/* Hamburger */
.nac-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nac-burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; display: block; transition: all .3s; }
.nac-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nac-burger.open span:nth-child(2) { opacity: 0; }
.nac-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.nac-mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0; z-index: 9998;
  background: var(--nac-navy);
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-direction: column; gap: .25rem;
}
.nac-mobile-menu.open { display: flex; }
.nac-mobile-menu a {
  padding: .75rem 1rem; border-radius: 6px;
  color: rgba(255,255,255,.75); font-size: .95rem; font-weight: 500;
}
.nac-mobile-menu a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nac-mobile-menu .nac-menu-cta > a {
  background: var(--nac-gold); color: var(--nac-navy) !important;
  font-weight: 700; text-align: center; display: block; margin-top: .5rem;
}

/* ═══ ELEMENTOR CONTENT OFFSET (untuk navbar fixed) ═══ */
.elementor-section:first-of-type { margin-top: 0; }
body.has-fixed-nav { padding-top: 72px; }

/* ═══ WA FLOAT BUTTON ═══ */
.nac-wa-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 9000;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.nac-wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.5);
}

/* ═══ ELEMENTOR GLOBAL BUTTON STYLES ═══ */
/* Primary button */
.elementor-button.nac-btn-primary,
.e-btn-primary {
  background: var(--nac-gold) !important;
  color: var(--nac-navy) !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  border: none !important;
  transition: all .25s !important;
}
.elementor-button.nac-btn-primary:hover,
.e-btn-primary:hover {
  background: #e8b800 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,197,24,.35) !important;
}
/* Outline button */
.elementor-button.nac-btn-outline,
.e-btn-outline {
  background: transparent !important;
  border: 2px solid var(--nac-gold) !important;
  color: var(--nac-gold) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}
.elementor-button.nac-btn-outline:hover,
.e-btn-outline:hover {
  background: var(--nac-gold) !important;
  color: var(--nac-navy) !important;
}
/* Ghost (dark bg) */
.elementor-button.nac-btn-ghost,
.e-btn-ghost {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,.35) !important;
  color: #fff !important;
  border-radius: 6px !important;
}
.elementor-button.nac-btn-ghost:hover { border-color: #fff !important; background: rgba(255,255,255,.1) !important; }

/* ═══ UTILITY CLASSES (pakai di Elementor via CSS Classes) ═══ */
.nac-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--nac-gold);
}
.nac-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--nac-gold); }
.nac-gold-bar { width: 48px; height: 3px; background: var(--nac-gold); border-radius: 2px; }

/* Reveal animation */
.nac-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.nac-reveal.visible { opacity: 1; transform: none; }
.nac-delay-1 { transition-delay: .1s; }
.nac-delay-2 { transition-delay: .2s; }
.nac-delay-3 { transition-delay: .3s; }

/* Card hover */
.nac-card-hover { transition: transform .3s, box-shadow .3s; }
.nac-card-hover:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(45,49,130,.12); }

/* ═══ CUSTOM ELEMENTOR WIDGET STYLES ═══ */

/* Stat block */
.nac-stat-num {
  font-family: var(--nac-serif); font-size: 2.4rem;
  font-weight: 700; color: var(--nac-gold); line-height: 1;
}
.nac-stat-label { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: .3rem; }

/* Pillar item (intro NAC card) */
.nac-pillar {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem; border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.nac-pillar-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(245,197,24,.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* Benefit item */
.nac-benefit {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.nac-benefit:last-child { border-bottom: none; }
.nac-benefit-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nac-gold); flex-shrink: 0; margin-top: .4rem;
}

/* Testimoni */
.nac-testi-quote { font-size: 2.5rem; color: var(--nac-gold); line-height: 1; }
.nac-testi-text { font-style: italic; line-height: 1.7; color: #555566; }
.nac-testi-name { font-weight: 600; font-size: .9rem; }
.nac-testi-role { font-size: .78rem; color: var(--nac-muted); }

/* Client logo */
.nac-client-logo {
  height: 36px; padding: .5rem 1.25rem;
  background: #fff; border: 1px solid var(--nac-gray);
  border-radius: 6px; display: inline-flex; align-items: center;
  font-size: .78rem; font-weight: 600; color: var(--nac-muted);
  transition: all .2s;
}
.nac-client-logo:hover { border-color: var(--nac-gold); color: var(--nac-blue); }

/* Gallery item */
.nac-gallery-item { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; }
.nac-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nac-gallery-item:hover img { transform: scale(1.05); }
.nac-gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,30,94,.88), transparent 50%);
  opacity: 0; transition: opacity .3s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem;
}
.nac-gallery-item:hover .nac-gallery-overlay { opacity: 1; }
.nac-gallery-cat { font-size: .68rem; font-weight: 700; color: var(--nac-gold); text-transform: uppercase; letter-spacing: .1em; }
.nac-gallery-cap { font-size: .88rem; font-weight: 600; color: #fff; }

/* Blog card */
.nac-blog-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(245,197,24,.13); color: var(--nac-blue);
  padding: .2rem .6rem; border-radius: 4px; border: 1px solid rgba(245,197,24,.3);
}
.nac-blog-read { color: var(--nac-blue); font-weight: 600; font-size: .85rem; }
.nac-blog-read:hover { color: var(--nac-gold); }

/* Timeline */
.nac-tl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--nac-gold); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--nac-gold);
}
.nac-tl-year {
  font-size: .72rem; font-weight: 700; color: var(--nac-gold);
  letter-spacing: .1em; text-transform: uppercase;
}

/* Contact item */
.nac-contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(245,197,24,.15); border: 1px solid rgba(245,197,24,.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.nac-contact-label { font-size: .72rem; font-weight: 600; color: var(--nac-gold); text-transform: uppercase; letter-spacing: .1em; }
.nac-contact-value { font-size: .95rem; color: #fff; font-weight: 500; }

/* MYK trainer */
.nac-myk-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  overflow: hidden; border: 3px solid var(--nac-gold);
  margin: 0 auto .75rem;
}
.nac-myk-name { font-weight: 600; color: #fff; text-align: center; }
.nac-myk-role { font-size: .75rem; color: rgba(245,197,24,.8); text-align: center; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .nac-menu { display: none; }
  .nac-burger { display: flex; }
}
@media (max-width: 600px) {
  .nac-wa-float { width: 48px; height: 48px; font-size: 1.3rem; bottom: 1.25rem; right: 1.25rem; }
}

/* ═══ ENTRY CONTENT (single post) ═══ */
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content h2 { margin: 2rem 0 1rem; }
.entry-content h3 { margin: 1.5rem 0 .75rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li { margin-bottom: .4rem; line-height: 1.7; }
.entry-content a { color: var(--nac-blue); text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--nac-gold);
  padding: 1.25rem 1.5rem; background: var(--nac-off);
  border-radius: 0 8px 8px 0; margin: 2rem 0; font-style: italic;
}
