
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #172b27;
  --muted: #71817b;
  --green: #126b50;
  --green2: #16845e;
  --mint: #e8f4ed;
  --cream: #f7f8f4;
  --white: #fff;
  --line: #e6ebe5;
  --shadow: 0 14px 40px rgba(25,54,42,.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAVIGATION */

.topbar {
  height: 76px;
  padding: 0 max(5%, calc((100% - 1250px)/2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.brand strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  letter-spacing: .5px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  font-size: 12px;
  font-weight: 700;
  color: #52655c;
  transition: color .2s;
}

nav a:hover {
  color: var(--green2);
}

nav .admin-link {
  background: var(--green);
  color: white;
  padding: 10px 17px;
  border-radius: 9px;
}

/* HERO */

.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(111,185,143,.20), transparent 40%),
    linear-gradient(125deg,#102f27,#145d46);
  min-height: 430px;
  padding: 75px max(7%, calc((100% - 1180px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  color: white;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
}

.hero .eyebrow {
  color: #a5d9b8;
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--green2);
}

.hero h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(36px,5.2vw,61px);
  letter-spacing: -2.5px;
  line-height: 1.13;
  margin: 19px 0;
  font-weight: 800;
}

.hero h1 span {
  color: #a9dfb9;
}

.hero p {
  color: #d0e4d8;
  max-width: 460px;
  font-size: 15px;
}

.hero .primary-btn {
  margin-top: 22px;
  background: #fff;
  color: var(--green);
}

.hero-card {
  width: 300px;
  flex-shrink: 0;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.19);
  backdrop-filter: blur(15px);
}

.hero-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.13);
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 25px;
}

.hero-card h3 {
  font-family: Manrope, sans-serif;
  margin: 19px 0 5px;
  font-size: 19px;
}

.hero-card p {
  font-size: 12px;
}

.hero-card-footer {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 15px;
  margin-top: 18px;
  color: #b7d8c3;
  font-size: 10px;
}

/* MAIN */

.container {
  max-width: 1190px;
  width: 90%;
  margin: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 17px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: white;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-card > span {
  height: 44px;
  width: 44px;
  flex-shrink: 0;
  background: var(--mint);
  color: var(--green);
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 19px;
}

.stat-card strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 24px;
  line-height: 1.3;
}

.stat-card small {
  color: var(--muted);
  font-size: 11px;
}

/* SECTION HEADINGS */

.section {
  padding-top: 78px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.section-heading h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(27px,3vw,36px);
  letter-spacing: -1.2px;
  margin: 7px 0 4px;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.step-label {
  color: #829087;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* PANELS AND FORM */

.form-layout {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 22px;
  align-items: start;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 27px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.field {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 19px;
  color: #33473d;
}

.field input,
.field select,
.field textarea,
.search-row input {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  padding: 13px 14px;
  min-height: 48px;
  border: 1px solid #dfe7e0;
  border-radius: 10px;
  background: #fafcf9;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: .2s;
}

.field textarea {
  resize: vertical;
  min-height: 125px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-row input:focus {
  border-color: var(--green2);
  background: white;
  box-shadow: 0 0 0 3px rgba(22,132,94,.10);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 750;
}

.muted {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.ai-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 11px;
}

.ai-btn {
  border: 1px solid #d8e9dd;
  background: #edf6ef;
  color: var(--green);
  padding: 10px 15px;
  border-radius: 9px;
  min-height: 40px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ai-btn:hover {
  background: #e1f0e5;
}

.helper-text {
  color: var(--muted);
  font-size: 11px;
  margin: 8px 0;
  min-height: 16px;
}

.privacy-note {
  background: #f0f6f0;
  color: #426b53;
  border: 1px solid #dfebdf;
  padding: 13px;
  border-radius: 10px;
  font-size: 11px;
  margin: 18px 0;
}

/* BUTTONS */

.primary-btn,
.secondary-btn,
.ai-btn {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  transition: .2s;
}

.primary-btn {
  min-height: 47px;
  padding: 12px 20px;
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
}

.primary-btn:hover {
  background: #0c553f;
  transform: translateY(-1px);
}

.primary-btn:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.submit-btn {
  width: 100%;
  min-height: 52px;
  font-size: 13px;
}

.secondary-btn {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #dce8de;
  background: white;
  color: var(--green);
  border-radius: 9px;
  font-size: 11px;
}

.secondary-btn:hover {
  background: var(--mint);
}

/* MAP */

.map-panel {
  padding: 21px;
}

.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.map-heading h3 {
  font-family: Manrope, sans-serif;
  margin: 0;
  font-size: 17px;
}

.map-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.map-pin {
  font-size: 23px;
}

.search-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
}

.search-row input {
  flex: 1;
  margin: 0;
}

.search-btn {
  flex-shrink: 0;
}

.map {
  width: 100%;
  height: 390px;
  border-radius: 13px;
  overflow: hidden;
  background: #e7eee9;
  z-index: 1;
}

.map-foot {
  color: var(--muted);
  font-size: 10px;
  margin-top: 12px;
}

.public-map-panel {
  padding: 13px;
}

.public-map {
  height: 470px;
}

/* TRACKING */

.track-panel {
  max-width: 780px;
}

#tracking-result {
  margin-top: 17px;
}

.tracking-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf7;
}

.tracking-card strong {
  font-family: Manrope, sans-serif;
  font-size: 16px;
}

.tracking-card p {
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  background: #e5f4e9;
  color: #14734d;
  border-radius: 30px;
  padding: 6px 13px;
  font-size: 10px;
  font-weight: 800;
}

.message {
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* FOOTER */

footer {
  margin-top: 90px;
  background: #102f27;
  color: white;
  padding: 42px 20px;
  text-align: center;
}

footer strong {
  font-family: Manrope, sans-serif;
  font-size: 15px;
}

footer p {
  color: #bdd2c5;
  font-size: 12px;
}

footer a {
  color: #a9dfb9;
  font-size: 11px;
  font-weight: 700;
}

/* TABLET */

@media(max-width: 900px) {
  .hero {
    padding: 65px 6%;
  }

  .hero-card {
    width: 250px;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .map {
    height: 370px;
  }
}

/* MOBILE */

@media(max-width: 620px) {
  .topbar {
    height: auto;
    min-height: 68px;
    padding: 12px 5%;
    flex-wrap: wrap;
    gap: 12px;
  }

  nav {
    width: 100%;
    display: flex;
    gap: 9px 18px;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 10px;
  }

  nav .admin-link {
    padding: 6px 10px;
  }

  .hero {
    padding: 47px 6%;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 27px;
  }

  .hero h1 {
    font-size: 39px;
    letter-spacing: -1.6px;
  }

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

  .hero-card {
    width: 100%;
    padding: 21px;
  }

  .container {
    width: 92%;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: -16px;
  }

  .stat-card {
    padding: 13px 10px;
    gap: 9px;
  }

  .stat-card > span {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .stat-card strong {
    font-size: 19px;
  }

  .stat-card small {
    font-size: 9px;
  }

  .section {
    padding-top: 55px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .panel {
    padding: 17px;
    border-radius: 14px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row .primary-btn {
    width: 100%;
  }

  .map {
    height: 315px;
  }

  .public-map {
    height: 360px;
  }

  .step-label {
    display: none;
  }

  .section-heading > .secondary-btn {
    width: 100%;
  }

  footer {
    margin-top: 60px;
  }
}

@media(max-width: 360px) {
  .hero h1 {
    font-size: 33px;
  }

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

  .ai-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
