/*
Theme Name:   Jobs Drivers
Theme URI:    https://jobsdrivers.uk
Author:       Jobs Drivers
Author URI:   https://jobsdrivers.uk
Description:  Dark, modern theme for the Jobs Drivers UK driver job marketplace.
Version:      1.0.7
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GPL-2.0+
Text Domain:       driverconnect-theme
*/

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #080b14;
  color: #eef2ff;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* animated background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(59,130,246,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(249,115,22,.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

#page { position: relative; z-index: 1; }

a { color: #3b82f6; text-decoration: none; }
a:hover { color: #60a5fa; }
img { max-width: 100%; height: auto; }

/* ── Navigation ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8,11,20,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 20px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 68px;
  gap: 16px;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 1001;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3b82f6, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #eef2ff;
}
.logo-text span { color: #3b82f6; }

/* Desktop nav wrap – sits to the right of logo */
.site-nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #8b9ab8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { color: #eef2ff; background: rgba(255,255,255,0.06); }
.site-nav a.current-menu-item { color: #eef2ff; }

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-ctas-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-btn-short { display: none; }
.nav-btn-full  { display: inline; }

.nav-btn-login,
.nav-btn-register,
.nav-btn-dashboard,
.nav-btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-btn-login {
  border: 1.5px solid rgba(255,255,255,0.12);
  color: #eef2ff;
  background: transparent;
}
.nav-btn-login:hover { border-color: #3b82f6; color: #3b82f6; }
.nav-btn-register {
  background: #3b82f6;
  color: #fff !important;
}
.nav-btn-register:hover { background: #2563eb; }
.nav-btn-dashboard {
  background: linear-gradient(135deg, #3b82f6, #f97316);
  color: #fff !important;
}
.nav-btn-dashboard:hover { opacity: 0.88; }
.nav-btn-admin { padding: 8px 12px; font-size: 12px; }

/* Hamburger – hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #eef2ff;
  border-radius: 2px;
  transition: 0.2s;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────── */
.dc-hero {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}
.dc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.dc-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #eef2ff 30%, #3b82f6 70%, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dc-hero p {
  font-size: 18px;
  color: #8b9ab8;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.dc-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.dc-cta-driver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #3b82f6;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.dc-cta-driver:hover { background: #2563eb; color: #fff; transform: translateY(-1px); }
.dc-cta-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #f97316;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.dc-cta-company:hover { background: #ea6800; color: #fff; transform: translateY(-1px); }

/* Stats bar */
.dc-stats-bar {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.dc-stat-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px 28px;
  text-align: center;
  flex: 1;
  min-width: 150px;
}
.dc-stat-pill strong { display: block; font-size: 28px; font-weight: 800; color: #3b82f6; }
.dc-stat-pill span { font-size: 13px; color: #8b9ab8; }

/* ── How it works ─────────────────────────────── */
.dc-how-it-works {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.dc-section-title-center {
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dc-section-subtitle {
  text-align: center;
  color: #8b9ab8;
  font-size: 16px;
  margin-bottom: 48px;
}
.dc-how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dc-how-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px;
}
.dc-how-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.dc-how-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.dc-how-icon-blue { background: rgba(59,130,246,0.15); }
.dc-how-icon-orange { background: rgba(249,115,22,0.15); }
.dc-how-card h3 { font-size: 18px; font-weight: 700; }
.dc-how-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.dc-how-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #8b9ab8;
}
.dc-how-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.dc-how-steps.dc-orange-steps .dc-how-num { background: rgba(249,115,22,0.15); color: #f97316; }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 24px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.footer-brand p { color: #5a6782; font-size: 13px; margin-top: 10px; max-width: 260px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #8b9ab8; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #5a6782; font-size: 14px; text-decoration: none; transition: 0.2s; }
.footer-col a:hover { color: #3b82f6; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: #5a6782; }

/* ── Page content ─────────────────────────────── */
.site-content {
  min-height: 60vh;
}
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
  color: #eef2ff;
  line-height: 1.8;
}
.entry-content h1, .entry-content h2, .entry-content h3 { font-family: 'Syne', sans-serif; margin-bottom: 12px; margin-top: 28px; }
.entry-content p { color: #8b9ab8; margin-bottom: 16px; }
.entry-content a { color: #3b82f6; }

/* Full-width page (for dashboards) */
.page-template-full-width .entry-content,
.page-full-width .entry-content { max-width: 100%; padding: 0; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .dc-how-grid { grid-template-columns: 1fr; }
  .site-nav a { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 12px; }

  .nav-inner {
    height: 56px;
    gap: 10px;
  }

  .logo-mark { width: 34px; height: 34px; font-size: 16px; }
  .logo-text { font-size: 17px; }

  /* Show hamburger, hide inline nav */
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: -12px;
    right: -12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    flex: none;
    background: rgba(8, 11, 20, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px 16px;
    z-index: 999;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  .site-nav-wrap.is-nav-open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    white-space: normal;
  }

  .nav-ctas,
  .nav-ctas-admin {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-ctas a,
  .nav-ctas-admin a {
    width: 100%;
    text-align: center;
    padding: 12px 14px !important;
    font-size: 14px !important;
  }

  .nav-btn-full { display: none; }
  .nav-btn-short { display: inline; }

  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 20px; }
}

/* No WP admin bar offset for driver/company users */
body.dc-role-driver,
body.dc-role-company {
  margin-top: 0 !important;
}
