/* ==========================================================================
   Ve3.Zion — Uber-inspired design system
   Monochrome (black / white / greys) with Ve3 orange as the single accent.
   Used by the public pages (home, login, signup, OTP, PIN, account, profile).
   The admin portal adds tme/assets/css/uber-admin.css on top of this file.
   ========================================================================== */

:root {
  --ink: #000000;
  --ink-2: #1f1f1f;
  --ink-hover: #333333;
  --bg: #ffffff;
  --surface: #f6f6f6;
  --field: #f3f3f3;
  --line: #e8e8e8;
  --line-2: #d6d6d6;
  --muted: #5e5e5e;
  --muted-2: #8a8a8a;
  --accent: #f86f03;          /* Ve3 orange (logo) */
  --accent-ink: #b34e00;      /* orange that is readable as text on white */
  --accent-soft: #fff1e6;
  --danger: #e11900;
  --danger-soft: #ffefed;
  --success: #05944f;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.06);
  --shadow-2: 0 4px 16px rgba(0,0,0,.12);
  --font: "Inter", "Uber Move", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

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

html { -webkit-text-size-adjust: 100%; }

body.u {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.u a { color: var(--ink); text-decoration: none; }
body.u a:hover { text-decoration: underline; text-underline-offset: 3px; }

body.u h1, body.u h2, body.u h3, body.u h4 {
  font-family: var(--font);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.u-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar (black, like uber.com) ---------- */
.u-topbar {
  position: sticky; top: 0; z-index: 997;
  height: var(--header-h);
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center;
}
.u-topbar .u-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.u-brand { display: inline-flex; align-items: center; }
.u-brand img { height: 44px; width: auto; display: block; }
.u-topnav { display: flex; align-items: center; gap: 4px; }
.u-topnav a {
  color: #fff !important; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  transition: background .15s ease;
}
.u-topnav a:hover { background: #2a2a2a; text-decoration: none; }

/* ---------- Buttons ---------- */
.u-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  font: 600 16px/1 var(--font);
  border-radius: var(--radius-s);
  border: 0; cursor: pointer;
  background: var(--ink); color: #fff !important;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.u-btn:hover { background: var(--ink-hover); }
.u-btn:active { transform: scale(.985); }
.u-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.u-btn--block { width: 100%; }
.u-btn--light { background: #fff; color: var(--ink) !important; }
.u-btn--light:hover { background: #e9e9e9; }
.u-btn--ghost { background: var(--field); color: var(--ink) !important; }
.u-btn--ghost:hover { background: #e6e6e6; }
.u-btn--danger { background: var(--danger-soft); color: var(--danger) !important; }
.u-btn--danger:hover { background: #ffdcd7; }
.u-btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--radius-pill); }
.u-btn--pill { border-radius: var(--radius-pill); }

/* ---------- Form fields ---------- */
.u-field { position: relative; margin-bottom: 12px; }
.u-label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; color: var(--ink); }
.u-input,
body.u .u-field input,
body.u .u-field textarea {
  display: block; width: 100%;
  height: 52px; padding: 0 16px;
  font: 400 16px/1.4 var(--font);
  color: var(--ink);
  background: var(--field);
  border: 2px solid #000;
  border-radius: var(--radius-s);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
  -webkit-appearance: none; appearance: none;
}
body.u .u-field textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.u-input:hover, body.u .u-field input:hover, body.u .u-field textarea:hover { background: #ececec; }
.u-input:focus, body.u .u-field input:focus, body.u .u-field textarea:focus { border-color: var(--accent); background: #fff; }
body.u ::placeholder { color: var(--muted-2); opacity: 1; }
.u-field .eye-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--muted); cursor: pointer; padding: 4px;
}
.u-field .eye-icon:hover { color: var(--ink); }
.u-field--icon input { padding-right: 48px; }

/* ---------- Auth layout (login / signup / OTP / PIN) ---------- */
body.u-auth { background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.u-auth-main { flex: 1; display: flex; justify-content: center; padding: 56px 24px 64px; }
.u-auth-card { width: 100%; max-width: 420px; }
.u-auth-card .u-eyebrow { margin-bottom: 8px; }
.u-auth-title { font-size: 32px; line-height: 1.15; font-weight: 700; margin-bottom: 8px !important; }
.u-auth-sub { color: var(--muted); margin: 0 0 28px; font-size: 16px; }
.u-auth-links { margin-top: 20px; font-size: 15px; color: var(--muted); }
.u-auth-links a { color: var(--ink) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.u-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.u-divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 14px; margin: 24px 0; }
.u-divider::before, .u-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.u-timer {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-variant-numeric: tabular-nums;
}
.u-timer:empty { display: none; }

.u-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink);
}

.u-footer-mini { padding: 24px; text-align: center; color: var(--muted-2); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- Cards / tiles ---------- */
.u-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 24px;
}
.u-tile {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 18px 20px; margin-bottom: 12px;
  background: var(--surface); border: 0; border-radius: var(--radius-m);
  font: 600 16px/1.3 var(--font); color: var(--ink); text-align: left; cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.u-tile:hover { background: #ececec; }
.u-tile:active { transform: scale(.99); }
.u-tile .u-tile-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; font-size: 22px; color: var(--ink);
}
.u-tile .u-tile-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.u-tile .u-tile-text small { font-weight: 400; color: var(--muted); font-size: 14px; }
.u-tile .u-tile-arrow { font-size: 20px; color: var(--muted); }
.u-tile--dark { background: var(--ink); color: #fff; }
.u-tile--dark:hover { background: var(--ink-hover); }
.u-tile--dark .u-tile-icon { background: var(--accent); color: #000; }
.u-tile--dark .u-tile-text small, .u-tile--dark .u-tile-arrow { color: #bdbdbd; }

/* ---------- Avatar ---------- */
.u-avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block;
  background: var(--surface); border: 1px solid var(--line);
}

/* ---------- Home (index) ---------- */
.u-hero { background: var(--ink); color: #fff; overflow: hidden; }
.u-hero .u-container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
body.u .u-hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.u-hero .u-hero-ref { display: block; margin-top: 16px; font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--accent); }
.u-hero p.u-lead { color: #cfcfcf; font-size: 18px; margin: 24px 0 32px; max-width: 520px; }
.u-hero .u-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.u-hero-visual {
  position: relative; border-radius: 24px; background: #1b1b1b; padding: 28px;
  display: flex; align-items: center; justify-content: center; min-height: 380px; overflow: hidden;
}
.u-hero-visual::after {
  content: ""; position: absolute; inset: auto -60px -80px auto; width: 220px; height: 220px; border-radius: 50%;
  background: var(--accent); opacity: .18; filter: blur(10px);
}
.u-hero-visual img { position: relative; z-index: 1; max-width: 100%; max-height: 440px; height: auto; animation: u-float 3s ease-in-out infinite alternate; }
@keyframes u-float { from { transform: translateY(6px); } to { transform: translateY(-6px); } }

.u-section { padding: 88px 0; }
.u-section--grey { background: var(--surface); }
.u-section-head { max-width: 640px; margin-bottom: 40px; }
.u-section-head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; font-weight: 700; margin-top: 8px !important; }
.u-section-head p { color: var(--muted); font-size: 18px; margin: 12px 0 0; }

.u-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.u-feature { background: #fff; border-radius: var(--radius-l); padding: 28px; border: 1px solid var(--line); }
.u-feature i { font-size: 28px; display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 12px; background: var(--ink); color: #fff; }
.u-feature h3 { font-size: 20px; font-weight: 700; margin: 20px 0 8px !important; }
.u-feature p { color: var(--muted); margin: 0; }

.u-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.u-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.u-contact-item {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px;
  border-radius: var(--radius-m); background: var(--surface); color: var(--ink) !important;
}
.u-contact-item:hover { background: #ececec; text-decoration: none !important; }
.u-contact-item i {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.u-contact-item b { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.u-contact-item span { font-weight: 600; }
.u-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.u-form-grid .u-field { margin: 0; }
.u-form-grid .u-span-2 { grid-column: 1 / -1; }

/* php-email-form status blocks (validate.js toggles .d-block) */
.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message { display: none; border-radius: var(--radius-s); padding: 12px 16px; font-size: 15px; margin-bottom: 12px; }
.php-email-form .loading { background: var(--surface); color: var(--ink); }
.php-email-form .error-message { background: var(--danger-soft); color: var(--danger); }
.php-email-form .sent-message { background: #e7f6ee; color: var(--success); font-weight: 600; }
.php-email-form .d-block { display: block !important; }

.u-footer { background: var(--ink); color: #bdbdbd; padding: 48px 0 32px; font-size: 14px; }
.u-footer .u-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.u-footer img { height: 36px; width: auto; }
.u-footer strong { color: #fff; font-weight: 600; }
.u-footer .u-credits { color: #8a8a8a; }

/* back-to-top + preloader (driven by assets/js/main.js) */
.back-to-top {
  position: fixed; visibility: hidden; opacity: 0; right: 20px; bottom: 20px; z-index: 996;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff !important;
  transition: all .3s; box-shadow: var(--shadow-2);
}
.back-to-top i { font-size: 26px; color: #fff; line-height: 0; }
.back-to-top:hover { background: var(--ink-hover); text-decoration: none !important; }
.back-to-top.active { visibility: visible; opacity: 1; }
#preloader { position: fixed; inset: 0; z-index: 9999; background: #fff; }
#preloader::before {
  content: ""; position: fixed; top: calc(50% - 22px); left: calc(50% - 22px);
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--ink);
  animation: u-spin .8s linear infinite;
}
@keyframes u-spin { to { transform: rotate(360deg); } }

/* Mobile nav for the home page (main.js toggles .navbar-mobile on #navbar) */
.mobile-nav-toggle { display: none; color: #fff; font-size: 30px; cursor: pointer; line-height: 0; }

@media (max-width: 991px) {
  .u-hero .u-container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 32px; }
  .u-hero-visual { min-height: 0; }
  .u-features { grid-template-columns: 1fr; }
  .u-contact { grid-template-columns: 1fr; gap: 32px; }
  .u-section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .u-container { padding: 0 16px; }
  .u-form-grid { grid-template-columns: 1fr; }
  .u-auth-main { padding: 32px 16px 48px; }
  .u-auth-title { font-size: 28px; }
  .u-brand img { height: 34px; }
  .u-topnav a.u-hide-sm { display: none; }
  .u-footer .u-container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .u-hero-visual img { animation: none; }
}
body.u .u-field input#otp::placeholder { letter-spacing: 0; font-size: 16px; font-weight: 400; }

/* ==========================================================================
   FULL-SCREEN LAYOUTS
   ========================================================================== */
.u-container { max-width: none; padding: 0 clamp(16px, 4vw, 64px); }

.u-hero { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.u-hero > .u-container { width: 100%; }

/* ==========================================================================
   HOVER + LINK VISIBILITY
   ========================================================================== */
.u-topnav a:not(.u-btn):hover { background: var(--accent) !important; color: #000 !important; text-decoration: none !important; }
.u-topnav a.u-btn:hover { background: var(--accent) !important; color: #000 !important; }
/* Text links */
body.u .u-auth-links a, body.u .forgot-link, body.u .u-backlink {
  color: var(--accent-ink) !important; font-weight: 600 !important;
  text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(179, 78, 0, .45) !important;
}
body.u .u-auth-links a:hover, body.u .forgot-link:hover, body.u .u-backlink:hover {
  color: #000 !important; text-decoration-color: var(--accent) !important; text-decoration-thickness: 2px;
}
/* Tiles and contact cards: orange edge on hover */
.u-tile:not(.u-tile--dark):hover, .u-contact-item:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.u-tile--dark:hover { box-shadow: inset 0 0 0 2px var(--accent); }
