/* ==========================================================================
   Naik Satu — brand redesign (header, footer, homepage)
   Loaded after site2.css so these rules win. Uses .ns- prefixed classes
   for homepage sections; header/footer restyle is global (shared layout).
   ========================================================================== */

:root {
    --ns-teal: #12a08a;
    --ns-teal-dark: #0b8b77;
    --ns-ink: #0b3b2e;          /* dark green — headings, footer bg */
    --ns-ink-2: #0d2f26;
    --ns-text: #40514a;         /* body text */
    --ns-sky: #cfe9f8;
    --ns-sky-2: #e7f4ec;
    --ns-grass: #cfe6b0;
    --ns-cream: #f7f3e8;
    --ns-accent: #aeb840;       /* newsletter subscribe */
    --ns-accent-dark: #9aa438;
    --ns-shadow: 0 18px 45px rgba(11, 59, 46, .12);
    --ns-radius: 22px;
    --ns-font: 'Poppins', 'Open Sans', system-ui, sans-serif;
    --ns-display: 'Fredoka', 'Poppins', sans-serif;
}

body {
    font-family: var(--ns-font);
    color: var(--ns-text);
    background: #ffffff;
}

h1, h2, h3, h4, h5, .ns-display { font-family: var(--ns-display); color: var(--ns-ink); }

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

/* ---------- Buttons ---------------------------------------------------- */
.btn-green,
.ns-btn {
    display: inline-flex; align-items: center; gap: .55rem;
    background: var(--ns-teal); color: #fff;
    font-family: var(--ns-font); font-weight: 600; font-size: 1rem;
    border: none; border-radius: 999px; padding: .72rem 1.5rem;
    box-shadow: 0 8px 20px rgba(18, 160, 138, .3);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    cursor: pointer; text-decoration: none;
}
.btn-green:hover,
.ns-btn:hover { background: var(--ns-teal-dark); color: #fff; transform: translateY(-2px); text-decoration: none; }
.ns-btn--ghost { background: #fff; color: var(--ns-teal); box-shadow: inset 0 0 0 2px rgba(18,160,138,.35); }
.ns-btn--ghost:hover { background: var(--ns-teal); color: #fff; }
.ns-btn--lg { padding: .95rem 2rem; font-size: 1.1rem; }

/* ==========================================================================
   HEADER — floating white pill
   ========================================================================== */
header { position: sticky; top: 0; z-index: 1000; background: transparent; }
#nav.navbar, header > nav { padding: 14px 16px; }

.ns-header-inner {
    max-width: 1240px; margin: 0 auto;
    background: #ffffff; border-radius: var(--ns-radius);
    box-shadow: var(--ns-shadow);
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px;
}

/* brand */
.ns-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.ns-brand__icon { height: 42px !important; width: auto !important; max-width: none !important; display: block; }
.ns-brand__name { font-family: var(--ns-display); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--ns-ink); }
.ns-brand__tag { display: block; font-family: var(--ns-font); font-weight: 400; font-size: .62rem; color: var(--ns-teal); letter-spacing: .2px; margin-top: 2px; }

/* nav */
.ns-nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; list-style: none; padding: 0; margin-bottom: 0; }
.ns-nav__link {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--ns-ink); font-weight: 500; font-size: .98rem;
    padding: .5rem .85rem; border-radius: 999px; text-decoration: none;
    white-space: nowrap; transition: color .15s ease, background .15s ease; background: none; border: none; cursor: pointer;
}
.ns-nav__link:hover { color: var(--ns-teal); background: rgba(18,160,138,.08); text-decoration: none; }
.ns-nav__link { position: relative; }
.ns-nav__link.is-active { color: var(--ns-teal); font-weight: 600; }
.ns-nav__link.is-active::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .18rem;
    height: 2.5px; border-radius: 3px; background: var(--ns-teal);
}

/* right cluster */
.ns-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.ns-social { display: flex; align-items: center; gap: 12px; }
.ns-social a { color: var(--ns-ink); font-size: 1.15rem; line-height: 1; transition: color .15s ease, transform .15s ease; }
.ns-social a:hover { color: var(--ns-teal); transform: translateY(-2px); }

