/* ============================================================
   MAWTHUQ AKH — Brand & Design System
   Premium limousine service · Singapore
   Deep midnight navy · platinum/silver · steel-blue accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@400;500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Navy (signature dark) ---- */
  --navy-950: #070D18;
  --navy-900: #0B1322;
  --navy-850: #101C30;
  --navy-800: #15243D;
  --navy-700: #1D3152;
  --navy-600: #284268;
  --navy-500: #34557F;

  /* ---- Steel blue (accent — from the logo) ---- */
  --steel-700: #2F5C8F;
  --steel-600: #3B6BA5;
  --steel-500: #4C7CB8;
  --steel-400: #6E9BD0;
  --steel-300: #9CBFE0;
  --steel-200: #C8DAEE;
  --steel-100: #E7F0F8;

  /* ---- Platinum / silver (cool neutrals) ---- */
  --platinum-50:  #F6F8FB;
  --platinum-100: #EEF2F7;
  --platinum-200: #E1E7EF;
  --platinum-300: #CDD6E1;
  --slate-400: #94A1B2;
  --slate-500: #6A7787;
  --slate-600: #4E5A6B;
  --slate-700: #36404F;

  /* ---- Champagne (sparing luxury detail) ---- */
  --champagne: #C7AE7E;
  --champagne-soft: #E6DAC1;

  /* ---- Status (muted, refined) ---- */
  --st-requested-fg: #946321;  --st-requested-bg: #F6EEDD;  --st-requested-bd: #E7D5AE;
  --st-invoiced-fg:  #2F5C8F;  --st-invoiced-bg:  #E7F0F8;  --st-invoiced-bd:  #C4D9EE;
  --st-accepted-fg:  #2A7657;  --st-accepted-bg:  #E2F1EA;  --st-accepted-bd:  #BBE0CC;
  --st-assigned-fg:  #4B4F9A;  --st-assigned-bg:  #EBECF7;  --st-assigned-bd:  #CFD1EE;
  --st-completed-fg: #4E5A6B;  --st-completed-bg: #EDF0F4;  --st-completed-bd: #D6DDE6;
  --st-cancelled-fg: #A2453B;  --st-cancelled-bg: #F8E9E7;  --st-cancelled-bd: #EDC9C4;

  /* ---- Semantic (light surfaces) ---- */
  --bg: var(--platinum-50);
  --surface: #FFFFFF;
  --surface-2: var(--platinum-100);
  --text: #0E1A2C;
  --text-soft: var(--slate-600);
  --text-muted: var(--slate-500);
  --border: var(--platinum-200);
  --border-strong: var(--platinum-300);
  --accent: var(--steel-600);
  --accent-strong: var(--steel-700);
  --accent-soft: var(--steel-100);
  --on-accent: #FFFFFF;
  --ring: rgba(76,124,184,.35);

  /* ---- Type ---- */
  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* ---- Radii ---- */
  --r-xs: 4px;
  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* ---- Shadows (navy-tinted) ---- */
  --shadow-sm: 0 1px 2px rgba(11,19,34,.06), 0 1px 1px rgba(11,19,34,.04);
  --shadow-md: 0 4px 14px rgba(11,19,34,.08), 0 2px 5px rgba(11,19,34,.05);
  --shadow-lg: 0 20px 50px rgba(11,19,34,.16), 0 8px 18px rgba(11,19,34,.08);
  --shadow-navy: 0 30px 70px rgba(7,13,24,.40), 0 10px 24px rgba(7,13,24,.30);

  --maxw: 1240px;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--steel-200); color: var(--navy-900); }

/* ============================================================
   Typography
   ============================================================ */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.d1 { font-size: clamp(54px, 5.4vw, 86px); font-weight: 700; line-height: .98; }
