/* =========================================================
   THEME TOKENS
   - Default: soft light (setengah terang)
   - Dark mode: via [data-theme="dark"]
   - Brand colors follow logo
========================================================= */
:root{
    color-scheme: light;
/* Brand */
  --brand:#1f6b3a;   /* hijau */
  --brand2:#e31b23;  /* merah */
  --accent:#f2d31a;  /* kuning */

  /* Soft-light palette (default) */
  --bg:#ffffff;
  --bg2:#f8fafc;
  --surface:rgba(255,255,255,.92);
  --surface-strong:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:rgba(2,6,23,.10);
  --shadow:0 8px 22px rgba(2,6,23,.06);

  --radius:18px;
  --max:1100px;

  /* Controls */
  --btnText:#ffffff;
  --btnBorder:rgba(2,6,23,.10);
}

/* Dark palette */
html[data-theme="dark"]{
    color-scheme: dark;
--bg:#0b1220;
  --bg2:#020617;
  --surface:rgba(255,255,255,.04);
  --surface-strong:rgba(255,255,255,.03);
  --text:#ffffff;
  --muted:#cbd5e1;
  --line:rgba(255,255,255,.10);
  --shadow:0 10px 35px rgba(0,0,0,.40);

  --btnText:#ffffff;
  --btnBorder:rgba(255,255,255,.12);
}

/* =========================================================
   BASE
========================================================= */
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 420px at 18% -8%, rgba(31,107,58,.12), transparent 55%),
    radial-gradient(800px 380px at 85% 0%, rgba(227,27,35,.10), transparent 58%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  color:var(--text);
}
a{text-decoration:none;color:inherit}
.container{max-width:var(--max);margin:auto;padding:0 20px}

/* =========================================================
   NAVBAR
========================================================= */
header{
  position:sticky;
  top:0;
  z-index:10;
  background:color-mix(in srgb, var(--surface-strong) 86%, transparent);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  min-width:0;
}
.logo{
  width:48px;
  height:48px;
  background:var(--surface-strong);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid var(--line);
  flex:0 0 auto;
}
.logo img{width:100%;height:100%;object-fit:contain}
.brand h1{
  margin:0;
  font-size:15px;
  font-weight:900;
  line-height:1.15;
}
.brand small{
  color:var(--muted);
  font-size:12px;
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.menu{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.menu a{
  font-weight:800;
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
}
.menu a:hover{color:var(--text); background:color-mix(in srgb, var(--surface) 80%, transparent); border:1px solid var(--line); padding:7px 9px;}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  color:var(--btnText);
  background:var(--brand);
  border:1px solid color-mix(in srgb, var(--brand) 60%, #000 0%);
  box-shadow: var(--shadow);
  min-height:44px;
}
.btn.secondary{
  background:color-mix(in srgb, var(--surface-strong) 88%, transparent);
  color:var(--text);
  border:1px solid var(--btnBorder);
  box-shadow:none;
}

/* WhatsApp button (logo) */
/* Floating WhatsApp button (pure logo style) */
.wa-float{
  position:fixed;
  right:20px;
  bottom:20px;
  width:60px;
  height:60px;
  border-radius:50%;
  background:#25D366;
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  border:none;
  z-index:9999;
}
.wa-float:hover{filter:brightness(1.05)}
.wa-float:active{transform:scale(0.96)}
.wa-float svg{width:32px;height:32px;display:block}
@media(max-width:360px){
  .wa-float{right:14px; bottom:14px}
}

.wa-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  min-height:44px;
  background:#25D366;
  color:#0b1220;
  border:1px solid color-mix(in srgb, #25D366 70%, var(--line));
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .wa-btn{
  color:#0b1220;
}
.wa-btn:hover{filter:brightness(0.98)}


/* Theme toggle */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--btnBorder);
  background:color-mix(in srgb, var(--surface-strong) 88%, transparent);
  cursor:pointer;
  box-shadow:none;
}
.theme-toggle:active{transform:translateY(1px)}
.theme-toggle svg{width:18px;height:18px;fill:currentColor;color:var(--text)}

/* =========================================================
   HERO
========================================================= */
.hero{padding:56px 0 24px}
.hero-box{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(31,107,58,.35), transparent 55%),
    radial-gradient(120% 140% at 90% 10%, rgba(227,27,35,.30), transparent 55%),
    linear-gradient(135deg, var(--surface-strong), var(--surface));
  border:2px solid color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: var(--shadow);
  outline: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  outline-offset: -10px;
  border-radius:var(--radius);
  padding:32px;
  box-shadow:var(--shadow);
}