/* dropdown */
.ns-dropdown { position: relative; }
.ns-dropdown__menu {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px;
    background: #fff; border-radius: 16px; box-shadow: var(--ns-shadow);
    padding: 10px; display: none; z-index: 20;
}
.ns-dropdown.open > .ns-dropdown__menu { display: block; }
.ns-dropdown__menu a, .ns-dropdown__menu button {
    display: block; width: 100%; text-align: left; padding: .55rem .8rem; border-radius: 10px;
    color: var(--ns-ink); font-weight: 500; font-size: .95rem; text-decoration: none; background: none; border: none; cursor: pointer;
}
.ns-dropdown__menu a:hover, .ns-dropdown__menu button:hover { background: rgba(18,160,138,.1); color: var(--ns-teal); }
.ns-dropdown__divider { height: 1px; background: #eef0ee; margin: 6px 4px; }

/* hamburger */
.ns-burger { display: none; margin-left: auto; background: none; border: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.ns-burger:hover { background: rgba(18,160,138,.1); }
.ns-burger span { display: block; width: 22px; height: 2.5px; background: var(--ns-ink); border-radius: 3px; position: relative; transition: .2s; }
.ns-burger span::before, .ns-burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2.5px; background: var(--ns-ink); border-radius: 3px; transition: .2s; }
.ns-burger span::before { top: -7px; } .ns-burger span::after { top: 7px; }
body.ns-menu-open .ns-burger span { background: transparent; }
body.ns-menu-open .ns-burger span::before { top: 0; transform: rotate(45deg); }
body.ns-menu-open .ns-burger span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.ns-hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 46px 20px 0;
    background: linear-gradient(180deg, var(--ns-sky) 0%, #dff0f0 42%, var(--ns-sky-2) 68%, #e9f4dc 100%);
    margin-top: -78px; /* tuck under floating header */
    padding-top: 130px;
}
.ns-hero__inner { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.ns-hero__logo { width: min(340px, 74vw); height: auto; margin: 0 auto 6px; display: block; filter: drop-shadow(0 10px 22px rgba(11,59,46,.12)); }
.ns-hero__cta { margin-top: 22px; }
/* decorative clouds */
.ns-cloud { position: absolute; background: #fff; border-radius: 50%; opacity: .85; filter: blur(1px); z-index: 1; }
.ns-cloud::before, .ns-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.ns-cloud--1 { width: 90px; height: 90px; top: 120px; left: 8%; }
.ns-cloud--1::before { width: 60px; height: 60px; top: 20px; left: -35px; }
.ns-cloud--1::after { width: 70px; height: 70px; top: 15px; left: 55px; }
.ns-cloud--2 { width: 70px; height: 70px; top: 160px; right: 12%; }
.ns-cloud--2::before { width: 45px; height: 45px; top: 18px; left: -28px; }
.ns-cloud--2::after { width: 55px; height: 55px; top: 12px; left: 45px; }
/* hills */
.ns-hero__hills { position: relative; z-index: 2; display: block; width: 100%; height: auto; margin-top: -10px; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.ns-about { padding: 74px 0; background: #fff; }
.ns-about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.ns-about__eyebrow { color: var(--ns-teal); font-weight: 600; font-size: .95rem; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.ns-about h2 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 18px; }
.ns-about p { font-size: 1.05rem; line-height: 1.75; margin-bottom: 16px; }
.ns-about p strong { color: var(--ns-ink); }
.ns-about__media img { width: 100%; border-radius: 26px; box-shadow: var(--ns-shadow); display: block; }

/* ==========================================================================
   PILLARS
   ========================================================================== */
.ns-pillars { padding: 78px 0; background: linear-gradient(180deg, #f3f9ef 0%, #ffffff 100%); }
.ns-section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.ns-section-head h2 { font-size: 2.3rem; margin-bottom: 12px; }
.ns-section-head p { font-size: 1.05rem; line-height: 1.7; }
.ns-pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ns-pillar {
    background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--ns-shadow);
    text-decoration: none; color: inherit; display: flex; flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.ns-pillar:hover { transform: translateY(-6px); box-shadow: 0 26px 55px rgba(11,59,46,.18); text-decoration: none; color: inherit; }
.ns-pillar__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--ns-sky); }
.ns-pillar__body { padding: 20px 22px 24px; }
.ns-pillar__body h3 { font-size: 1.35rem; margin-bottom: 6px; }
.ns-pillar__body p { font-size: .96rem; line-height: 1.6; margin: 0; }
.ns-pillar:nth-child(4), .ns-pillar:nth-child(5) { grid-column: span 1; }

/* ==========================================================================
   Functional sections (konseling categories, dynamic lists)
   ========================================================================== */
.ns-block { padding: 70px 0; }
.ns-block--tint { background: #f3f9ef; }
.ns-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.ns-block__head h2 { font-size: 2rem; }
.ns-block__more { color: var(--ns-teal); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ns-block__more:hover { color: var(--ns-teal-dark); text-decoration: none; }

.ns-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ns-cat {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    background: #fff; border-radius: 20px; padding: 26px 14px; text-decoration: none;
    box-shadow: 0 10px 26px rgba(11,59,46,.08); transition: transform .16s ease, box-shadow .16s ease;
}
.ns-cat:hover { transform: translateY(-5px); box-shadow: var(--ns-shadow); text-decoration: none; }
.ns-cat img { width: 68px !important; height: 68px !important; object-fit: contain; }
.ns-cat span { font-family: var(--ns-display); font-weight: 500; color: var(--ns-ink); font-size: 1.05rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.ns-cta { padding: 70px 20px; text-align: center; background: linear-gradient(120deg, var(--ns-teal) 0%, var(--ns-teal-dark) 100%); color: #fff; }
.ns-cta h2 { color: #fff; font-size: 2.3rem; margin-bottom: 12px; }
.ns-cta p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 26px; }
.ns-cta .ns-btn { background: #fff; color: var(--ns-teal); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.ns-cta .ns-btn:hover { background: var(--ns-cream); color: var(--ns-teal-dark); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.footer { background: var(--ns-ink); color: #dbe7e0; padding: 0; margin-top: 0; }
.ns-footer-logo { background: var(--ns-sky); text-align: center; padding: 44px 20px; }
.ns-footer-logo img { width: min(420px, 80vw); height: auto; }
.ns-footer-main { max-width: 1160px; margin: 0 auto; padding: 54px 20px; display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 40px; }
.ns-footer-brand__name { font-family: var(--ns-display); font-weight: 600; font-size: 1.9rem; color: #fff; line-height: 1; }
.ns-footer-brand__tag { color: #9fc4b4; font-size: .85rem; margin: 8px 0 18px; }
.ns-footer-social { display: flex; gap: 14px; }
.ns-footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background .15s ease; }
.ns-footer-social a:hover { background: var(--ns-teal); }
.ns-footer-col h4 { color: #fff; font-family: var(--ns-display); font-size: 1.3rem; margin-bottom: 16px; }
.ns-footer-menu { list-style: none; padding: 0; margin: 0; }
.ns-footer-menu li { margin-bottom: 10px; }
.ns-footer-menu a { color: #cfe0d7; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ns-footer-menu a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ns-accent); flex-shrink: 0; }
.ns-footer-menu a:hover { color: #fff; }
.ns-news__field { width: 100%; border: none; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 12px; font-family: var(--ns-font); font-size: .95rem; background: var(--ns-cream); color: #333; }
.ns-news__btn { width: 100%; border: none; border-radius: 12px; padding: .8rem 1rem; background: var(--ns-accent); color: #33370f; font-weight: 700; font-family: var(--ns-font); cursor: pointer; transition: background .15s ease; }
.ns-news__btn:hover { background: var(--ns-accent-dark); }
.ns-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px; text-align: center; font-size: .85rem; color: #9fc4b4; }
.ns-footer-bottom a { color: #cfe0d7; }

/* ---------- Legacy page-title band -> light blue (like the footer band) - */
.bg-green-1 { background: var(--ns-sky) !important; }
.bg-green-1 h1, .bg-green-1 .color-green-9 { color: var(--ns-ink) !important; }

/* ---------- Admin/auth navbar brand logo (app.php layout) -------------- */
.navbar-brand { display: inline-flex; align-items: center; padding-top: 4px; padding-bottom: 4px; }
.navbar-brand img { height: 46px !important; width: auto !important; max-width: none !important; }

/* ---------- Simple content pages (tentang, konseling info) ------------- */
.ns-page { padding: 46px 20px 60px; min-height: 40vh; }
.ns-page__title { font-size: 2.4rem; margin-bottom: 22px; }
.ns-page #page-content { line-height: 1.75; font-size: 1.05rem; }
.ns-page #page-content img { border-radius: 14px; }
.ns-empty { text-align: center; padding: 40px 20px 20px; max-width: 520px; margin: 0 auto; }
.ns-empty i { font-size: 3.4rem; color: var(--ns-teal); display: block; margin-bottom: 14px; }
.ns-empty h2 { font-size: 1.9rem; margin-bottom: 10px; }
.ns-empty p { font-size: 1.05rem; margin-bottom: 22px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .ns-burger { display: inline-flex; }
    .ns-actions { margin-left: 0; }
    .ns-nav, .ns-actions .ns-social { display: none; }

    /* mobile drawer */
    .ns-menu {
        position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
        background: #fff; box-shadow: -12px 0 40px rgba(11,59,46,.18);
        transform: translateX(100%); transition: transform .25s ease;
        z-index: 1100; padding: 84px 22px 30px; overflow-y: auto;
        display: flex; flex-direction: column; gap: 4px;
    }
    body.ns-menu-open .ns-menu { transform: translateX(0); }
    .ns-menu .ns-nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; width: 100%; }
    .ns-menu .ns-nav__link { font-size: 1.05rem; padding: .8rem 1rem; border-radius: 12px; justify-content: space-between; }
    .ns-menu .ns-dropdown { width: 100%; }
    .ns-menu .ns-dropdown__menu { position: static; display: none; box-shadow: none; padding: 4px 4px 8px 16px; min-width: 0; }
    .ns-menu .ns-dropdown.open > .ns-dropdown__menu { display: block; }
    .ns-menu .ns-social { display: flex; gap: 18px; margin: 16px 4px 0; font-size: 1.4rem; }
    .ns-menu .ns-btn, .ns-menu .btn-green { width: 100%; justify-content: center; margin-top: 14px; }
    .ns-menu-backdrop { position: fixed; inset: 0; background: rgba(11,59,46,.4); opacity: 0; visibility: hidden; transition: .25s; z-index: 1050; }
    body.ns-menu-open .ns-menu-backdrop { opacity: 1; visibility: visible; }

    .ns-about__grid { grid-template-columns: 1fr; gap: 30px; }
    .ns-about__media { order: -1; }
    .ns-pillars__grid { grid-template-columns: repeat(2, 1fr); }
    .ns-cats { grid-template-columns: repeat(3, 1fr); }
}

/* desktop: show inline menu, hide drawer wrapper styling */
@media (min-width: 992px) {
    .ns-menu { display: contents; }
    .ns-menu-backdrop { display: none; }
}

@media (max-width: 767px) {
    .ns-header-inner { padding: 10px 14px; }
    .ns-brand__name { font-size: 1.25rem; }
    .ns-brand__tag { display: none; }
    .ns-hero { padding-top: 118px; }
    .ns-about h2, .ns-section-head h2, .ns-cta h2, .ns-block__head h2 { font-size: 1.7rem; }
    .ns-pillars__grid { grid-template-columns: 1fr; }
    .ns-cats { grid-template-columns: repeat(2, 1fr); }
    .ns-footer-main { grid-template-columns: 1fr; gap: 30px; }
    .ns-about, .ns-pillars, .ns-block { padding: 50px 0; }
}

@media (max-width: 420px) {
    .ns-cats { grid-template-columns: 1fr 1fr; }
}
