/*
Theme Name: Vantara Bangun Indonesia
Theme URI: https://vantarabuild.id
Author: PT Vantara Bangun Indonesia
Description: Custom theme untuk PT Vantara Bangun Indonesia — kontraktor sipil & interior. Dibangun dengan identitas navy/gold dan motif chevron menara. Mendukung Custom Post Type Portfolio dan dwi-bahasa (EN default, ID via Polylang).
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vantara
*/

:root{
  --navy:#1A2A4A;
  --navy-2:#243858;
  --navy-3:#3A4F78;
  --gold:#C8A84B;
  --gold-2:#E4C878;
  --bg:#F6F4EE;
  --ink:#1A2A4A;
  --slate:#5C6B85;
  --line:#DDD9CC;
  --white:#FFFFFF;
  --radius:2px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;} }

body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'Inter',sans-serif; font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{ font-family:'Archivo',sans-serif; margin:0; letter-spacing:-0.01em; }
.mono{ font-family:'JetBrains Mono',monospace; letter-spacing:0.04em; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
section{ padding:112px 0; }
@media (max-width:720px){ section{ padding:72px 0; } }

a:focus-visible, button:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; }

/* ---------- nav ---------- */
header.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(246,244,238,0.9); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; max-width:1180px; margin:0 auto; gap:16px; }
.nav-brand{ display:flex; align-items:center; gap:10px; font-family:'Archivo',sans-serif; font-weight:900; font-size:18px; color:var(--navy); text-decoration:none; }
.nav-brand img{ height:30px; width:auto; }
.nav-links{ display:flex; gap:32px; list-style:none; margin:0; padding:0; font-size:14px; font-weight:500; }
.nav-links a{ text-decoration:none; color:var(--slate); }
.nav-links a:hover, .nav-links a.current{ color:var(--navy); }
.nav-right{ display:flex; align-items:center; gap:14px; }
.nav-cta{
  background:var(--navy); color:var(--white); text-decoration:none;
  padding:10px 20px; font-size:14px; font-weight:600; border-radius:var(--radius);
  border:1px solid var(--navy); white-space:nowrap;
}
.nav-cta:hover{ background:var(--navy-2); color:var(--white); }
.lang-switch{
  display:flex; border:1px solid var(--navy); border-radius:20px; overflow:hidden;
  font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:600;
}
.lang-switch button{ padding:7px 13px; border:none; background:none; color:var(--navy); cursor:pointer; font-family:inherit; font-size:inherit; font-weight:inherit; }
.lang-switch button.active{ background:var(--navy); color:var(--white); }
@media (max-width:860px){ .nav-links, .nav-cta{ display:none; } }

/* ---------- mobile hamburger + panel ---------- */
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width:40px; height:40px; background:none; border:1.5px solid var(--navy); border-radius:var(--radius); cursor:pointer; padding:0;
}
.nav-toggle span{ display:block; width:18px; height:2px; background:var(--navy); transition:transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-mobile{
  display:none; max-height:0; overflow:hidden;
  background:var(--bg); border-top:1px solid var(--line);
  transition:max-height .3s ease;
}
.nav-mobile.open{ max-height:420px; }
.nav-mobile-links{ list-style:none; margin:0; padding:8px 24px; display:flex; flex-direction:column; }
.nav-mobile-links li{ border-bottom:1px solid var(--line); }
.nav-mobile-links li:last-child{ border-bottom:none; }
.nav-mobile-links a{ display:block; padding:14px 4px; text-decoration:none; color:var(--navy); font-size:15px; font-weight:500; }
.nav-mobile-cta{ display:block; text-align:center; margin:16px 24px 8px; }
.nav-mobile-lang{ width:max-content; margin:0 auto 20px; }
.nav-mobile-lang button{ padding:8px 16px; }

@media (max-width:860px){
  .nav-toggle{ display:flex; }
  .nav-mobile{ display:block; }
  .nav-right .lang-switch{ display:none; }
}

/* ---------- hero ---------- */
.hero{ position:relative; overflow:hidden; padding:96px 0 80px; }
.hero-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; align-items:center; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'JetBrains Mono',monospace; font-size:12.5px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--navy); background:var(--gold-2); padding:6px 12px; border-radius:20px; margin-bottom:22px;
}
.hero h1{ font-size:52px; line-height:1.04; font-weight:900; color:var(--navy); }
@media (max-width:720px){ .hero h1{ font-size:36px; } }
.hero h1 em{ font-style:normal; color:var(--gold); border-bottom:4px solid var(--gold-2); padding-bottom:2px; }
.hero p.lead{ font-size:18px; color:var(--slate); max-width:46ch; margin:24px 0 32px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  padding:14px 26px; font-weight:600; font-size:15px; border-radius:var(--radius);
  transition:transform .15s ease; border:none; cursor:pointer;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--navy); color:var(--white); }
