/* MIRAYA Figma fidelity layer — keyed to the supplied desktop 1440px design.
   Preserves the shared vanilla-JS behavior and ID/EN translation implementation. */
:root { --forest:#153b24; --forest-dark:#102d23; --ink:#153b24; --mist:#f4fbf2; --paper:#ffffff; --lime:#a5dc21; --green:#52a41c; --line:#e8edf0; --muted:#64716a; }
body { background:#fff; }
.container { width:min(1248px,calc(100% - 64px)); }
.section { padding:96px 0; }
.section-heading { max-width:760px; }
.section-heading h2,.story-copy h2 { font-family:var(--display);font-size:clamp(32px,3.15vw,42px);letter-spacing:-.026em;line-height:1.17;font-weight:700;margin:14px 0 20px; }
.section-heading h2 em,.story-copy h2 em,.inner-hero h1 em {color:inherit;font-style:normal;}
.section-heading>p {font-size:14px;color:#66756c;line-height:1.8;}
.eyebrow {letter-spacing:.11em;font-size:11px;color:#52a41c;}
.eyebrow-line {display:none;}
.btn { min-height:50px; padding:0 24px; border-radius:8px; gap:12px; font-size:14px; font-weight:600; box-shadow:none; }
.btn-primary { color:#fff; background:#52a41c; box-shadow:0 6px 20px #52a41c59; }
.btn-primary:hover {color:#fff;background:#408c15;}
.btn-outline-light {background:#ffffff15;border:1px solid #ffffff55;color:white;}
/* Figma header: flat white 80px, full width, 96px gutters, centered navigation */
.site-header,.site-header.has-scrolled {position:sticky;top:0;left:auto;right:auto;z-index:80;background:#fff;border-bottom:1px solid #e8edf0;pointer-events:auto;}
.header-shell,.site-header.has-scrolled .header-shell {width:min(1440px,100%);height:80px;min-height:80px;max-width:1440px;margin:0 auto;padding:0 96px;border-radius:0;box-shadow:none;background:white;display:flex;justify-content:space-between;align-items:center;gap:24px;}
.brand-link {height:64px;width:155px;overflow:hidden;flex-shrink:0;align-items:center;}
.brand-link img {width:155px;height:64px;object-fit:contain;object-position:left center;}
.nav-desktop {position:absolute;left:50%;transform:translateX(-50%);height:80px;gap:32px;}
.nav-desktop a {font:500 14px/1.5 var(--sans);padding:30px 0 27px;color:#4a5568;}
.nav-desktop a[aria-current],.nav-desktop a:hover {color:#397516;}
.nav-desktop a[aria-current]::after{height:2px;bottom:20px;background:#397516;}
.header-actions {margin-left:auto;gap:12px;}
.language-select {background:#f4f8f2;border:1px solid #e6ece2;border-radius:24px;padding:8px 10px;gap:3px;}
.language-select button {font:600 12px/1.5 var(--sans);padding:2px 5px;}
.language-select span {background:none;width:auto;height:auto;color:#a5aba5;}
/* Exact first-fold section order from Figma: 48px banner, 620px hero, 72px ribbon */
.hero {background:#fff;color:#fff;height:auto;min-height:unset;max-height:none;overflow:visible;position:relative;}
.guidance-banner {height:48px;background:#52a41c;color:white;font-size:13px;}
.guidance-inner {height:100%;display:flex;align-items:center;justify-content:center;gap:16px;text-align:center;}
.guidance-inner span {font-weight:400;color:#ffffffea;}
.guidance-inner a {font-weight:700;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;}
.guidance-inner a:hover {text-decoration:underline;}
.hero-stage {position:relative;isolation:isolate;height:620px;background:#153b24;overflow:hidden;}
.hero-stage .hero-media,.hero-stage .hero-photo,.hero-stage .hero-video,.hero-stage .hero-overlay {position:absolute;inset:0;width:100%;height:100%;}
.hero-stage .hero-photo {z-index:-1;background:#153b24 url('../assets/forest-water.jpg') center 45% / cover no-repeat;}
.hero-stage .hero-video {z-index:0;object-fit:cover;object-position:center 44%;filter:saturate(.82) brightness(.60);transform:none;}
.hero-stage .hero-overlay {z-index:1;background:linear-gradient(180deg,#153b244f,#153b2461),#153b242b;pointer-events:none;}
.hero-stage .hero-content {position:relative;z-index:2;height:100%;min-height:unset;display:flex;align-items:center;justify-content:center;text-align:center;padding:54px 0 58px;}
.hero-main {width:100%;max-width:920px;padding:0;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:0;}
.hero-kicker {border:1px solid #52a41c66;border-radius:999px;background:#52a41c33;color:#eefde8;padding:7px 16px;min-height:29px;display:inline-flex;justify-content:center;font:600 11px/1.35 var(--sans);letter-spacing:.08em;}
.hero h1 {width:100%;font-family:var(--display);font-size:clamp(42px,4.6vw,66px);line-height:1.05;letter-spacing:-.042em;font-weight:700;max-width:950px;margin:24px 0 20px;color:#fff;}
.hero h1 span {color:#fff;}
.hero-signature {display:block;font:500 14px/1.5 var(--sans);color:#fff;letter-spacing:0;}
.hero-description {font:400 17px/1.7 var(--sans);max-width:760px;color:#ffffffc2;margin:20px auto 24px;text-align:center;}
.hero-buttons {display:flex;justify-content:center;gap:12px;}
.hero-buttons .btn {min-height:52px;padding:0 28px;}
.hero-buttons .btn-primary {background:#52a41c;color:white;}
.hero-buttons .btn-outline-light{background:#ffffff16;border:1px solid #ffffff4d;color:white;}
.expertise-strip {background:#f4fbf2;border-bottom:1px solid #d7f0c2;}
.expertise-strip-inner {height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;}
.strip-label {font:700 11px/1.3 var(--sans);letter-spacing:.025em;color:#153b24;white-space:nowrap;}
.strip-items {display:flex;align-items:center;justify-content:space-between;flex:1;gap:20px;margin-left:24px;font:600 15px/1.4 var(--sans);color:#52a41c;}
/* Subsequent sections follow the Figma's open white canvas and lighter card language. */
.services-section {background:#fff;}
.services-head {align-items:flex-end;margin-bottom:40px;gap:60px;}
.services-head .section-heading {max-width:720px;}
.services-head .btn {font-size:13px;color:#397516;}
.service-card-grid {gap:20px;}
.service-card {min-height:335px;border-radius:12px;border:1px solid #e8edf0;background:#fff;box-shadow:0 8px 20px #182e1d08;padding:26px;}
.service-card:hover {box-shadow:0 20px 38px #152c2118;border-color:#a8d88e;}
.service-icon {color:#52a41c;}
.about-section {background:#f7faf6;}
.approach-section {background:#fff;}
.clients-section {background:#fff;}
.client-logo {background:#fff;border:1px solid #e8edf0;border-radius:10px;}
/* Inner pages based on white-space/brand scheme of the supplied 1440px Figma frames. */
.inner-hero {background:#f4fbf2;min-height:390px;padding-top:0;display:flex;align-items:center;}
.inner-hero-content {padding-top:65px;padding-bottom:50px;}
.inner-hero h1 {color:#153b24;font-weight:700;font-size:clamp(42px,4.7vw,62px);}
.inner-hero-content>p {color:#5c7166;}
.inner-hero-rule {border-top-color:#cfdfd0;color:#4d765e;}
.inner-hero-glow {opacity:.22;}
/* Figma contact form: 400px information rail + 784px inquiry form */
.figma-contact-layout {display:grid;grid-template-columns:400px minmax(0,784px);gap:64px;align-items:start;}
.contact-section {background:#fff;}
.contact-primary {min-width:0;}
.contact-identity {min-height:180px;}
.contact-identity h2 {font-size:36px;line-height:1.2;margin:14px 0 20px;}
.contact-primary>p {color:#64716a;line-height:1.85;font-size:14px;}
.contact-concept {padding:24px;background:#f4fbf2;border:1px solid #d6e9d0;border-radius:12px;min-height:159px;color:#153b24;margin:24px 0 28px;}
.contact-concept h3 {font:600 17px/1.6 var(--sans);margin:8px 0 4px;}
.contact-concept p {font-size:13px;color:#52695d;margin:4px 0;}
.contact-concept a,.contact-lower a {display:inline-flex;align-items:center;gap:5px;color:#397516;font-weight:600;}
.contact-photo {height:210px;border-radius:10px;overflow:hidden;}
.contact-photo img {height:100%;width:100%;object-fit:cover;}
.inquiry-form {padding:40px;border:1px solid #e8edf0;box-shadow:0 12px 36px #153b2410;border-radius:12px;background:#fff;}
.inquiry-form h2 {font:700 26px/1.25 var(--display);color:#153b24;margin:0 0 10px;}
.inquiry-form .form-intro {font:400 14px/1.7 var(--sans);color:#66756c;margin:0 0 24px;}
.inquiry-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;}
.inquiry-field {display:flex;flex-direction:column;gap:8px;min-width:0;margin-bottom:24px;color:#223a2d;font-size:12px;font-weight:600;}
.inquiry-field>span {line-height:1.5;}
.inquiry-field input,.inquiry-field select,.inquiry-field textarea {width:100%;border:1px solid #dfe8e1;border-radius:6px;background:#fff;min-height:48px;padding:13px 14px;color:#17362a;font:400 13px/1.5 var(--sans);}
.inquiry-field textarea {min-height:132px;resize:vertical;}
.inquiry-field input:focus,.inquiry-field select:focus,.inquiry-field textarea:focus {outline:2px solid #94ca72;outline-offset:1px;}
.consent-field {display:flex;align-items:start;gap:12px;color:#64716a;font-size:12px;line-height:1.7;margin-bottom:24px;cursor:pointer;}
.consent-field input {margin:4px 0 0;flex:none;width:18px;height:18px;accent-color:#52a41c;}
.inquiry-submit {display:flex;align-items:center;justify-content:space-between;gap:20px;}
.inquiry-submit .btn {border:0;cursor:pointer;}
.inquiry-submit>span {font-size:11px;color:#7c8b80;max-width:240px;}
.contact-prep {background:#f4fbf2;}
.contact-prep h2 {font-size:32px;color:#153b24;}
.contact-prep>div>p {color:#637669;}
.prep-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:38px;}
.prep-card {padding:28px;background:#fff;border:1px solid #dfe9da;border-radius:10px;}
.prep-card>span {font:700 12px var(--sans);color:#52a41c;}
.prep-card h3 {font-size:20px;margin:15px 0 6px;}
.prep-card p {font-size:13px;color:#627265;}
/* Responsive overrides */
@media(max-width:1250px){
 .header-shell,.site-header.has-scrolled .header-shell {padding:0 48px;}
 .nav-desktop {gap:22px;}
 .nav-desktop a {font-size:12px;}
 .figma-contact-layout {grid-template-columns:minmax(0, 2fr) minmax(0,3fr);gap:40px;}
}
@media(max-width:960px){
 .header-shell,.site-header.has-scrolled .header-shell {padding:0 28px;height:74px;min-height:74px;}
 .brand-link,.brand-link img {height:56px;}
 .nav-desktop {display:none;}
 .mobile-menu-toggle {display:flex;}
 .mobile-nav {top:100%;left:0;right:0;max-width:100%;border-radius:0;}
 .hero-stage {height:620px;}
 .hero-stage .hero-content {padding:60px 0;}
 .hero h1 {font-size:clamp(42px,6vw,65px);}
 .strip-items {gap:12px;margin-left:0;flex-wrap:wrap;justify-content:flex-end;}
 .figma-contact-layout {grid-template-columns:1fr;gap:38px;}
 .contact-identity {min-height:unset;}
 .contact-primary {display:grid;grid-template-columns:1fr 1fr;gap:20px;}
 .contact-identity,.contact-primary>p {grid-column:span 2;}
 .contact-concept {margin:0;}
 .contact-photo {height:210px;}
 .contact-lower {grid-column:span 2;}
}
@media(max-width:680px){
 .container {width:calc(100% - 38px);}
 .section {padding:70px 0;}
 .site-header,.site-header.has-scrolled {position:sticky;}
 .header-shell,.site-header.has-scrolled .header-shell {height:68px;min-height:68px;padding:0 18px;width:100%;margin:0;}
 .brand-link {width:122px;height:53px;}
 .brand-link img {width:122px;height:53px;}
 .mobile-nav {left:0;right:0;}
 .guidance-banner {height:auto;min-height:46px;}
 .guidance-inner {flex-direction:column;justify-content:center;gap:2px;padding:8px 0;font-size:10px;line-height:1.5;}
 .hero-stage {height:auto;min-height:620px;}
 .hero-stage .hero-content {min-height:620px;padding:76px 0 80px;}
 .hero-main {width:100%;}
 .hero-kicker {font-size:9px;}
 .hero h1 {font-size:clamp(36px,9vw,51px);letter-spacing:-.04em;line-height:1.12;margin:28px 0 20px;}
 .hero-signature {font-size:13px;}
 .hero-description {font-size:13px;line-height:1.75;max-width:100%;margin:22px auto 24px;}
 .hero-buttons {width:100%;flex-direction:column;}
 .hero-buttons .btn {width:100%;justify-content:center;}
 .expertise-strip-inner {height:auto;min-height:88px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:10px;padding:15px 0;}
 .strip-label {font-size:9px;}
 .strip-items {display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px 17px;font-size:11px;}
 .service-card-grid {grid-template-columns:1fr;}
 .service-card,.service-card:last-child {grid-column:auto;min-height:275px;}
 .about-section {padding-top:72px;}
 .inner-hero {min-height:340px;padding-top:0;}
 .inner-hero-content {padding:38px 0;}
 .inner-hero h1 {font-size:clamp(36px,9vw,49px);}
 .figma-contact-layout,.contact-primary,.inquiry-grid,.prep-grid {display:grid;grid-template-columns:1fr;}
 .contact-identity,.contact-primary>p,.contact-lower {grid-column:auto;}
 .contact-primary {gap:12px;}
 .contact-concept {margin:8px 0;}
 .inquiry-form {padding:24px 18px;}
 .inquiry-submit {flex-direction:column;align-items:stretch;}
 .inquiry-submit>span {max-width:none;}
}
@media (prefers-reduced-motion:reduce){.hero-stage .hero-photo{z-index:0}.hero-stage .hero-video{display:none}}

/* =========================================
   ANIMASI PERPINDAHAN HALAMAN & MENU (revisi)
   ========================================= */

/* Garis bawah menu: satu elemen yang bergeser ke menu aktif
   (dipasang oleh animateNav di main.js). */
.site-header .nav-desktop .nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: #397516;
  pointer-events: none;
  will-change: transform, width;
  transition:
    transform .45s cubic-bezier(.4, 0, .2, 1),
    width .45s cubic-bezier(.4, 0, .2, 1);
}

/* garis lama (::after) dimatikan setelah garis bergeser aktif */
.site-header .nav-desktop.has-indicator a[aria-current]::after {
  content: none;
}

/* warna menu memudar halus saat berpindah */
.site-header .nav-desktop > a,
.site-header .nav-desktop .nav-dropdown__trigger {
  transition: color .35s ease;
}

/* titik awal pemudaran warna (dilepas langsung oleh JS) */
.site-header .nav-desktop a.nav-fade-in  { color: #4a5568 !important; }
.site-header .nav-desktop a.nav-fade-out { color: #397516 !important; }

/* Isi halaman: memudar keluar, lalu halaman baru masuk dari bawah */
#app main.page-leave {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease;
}

#app main.page-enter {
  animation: pageEnter .5s cubic-bezier(.2, .7, .2, 1) backwards;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav-desktop .nav-indicator { transition: none; }
  #app main.page-leave { transition: none; }
  #app main.page-enter { animation: none; }
}