/* Accent strip on hero */
.hero-box::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  height:8px;
  width:100%;
  background:linear-gradient(90deg, var(--brand), var(--accent), var(--brand2));
  opacity:0.9;
}


/* Watermark icon on hero (subtle) */
.hero-box::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-30px;
  width:220px;
  height:220px;
  opacity:0.10;
  pointer-events:none;
  background-repeat:no-repeat;
  background-size:contain;
  /* Simple money/hand icon (inline SVG) */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 28h18c3 0 6 2 6 5 0 2-2 4-4 4H20'/%3E%3Cpath d='M10 44h18c3 0 6-2 6-5 0-2-2-4-4-4H20'/%3E%3Cpath d='M32 33l9-8c2-2 5-2 7 0l10 10c2 2 2 5 0 7l-6 6'/%3E%3Cpath d='M28 38l8 8c2 2 5 2 7 0l2-2'/%3E%3Crect x='6' y='24' width='6' height='24' rx='2'/%3E%3Ccircle cx='46' cy='20' r='6'/%3E%3Cpath d='M44 20h4'/%3E%3Cpath d='M46 18v4'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-theme="dark"] .hero-box::after{
  opacity:0.14;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 28h18c3 0 6 2 6 5 0 2-2 4-4 4H20'/%3E%3Cpath d='M10 44h18c3 0 6-2 6-5 0-2-2-4-4-4H20'/%3E%3Cpath d='M32 33l9-8c2-2 5-2 7 0l10 10c2 2 2 5 0 7l-6 6'/%3E%3Cpath d='M28 38l8 8c2 2 5 2 7 0l2-2'/%3E%3Crect x='6' y='24' width='6' height='24' rx='2'/%3E%3Ccircle cx='46' cy='20' r='6'/%3E%3Cpath d='M44 20h4'/%3E%3Cpath d='M46 18v4'/%3E%3C/g%3E%3C/svg%3E");
}

.hero h2{
  font-size:36px;
  margin:0 0 10px 0;
  line-height:1.1;
  letter-spacing:-0.02em;
}
.hero p{
  color:var(--muted);
  line-height:1.7;
  max-width:720px;
  margin:0;
}

/* HERO BUTTONS (rapi di mobile) */
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}
.actions .btn{min-height:44px}

/* =========================================================
   SECTIONS
========================================================= */
section{padding:46px 0}
.section-title{
  font-size:24px;
  font-weight:1000;
  margin:0 0 12px 0;
}
.section-desc{
  color:var(--muted);
  max-width:760px;
  margin:0 0 22px 0;
  line-height:1.7;
}

/* CARDS */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}
.card h4{margin:0 0 8px 0}
.card p{margin:0;color:var(--muted);line-height:1.6}

/* CONTACT */
.contact-box{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
label{font-weight:900;font-size:13px}
input,textarea{
  width:100%;
  padding:12px;
  margin-top:6px;
  border-radius:12px;
  border:1px solid var(--line);
  background:color-mix(in srgb, var(--surface-strong) 92%, transparent);
  color:var(--text);
  outline:none;
}
textarea{min-height:110px}

/* FOOTER */
footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  color:var(--muted);
  font-size:13px;
  background:color-mix(in srgb, var(--surface-strong) 86%, transparent);
}

/* RESPONSIVE */
@media(max-width:768px){
  .menu{display:none
  /* Hero lebih 'rounded' & nyaman di mobile */
  .hero-box{border-radius:26px; padding:28px}

}
  .contact-box{grid-template-columns:1fr}
  .hero h2{font-size:28px}
  .actions{flex-direction:column}
  .actions .btn{width:100%}
  .brand small{max-width:64vw}
}

/* Background watermark logo (grayscale, partial view, slow parallax) */
body::before{
  content:"";
  position:fixed;
  inset:-15%;
  background-image:url('logobasFIX.png');
  background-repeat:no-repeat;
  background-position:85% 60%; /* desktop right */
  background-size:1100px;
  filter:grayscale(100%);
  opacity:0.045;
  pointer-events:none;
  z-index:-1;
  transform:translateY(0);
  animation: watermarkFloat 60s linear infinite;
}

html[data-theme="dark"] body::before{
  opacity:0.07;
}

@media(max-width:768px){
  body::before{
    background-position:-30% 55%; /* mobile left */
    background-size:950px;
  }
}

@keyframes watermarkFloat{
  0%{transform:translateY(0)}
  50%{transform:translateY(-25px)}
  100%{transform:translateY(0)}
}
