/* ============================================================
   PT. Wirakara Integra Nusantara — style.css
   Palet brand: hitam #111 · teal #0097B2 · putih
   ============================================================ */
:root {
  --teal: #0097B2;
  --teal-dark: #007a90;
  --ink: #111111;
  --body: #3d4449;
  --muted: #6b7480;
  --line: #e6e9ec;
  --bg-alt: #f5f7f8;
  --dark: #101417;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 20, 23, .08);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); color: var(--body); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(0,151,178,.35); }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn--ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--block { width: 100%; margin-top: .7rem; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--teal); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(16,20,23,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__logo { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link { color: var(--ink); font-weight: 600; font-size: .92rem; position: relative; }
.nav__link:not(.nav__link--cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--teal); transition: width .25s;
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link--cta {
  background: var(--ink); color: #fff; padding: .55rem 1.2rem; border-radius: 999px;
  transition: background .2s;
}
.nav__link--cta:hover { background: var(--teal); }
.lang-switch {
  display: inline-flex; align-items: center; gap: .1rem;
  border: 1.5px solid var(--line); border-radius: 999px; padding: .18rem;
}
.lang-switch a {
  font-size: .76rem; font-weight: 800; letter-spacing: .04em;
  padding: .22rem .6rem; border-radius: 999px; color: var(--muted);
}
.lang-switch a.is-active { background: var(--teal); color: #fff; }
.lang-switch a:not(.is-active):hover { color: var(--teal); }
.nav-overlay {
  position: fixed; inset: 0; z-index: 95; background: rgba(10,14,16,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
@media (min-width: 721px) { .nav-overlay { display: none; } }
body.nav-lock { overflow: hidden; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 140px 0 90px; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,14,16,.93) 30%, rgba(10,14,16,.62) 70%, rgba(10,14,16,.45)),
              url('../assets/img/hero.jpg') center/cover no-repeat;
}
.hero__eyebrow { color: var(--teal); font-weight: 800; letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.hero__title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.15; font-weight: 800; color: #fff; max-width: 17em; }
.hero__title .accent { color: var(--teal); }
.hero__lead { max-width: 38em; margin: 1.3rem 0 2rem; color: rgba(255,255,255,.85); font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 2.6rem;
  margin-top: 3.6rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.18);
  width: fit-content;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero__stats strong::after { content: "+"; color: var(--teal); }
.hero__stats span { font-size: .82rem; color: rgba(255,255,255,.7); max-width: 11em; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: rgba(255,255,255,.82); }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__eyebrow { color: var(--teal); font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--ink); line-height: 1.2; }
.section--dark .section__title { color: #fff; }
.section__sub { margin-top: .8rem; color: var(--muted); }

/* ---------- Tentang ---------- */
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: start; }
.about__text p + p { margin-top: 1rem; }
.about__cards { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.about__card { background: var(--bg-alt); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem; }
.about__card h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: .5rem; }
.about__card ul { list-style: disc; padding-left: 1.1rem; }
.about__card li + li { margin-top: .35rem; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__media figcaption { font-size: .85rem; color: var(--muted); margin-top: .7rem; }

/* ---------- Layanan ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(0,151,178,.1); color: var(--teal); margin-bottom: 1.2rem;
}
.service h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: .5rem; }
.service > p { font-size: .95rem; margin-bottom: .9rem; }
.service ul { border-top: 1px solid var(--line); padding-top: .9rem; }
.service li { font-size: .92rem; padding-left: 1.3rem; position: relative; }
.service li + li { margin-top: .4rem; }
.service li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.service__more { margin-top: 1rem; }
.service__more a { font-weight: 700; font-size: .9rem; }

/* ---------- Portofolio ---------- */
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.filter__btn {
  font-family: var(--font); font-weight: 700; font-size: .88rem; cursor: pointer;
  padding: .55rem 1.25rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--body); transition: all .2s;
}
.filter__btn:hover { border-color: var(--teal); color: var(--teal); }
.filter__btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s, opacity .3s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project.is-hidden { display: none; }
.project img { height: 200px; width: 100%; object-fit: cover; background: var(--bg-alt); }
.project__body { padding: 1.2rem 1.3rem 1.4rem; }
.project__tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal); background: rgba(0,151,178,.1);
  padding: .25rem .7rem; border-radius: 999px; margin-bottom: .6rem;
}
.project h3 { color: var(--ink); font-size: 1.02rem; line-height: 1.35; }
.project p { font-size: .88rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Tim ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.member img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.2rem; border: 4px solid rgba(0,151,178,.18);
}
.member h3 { color: var(--ink); font-size: 1rem; line-height: 1.4; }
.member__role { color: var(--teal); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: .4rem 0 .8rem; }
.member > p:last-child { font-size: .9rem; }
.legal { margin-top: 3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 2rem; }
.legal h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 1rem; }
.legal__badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.legal__badges li {
  font-size: .85rem; font-weight: 600; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1.1rem;
}

