/* ============================================================
   WORKMEDIX  —  Global Stylesheet
   Deep navy primary · White background · Inter / Poppins
   ============================================================ */

/* ── 1. Variables ─────────────────────────────────────────── */
:root {
  --primary       : #0c2461;
  --primary-light : #1a3a8c;
  --primary-dark  : #071840;
  --accent        : #2e86de;
  --accent-light  : #54a0ff;
  --white         : #ffffff;
  --off-white     : #f6f8fc;
  --light-grey    : #e8edf5;
  --mid-grey      : #8395a7;
  --text          : #2d3436;
  --text-light    : #636e72;
  --border        : #d9e0ed;
  --success-bg    : #d4f7ec;
  --success-color : #0b6e4f;
  --warning-bg    : #fff3cd;
  --warning-color : #856404;
  --danger-bg     : #ffe0e0;
  --danger-color  : #b71c1c;
  --info-bg       : #dbeafe;
  --info-color    : #1e40af;

  --pending-bg    : #fff3cd;
  --pending-fg    : #92620d;
  --confirmed-bg  : #dbeafe;
  --confirmed-fg  : #1e40af;
  --completed-bg  : #d4f7ec;
  --completed-fg  : #0b6e4f;

  --shadow-xs : 0 1px 3px rgba(12,36,97,.08);
  --shadow-sm : 0 2px 8px rgba(12,36,97,.10);
  --shadow-md : 0 4px 16px rgba(12,36,97,.12);
  --shadow-lg : 0 10px 30px rgba(12,36,97,.15);

  --radius    : 8px;
  --radius-lg : 14px;
  --radius-xl : 20px;

  --sidebar-w  : 260px;
  --nav-h      : 110px;
  --transition : .22s ease;
}

/* ── 2. Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── 3. Typography ───────────────────────────────────────── */
h1 { font-size: clamp(2rem,5vw,3.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-light); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.section-title { color: var(--primary); margin-bottom: .75rem; }
.section-desc  { max-width: 600px; margin: 0 auto 3rem; font-size: 1.05rem; text-align: center; }

/* ── 4. Layout utilities ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 90px 0; }
.text-center { text-align: center; }
.flex      { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-1  { gap: .5rem;  }
.gap-2  { gap: 1rem;   }
.gap-3  { gap: 1.5rem; }
.gap-4  { gap: 2rem;   }
.mt-1 { margin-top: .5rem;  }
.mt-2 { margin-top: 1rem;   }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem;  }
.mb-2 { margin-bottom: 1rem;   }
.mb-3 { margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }

/* ── 5. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(46,134,222,.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-danger {
  background: #ef4444;
  color: var(--white);
  border-color: #ef4444;
}
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── 6. Form elements ────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,134,222,.18);
}
.form-control::placeholder { color: #b0bec5; }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ── 7. Alerts ───────────────────────────────────────────── */
.alert {
  padding: .9rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  border-left: 4px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success-color); border-color: #10b981; }
.alert-danger  { background: var(--danger-bg);  color: var(--danger-color);  border-color: #ef4444; }
.alert-info    { background: var(--info-bg);    color: var(--info-color);    border-color: var(--accent); }
.alert-warning { background: var(--warning-bg); color: var(--warning-color); border-color: #f59e0b; }

/* ── 8. Status badges ────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: capitalize;
}
.badge-pending   { background: var(--pending-bg);   color: var(--pending-fg); }
.badge-confirmed { background: var(--confirmed-bg); color: var(--confirmed-fg); }
.badge-completed { background: var(--completed-bg); color: var(--completed-fg); }

/* ── 9. Public Navbar ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 999;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(12,36,97,.1); }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.nav-brand img {
  height: calc(var(--nav-h) - 8px);
  width: auto;
  max-width: 320px;
  object-fit: contain;
  object-position: left center;
}
.nav-brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  color: var(--text-light);
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: var(--off-white);
}
.nav-links .btn-login {
  margin-left: .5rem;
  background: var(--primary);
  color: var(--white);
  padding: .45rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-links .btn-login:hover {
  background: var(--primary-light);
  color: var(--white);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── 10. Hero ────────────────────────────────────────────── */
.hero {
  height: 100vh;
  min-height: 600px;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: url('/images/hero-bg.jpg') center center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(7,24,64,.82)  0%,
    rgba(12,36,97,.70) 50%,
    rgba(0,0,0,.55)    100%
  );
  z-index: 0;
}
.hero-center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
}

/* Location tag */
.location-tag {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  margin-bottom: 2rem;
  cursor: default;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s;
}
.location-tag:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
}
.location-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  position: relative;
}
.location-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #10b981;
  opacity: .45;
  animation: loc-ping 1.6s ease-out infinite;
}
@keyframes loc-ping {
  0%   { transform: scale(.8); opacity: .6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.location-text,
.location-time {
  font-size: .82rem;
  color: rgba(255,255,255,.88);
  font-weight: 500;
  transition: opacity .35s ease, transform .35s ease;
  white-space: nowrap;
}
.location-time {
  position: absolute;
  left: 2.3rem;
  opacity: 0;
  transform: translateY(6px);
}
.location-tag:hover .location-text {
  opacity: 0;
  transform: translateY(-6px);
}
.location-tag:hover .location-time {
  opacity: 1;
  transform: translateY(0);
}
.location-arrow {
  opacity: .5;
  transition: opacity .3s, transform .3s;
  flex-shrink: 0;
}
.location-tag:hover .location-arrow {
  opacity: 1;
  transform: translateX(2px) rotate(-45deg);
}

/* Animated headline */
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}
.hero-word {
  color: var(--accent-light);
  display: inline-block;
  transition: opacity .3s ease, transform .3s ease;
}
.hero-word.is-changing {
  opacity: 0;
  transform: translateY(-10px);
}
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,.72);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid rgba(255,255,255,.45);
  color: var(--white);
  background: transparent;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: .25rem;
}

