/* =========================================================
   ZIRCON — Design System
   One App for All Home Services
   ========================================================= */

:root{
  /* Color tokens */
  --ink:        #0B1F3A;
  --ink-soft:   #1C3357;
  --slate:      #5B6B82;
  --slate-light:#8695AA;
  --primary:    #155EEF;
  --primary-dark:#0E3FB0;
  --primary-soft:#3D7BFF;
  --sky:        #EAF2FF;
  --sky-deep:   #D6E7FF;
  --white:      #FFFFFF;
  --success:    #16A34A;
  --success-soft:#E7F7ED;
  --amber:      #F59E0B;
  --amber-soft: #FFF4E0;
  --danger:     #E1483C;
  --danger-soft:#FDEAE8;
  --border:     #E4EAF3;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11,31,58,0.06);
  --shadow-md: 0 6px 20px rgba(11,31,58,0.08);
  --shadow-lg: 0 20px 48px rgba(11,31,58,0.14);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Type */
  --font-head: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: 20px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--ink);
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2rem, 4.5vw, 3.2rem); font-weight:800; }
h2{ font-size:clamp(1.55rem, 3vw, 2.25rem); font-weight:800; }
h3{ font-size:1.2rem; font-weight:700; }
p{ margin:0 0 1em; color:var(--slate); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; font-size:1rem; }

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 var(--gutter);
}
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}
:focus-visible{
  outline:3px solid var(--primary-soft);
  outline-offset:2px;
  border-radius:6px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px;
  border-radius:var(--r-pill);
  font-weight:700;
  font-size:0.98rem;
  border:1.5px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(0.97); }
.btn-primary{ background:var(--primary); color:#fff; box-shadow:0 8px 20px rgba(21,94,239,0.28); }
.btn-primary:hover{ background:var(--primary-dark); }
.btn-outline{ background:transparent; border-color:var(--border); color:var(--ink); }
.btn-outline:hover{ border-color:var(--primary); color:var(--primary); }
.btn-ghost{ background:var(--sky); color:var(--primary-dark); }
.btn-ghost:hover{ background:var(--sky-deep); }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 18px; font-size:0.88rem; }
.btn-danger{ background:var(--danger-soft); color:var(--danger); }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none; }

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px var(--gutter);
  max-width:var(--maxw); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:800; font-size:1.3rem; color:var(--ink); }
.brand-mark{
  width:36px;height:36px;
  object-fit:contain; flex-shrink:0;
}
.brand-logo{
  height:32px; width:auto;
  object-fit:contain; display:block;
}
.brand-logo-lg{ height:40px; }
.nav-links{ display:flex; align-items:center; gap:28px; }
.nav-links a{ font-weight:600; font-size:0.95rem; color:var(--ink-soft); }
.nav-links a:hover{ color:var(--primary); }
.nav-cta{ display:flex; align-items:center; gap:12px; }
.nav-toggle{
  display:none; background:none; border:none; padding:6px;
}
.nav-toggle span{ display:block; width:24px; height:2.5px; background:var(--ink); margin:5px 0; border-radius:2px; }

@media (max-width:900px){
  .nav-links{
    position:fixed; inset:64px 0 0 0; background:#fff; flex-direction:column;
    align-items:flex-start; padding:28px var(--gutter); gap:22px;
    transform:translateX(100%); transition:transform .25s ease;
    overflow-y:auto;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-toggle{ display:block; }
  .nav-cta .btn-outline{ display:none; }
  .brand-logo{ height:26px; }
}

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:#C9D5E8; padding:56px 0 24px; margin-top:80px; }
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; padding-bottom:36px;
}
.footer-grid h4{ color:#fff; font-size:0.95rem; margin-bottom:14px; }
.footer-grid a{ display:block; padding:5px 0; color:#9EB0CC; font-size:0.92rem; }
.footer-grid a:hover{ color:#fff; }
.footer-brand p{ color:#9EB0CC; max-width:280px; font-size:0.92rem; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.1); padding-top:20px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:0.85rem; color:#8298BB;
}
@media (max-width:760px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

/* ---------- Cards ---------- */
.card{
  background:#fff; border:1px solid var(--border); border-radius:var(--r-md);
  box-shadow:var(--shadow-sm);
}
.card-pad{ padding:24px; }

/* ---------- Badges / status ---------- */
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:var(--r-pill); font-weight:700; font-size:0.78rem;
}
.badge-pending{ background:var(--amber-soft); color:#946200; }
.badge-assigned{ background:var(--sky); color:var(--primary-dark); }
.badge-otw{ background:#E7F0FF; color:var(--primary-dark); }
.badge-accepted{ background:#E0F2FE; color:#0369A1; }
.badge-arrived{ background:#E7F0FF; color:#1D4ED8; }
.badge-started{ background:#EEE7FF; color:#5B2FD1; }
.badge-progress{ background:var(--amber-soft); color:#8A4B00; }
.badge-completed{ background:var(--success-soft); color:#127A3B; }
.badge-cancelled{ background:var(--danger-soft); color:var(--danger); }

/* ---------- Section helpers ---------- */
.section{ padding:80px 0; }
.section-tight{ padding:56px 0; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head p{ font-size:1.08rem; }
.bg-sky{ background:var(--sky); }
.bg-ink{ background:var(--ink); color:#fff; }
.bg-ink h2, .bg-ink h3{ color:#fff; }
.bg-ink p{ color:#B9C7DE; }

/* ---------- Form elements ---------- */
.field{ margin-bottom:18px; }
.field label{ display:block; font-weight:700; font-size:0.88rem; margin-bottom:7px; color:var(--ink); }
.field .hint{ font-size:0.8rem; color:var(--slate-light); margin-top:6px; }
.input, select.input, textarea.input{
  width:100%; padding:13px 15px; border:1.5px solid var(--border); border-radius:var(--r-sm);
  background:#fff; color:var(--ink); transition:border-color .15s ease, box-shadow .15s ease;
}
.input:focus{ border-color:var(--primary); outline:none; box-shadow:0 0 0 4px rgba(21,94,239,0.12); }
textarea.input{ resize:vertical; min-height:90px; }
.otp-boxes{ display:flex; gap:10px; }
.otp-boxes input{
  width:48px; height:56px; text-align:center; font-size:1.4rem; font-weight:800;
  border:1.5px solid var(--border); border-radius:var(--r-sm);
}
.otp-boxes input:focus{ border-color:var(--primary); outline:none; box-shadow:0 0 0 4px rgba(21,94,239,0.12); }

/* ---------- Toast ---------- */
.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:#fff; padding:14px 22px; border-radius:var(--r-pill);
  font-weight:600; font-size:0.92rem; box-shadow:var(--shadow-lg);
  opacity:0; pointer-events:none; transition:all .25s ease; z-index:999; max-width:90vw; text-align:center;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast.toast-success{ background:var(--success); }
.toast.toast-error{ background:var(--danger); }

/* ---------- Utility ---------- */
.flex{ display:flex; }
.flex-col{ display:flex; flex-direction:column; }
.items-center{ align-items:center; }
.justify-between{ justify-content:space-between; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; } .gap-24{ gap:24px; }
.mt-0{ margin-top:0 } .mt-8{margin-top:8px} .mt-16{margin-top:16px} .mt-24{margin-top:24px} .mt-32{margin-top:32px}
.mb-0{ margin-bottom:0 }
.text-center{ text-align:center; }
.text-slate{ color:var(--slate); }
.text-sm{ font-size:0.88rem; }
.w-full{ width:100%; }
