/* ── shared.css – Nalika Institute ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #237120;
  --green-mid:   #4BAF47;
  --green-light: #6CC469;
  --green-pale:  #EDF7ED;
  --accent:      #FFB539;
  --accent2:     #FFC85A;
  --bg-light:    #F8F7F0;
  --white:       #ffffff;
  --text-dark:   #24231D;
  --text-mid:    #878680;
  --text-light:  #9fa2ad;
  --border:      #E3E3E3;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Inter', sans-serif;
  --shadow-sm:   0 2px 12px rgba(0,0,0,.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
  --radius:      10px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--white); font-size: 15px; line-height: 1.65; }
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--green-mid);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-img-clip { height: 52px; overflow: hidden; flex-shrink: 0; }
.logo-img-clip img { height: 52px; object-fit: contain; }
.logo-text { line-height: 1.3; }
.site-name { font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--green-dark); letter-spacing: -.2px; }
.site-sub { font-size: 11.5px; color: var(--text-mid); font-weight: 500; letter-spacing: .2px; }

/* NAV */
#main-nav { display: flex; align-items: center; gap: 2px; }
.nav-main-links { display: flex; align-items: center; gap: 2px; }
.nav-link { display: block; padding: 9px 13px; font-size: 13px; font-weight: 600; color: var(--text-dark); border-radius: 6px; transition: background .18s, color .18s; white-space: nowrap; }
.nav-link:hover { background: var(--green-pale); color: var(--green-mid); }
.nav-link.nav-active { background: var(--green-mid) !important; color: var(--white) !important; }
.nav-link.nav-active:hover { background: var(--green-dark) !important; }
.nav-sep { color: var(--border); margin: 0 2px; font-size: 11px; }
.nav-cta-btns { display: flex; gap: 8px; margin-left: 10px; }
.nav-cta { padding: 9px 20px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--accent); color: var(--text-dark); transition: background .2s; white-space: nowrap; }
.nav-cta:hover { background: var(--accent2); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--green-mid); border-radius: 2px; }

/* ── SECTION COMMON ── */
.section-wrap { padding: 72px 0; position: relative; overflow: hidden; }
.section-wrap.bg-light { background: var(--bg-light); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-wrap .container { position: relative; z-index: 1; }

.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--green-mid); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.section-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--green-mid); border-radius: 2px; }
.section-title { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--text-dark); line-height: 1.2; margin-bottom: 14px; }
.section-title span { color: var(--green-mid); }
.section-sub { font-size: 15px; color: var(--text-mid); max-width: 560px; line-height: 1.7; }
.section-header.centered .section-sub { margin: 0 auto; }

/* Decorative backgrounds */
.section-wrap.bg-light::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(75,175,71,.14) 1.5px, transparent 1.5px); background-size: 26px 26px; pointer-events: none; z-index: 0; }
.section-wrap.bg-light::after { content: ''; position: absolute; bottom: -80px; right: -80px; width: 380px; height: 380px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M10,190 Q30,130 70,80 Q110,30 190,10 Q160,80 120,120 Q80,160 10,190Z' fill='%234BAF47'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; opacity: 0.09; pointer-events: none; z-index: 0; }
.section-wrap:not(.bg-light)::before { content: ''; position: absolute; top: -60px; right: -60px; width: 320px; height: 320px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M10,190 Q30,130 70,80 Q110,30 190,10 Q160,80 120,120 Q80,160 10,190Z' fill='%234BAF47'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; opacity: 0.055; pointer-events: none; z-index: 0; }
.section-wrap:not(.bg-light)::after { content: ''; position: absolute; bottom: -50px; left: -50px; width: 250px; height: 250px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M10,190 Q30,130 70,80 Q110,30 190,10 Q160,80 120,120 Q80,160 10,190Z' fill='%234BAF47'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; opacity: 0.055; pointer-events: none; z-index: 0; transform: rotate(180deg); }

/* ── LAYANAN CARD (reusable) ── */
.layanan-card { background: var(--white); border-radius: var(--radius); padding: 28px 20px; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.layanan-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.layanan-card:hover::before { transform: scaleX(1); }
.layanan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-light); }
.layanan-icon { width: 68px; height: 68px; border-radius: 16px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px; }
.layanan-card-title { font-family: var(--font-head); font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; line-height: 1.35; }
.layanan-card-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.65; }

/* ── CTA SECTION ── */
.cta-section { background: linear-gradient(135deg, #131B23 0%, #1e2d1e 100%); padding: 72px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 460px; height: 460px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M10,190 Q30,130 70,80 Q110,30 190,10 Q160,80 120,120 Q80,160 10,190Z' fill='%23ffffff'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; opacity: 0.05; pointer-events: none; }
.cta-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 1; }
.cta-text { color: #fff; }
.cta-text h2 { font-family: var(--font-head); font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.cta-text p { font-size: 15px; opacity: .8; max-width: 480px; }
.cta-btns { display: flex; gap: 14px; flex-shrink: 0; }
.btn-white { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; background: #fff; color: var(--green-dark); font-weight: 700; font-size: 14px; border-radius: 6px; transition: background .2s, transform .15s; white-space: nowrap; }
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); }
.btn-accent { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; background: var(--green-mid); color: #fff; font-weight: 700; font-size: 14px; border-radius: 6px; transition: background .2s, transform .15s; white-space: nowrap; box-shadow: 0 4px 16px rgba(75,175,71,.4); }
.btn-accent:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: #131B23; color: #9fa2ad; padding: 60px 0 0; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .logo-img-clip { height: 48px; overflow: hidden; display: block; }
.footer-brand .logo-img-clip img { height: 48px; width: auto; object-fit: contain; }
.footer-brand-name { font-size: 15px; font-weight: 700; color: #fff; margin: 14px 0 6px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; color: #9fa2ad; max-width: 260px; }
.footer-brand-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-brand-contact a { color: #9fa2ad; transition: color .2s; }
.footer-brand-contact a:hover { color: var(--green-light); }
.footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 10px; border-bottom: 2px solid var(--green-mid); display: inline-block; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13.5px; color: #9fa2ad; transition: color .2s, padding-left .2s; display: flex; align-items: center; gap: 6px; }
.footer-col ul li a::before { content: '›'; color: var(--green-mid); font-weight: 700; }
.footer-col ul li a:hover { color: var(--green-light); padding-left: 4px; }
.footer-stat-list { gap: 10px !important; }
.footer-stat-list li {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; font-size: 13px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-stat-list li:last-child { border-bottom: none; padding-bottom: 0; }
.fstat-label { color: #8a9bb0; }
.fstat-val { color: var(--green-light); font-weight: 700; font-size: 14px; }

.footer-bottom { background: #0d1318; text-align: center; padding: 16px 24px; font-size: 12.5px; color: #6b6f78; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-bottom a { color: var(--green-mid); }
.footer-bottom a:hover { color: var(--green-light); }
.footer-separator { opacity: .4; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-btns { justify-content: center; }
}
@media (max-width: 900px) {
  #main-nav { display: none; }
  .hamburger { display: flex; }
  .section-title { font-size: 24px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
}
/* Mobile nav */
#main-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 2px solid var(--green-mid); box-shadow: var(--shadow-md); padding: 8px 0; z-index: 999; }
#main-nav.open .nav-main-links { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
#main-nav.open .nav-sep { display: none; }
#main-nav.open .nav-link { padding: 12px 24px; border-radius: 0; }
#main-nav.open .nav-cta-btns { flex-direction: column; padding: 8px 24px 16px; margin-left: 0; }
#main-nav.open .nav-cta { text-align: center; }