/* ── 11. Section backgrounds ─────────────────────────────── */
.bg-white    { background: var(--white);     }
.bg-grey     { background: var(--off-white); }
.bg-primary  { background: var(--primary);   }
.bg-dark     { background: var(--primary-dark); }

/* ── 12. About ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.1rem;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--light-grey);
}
.value-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg { width: 18px; height: 18px; stroke: var(--white); }
.value-item h4 { font-size: .9rem; color: var(--primary); margin-bottom: .1rem; }
.value-item p  { font-size: .82rem; color: var(--text-light); line-height: 1.5; }

/* ── 13. Service cards ───────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--white); }
.service-card h3  { color: var(--primary); margin-bottom: .6rem; font-size: 1.05rem; }
.service-card p   { font-size: .9rem; line-height: 1.65; }

/* ── 14. Who We Serve ────────────────────────────────────── */
.serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.serve-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--light-grey);
  box-shadow: var(--shadow-sm);
}
.serve-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.serve-card-icon svg { width: 28px; height: 28px; stroke: var(--white); }
.serve-card h3 { color: var(--primary); margin-bottom: .75rem; }

/* ── 15. Why Workmedix ───────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  transition: background var(--transition);
}
.why-item:hover { background: rgba(255,255,255,.1); }
.why-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: var(--white);
}
.why-item h4 { color: var(--white);            margin-bottom: .35rem; }
.why-item p  { color: rgba(255,255,255,.65);   font-size: .88rem; }

/* ── 16. Contact ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { color: var(--primary); margin-bottom: 1.5rem; }
.contact-detail  {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-grey);
}
.contact-detail:first-of-type { border-top: 1px solid var(--light-grey); }
.contact-detail svg { width: 20px; height: 20px; stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-detail strong { display: block; color: var(--text); font-size: .88rem; }
.contact-detail span   { color: var(--text-light); font-size: .9rem; }
.map-placeholder {
  margin-top: 1.5rem;
  height: 220px;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--light-grey) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mid-grey);
  font-size: .9rem;
  border: 1px solid var(--border);
}
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-grey);
}
.contact-form-wrap h3 { color: var(--primary); margin-bottom: 1.75rem; }
#contact-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
#contact-success .success-icon {
  width: 64px;
  height: 64px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
#contact-success .success-icon svg { width: 30px; height: 30px; stroke: var(--success-color); }
#contact-success h3 { color: var(--success-color); }

/* ── 17. Footer ──────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  padding: 70px 0 0;
  color: rgba(255,255,255,.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand img { height: 34px; margin-bottom: 1rem; }
.footer-brand p   { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--accent-light); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--white); }

/* ── 18. Auth pages ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.auth-left {
  flex: 0 0 42%;
  background:
    linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.auth-left-content { position: relative; z-index: 1; }
.auth-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 3rem;
  text-decoration: none;
}
.auth-logo img  {
  height: 40px;
  width: auto;
  background: white;
  border-radius: var(--radius);
  padding: 2px 6px;
  object-fit: contain;
}
.auth-logo span { font-size: 1.3rem; font-weight: 800; color: var(--white); }
.auth-left h2   { color: var(--white); margin-bottom: 1rem; }
.auth-left p    { color: rgba(255,255,255,.7); font-size: .95rem; }
.auth-left-footer { position: relative; z-index: 1; color: rgba(255,255,255,.45); font-size: .8rem; }
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--off-white);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.auth-card h2   { color: var(--primary); margin-bottom: .4rem; }
.auth-card .sub { color: var(--text-light); margin-bottom: 2rem; font-size: .95rem; }
.auth-footer    { margin-top: 1.5rem; text-align: center; font-size: .88rem; color: var(--text-light); }

/* ── 19. App layout (portal / admin) ─────────────────────── */
.app-body { display: flex; min-height: 100vh; background: var(--off-white); }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1.5rem 1.4rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.sidebar-logo img  {
  height: 54px;
  width: auto;
  background: white;
  border-radius: var(--radius);
  padding: 3px 8px;
  object-fit: contain;
}
.sidebar-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
}
.sidebar-logo-text small {
  display: block;
  font-size: .68rem;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sidebar-nav { flex: 1; padding: 1rem .75rem; }
.sidebar-section-title {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: .5rem .7rem .3rem;
  margin-top: .5rem;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: .15rem;
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav a:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.sidebar-nav a.active {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(46,134,222,.4);
}
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .6rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  margin-bottom: .75rem;
}
.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
  flex-shrink: 0;
}
.sidebar-user-name  { font-size: .88rem; font-weight: 600; color: var(--white); line-height: 1.2; }
.sidebar-user-email { font-size: .75rem; color: rgba(255,255,255,.5); }
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .65rem .9rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-logout:hover { background: rgba(255,255,255,.1); color: var(--white); }
.sidebar-logout svg { width: 16px; height: 16px; }

