:root {
  --bg: #060f1d;
  --bg-soft: #132f4f;
  --surface: #ffffff;
  --surface-soft: #f4f8ff;
  --text: #101e2f;
  --text-soft: #3b4f66;
  --brand: #e53635;
  --brand-dark: #c92c2b;
  --brand-blue: #114578;
  --brand-blue-dark: #0d3963;
  --accent: #225389;
  --line: #cdd8e7;
  --radius: 20px;
  --shadow: 0 16px 34px rgba(4, 14, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 10%, rgba(229, 54, 53, 0.22), transparent 34%),
    radial-gradient(circle at 10% 12%, rgba(17, 69, 120, 0.22), transparent 38%),
    linear-gradient(180deg, #eef4fb 0%, #e5edf7 52%, #dde8f5 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, rgba(6, 15, 29, 0.95) 0%, rgba(19, 47, 79, 0.94) 60%, rgba(201, 44, 43, 0.88) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(7px);
  box-shadow: 0 10px 26px rgba(8, 14, 24, 0.32);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  gap: 16px;
}

.brand {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand small {
  color: #d9e5f3;
  font-size: 0.78rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: #e7edf4;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(229, 54, 53, 0.9), rgba(17, 69, 120, 0.9));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 700;
}

.hero {
  padding: 92px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.hero-card {
  background: linear-gradient(165deg, #ffffff 0%, var(--surface-soft) 100%);
  border: 1px solid rgba(16, 70, 126, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(17, 69, 120, 0.18) 0%, rgba(17, 69, 120, 0) 72%);
  pointer-events: none;
}

.hero .hero-card:first-child {
  background: linear-gradient(140deg, #0b233d 0%, #15395f 54%, #c92c2b 170%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 48px rgba(10, 24, 40, 0.34);
}

.hero .hero-card:first-child h1,
.hero .hero-card:first-child p {
  color: #f4f8fd;
}

.kicker {
  display: inline-flex;
  align-items: center;
  background: rgba(229, 54, 53, 0.15);
  color: #8f1313;
  border: 1px solid rgba(229, 54, 53, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero .hero-card:first-child .kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

h1,
h2,
h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.45rem);
  margin: 14px 0 12px;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin-bottom: 14px;
}

p {
  margin-top: 0;
  color: var(--text-soft);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 20px;
  min-height: 48px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #f35d5c 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 44, 43, 0.38);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #a72221 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(166, 31, 30, 0.4);
}

.btn-outline {
  border-color: rgba(17, 69, 120, 0.35);
  color: #102844;
  background: rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(16, 54, 91, 0.2);
}

input,
select,
textarea {
  margin-top: 6px;
  width: 100%;
  border: 1px solid #cbd8e3;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 46px;
  font: inherit;
}

.form-help {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.location-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-message {
  min-height: 24px;
  font-weight: 600;
  color: #0d3963;
}

.form-message.error {
  color: #a72221;
}

.worker-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

.worker-panel {
  background: linear-gradient(165deg, #ffffff 0%, var(--surface-soft) 100%);
  border: 1px solid rgba(16, 70, 126, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.worker-panel h2,
.worker-panel h3 {
  margin-bottom: 10px;
}

.worker-list {
  display: grid;
  gap: 14px;
}

.dispatch-item {
  border: 1px solid rgba(17, 69, 120, 0.2);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.dispatch-item h3 {
  margin-bottom: 4px;
}

.dispatch-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 0.95rem;
}

.dispatch-meta strong {
  color: #102844;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-new {
  color: #8f1313;
  background: rgba(229, 54, 53, 0.15);
}

.status-accepted {
  color: #0d3963;
  background: rgba(17, 69, 120, 0.14);
}

.status-completed {
  color: #1f6a2d;
  background: rgba(62, 148, 82, 0.16);
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.section {
  padding: 66px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: linear-gradient(155deg, #ffffff 0%, #f5f9ff 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(17, 69, 120, 0.16);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(9, 27, 46, 0.2);
}

.card h3 {
  margin-bottom: 8px;
}

.badge {
  background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 100%);
  color: #deecfb;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 600;
}

.gallery img {
  border-radius: 16px;
  border: 1px solid rgba(17, 69, 120, 0.2);
  box-shadow: var(--shadow);
}

footer {
  background: linear-gradient(120deg, #061120 0%, #0f2a46 60%, #a72828 160%);
  color: #d5dde7;
  padding: 34px 0 90px;
  margin-top: 48px;
}

footer p,
footer li {
  color: #b8c3d0;
}

.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-actions a {
  min-width: 168px;
  text-align: center;
  box-shadow: 0 14px 26px rgba(9, 14, 20, 0.3);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.6s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.08s;
}

.reveal.delay-2 {
  animation-delay: 0.16s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .nav-wrap {
    min-height: 82px;
    gap: 10px;
  }

  .brand img {
    width: 72px;
    height: 72px;
  }

  .brand {
    gap: 10px;
  }

  .brand-text {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .hero-grid,
  .worker-shell,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0 26px;
  }

  .hero-card {
    padding: 22px;
  }

  .section {
    padding: 42px 0;
  }

  h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.35rem, 5.6vw, 1.8rem);
  }

  .card {
    padding: 20px;
  }

  .dispatch-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
  }

  .inline-actions {
    width: 100%;
  }

  .inline-actions .btn {
    flex: 1 1 100%;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(155deg, #0b1d31 0%, #14355b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    padding: 10px 14px 14px;
    display: none;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
    box-shadow: 0 18px 28px rgba(3, 9, 18, 0.35);
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 44px;
  }

  .floating-actions {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 8px;
  }

  .floating-actions a {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  footer {
    padding-bottom: 130px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1120px, 95vw);
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .brand-text {
    font-size: 0.86rem;
  }

  .brand small {
    display: none;
  }

  .hero-card {
    border-radius: 16px;
    padding: 18px;
  }

  .card {
    border-radius: 16px;
    padding: 18px;
  }

  .kicker {
    font-size: 0.74rem;
    padding: 5px 10px;
  }

  .floating-actions a {
    min-height: 50px;
  }
}
