:root {
  /* Brand: white + black with green from xgator.us CTAs (#68ba27)
     and logo body (#40a028). */
  --bg: #f3f5f0;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-hover: #eef3e6;
  --line: #d8ddd2;
  --text: #111111;
  --muted: #3f3f3f;
  --ink: #000000;
  --green: #68ba27;
  --green-hover: #40a028;
  --green-soft: #e7f5d6;
  --focus: #40a028;
  --radius: 22px;
  --paper: url("/img/cardstock.svg");
  --paper-dark: url("/img/cardstock-dark.svg");
  --paper-green: url("/img/cardstock-green.svg");
  --press: 5px 6px 0 var(--ink);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  line-height: 1.45;
}

.hub-body,
.admin-body {
  background-color: #e8ece2;
  background-image: var(--paper);
  background-size: 240px 240px;
}

.topbar {
  background-color: #f7f8f3;
  background-image: var(--paper);
  background-size: 240px 240px;
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 10;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-hover);
}

a:hover {
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 12px;
}

.logo {
  width: min(168px, 46vw);
  display: block;
}

.header-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.hero h1 {
  margin: 6px 0 10px;
  font-family: Oswald, "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-hover);
}

.tagline {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lang-btn,
.icon-btn,
.primary-btn,
.ghost-btn,
.danger-btn,
.contact-chip,
.chip {
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}

.pill,
.banner-cta,
.cta-link {
  min-height: 60px;
  min-width: 44px;
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 16px;
  font-family: Oswald, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  box-shadow: var(--press);
  background-repeat: repeat;
  background-size: 180px 180px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pill:hover,
.banner-cta:hover,
.cta-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 8px 0 var(--ink);
  color: inherit;
}

.pill:active,
.banner-cta:active,
.cta-link:active {
  transform: translate(2px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.pill svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill-ink {
  background-color: var(--ink);
  background-image: var(--paper-dark);
  color: #fff;
}

.pill-ink:hover {
  color: #fff;
}

.pill-green {
  background-color: var(--green);
  background-image: var(--paper-green);
  color: var(--ink);
}

.pill-green:hover {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.lang-btn {
  min-height: 38px;
  min-width: 44px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  border: 0;
}

.lang-btn.is-active {
  background: var(--green);
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.status-pill.is-open {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--ink);
}

.status-pill.is-open .status-dot {
  background: var(--green-hover);
  box-shadow: 0 0 0 4px rgba(104, 186, 39, 0.25);
}

.status-pill.is-closed .status-dot {
  background: var(--ink);
}

.spotlight {
  min-height: 104px;
  margin: 22px 0 18px;
  border-radius: 28px;
  border: 2px solid var(--ink);
  box-shadow: var(--press);
  background-color: var(--ink);
  background-image:
    linear-gradient(118deg, rgba(0, 0, 0, 0.2) 0 58%, rgba(104, 186, 39, 0.08) 58% 100%),
    var(--paper-dark);
  background-size: auto, 220px 220px;
  display: flex;
  align-items: center;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0 0 0 58%;
  background-color: var(--green);
  background-image: var(--paper-green);
  background-size: 220px 220px;
}

.spotlight-copy {
  margin: 0;
  max-width: 16rem;
  color: #fff;
  font-family: Oswald, "Segoe UI", sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.banner-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.banner-cta {
  width: 100%;
  justify-content: space-between;
  min-height: 64px;
  background-color: var(--green);
  background-image: var(--paper-green);
  color: var(--ink);
  font-size: 1.08rem;
}

.banner-cta:hover {
  color: var(--ink);
}

.banner-cta-outline {
  background-color: #f7f8f3;
  background-image: var(--paper);
  color: var(--ink);
}

.banner-cta-outline:hover {
  color: var(--ink);
}

.banner-arrow {
  font-size: 1.45rem;
  line-height: 1;
}

.section-label {
  margin: 0 0 12px;
  font-family: Oswald, "Segoe UI", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  min-height: 148px;
  width: 100%;
  padding: 18px 16px;
  border-radius: var(--radius);
  background-color: #fbfcf8;
  background-image: var(--paper);
  background-size: 220px 220px;
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover,
.tile.is-on {
  transform: translate(-2px, -2px);
  box-shadow: 7px 8px 0 var(--ink);
}

.icon-well {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
}

.icon-well svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-copy {
  display: grid;
  gap: 4px;
}

.tile-label {
  font-size: 1rem;
  font-weight: 800;
}

.tile-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.towing-panel {
  margin: 12px 0 0;
  padding: 18px;
  border-radius: var(--radius);
  background-color: var(--ink);
  background-image: var(--paper-dark);
  background-size: 220px 220px;
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--press);
}

.towing-panel h2 {
  margin: 0 0 8px;
  font-family: Oswald, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.towing-panel p {
  margin: 0 0 14px;
  color: #d8d8d8;
}

.cta-link {
  width: auto;
  background-color: var(--green);
  background-image: var(--paper-green);
  color: var(--ink);
}

.cta-link:hover {
  color: var(--ink);
}

.hub-footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-block,
.card {
  background-color: #fbfcf8;
  background-image: var(--paper);
  background-size: 220px 220px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 4px 5px 0 var(--ink);
}

.hub-footer h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-footer p,
.hub-footer address {
  margin: 0 0 4px;
  font-style: normal;
}

.footer-phones,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.contact-chip,
.chip {
  background-color: #fbfcf8;
  background-image: var(--paper);
  background-size: 180px 180px;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.contact-chip:hover,
.chip:hover {
  background-color: var(--green);
  background-image: var(--paper-green);
  color: var(--ink);
  border-color: var(--ink);
}

.footer-email {
  margin: 14px 0 0;
}

.staff-link {
  margin-top: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 20;
}

.toast[hidden] {
  display: none;
}

.admin-body .wrap {
  width: min(920px, 100%);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-header h1 {
  margin: 0;
  font-family: Oswald, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

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

.primary-btn {
  background-color: var(--green);
  background-image: var(--paper-green);
  background-size: 180px 180px;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
}

.primary-btn:hover {
  color: var(--ink);
}

.ghost-btn {
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.ghost-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.danger-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.error {
  color: var(--text);
  min-height: 1.3em;
}

.customer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.customer-list button {
  width: 100%;
  text-align: left;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.customer-list button:hover {
  background: var(--surface-hover);
}

.customer-list button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.customer-list button.is-active .badge {
  background: var(--ink);
  color: var(--green);
}

.layout {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .layout {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}

.notes {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.notes li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
}

.notes time {
  display: block;
  color: var(--green-hover);
  font-size: 0.8rem;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 420px) {
  .hero-pills {
    grid-template-columns: 1fr;
  }
}