.btn-primary:hover{ background:var(--navy-2); color:var(--white); }
.btn-ghost{ border:1.5px solid var(--navy); color:var(--navy); background:none; }

.hero-stats{ display:flex; gap:36px; margin-top:44px; }
.hero-stat b{ display:block; font-family:'Archivo',sans-serif; font-size:30px; font-weight:900; color:var(--navy); }
.hero-stat span{ font-size:12.5px; color:var(--slate); }

.blueprint{ position:relative; aspect-ratio:1/1; max-width:420px; margin:0 auto; }
.blueprint svg{ width:100%; height:100%; }
.chev-path{ stroke-dasharray:400; stroke-dashoffset:400; animation:draw 1.4s ease forwards; }
.chev-path:nth-child(2){ animation-delay:.25s; }
.chev-path:nth-child(3){ animation-delay:.5s; }
@keyframes draw{ to{ stroke-dashoffset:0; } }
.blueprint .grid-line{ stroke:#1A2A4A; stroke-opacity:0.08; }

/* ---------- section headers ---------- */
.sec-eyebrow{ font-family:'JetBrains Mono',monospace; font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold); font-weight:500; }
.sec-title{ font-size:34px; font-weight:900; color:var(--navy); margin-top:10px; max-width:22ch; }
@media (max-width:720px){ .sec-title{ font-size:26px; } }
.sec-head{ margin-bottom:48px; }
.sec-desc{ color:var(--slate); max-width:60ch; margin-top:14px; font-size:16px; }
.page-header{ padding:64px 0 20px; }

/* ---------- about ---------- */
.about{ background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
@media (max-width:860px){ .about-grid{ grid-template-columns:1fr; gap:32px; } }
.about-grid p{ color:var(--slate); margin:0 0 16px; }
.fact-list{ list-style:none; margin:28px 0 0; padding:0; display:grid; gap:18px; }
.fact-list li{ display:flex; gap:14px; align-items:flex-start; font-size:14.5px; color:var(--navy); }
.fact-num{ font-family:'JetBrains Mono',monospace; color:var(--gold); font-weight:600; min-width:26px; }

/* ---------- services ---------- */
.services-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
@media (max-width:900px){ .services-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .services-grid{ grid-template-columns:1fr; } }
.service-card{ background:var(--bg); padding:32px 26px; }
.service-card .num{ font-family:'JetBrains Mono',monospace; color:var(--gold); font-size:13px; }
.service-card h3{ font-size:18px; margin:14px 0 10px; color:var(--navy); }
.service-card p{ font-size:14px; color:var(--slate); margin:0; }

/* ---------- portfolio ---------- */
.filter-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
.filter-btn{
  font-family:'JetBrains Mono',monospace; font-size:12.5px; padding:8px 16px; border-radius:20px;
  border:1px solid var(--line); background:var(--white); cursor:pointer; color:var(--slate); text-decoration:none; display:inline-block;
}
.filter-btn.active{ background:var(--navy); color:var(--white); border-color:var(--navy); }
.port-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:900px){ .port-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .port-grid{ grid-template-columns:1fr; } }
.port-card{ position:relative; overflow:hidden; border-radius:var(--radius); aspect-ratio:4/3.1; background:var(--navy); display:block; text-decoration:none; }
.port-card img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.port-card:hover img{ transform:scale(1.06); }
.port-overlay{
  position:absolute; inset:auto 0 0 0; padding:16px 18px;
  background:linear-gradient(0deg, rgba(10,17,32,0.92), rgba(10,17,32,0));
  color:var(--white);
}
.port-overlay .tag{ font-family:'JetBrains Mono',monospace; font-size:10.5px; color:var(--gold-2); text-transform:uppercase; letter-spacing:.08em; }
.port-overlay .title{ font-family:'Archivo',sans-serif; font-weight:700; font-size:15px; margin-top:4px; }
.hidden{ display:none !important; }
.port-empty{ color:var(--slate); font-size:14px; padding:40px 0; }

/* ---------- project detail ---------- */
.project-hero{ background:var(--navy); color:var(--white); padding:64px 0 48px; }
.project-hero .tag{ font-family:'JetBrains Mono',monospace; color:var(--gold-2); font-size:12.5px; text-transform:uppercase; letter-spacing:.1em; }
.project-hero h1{ color:var(--white); font-size:36px; margin-top:12px; }
.project-gallery{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin:40px 0; }
@media (max-width:700px){ .project-gallery{ grid-template-columns:1fr; } }
.project-gallery img{ border-radius:var(--radius); width:100%; }
.project-body{ max-width:75ch; color:var(--slate); font-size:16px; line-height:1.7; }
.back-link{ display:inline-block; margin-top:36px; font-size:14px; color:var(--navy); font-weight:600; text-decoration:none; }

