/* ==========================================================================
   Monehatak Technology Timor-Leste — corporate / event-management site
   Palette matches the Kaebauk product family (navy + gold) for brand
   consistency across monehatakevent.site and the /kaebauk application.
   ========================================================================== */

:root {
  --navy-deep: #071126;
  --navy:      #0D1E3D;
  --navy-mid:  #123A68;
  --gold:      #C9A24A;
  --gold-light:#E8C980;
  --cream:     #FAF6EC;
  --ink:       #181E2C;
  --slate:     #6C7484;
  --line:      #E6E0D2;
  --white:     #FFFFFF;

  --shadow-sm: 0 4px 14px -6px rgba(13,30,61,0.15);
  --shadow-md: 0 14px 34px -14px rgba(13,30,61,0.28);
  --radius:    18px;
  --radius-sm: 12px;

  --font-display: "Sora", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1180px, 92vw); margin: 0 auto; }
section { position: relative; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn-gold:hover { box-shadow: 0 10px 24px -8px rgba(201,162,74,0.55); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-outline-dark { background: transparent; border-color: rgba(13,30,61,0.25); color: var(--navy); }
.btn-outline-dark:hover { background: rgba(13,30,61,0.05); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform:none; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.nav.is-scrolled { background: rgba(7,17,38,0.86); backdrop-filter: blur(10px); box-shadow: 0 6px 24px -12px rgba(0,0,0,0.4); padding: 12px 0; }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(155deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--navy-deep);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.15; }
.brand-name span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: 1.6px; color: var(--gold-light); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) { color: rgba(255,255,255,0.78); font-weight: 600; font-size: 14.5px; transition: color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.1); border: none; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content:""; display:block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.nav-toggle { flex-direction: column; gap: 4px; }

/* --- Hero --- */
.hero {
  padding: 168px 0 120px;
  background:
    radial-gradient(1100px 560px at 12% -10%, rgba(212,175,55,0.16), transparent 60%),
    radial-gradient(900px 520px at 108% 8%, rgba(62,124,177,0.28), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #123a68 100%);
  color: var(--white); overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px; color: var(--gold-light); margin-bottom: 22px;
}
.hero-kicker .dot { width: 20px; height: 20px; border-radius: 50%; background: rgba(201,162,74,0.25); display:flex; align-items:center; justify-content:center; font-size: 11px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -.5px; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-sub { font-size: 17.5px; line-height: 1.65; color: rgba(255,255,255,0.78); max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-langs { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.45); }
.hero-langs b { color: rgba(255,255,255,0.7); font-weight: 700; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  position: relative; width: min(320px, 88%); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55); transform: rotate(3deg);
  border: 6px solid rgba(255,255,255,0.06);
}
.hero-card img, .hero-card svg { width: 100%; display: block; }
.hero-chip {
  position: absolute; background: var(--white); color: var(--navy); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13.5px;
}
.hero-chip .ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(201,162,74,0.18); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.hero-chip.c1 { top: 6%; left: -8%; transform: rotate(-4deg); }
.hero-chip.c2 { bottom: 8%; right: -6%; transform: rotate(3deg); }

/* --- Section headers --- */
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.section-head { max-width: 640px; margin: 0 0 52px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.3px; color: var(--navy); line-height: 1.18; margin-bottom: 14px; }
.section-head p { font-size: 16px; line-height: 1.65; color: var(--slate); }
.section-head.on-dark h2 { color: var(--white); }
.section-head.on-dark p { color: rgba(255,255,255,0.72); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- Services --- */
.services { padding: 108px 0; background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 20px;
  background: linear-gradient(155deg, var(--navy-mid), var(--navy)); display: flex; align-items: center; justify-content: center;
}
.service-card h3 { font-size: 18.5px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 14.5px; line-height: 1.6; color: var(--slate); }
.service-tag { display:inline-block; margin-top:16px; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .3px; }

/* --- Technology --- */
.tech { padding: 110px 0; background: linear-gradient(180deg, var(--navy-deep), var(--navy) 65%, var(--navy)); color: var(--white); }
.tech-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 70px; align-items: center; }
.tech-feature { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.tech-feature:first-of-type { border-top: none; padding-top: 0; }
.tech-feature .ico {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; background: rgba(201,162,74,0.14);
  border: 1px solid rgba(201,162,74,0.3); display: flex; align-items: center; justify-content: center;
}
.tech-feature h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.tech-feature p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.68); }

.tech-visual { position: relative; display: flex; justify-content: center; }
.tech-visual .frame {
  width: min(300px, 100%); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -26px rgba(0,0,0,0.6);
  border: 6px solid rgba(255,255,255,0.08);
}
.tech-visual .frame img, .tech-visual .frame svg { width: 100%; display: block; }
.tech-visual .glow { position: absolute; inset: -40px; background: radial-gradient(circle at 50% 30%, rgba(201,162,74,0.22), transparent 60%); z-index: -1; }

/* --- How it works --- */
.steps { padding: 108px 0; background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; padding: 30px 24px 26px; border-radius: var(--radius); background: var(--cream); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 16px;
  margin-bottom: 18px;
}
.step-card h4 { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-card p { font-size: 14px; line-height: 1.6; color: var(--slate); }
.step-arrow { display:none; }

/* --- Inquiry form --- */
.inquiry { padding: 110px 0; background: var(--cream); }
.inquiry-wrap {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; background: var(--white);
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.inquiry-info {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white);
  padding: 52px 44px; display: flex; flex-direction: column; justify-content: space-between;
}
.inquiry-info h3 { font-size: 25px; font-weight: 800; margin-bottom: 14px; }
.inquiry-info > p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.info-row:first-of-type { border-top: none; }
.info-row .ico { width: 38px; height: 38px; border-radius: 11px; background: rgba(201,162,74,0.15); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-row div b { display:block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.info-row div span { font-size: 13.5px; color: rgba(255,255,255,0.65); }
.info-events { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.info-events span { font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.85); }

.inquiry-form { padding: 52px 46px; }
.inquiry-form h3 { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.inquiry-form > p.lead { font-size: 14.5px; color: var(--slate); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: var(--cream);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field textarea { resize: vertical; min-height: 96px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-msg { display: none; padding: 13px 16px; border-radius: 11px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(30,158,99,0.12); color: #167a4d; border: 1px solid rgba(30,158,99,0.25); }
.form-msg.err { background: rgba(214,69,69,0.1); color: #b23c3c; border: 1px solid rgba(214,69,69,0.25); }
.form-note { font-size: 12.5px; color: var(--slate); margin-top: 12px; text-align: center; }

/* --- Footer --- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.65; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer-col h5 { font-size: 12.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color .15s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 12.5px; }
.footer-bottom .powered { color: rgba(255,255,255,0.35); }

/* --- Scroll reveal --- */
/* Visible by default (no-JS / JS-not-yet-run safe). JS adds .pre just
   before observing, so the hide/reveal effect is a pure enhancement
   and never leaves content permanently invisible if JS fails or is slow. */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.pre { opacity: 0; transform: translateY(22px); }
.reveal.pre.in { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 20px; }
  .hero { padding: 140px 0 90px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-visual { order: -1; margin-bottom: 20px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .inquiry-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: 70px; left: 16px; right: 16px; background: rgba(7,17,38,0.97); border-radius: 16px;
    flex-direction: column; align-items: stretch; padding: 18px; gap: 4px; display: none; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .inquiry-form, .inquiry-info { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-chip { display: none; }
}
