:root {
  color-scheme: light;
  --ink: #152218;
  --muted: #63715e;
  --green: #31662a;
  --green-deep: #214d1d;
  --green-ink: #143111;
  --green-soft: #e9f5df;
  --lime: #d3ee75;
  --lime-soft: #f3ffd5;
  --gold: #d3ee75;
  --gold-soft: #f3ffd5;
  --red: #b42318;
  --line: #dbe8d0;
  --panel: #ffffff;
  --wash: #f6faef;
  --shadow: 0 16px 40px rgba(33, 77, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--wash);
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.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;
}

.hero {
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(33, 77, 29, 0.98), rgba(49, 102, 42, 0.9) 48%, rgba(33, 77, 29, 0.94)),
    url("./assets/pestez-hero.png") center/cover;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

body > .topbar {
  color: #ffffff;
  background: var(--green-deep);
}

.topbar h1 {
  color: var(--lime);
  font-size: 30px;
  line-height: 1;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.logo-mark {
  display: block;
  width: 82px;
  height: 48px;
  border: 1px solid rgba(211, 238, 117, 0.42);
  border-radius: 8px;
  background: var(--green-deep);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20, 49, 17, 0.24);
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}

.brand-subtitle {
  color: #eef9d4;
  font-size: 12px;
  font-weight: 800;
}

.brand-line {
  color: #eef9d4;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.nav-tab {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-ink);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
}

.nav-tab.active {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--green-ink);
  box-shadow: inset 0 -4px 0 var(--lime);
}

.license-pill {
  border: 1px solid rgba(211, 238, 117, 0.72);
  border-radius: 999px;
  background: rgba(211, 238, 117, 0.14);
  color: var(--lime-soft);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-ink);
  padding: 10px 13px;
  font-weight: 900;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(20px, 5vw, 72px);
  align-items: end;
  min-height: min(720px, calc(100vh - 64px));
  padding: clamp(36px, 7vw, 96px) clamp(18px, 4vw, 48px) 28px;
}

.hero-copy {
  max-width: 780px;
  min-width: 0;
  display: grid;
  gap: 16px;
}

.hero-logo-lockup {
  display: grid;
  gap: 10px;
  width: min(360px, 100%);
}

.hero-logo-box {
  overflow: hidden;
  border: 1px solid rgba(211, 238, 117, 0.46);
  border-radius: 8px;
  background: var(--green-deep);
  padding: 14px 14px 10px;
  box-shadow: 0 16px 36px rgba(20, 49, 17, 0.24);
  display: grid;
  gap: 12px;
}

.hero-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-wordmark text {
  fill: #ffffff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 94px;
  text-shadow: 0 3px 0 rgba(20, 49, 17, 0.58), 0 8px 22px rgba(20, 49, 17, 0.48);
}

.hero-logo-box img {
  display: block;
  width: 100%;
  aspect-ratio: 530 / 285;
  object-fit: contain;
}

.hero-logo-lockup p {
  color: var(--lime-soft);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: break-word;
}

.eyebrow {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tagline {
  color: var(--lime-soft);
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: break-word;
}

.hero-text {
  max-width: 660px;
  color: #edf7ef;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
}

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

.primary-link,
.secondary-link,
.primary-button,
.secondary-button,
.remove-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
}

.primary-link,
.primary-button {
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--green-ink);
}

.secondary-link,
.secondary-button {
  border: 1px solid #b9d976;
  background: var(--green-soft);
  color: var(--green-deep);
}

.compact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.1;
}

.field-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(20, 49, 17, 0.76);
  padding: 18px;
  box-shadow: var(--shadow);
}

.field-card p {
  color: #e8f2ea;
  line-height: 1.55;
}

.season-list {
  display: grid;
  gap: 8px;
}

.season-list span {
  border-left: 3px solid var(--lime);
  padding-left: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: break-word;
}

.category-selector {
  padding: 12px clamp(18px, 4vw, 48px) 18px;
}

.category-selector p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}

.category-strip.store-active .category-tab {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #edf7ef;
}

.category-tab {
  flex: 1 1 150px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  padding: 9px 12px;
  font-weight: 900;
  line-height: 1.15;
  min-height: 42px;
  white-space: normal;
}

.category-tab.active {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--green-ink);
}

.shell {
  padding: 24px clamp(18px, 4vw, 48px) 44px;
}

.trust-band {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #bddb72;
  border-radius: 8px;
  background: var(--gold-soft);
  padding: 13px 15px;
  margin-bottom: 18px;
}

.trust-band strong {
  color: var(--green-ink);
  white-space: nowrap;
}

.trust-band span,
.product-card p,
.guidance-panel p,
.empty-state,
.checkout-status {
  color: var(--muted);
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.content-grid > *,
.guidance-grid > *,
.product-grid > * {
  min-width: 0;
}

.workspace,
.cart-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.workspace {
  padding: 18px;
}

.success-panel {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.cart-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
  padding: 16px;
  min-width: 0;
}

.section-header,
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 16px;
}

.search-row,
.order-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-row {
  min-width: min(340px, 100%);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px;
}

textarea {
  resize: vertical;
}

.guidance-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbef;
  padding: 16px;
  margin-bottom: 16px;
}

.guidance-panel .eyebrow {
  color: var(--green);
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.guidance-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.guidance-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-deep);
}