.d2 { font-size: clamp(40px, 3.6vw, 60px); font-weight: 700; }
.d3 { font-size: 36px; font-weight: 600; }
.d4 { font-size: 26px; font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.lead { font-size: 19px; line-height: 1.62; color: var(--text-soft); text-wrap: pretty; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

p { text-wrap: pretty; }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 104px 0; }
.row { display: flex; gap: 16px; }
.row.center { align-items: center; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.grid { display: grid; gap: 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: var(--r-xs); }
.btn-block { width: 100%; }

/* On-navy variants */
.on-navy .btn-secondary { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.on-navy .btn-secondary:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.on-navy .btn-ghost { color: var(--steel-200); }
.on-navy .btn-ghost:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ============================================================
   Badges / status pills
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 11px 5px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.requested { color: var(--st-requested-fg); background: var(--st-requested-bg); border-color: var(--st-requested-bd); }
.pill.invoiced  { color: var(--st-invoiced-fg);  background: var(--st-invoiced-bg);  border-color: var(--st-invoiced-bd); }
.pill.accepted  { color: var(--st-accepted-fg);  background: var(--st-accepted-bg);  border-color: var(--st-accepted-bd); }
.pill.assigned  { color: var(--st-assigned-fg);  background: var(--st-assigned-bg);  border-color: var(--st-assigned-bd); }
.pill.completed { color: var(--st-completed-fg); background: var(--st-completed-bg); border-color: var(--st-completed-bd); }
.pill.cancelled { color: var(--st-cancelled-fg); background: var(--st-cancelled-bg); border-color: var(--st-cancelled-bd); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-xs);
  background: var(--accent-soft); color: var(--accent-strong);
  white-space: nowrap;
}
.tag.champagne { background: var(--champagne-soft); color: #8a6f3e; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card.pad { padding: 28px; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.label {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-soft);
  font-family: var(--font-mono);
}
.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring);
}
.textarea { resize: vertical; min-height: 92px; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236A7787' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; }
.hint { font-size: 12.5px; color: var(--text-muted); }

/* ============================================================
   Tables
   ============================================================ */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 15px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--platinum-50); cursor: pointer; }
.table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   Dividers / misc
   ============================================================ */
.hr { height: 1px; background: var(--border); border: 0; margin: 0; }
.hairline-champagne { height: 2px; width: 56px; background: linear-gradient(90deg, var(--champagne), transparent); border: 0; }
.kbd-ref { font-family: var(--font-mono); font-size: 13px; color: var(--text-soft); }

/* ============================================================
   On-navy context (dark sections / hero / sidebars)
   ============================================================ */
.on-navy {
  --text: #F2F6FB;
  --text-soft: #B7C4D6;
  --text-muted: #8294AB;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);
  --accent: var(--steel-400);
  --accent-strong: var(--steel-300);
  --accent-soft: rgba(110,155,208,.16);
  --on-accent: var(--navy-950);
  color: var(--text);
}
.on-navy .display, .on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: var(--text); }
.on-navy .eyebrow { color: var(--steel-300); }
.on-navy .btn-primary { background: var(--steel-400); color: var(--navy-950); }
.on-navy .btn-primary:hover { background: var(--steel-300); }

/* Brand wordmark lockup */
.wordmark { display: inline-flex; align-items: center; gap: 13px; }
.wordmark .mark {
  width: 44px; height: 44px; border-radius: 11px; object-fit: cover;
  box-shadow: 0 2px 8px rgba(7,13,24,.3); border: 1px solid rgba(255,255,255,.12);
}
.wordmark .wm-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark .wm-name {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: .02em; color: var(--text); text-transform: uppercase;
}
.wordmark .wm-sub {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 3px;
}

/* Scrollbar (refined) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--platinum-300); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ============================================================
   Responsive utilities
   ============================================================ */
@media (max-width: 900px) {
  .wrap    { padding: 0 20px; }
  .section { padding: 72px 0; }
  .lead    { font-size: 17px; }
}
@media (max-width: 480px) {
  .section { padding: 52px 0; }
  .lead    { font-size: 16px; }
}