/* ---------- Klien ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.clients__item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  display: grid; place-items: center; padding: 1.1rem; min-height: 92px;
  filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s, transform .25s;
}
.clients__item:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.clients__item img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Kontak ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.contact__info > p { max-width: 36em; }
.contact__list { margin-top: 2rem; display: grid; gap: 1.3rem; }
.contact__label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--teal); margin-bottom: .15rem; }
.contact__list a, .contact__list span:not(.contact__label) { color: #fff; font-weight: 600; font-size: 1.02rem; }
.contact__list a:hover { color: var(--teal); }
.contact__card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 2rem;
}
.contact__card h3 { color: #fff; margin-bottom: .5rem; }
.contact__card p { font-size: .93rem; margin-bottom: 1.2rem; }

/* ---------- Footer ---------- */
.footer { background: #0a0d0f; color: rgba(255,255,255,.65); padding: 56px 0 0; font-size: .92rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { height: 56px; width: auto; margin-bottom: 1rem; }
.footer__nav { display: flex; gap: 1.6rem; align-items: flex-start; flex-wrap: wrap; }
.footer__nav a { color: rgba(255,255,255,.75); font-weight: 600; }
.footer__nav a:hover { color: var(--teal); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.3rem 0; font-size: .84rem; }
.footer__bottom a { color: var(--teal); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(37,211,102,.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Nav dropdown ---------- */
.nav__item { position: relative; }
.nav__drop-btn {
  font-family: var(--font); font-size: .92rem; font-weight: 600; color: var(--ink);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
  padding: 0;
}
.nav__drop-btn::after { content: "▾"; font-size: .7em; color: var(--teal); }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .6rem; min-width: 260px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item:hover .dropdown, .nav__item.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block; padding: .6rem .9rem; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .9rem;
}
.dropdown a:hover { background: var(--bg-alt); color: var(--teal); }
.dropdown a span { display: block; font-size: .76rem; font-weight: 500; color: var(--muted); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--dark); color: #fff; padding: 150px 0 64px; }
.page-hero__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.2; max-width: 18em; }
.page-hero__sub { margin-top: .9rem; color: rgba(255,255,255,.78); max-width: 42em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; margin-bottom: 1.2rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: var(--teal); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .4rem; }

/* ---------- Alur kerja ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 2.4rem; font-weight: 800; color: rgba(0,151,178,.18); line-height: 1;
  display: block; margin-bottom: .8rem;
}
.step h3 { color: var(--ink); font-size: 1.02rem; margin-bottom: .4rem; }
.step p { font-size: .92rem; }

/* ---------- Artikel ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { height: 180px; width: 100%; object-fit: cover; }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card__meta { font-size: .78rem; color: var(--muted); display: flex; gap: .7rem; align-items: center; }
.post-card__cat { color: var(--teal); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 1.05rem; line-height: 1.4; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--teal); }
.post-card p { font-size: .9rem; color: var(--muted); }
.post-card__more { margin-top: auto; font-weight: 700; font-size: .88rem; }

/* Artikel detail */
.article { max-width: 760px; margin-inline: auto; }
.article__meta { font-size: .85rem; color: var(--muted); margin-bottom: 2rem; }
.article h2 { color: var(--ink); font-size: 1.45rem; margin: 2.2rem 0 .8rem; }
.article h3 { color: var(--ink); font-size: 1.15rem; margin: 1.8rem 0 .6rem; }
.article p + p { margin-top: 1rem; }
.article ul, .article ol { padding-left: 1.4rem; margin: 1rem 0; }
.article li + li { margin-top: .45rem; }
.article ul { list-style: disc; }
.article a { font-weight: 600; }
.article .article__cta {
  background: var(--bg-alt); border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem 1.7rem; margin-top: 2.5rem;
}
.article .article__cta h3 { margin-top: 0; }
.article .article__cta .btn { margin-top: 1rem; }

/* Service detail */
.service-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.service-detail__aside { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.aside-card h3 { color: var(--ink); font-size: 1rem; margin-bottom: .8rem; }
.aside-card ul { display: grid; gap: .5rem; }
.aside-card a { font-weight: 600; font-size: .92rem; color: var(--body); }
.aside-card a:hover, .aside-card a.is-current { color: var(--teal); }
.aside-card--cta { background: var(--dark); border: 0; color: rgba(255,255,255,.8); }
.aside-card--cta h3 { color: #fff; }
.aside-card--cta p { font-size: .9rem; margin-bottom: 1rem; }
.faq { display: grid; gap: .9rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.4rem; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.faq details[open] summary { color: var(--teal); margin-bottom: .5rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about, .contact, .service-detail { grid-template-columns: 1fr; }
  .portfolio, .steps, .posts { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: repeat(2, auto); gap: 1.6rem 3rem; }
  .service-detail__aside { position: static; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; top: 72px; right: 0; z-index: 101; width: min(80vw, 320px);
    height: calc(100vh - 72px); height: calc(100dvh - 72px);
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 2rem 1.8rem; gap: 1.3rem; box-shadow: -10px 0 30px rgba(16,20,23,.16);
    transform: translateX(105%); transition: transform .3s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav-toggle { display: block; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .services, .portfolio, .team, .steps, .posts { grid-template-columns: 1fr; }
  .nav__item { width: 100%; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    display: none; box-shadow: none; border: 0; padding: .3rem 0 0 .8rem; min-width: 0;
  }
  .nav__item.is-open .dropdown { display: block; }
  .page-hero { padding-top: 120px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 120px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 1.4rem; width: 100%; }
  .hero__stats strong { font-size: 1.5rem; }
}

/* ---------- Map & View Switcher Styles ---------- */
.view-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: -1rem;
}
.view-toggle__btn {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--body);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.view-toggle__btn:hover {
  background: var(--line);
  color: var(--ink);
}
.view-toggle__btn.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.view-toggle__btn svg {
  width: 16px;
  height: 16px;
}

#map {
  height: 480px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
}
#map.is-hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.98);
}

.portfolio.is-hidden {
  display: none !important;
  opacity: 0;
}

/* Custom styling for Leaflet Popups to match PT. WIN theme */
.leaflet-popup-content-wrapper {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(16,20,23,0.15);
  padding: 0;
  overflow: hidden;
  font-family: var(--font);
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 240px !important;
}
.map-popup__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.map-popup__body {
  padding: 0.9rem;
}
.map-popup__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.map-popup__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.map-popup__desc {
  font-size: 0.8rem;
  color: var(--body);
  line-height: 1.45;
  margin: 0;
}
.leaflet-popup-tip {
  background: var(--white);
}

.is-hidden {
  display: none !important;
}