.detail-list,
.favorite-list {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.detail-list strong,
.favorite-list > strong {
  color: var(--green-deep);
}

.detail-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.detail-list li {
  color: var(--muted);
  line-height: 1.45;
}

.favorite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.favorite-grid div {
  border: 1px solid #b9d976;
  border-radius: 8px;
  background: var(--green-soft);
  padding: 10px;
}

.favorite-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.favorite-grid p {
  color: var(--green-ink);
  font-weight: 800;
}

.service-note {
  border-left: 4px solid var(--lime);
  background: var(--lime-soft);
  padding: 10px 12px;
  font-weight: 800;
}

.store-note {
  border-left-color: var(--green);
  background: #ffffff;
  color: var(--green-deep);
}

.standley-quote-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid #b9d976;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.cart-quote-card {
  grid-template-columns: 88px minmax(0, 1fr);
  background: #f7fbef;
}

.standley-logo-frame {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 7px;
}

.standley-logo-frame img {
  display: block;
  width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.cart-quote-card .standley-logo-frame img {
  max-height: 42px;
}

.standley-quote-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.standley-quote-copy strong {
  color: var(--green-deep);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.standley-quote-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

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

.product-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.product-photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #d7e7b1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbef 100%);
}

.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.sku {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.product-meta,
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta span,
.doc-links a,
.doc-links span {
  border: 1px solid #b9d976;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-footer strong,
.cart-header strong {
  color: var(--green-deep);
  font-size: 22px;
}

.cart-list {
  display: grid;
  gap: 8px;
  min-height: 76px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
}

.cart-item strong {
  color: var(--green);
}

.remove-button {
  grid-column: 1 / -1;
  min-height: 34px;
  border: 1px solid #f0c7c2;
  background: #fff2f0;
  color: var(--red);
  padding: 7px 10px;
}

.order-form,
.acknowledgement-box,
.fulfillment-box {
  display: grid;
  gap: 10px;
}

.fulfillment-title {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.shipping-specs {
  display: grid;
  gap: 8px;
  border: 1px solid #c9df9a;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.shipping-specs strong {
  color: var(--green-deep);
  font-size: 13px;
}

.shipping-specs dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.shipping-specs div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 7px;
}

.shipping-specs dt,
.shipping-specs dd {
  margin: 0;
}

.shipping-specs dt {
  color: var(--green);
  font-weight: 900;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.check-item.disabled {
  opacity: 0.55;
}

.check-item input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.checkout-status {
  font-size: 13px;
  font-weight: 800;
}

.checkout-status[data-tone="ready"] {
  color: var(--green);
}

.checkout-status[data-tone="warning"] {
  color: #8a5b00;
}

.checkout-status[data-tone="error"] {
  color: var(--red);
}

.contact-panel,
.admin-shell {
  margin-top: 18px;
}

.admin-actions,
.crm-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.admin-tab.active {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: block;
}

.crm-toolbar {
  justify-content: space-between;
  margin-bottom: 14px;
}

.crm-toolbar .search-row {
  flex: 1 1 320px;
}

.crm-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.crm-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbef;
  padding: 12px;
}

.crm-summary strong,
.crm-summary span {
  display: block;
}

.crm-summary strong {
  color: var(--green-deep);
  font-size: 22px;
}

.crm-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.contact-routing {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.contact-form label,
.shipping-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-message,
.contact-form .primary-button,
.contact-form .checkout-status {
  grid-column: 1 / -1;
}

.order-log,
.customer-log {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.admin-order {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.admin-order-head,
.admin-order-grid {
  display: grid;
  gap: 12px;
}

.admin-order-head {
  grid-template-columns: 1fr auto;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.admin-order-head strong {
  border: 1px solid #b9d976;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 6px 9px;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-order-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
}

.customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) minmax(280px, 420px);
  gap: 12px;
}

.admin-order ul {
  margin: 8px 0 10px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.shipping-form,
.crm-form {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.crm-form {
  margin-top: 0;
}

.crm-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-list span {
  border: 1px solid #b9d976;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.success-summary {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbef;
  padding: 12px;
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .guidance-grid,
  .admin-order-grid,
  .customer-grid,
  .crm-summary {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

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

  .hero-copy,
  .hero-text,
  .hero-logo-lockup {
    max-width: 360px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .cart-button {
    justify-content: space-between;
    width: min(100%, 360px);
  }

  .topbar-actions {
    align-items: stretch;
    flex-wrap: wrap;
    width: min(100%, 360px);
  }

  .topbar-actions .nav-tab {
    flex: 1 1 150px;
  }
}

@media (max-width: 680px) {
  .topbar,
  .section-header,
  .trust-band,
  .product-footer,
  .contact-form,
  .admin-actions,
  .crm-toolbar,
  .admin-order-head {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form,
  .admin-order-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cart-button {
    grid-column: 1 / -1;
  }

  .hero-grid {
    min-height: auto;
  }

  .logo-mark {
    width: 74px;
    height: 40px;
  }

  .hero-logo-box {
    padding: 12px 12px 9px;
    gap: 10px;
  }

  .standley-quote-card,
  .cart-quote-card {
    grid-template-columns: 1fr;
  }

  .standley-logo-frame {
    justify-items: start;
  }

  .standley-logo-frame img {
    width: min(160px, 100%);
  }

  .standley-quote-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