/* ---------- why us ---------- */
.why{ background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.why-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; margin-top:40px; }
@media (max-width:900px){ .why-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .why-grid{ grid-template-columns:1fr; } }
.why-card b{ display:block; font-family:'Archivo',sans-serif; color:var(--navy); font-size:16px; margin-bottom:8px; }
.why-card p{ margin:0; color:var(--slate); font-size:14px; }
.why-card .mark{ color:var(--gold); font-size:22px; font-family:'JetBrains Mono',monospace; }

/* ---------- contact ---------- */
.contact{ background:var(--navy); color:var(--white); }
.contact-grid{ display:grid; grid-template-columns:1.2fr 1fr; gap:56px; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact h2{ font-size:32px; color:var(--white); max-width:16ch; }
.contact p.lead{ color:#B9C4DC; max-width:44ch; margin:18px 0 30px; }
.contact-card{ background:var(--navy-2); border-radius:var(--radius); padding:32px; }
.contact-row{ display:flex; gap:14px; padding:14px 0; border-bottom:1px solid rgba(255,255,255,0.1); }
.contact-row:last-child{ border-bottom:none; }
.contact-row .label{ font-family:'JetBrains Mono',monospace; font-size:11.5px; color:var(--gold-2); text-transform:uppercase; letter-spacing:.08em; min-width:90px; }
.contact-row .val{ font-size:14.5px; }

/* ---------- contact form ---------- */
.cform{ margin-top:28px; display:grid; gap:14px; max-width:560px; }
.cform-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:520px){ .cform-row{ grid-template-columns:1fr; } }
.cform label{ font-size:12.5px; color:#B9C4DC; font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; display:block; }
.cform input, .cform textarea, .cform select{
  width:100%; padding:12px 14px; border-radius:var(--radius); border:1px solid rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.06); color:var(--white); font-family:'Inter',sans-serif; font-size:14.5px;
}
.cform select{ appearance:none; -webkit-appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23C8A84B'><path d='M5 7l5 5 5-5H5z'/></svg>"); background-repeat:no-repeat; background-position:right 12px center; padding-right:34px; }
.cform select option{ background:var(--navy-2); color:var(--white); }
.cform input::placeholder, .cform textarea::placeholder{ color:#8FA3C6; }
.cform textarea{ min-height:120px; resize:vertical; }
.cform .form-msg{ font-size:14px; padding:10px 14px; border-radius:var(--radius); margin-top:6px; }
.cform .form-msg.success{ background:rgba(200,168,75,0.15); color:var(--gold-2); }
.cform .form-msg.error{ background:rgba(220,80,80,0.15); color:#F3A9A9; }

footer.site-footer{ background:#0F1929; color:#7C8AA6; padding:28px 0; font-size:13px; }
.foot-inner{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- intro preloader ---------- */
#preloader{
  position:fixed; inset:0; z-index:9999; background:var(--navy);
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  transition:opacity .7s ease, visibility .7s ease;
}
#preloader.done{ opacity:0; visibility:hidden; pointer-events:none; }
#preloader svg{ width:150px; height:150px; overflow:visible; }
#preloader .pre-chev{ stroke-dasharray:220; stroke-dashoffset:220; animation:preDraw .7s cubic-bezier(.65,0,.35,1) forwards; }
#preloader .pre-chev:nth-child(1){ animation-delay:.1s; }
#preloader .pre-chev:nth-child(2){ animation-delay:.32s; }
#preloader .pre-chev:nth-child(3){ animation-delay:.54s; }
@keyframes preDraw{ to{ stroke-dashoffset:0; } }
#preloader .pre-word{
  margin-top:26px; font-family:'JetBrains Mono',monospace; color:var(--gold-2);
  font-size:13px; letter-spacing:0.5em; text-indent:0.5em;
  opacity:0; animation:preWord .6s ease forwards; animation-delay:.85s;
}
@keyframes preWord{ from{ opacity:0; letter-spacing:0.9em; } to{ opacity:1; letter-spacing:0.5em; } }
#preloader .pre-bar{ width:150px; height:2px; background:rgba(255,255,255,0.12); margin-top:20px; overflow:hidden; }
#preloader .pre-bar span{ display:block; height:100%; width:0%; background:var(--gold); animation:preBar 1.05s ease forwards; animation-delay:.1s; }
@keyframes preBar{ to{ width:100%; } }
@media (prefers-reduced-motion: reduce){
  #preloader{ transition:none; }
  .pre-chev, .pre-word, .pre-bar span{ animation:none !important; stroke-dashoffset:0 !important; opacity:1 !important; letter-spacing:0.5em !important; width:100% !important; }
}