.app-main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; }

.app-topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}
.app-topbar-title h2 { font-size: 1.15rem; color: var(--primary); margin: 0; }
.app-topbar-title p  { font-size: .8rem; color: var(--text-light); margin: 0; }
.topbar-actions      { display: flex; align-items: center; gap: .75rem; }

.app-content { padding: 2rem; flex: 1; }

/* ── 20. Dashboard stat cards ────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.blue   { background: var(--info-bg);    color: var(--accent);        }
.stat-icon.blue svg   { stroke: var(--accent);     }
.stat-icon.green  { background: var(--success-bg); color: var(--success-color); }
.stat-icon.green svg  { stroke: var(--success-color); }
.stat-icon.amber  { background: var(--warning-bg); color: #92620d;              }
.stat-icon.amber svg  { stroke: #92620d;           }
.stat-icon.purple { background: #f3e8ff;           color: #7c3aed;              }
.stat-icon.purple svg { stroke: #7c3aed;           }
.stat-num   { font-size: 1.9rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--text-light); margin-top: .2rem; }

/* ── 21. Content cards ───────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 1rem; color: var(--primary); margin: 0; }
.card-body  { padding: 1.5rem; }
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--off-white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── 22. Tables ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
thead th {
  padding: .85rem 1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mid-grey);
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--light-grey);
  vertical-align: middle;
  color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f9fbff; }
.table-empty {
  text-align: center;
  padding: 3rem !important;
  color: var(--mid-grey);
  font-style: italic;
}

/* ── 23. App breadcrumb / page header ────────────────────── */
.page-heading {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-heading h2 { color: var(--primary); font-size: 1.5rem; margin: 0; }
.page-heading p  { color: var(--text-light); font-size: .9rem; margin: .25rem 0 0; }

/* ── 24. File upload area ────────────────────────────────── */
.upload-hint { font-size: .8rem; color: var(--mid-grey); margin-top: .4rem; }

/* ── 25. 404 / Error ─────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--off-white);
  padding: 2rem;
}
.error-page-inner { max-width: 480px; }
.error-code {
  font-size: 7rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: .12;
}
.error-page h2 { color: var(--primary); margin-bottom: .75rem; }
.error-page p  { margin-bottom: 2rem; }

/* ── 26. Inline status form ──────────────────────────────── */
.status-form select {
  padding: .35rem .7rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: .85rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
}
.status-form select:focus { outline: none; border-color: var(--accent); }

/* ── 27. Mobile responsive ───────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .serve-grid   { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: 1fr 1fr; }
  .auth-left    { display: none; }
  .form-row     { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 2.5rem 0;
    gap: 2.5rem;
  }
  .hero-image-wrap { order: -1; }
  .hero-photo      { height: 280px; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.08); padding: 1rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-hamburger   { display: flex; }
  .navbar .container { position: relative; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .sidebar.open  { transform: translateX(0); }
  .app-main      { margin-left: 0; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-stats  { gap: 1.5rem; }
  .stats-grid  { grid-template-columns: 1fr; }
  .auth-right  { padding: 1.5rem; }
  .auth-card   { padding: 1.75rem; }
}

/* ============================================================
   PREMIUM DESIGN LAYER  —  21st.dev-inspired
   Glassmorphism · Gradient text · Glow cards · Micro-motion
   ============================================================ */

/* ── Solid white navbar ───────────────────────────────────── */
.navbar {
  background  : #ffffff !important;
  border-bottom: 1px solid rgba(12,36,97,.10) !important;
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(12,36,97,.10) !important;
}

/* ── Gradient hero heading ────────────────────────────────── */
.hero h1 span {
  background: linear-gradient(135deg, #54a0ff 0%, #a29bfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Deeper, richer hero ──────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(46,134,222,.3)  0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(108,92,231,.2)  0%, transparent 40%),
    radial-gradient(ellipse at 60% 90%, rgba(0,184,148,.08)  0%, transparent 40%),
    linear-gradient(150deg, #060d1f 0%, #0c2461 50%, #16213e 100%) !important;
}

/* ── Section gradient headings ────────────────────────────── */
.section-title {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow service cards ───────────────────────────────────── */
.service-card {
  position: relative;
  background: var(--white) !important;
  border: 1px solid var(--light-grey) !important;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1),
              box-shadow .3s ease,
              border-color .3s ease !important;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,134,222,.04) 0%, rgba(108,92,231,.04) 100%);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 20px 40px rgba(46,134,222,.15), 0 0 0 1px rgba(46,134,222,.2) !important;
  border-color: rgba(46,134,222,.35) !important;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-icon {
  box-shadow: 0 0 20px rgba(46,134,222,.4);
  transform: scale(1.08);
}
.service-icon {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
}

/* ── Glass "Who We Serve" cards ───────────────────────────── */
.serve-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%) !important;
  border: 1px solid rgba(46,134,222,.12) !important;
  box-shadow: 0 4px 24px rgba(12,36,97,.07) !important;
  transition: transform .3s ease, box-shadow .3s ease;
}
.serve-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(12,36,97,.12) !important;
}
.serve-card-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #2e86de 100%) !important;
  box-shadow: 0 8px 20px rgba(46,134,222,.3);
}

