:root {
  --page: #f3f6fa;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #66748a;
  --navy: #101827;
  --teal: #245b6f;
  --accent: #63c7df;
  --accent-soft: #e9f8fc;
  --line: #dfe7ef;
  --danger: #b3261e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
}

.navbar {
  width: 100%;
  min-height: 76px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 7%;
  box-shadow: 0 8px 24px rgba(16, 24, 39, .08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  background: var(--panel);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: .2s ease;
}

.navbar.menu-open .menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.navbar.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.menu-open .menu-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.crm-btn,
.admin-link {
  color: var(--ink);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(36, 91, 111, .22);
  transition: .2s ease;
}

.crm-btn {
  background: var(--accent);
}

.admin-link {
  background: var(--navy);
  color: #ffffff;
}

.crm-btn:hover,
.admin-link:hover {
  transform: translateY(-2px);
  filter: brightness(.95);
}

.hero {
  margin: 34px 7% 34px;
  min-height: 380px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: stretch;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(16, 24, 39, .98), rgba(36, 91, 111, .94)),
    var(--navy);
  box-shadow: 0 24px 60px rgba(16, 24, 39, .18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(99, 199, 223, .12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 56px;
}

.hero-eyebrow {
  color: #aeeaf5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  color: var(--ink);
  margin-bottom: 14px;
}

.hero h1 {
  color: #ffffff;
  max-width: 620px;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #e5edf4;
  max-width: 690px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-pills span {
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(174, 234, 245, .35);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-height: 380px;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 39, .82), rgba(16, 24, 39, .08) 42%, rgba(16, 24, 39, 0)),
    linear-gradient(0deg, rgba(16, 24, 39, .18), rgba(16, 24, 39, 0));
}

.hero-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.section {
  padding: 25px 7% 70px;
}

.board {
  background: var(--panel);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(16, 24, 39, .08);
}

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

.board h2 {
  color: var(--navy);
  font-size: 30px;
}

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

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7fbfd;
}

.search-bar input {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px #d7e3ec;
}

.search-bar input:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.search-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.empty-search {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed #b8c8d6;
  border-radius: 16px;
  color: var(--muted);
  background: #f7fbfd;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.classified {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(16, 24, 39, .05);
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

.classified h3 {
  margin-bottom: 8px;
  color: var(--ink);
}

.classified p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.contact {
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}

.form {
  display: grid;
  gap: 14px;
  background: #f7fbfd;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px;
  border: 1px solid #d7e3ec;
  border-radius: 14px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
}

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

.btn {
  border: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.danger {
  background: var(--danger);
  color: #ffffff;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.login-wrap {
  max-width: 440px;
  margin: 80px auto;
  background: var(--panel);
  padding: 30px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(16, 24, 39, .08);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

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

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

.msg {
  padding: 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 14px;
}

@media (max-width: 820px) {
  .navbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 15px 5%;
    align-items: center;
  }

  .brand {
    min-width: 0;
    font-size: 18px;
  }

  .brand span {
    overflow-wrap: anywhere;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-actions {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 4px;
  }

  .navbar.menu-open .nav-actions {
    display: flex;
  }

  .nav-actions a {
    width: 100%;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    margin: 24px 5%;
  }

  .hero-copy {
    padding: 34px 26px 28px;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: .16em;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-media {
    min-height: 220px;
  }

  .hero-media::after {
    background: linear-gradient(0deg, rgba(16, 24, 39, .2), rgba(16, 24, 39, 0));
  }

  .hero-img {
    min-height: 220px;
  }

  .search-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .search-count {
    text-align: center;
  }

  .section {
    padding: 15px 5% 50px;
  }

  .board-header,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .table {
    font-size: 14px;
  }
}
