/* ==========================================================================
   UmrohCost — Design System
   Palette: deep emerald + gold on warm paper
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink-950: #04120e;
  --ink-900: #071a14;
  --ink-800: #0b241c;
  --ink-700: #123529;

  --emerald-700: #0a5f45;
  --emerald-600: #0e7c5a;
  --emerald-500: #12a374;
  --emerald-400: #2fc492;
  --emerald-100: #d9f3e8;

  --gold-600: #b8901f;
  --gold-500: #c9a227;
  --gold-400: #e4c06a;
  --gold-200: #f4e6bd;

  --paper: #fcfbf8;
  --sand-100: #f7f2e8;
  --sand-200: #efe7d7;

  --text: #10231d;
  --text-soft: #3c4f47;
  --muted: #63786e;
  --line: rgba(16, 35, 29, 0.1);
  --line-strong: rgba(16, 35, 29, 0.16);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-xs: 0 1px 2px rgba(7, 26, 20, 0.06);
  --shadow-sm: 0 2px 6px rgba(7, 26, 20, 0.06), 0 8px 20px -12px rgba(7, 26, 20, 0.18);
  --shadow: 0 4px 12px rgba(7, 26, 20, 0.06), 0 22px 48px -26px rgba(7, 26, 20, 0.28);
  --shadow-lg: 0 10px 24px rgba(7, 26, 20, 0.08), 0 44px 80px -40px rgba(7, 26, 20, 0.4);

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Plus Jakarta Sans", Georgia, serif;

  --container: 1180px;
  --nav-h: 70px;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.085' stroke-width='1'%3E%3Cpath d='M44 6 L56 32 L82 44 L56 56 L44 82 L32 56 L6 44 L32 32 Z'/%3E%3Crect x='22' y='22' width='44' height='44'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-200); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--emerald-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--gap, 16px); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(2.3rem, 6.2vw, 4.15rem);
}
.h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.h3 { font-size: clamp(1.12rem, 1.8vw, 1.32rem); letter-spacing: -0.02em; }
.lede {
  font-size: clamp(1rem, 1.5vw, 1.115rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.705rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.55;
}
.on-dark .eyebrow { color: var(--gold-400); }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.24s ease, background 0.2s ease, opacity 0.2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1.5px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  --btn-fg: #231a02;
  box-shadow: 0 10px 26px -12px rgba(201, 162, 39, 0.75);
}
.btn--solid {
  --btn-bg: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  --btn-fg: #fff;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(16, 35, 29, 0.045); box-shadow: none; }
.btn--light {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.btn--light:hover { background: rgba(255, 255, 255, 0.18); }
.btn--sm { padding: 9px 16px; font-size: 0.845rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--emerald-700);
  border-bottom: 1.5px solid transparent;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover { gap: 11px; border-color: currentColor; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(252, 251, 248, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(252, 251, 248, 0.95); }
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.055rem;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--emerald-600), var(--ink-900));
  display: grid;
  place-items: center;
  color: var(--gold-400);
  box-shadow: 0 6px 16px -8px rgba(7, 26, 20, 0.7);
  flex: none;
}
.brand__mark svg { width: 18px; height: 18px; }
.brand em { font-style: normal; color: var(--emerald-600); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background 0.18s ease, color 0.18s ease;
}
.nav__links a:hover { background: rgba(16, 35, 29, 0.05); color: var(--text); }
.nav__links a.is-active { color: var(--emerald-700); background: rgba(18, 163, 116, 0.1); }
.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 17px;
  height: 1.8px;
  background: var(--text);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.8px;
  background: var(--text);
  transition: transform 0.22s ease;
}
.nav__toggle span::before { top: -5.5px; }
.nav__toggle span::after { top: 5.5px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card--flush { padding: 0; overflow: hidden; }
.card--soft { background: var(--sand-100); border-color: var(--sand-200); box-shadow: none; }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.755rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--emerald-100);
  color: var(--emerald-700);
  border: 1px solid rgba(18, 163, 116, 0.22);
}
.pill--gold { background: var(--gold-200); color: #7a5c0c; border-color: rgba(201, 162, 39, 0.35); }
.pill--dark { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Forms ---------- */
.field { display: block; }
.field + .field { margin-top: 14px; }
.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3.5px rgba(18, 163, 116, 0.14);
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2363786e' stroke-width='1.6' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.help { font-size: 0.775rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
  border-radius: 999px;
}
.segmented button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 10px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
}

.range { width: 100%; accent-color: var(--emerald-600); height: 22px; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  transition: background 0.2s ease;
  flex: none;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease;
}
.switch input:checked + .switch__track { background: var(--emerald-600); }
.switch input:checked + .switch__track::after { transform: translateX(17px); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(44px, 6vw, 68px) 0 30px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  opacity: 0.5;
  pointer-events: none;
}
.footer > * { position: relative; }
.footer a { color: rgba(255, 255, 255, 0.78); transition: color 0.18s ease; }
.footer a:hover { color: var(--gold-400); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer .brand { color: #fff; }
.footer h4 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer li + li { margin-top: 9px; }
.footer li a { font-size: 0.9rem; }
.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.815rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #05341a;
  font-weight: 800;
  font-size: 0.875rem;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6), 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.015); }
.wa-float svg { width: 22px; height: 22px; flex: none; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.toast--ok { background: var(--emerald-700); }
.toast--warn { background: #8a5a00; }
.toast svg { width: 16px; height: 16px; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; }
}

/* ---------- Utility ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 18px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin: 0;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; border-radius: 12px; font-size: 0.95rem; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .segmented { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); border-radius: var(--radius); }
}

/* ---------- Print ---------- */
@media print {
  .nav, .wa-float, .toast-wrap, .footer { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