/* ── Why section glass items ──────────────────────────────── */
.why-item {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  backdrop-filter: blur(8px);
  transition: background .25s, transform .25s, box-shadow .25s !important;
}
.why-item:hover {
  background: rgba(255,255,255,.1) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.why-num {
  background: linear-gradient(135deg, var(--accent) 0%, #a29bfe 100%) !important;
  box-shadow: 0 4px 14px rgba(46,134,222,.4);
}

/* ── Hero stats shimmer line ──────────────────────────────── */
.hero-stats {
  border-top: 1px solid rgba(255,255,255,.1) !important;
}
.hero-stat-num {
  background: linear-gradient(135deg, #ffffff 0%, #74b9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CTA primary button — gradient + glow ─────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #5f27cd 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(46,134,222,.35);
  transition: all .25s ease !important;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46,134,222,.5) !important;
  filter: brightness(1.08);
  color: white !important;
}

/* ── Contact form card polish ─────────────────────────────── */
.contact-form-wrap {
  border: 1px solid rgba(46,134,222,.15) !important;
  box-shadow: 0 8px 40px rgba(12,36,97,.1) !important;
}
.contact-form-wrap .form-control:focus {
  box-shadow: 0 0 0 3px rgba(46,134,222,.15), 0 1px 3px rgba(0,0,0,.05) !important;
}

/* ── Footer gradient top border ───────────────────────────── */
.footer {
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(46,134,222,.5) 30%,
    rgba(108,92,231,.5) 70%,
    transparent 100%
  );
}

/* ── About value items polish ─────────────────────────────── */
.value-item {
  border: 1px solid rgba(46,134,222,.1) !important;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.value-item:hover {
  border-color: rgba(46,134,222,.3) !important;
  box-shadow: 0 4px 16px rgba(46,134,222,.1);
  transform: translateY(-2px);
}
.value-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
  box-shadow: 0 4px 12px rgba(46,134,222,.25);
}

/* ── Hero image frame glow ────────────────────────────────── */
.hero-image-frame {
  box-shadow:
    0 30px 70px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.08),
    0 0 60px rgba(46,134,222,.12) !important;
}

