/* ============================================================
   iKaral — Apple Service Center (Palu & Tondano)
   Design terinspirasi template "The Entertainer" (Canva)
   Font: Lora (display) + Plus Jakarta Sans (body)
   ============================================================ */

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
}

:root {
  --ink: #17302d;
  --ink-soft: #2b4944;
  --muted: #5c706c;
  --teal: #167d72;
  --teal-dark: #0e5b54;
  --mint: #def8f1;
  --pale: #f4fbf8;
  --line: #dcebe6;
  --white: #ffffff;
  --gold: #e0a458;
  --radius: 20px;
  --shadow: 0 18px 50px -22px rgba(23, 48, 45, 0.28);
  --shadow-sm: 0 8px 24px -14px rgba(23, 48, 45, 0.20);
  --font-display: "Lora", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.container { width: min(1160px, 92%); margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: "●"; font-size: 0.6em; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 26px -12px rgba(22,125,114,.55); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; display: grid; place-items: center; font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-cta { display: flex; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, #d9f6ef 0%, transparent 60%),
    linear-gradient(128deg, #dffaf2 0%, #e9f4fb 55%, #fff0ed 100%);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin: 14px 0 18px; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero p.lead { color: var(--muted); font-size: 1.13rem; max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .frame {
  width: min(430px, 100%); aspect-ratio: 1/1; border-radius: 34px;
  background: linear-gradient(150deg, var(--teal-dark), var(--teal));
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.hero-art .frame .device { width: 72%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.25)); }
.badge-float {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm);
  padding: 12px 16px; font-size: .82rem; font-weight: 700; display: flex; gap: 10px; align-items: center;
}
.badge-float .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.badge-tl { top: 8%; left: 2%; }
.badge-br { bottom: 10%; right: 0; }

/* ---------- Marquee / trust ---------- */
.trust { border-block: 1px solid var(--line); background: var(--pale); padding: 20px 0; }
.trust-inner { display: flex; flex-wrap: wrap; gap: 8px 34px; align-items: center; justify-content: center; }
.trust-inner span { font-weight: 700; color: var(--muted); font-size: .9rem; }

/* ---------- Services grid ---------- */
.services h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 12px 0 10px; }
.services .sub { color: var(--muted); max-width: 56ch; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; background: var(--mint); }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.card .more { font-weight: 700; font-size: .92rem; color: var(--teal); }

/* ---------- Story ---------- */
.story { background: var(--ink); color: #eaf5f1; }
.story h2, .story h3 { color: #fff; }
.story .sub { color: #a9c4bd; }
.story-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.story-inner h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 12px 0 16px; }
.story-inner p { color: #bcd4cd; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 24px; }
.stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff; }
.stat .lbl { color: #a9c4bd; font-size: .9rem; }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.loc-card { display: flex; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.loc-card .icon { width: 50px; height: 50px; flex: none; border-radius: 14px; background: var(--mint); display: grid; place-items: center; font-size: 1.4rem; }
.loc-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.loc-card p { color: var(--muted); font-size: .94rem; }
.loc-card .tag { display: inline-block; margin-top: 10px; font-size: .76rem; font-weight: 800; color: var(--teal); background: var(--mint); border-radius: 999px; padding: 4px 12px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.testi { background: var(--pale); border-radius: var(--radius); padding: 28px; }
.testi .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.testi p { color: var(--ink-soft); font-size: .97rem; }
.testi .who { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.testi .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; }
.testi .who .nm { font-weight: 700; font-size: .92rem; }
.testi .who .rl { font-size: .8rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 12px; }
.cta p { color: #cfe9e2; max-width: 52ch; margin: 0 auto 26px; }
.cta .btn-primary { background: #fff; color: var(--teal-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bcd4cd; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #bcd4cd; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.07); border-radius: 999px; padding: 8px 14px; font-size: .85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Nota / PIN page ---------- */
.pin-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(150deg, #dffaf2, #e9f4fb 55%, #fff0ed); }
.pin-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: clamp(28px, 4vw, 44px); width: min(440px, 100%); text-align: center; }
.pin-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.pin-card .hint { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.pin-input { width: 100%; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .35em; text-align: center; padding: 14px 10px; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); }
.pin-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(22,125,114,.12); }
.pin-error { color: #dc2626; font-size: .9rem; margin-top: 12px; min-height: 1.2em; }
.pin-btn { width: 100%; margin-top: 14px; justify-content: center; padding: 15px; font-size: 1.02rem; }
.spin { display: none; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
.loading .spin { display: inline-block; }
.loading .btn-label { display: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* Nota result */
.nota { text-align: left; }
.nota-head { text-align: center; border-bottom: 2px dashed var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.nota-head .logo { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--teal-dark); }
.nota-head .store { color: var(--muted); font-size: .86rem; }
.nota-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.nota-row dt { color: var(--muted); flex: none; }
.nota-row dd { font-weight: 700; text-align: right; word-break: break-word; }
.status-pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.status-done { background: #dcfce7; color: #166534; }
.status-progress { background: #fff7e0; color: #92400e; }
.status-wait { background: #e0f2fe; color: #075985; }
.nota-total { display: flex; justify-content: space-between; margin-top: 14px; font-size: 1.12rem; font-weight: 800; }
.nota-foot { margin-top: 20px; text-align: center; color: var(--muted); font-size: .84rem; }
.nota-foot .brand-mark { color: var(--teal); font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner, .story-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid, .testi-grid, .loc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; gap: 16px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-cta { display: flex; }
  .nav-toggle { display: block; }
}
