:root {
  --ink: #152032;
  --muted: #5d6878;
  --line: #dce2ea;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --accent: #f4bd24;
  --accent-dark: #8a6200;
  --blue: #1769aa;
  --blue-dark: #0f3d63;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand span {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.header-actions,
.hero__actions,
.contact-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #15110a;
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.button--ghost {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: transparent;
}

.button--light {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 72px clamp(22px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(7, 16, 29, 0.86), rgba(12, 44, 72, 0.46)),
    url("https://images.unsplash.com/photo-1600518464441-9154a4dea21b?auto=format&fit=crop&w=1800&q=80")
      center/cover;
  color: #fff;
}

.hero__content {
  max-width: 820px;
  width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
}

h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.hero p:not(.eyebrow),
.section__intro p,
.contact__content p {
  max-width: 660px;
  color: inherit;
  font-size: 19px;
  line-height: 1.6;
}

.hero p:not(.eyebrow) {
  margin: 24px 0 32px;
}

.section {
  padding: 76px clamp(22px, 6vw, 88px);
}

.section__intro {
  max-width: 920px;
  margin-bottom: 34px;
}

.section__intro p,
.contact__content p,
.service-card p,
.check-list {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 198px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card p {
  margin: 0;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration: none;
}

.text-link::after {
  margin-left: 8px;
  content: "→";
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 42px;
  align-items: start;
  color: #fff;
  background: var(--blue-dark);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  color: #dbe9f5;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 36px;
  align-items: start;
  background: #fff;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-style: normal;
  line-height: 1.5;
}

.contact-card a {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact .button--light {
  border-color: #1f8f4d;
  color: #fff;
  background: #1f8f4d;
}

.page-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 16, 29, 0.9), rgba(12, 44, 72, 0.64)),
    url("https://images.unsplash.com/photo-1600518464441-9154a4dea21b?auto=format&fit=crop&w=1800&q=80")
      center/cover;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.6;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: start;
  background: #fff;
}

.detail-copy {
  max-width: 820px;
}

.detail-copy p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.related-services {
  background: var(--soft);
}

.public-reviews {
  background: #fff;
}

.public-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.public-review-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.public-review-card__rating {
  color: var(--accent-dark);
  font-size: 18px;
  letter-spacing: 0;
}

.public-review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.public-review-card strong {
  color: var(--ink);
}

.public-review-empty {
  display: grid;
  gap: 8px;
  max-width: 720px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
}

.public-review-empty strong {
  color: var(--ink);
  font-size: 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(22px, 6vw, 88px);
  color: #fff;
  background: #111827;
}

.footer-brand div {
  display: grid;
  gap: 4px;
}

.footer-brand span,
.site-footer .footer-links a {
  color: #d7dee9;
}