/* ── App portal/admin cards ───────────────────────────────── */
.card {
  border: 1px solid rgba(12,36,97,.08) !important;
  box-shadow: 0 2px 12px rgba(12,36,97,.06) !important;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(12,36,97,.1) !important; }

/* ── Stat cards gradient left border ─────────────────────── */
.stat-card {
  border-left: 3px solid var(--accent) !important;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(12,36,97,.1) !important;
}

/* ── Sidebar active glow ──────────────────────────────────── */
.sidebar-nav a.active {
  background: linear-gradient(135deg, var(--accent) 0%, #5f27cd 100%) !important;
  box-shadow: 0 4px 14px rgba(46,134,222,.35) !important;
}

/* ── Auth card polish ─────────────────────────────────────── */
.auth-card {
  box-shadow: 0 8px 40px rgba(12,36,97,.12) !important;
  border: 1px solid rgba(12,36,97,.08) !important;
}

/* ── Section label gradient dot ──────────────────────────── */
.section-label {
  position: relative;
}

/* ── Smooth page entrance animation ──────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.hero-inner   { animation: fadeUp .7s ease both; }
.hero-image-wrap { animation: fadeUp .7s .15s ease both; }

/* ── Quick action cards (portal dashboard) ─────────────────── */
.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(12,36,97,.08);
  box-shadow: 0 2px 12px rgba(12,36,97,.06);
  text-decoration: none;
  color: var(--text);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .25s;
}
.quick-action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(12,36,97,.12);
  border-color: rgba(46,134,222,.2);
  color: var(--text);
}
.quick-action-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.quick-action-card h4 { color: var(--primary); margin: 0; font-size: .95rem; }
.quick-action-card p  { font-size: .82rem; color: var(--text-light); margin: 0; line-height: 1.45; }

/* ── Topbar polish ────────────────────────────────────────── */
.app-topbar {
  border-bottom: 1px solid rgba(12,36,97,.07);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
}

/* ── Welcome banner ───────────────────────────────────────── */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.welcome-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}

/* ── Scrollbar polish ─────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Password show/hide ───────────────────────────────────── */
.input-password-wrap {
  position: relative;
}
.input-password-wrap .form-control {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid-grey);
  padding: 0;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.password-toggle:hover { color: var(--primary); }

/* ── Password strength ────────────────────────────────────── */
.password-strength {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.strength-bar {
  flex: 1;
  height: 5px;
  background: var(--light-grey);
  border-radius: 99px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: width .3s ease, background .3s ease;
}
.strength-label {
  font-size: .75rem;
  font-weight: 600;
  min-width: 44px;
  text-align: right;
}
.strength-weak   .strength-fill { width: 25%; background: #ef4444; }
.strength-fair   .strength-fill { width: 50%; background: #f97316; }
.strength-good   .strength-fill { width: 75%; background: #eab308; }
.strength-strong .strength-fill { width: 100%; background: #22c55e; }
.strength-weak   .strength-label { color: #ef4444; }
.strength-fair   .strength-label { color: #f97316; }
.strength-good   .strength-label { color: #eab308; }
.strength-strong .strength-label { color: #22c55e; }

/* ── Password match hint ──────────────────────────────────── */
.match-hint {
  display: block;
  font-size: .78rem;
  margin-top: .3rem;
  min-height: 1rem;
  font-weight: 500;
}
.match-hint.match   { color: #22c55e; }
.match-hint.no-match { color: #ef4444; }

/* ── Scroll reveal animations ─────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: none;
}
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.scroll-reveal-left.revealed {
  opacity: 1;
  transform: none;
}
.scroll-reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.scroll-reveal-right.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right { transition: none; opacity: 1; transform: none; }
}