.mobile-quick-actions {
  display: none;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.cookie-consent[hidden],
.customer-form-modal[hidden] {
  display: none;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-consent .button {
  width: auto;
  flex: 0 0 auto;
}

.customer-form-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.customer-form-modal__panel {
  position: relative;
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 32px 28px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.customer-form-modal__panel img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.customer-form-modal__panel h2,
.customer-form-modal__panel p {
  margin: 0;
}

.customer-form-modal__panel p {
  color: var(--muted);
  line-height: 1.55;
}

.customer-form-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.customer-quick-form {
  width: 100%;
  display: grid;
  gap: 14px;
}

.customer-quick-form label {
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--ink);
  font-weight: 800;
}

.customer-quick-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.admin-body {
  min-height: 100vh;
  background: #eef2f7;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-card,
.admin-section,
.admin-service {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.admin-card {
  width: min(100%, 430px);
  display: grid;
  gap: 18px;
  padding: 28px;
}

.admin-card h1,
.admin-section h1,
.admin-section h2 {
  margin: 0 0 16px;
}

.admin-help {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 42px);
  color: #fff;
  background: #111827;
}

.admin-topbar > div {
  display: grid;
  gap: 4px;
  flex: 0 0 auto;
}

.admin-topbar strong {
  font-size: 20px;
}

.admin-topbar span {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.admin-topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.admin-topbar a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.admin-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 28px auto;
}

.admin-form {
  display: grid;
  gap: 22px;
}

.admin-section {
  padding: 24px;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.job-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-dark);
  font-weight: 900;
  white-space: nowrap;
}

.job-dashboard {
  border-top: 5px solid var(--accent);
}

.job-list {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.job-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.job-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.job-card__top div:first-child {
  display: grid;
  gap: 4px;
}

.job-card__top strong {
  font-size: 20px;
}

.job-card__top span {
  color: var(--muted);
}

.job-badges,
.job-actions,
.job-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-badges {
  justify-content: flex-end;
}

.job-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #e8f1f9;
  font-size: 13px;
  font-weight: 900;
}

.job-checks {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-form .job-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--ink);
  font-weight: 800;
}

.admin-form .job-checks input {
  width: 18px;
  min-height: 18px;
}

.job-actions .button {
  width: auto;
}

.add-job {
  background: #fffdf4;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.review-card strong {
  color: var(--ink);
}

.review-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.review-card small {
  color: var(--muted);
  font-weight: 800;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-approve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.review-approve input {
  width: 18px;
  height: 18px;
}

.review-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  background: #fff;
}

.review-panel {
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.review-panel h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.review-job {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.review-form {
  display: grid;
  gap: 16px;
}

.review-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.review-form textarea {
  min-height: 150px;
  resize: vertical;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form label,
.admin-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  background: #fff;
}

.admin-form textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-wide textarea {
  min-height: 150px;
}

.admin-service {
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: none;
}

.admin-service summary {
  cursor: pointer;
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 900;
}

.admin-save {
  justify-self: start;
}

.admin-alert,
.admin-success {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.admin-alert {
  color: #8a1f11;
  background: #ffe9e6;
}

.admin-success {
  color: #125d2f;
  background: #e5f7eb;
}

.module-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.module-stat-grid div,
.module-detail-grid div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.module-stat-grid strong {
  color: var(--blue-dark);
  font-size: 24px;
}

.module-stat-grid span,
.module-detail-grid span {
  color: var(--muted);
  font-weight: 800;
}

.module-two-col,
.module-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.module-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.module-filter,
.module-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.module-filter input,
.module-filter select,
.module-inline-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.module-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.module-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.module-table th,
.module-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.module-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.module-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-agreed {
  color: #075985;
  background: #e0f2fe;
}

.status-vehicle_departed {
  color: #9a3412;
  background: #ffedd5;
}

.status-completed,
.pay-paid {
  color: #166534;
  background: #dcfce7;
}

.status-pending {
  color: #475569;
  background: #f1f5f9;
}

.status-cancelled,
.pay-overdue {
  color: #991b1b;
  background: #fee2e2;
}

.pay-partial,
.pay-unpaid {
  color: #854d0e;
  background: #fef3c7;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.calendar-item {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
}

.calendar-item em {
  color: #991b1b;
  font-style: normal;
  font-weight: 900;
}

.module-status-actions {
  display: grid;
  gap: 14px;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .header-actions {
    margin-left: auto;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-stat-grid,
  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band,
  .contact,
  .service-detail {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 680px) {
  body {
    padding-bottom: 68px;
  }

  .site-header {
    position: static;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand span {
    font-size: 16px;
  }

  .site-nav {
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: 620px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero__actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .module-stat-grid,
  .module-two-col,
  .module-detail-grid,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .public-review-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-consent {
    align-items: stretch;
    flex-direction: column;
    bottom: 84px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar nav {
    justify-content: flex-start;
    gap: 10px;
  }

  .admin-section-head,
  .job-card__top {
    flex-direction: column;
  }

  .job-badges {
    justify-content: flex-start;
  }

  .job-actions .button {
    width: 100%;
  }

  .mobile-quick-actions {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.22);
  }

  .mobile-quick-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 10px;
    border-radius: 6px;
    color: #15110a;
    background: var(--accent);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-quick-actions a:last-child {
    color: #fff;
    background: #1f8f4d;
  }
}
