:root {
  --ink: #17201f;
  --muted: #53615d;
  --line: #d1d8d3;
  --surface: #ffffff;
  --surface-soft: #f3f6f1;
  --green: #2f6958;
  --green-strong: #1f4f43;
  --blue: #275e91;
  --amber: #b86e25;
  --charcoal: #202b29;
  --shadow: rgba(23, 32, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f6f8f5;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.is-nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.85rem 5vw;
  border-bottom: 1px solid rgba(32, 43, 41, 0.14);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-strong), var(--blue));
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(47, 105, 88, 0.1);
  outline: 0;
}

.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--green);
  color: #ffffff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--green-strong);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  background-image: url("assets/contractor-portal-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(14, 22, 22, 0.88) 0%, rgba(14, 22, 22, 0.7) 36%, rgba(14, 22, 22, 0.22) 72%, rgba(14, 22, 22, 0.1) 100%),
    linear-gradient(180deg, rgba(14, 22, 22, 0.12) 0%, rgba(14, 22, 22, 0.52) 100%);
}

.hero-inner {
  display: grid;
  align-content: center;
  width: min(1120px, 90vw);
  min-height: 640px;
  margin: 0 auto;
  padding: 3.5rem 0;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffca86;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: 4.5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 54ch;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

.hero-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--green);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-strong);
  outline: 0;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: 0;
}

.button-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.button-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.button-icon-outline {
  border-radius: 4px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.hero-metrics div {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-metrics dt {
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 0.1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.access-section,
.workflow-section,
.support-section {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.access-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
  gap: 1rem;
  padding: 2.5rem 0 1.75rem;
}

.access-panel,
.orders-panel,
.workflow-grid article,
.support-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(23, 32, 31, 0.08);
}

.access-panel {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.25rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: 0;
}

label {
  color: var(--charcoal);
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 0.68rem 0.75rem;
  border: 1px solid #aeb8b0;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 105, 88, 0.18);
  outline: 0;
}

.form-button {
  margin-top: 0.4rem;
}

.form-message {
  min-height: 1.35rem;
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-message.is-error {
  color: #8d251f;
}

.form-message.is-success {
  color: var(--green-strong);
}

.orders-panel {
  padding: 1.25rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.status-grid article {
  display: grid;
  gap: 0.45rem;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid #dde4df;
  border-radius: 8px;
  background: var(--surface-soft);
}

.status-grid strong {
  font-size: 1rem;
}

.status-grid p,
.workflow-grid p,
.support-copy p {
  margin: 0;
  color: var(--muted);
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.is-green {
  background: #2f8a5f;
}

.is-blue {
  background: var(--blue);
}

.is-amber {
  background: var(--amber);
}

.workflow-section {
  padding: 1.75rem 0 2.5rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.workflow-grid article {
  min-height: 210px;
  padding: 1.15rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 32px;
  border-radius: 6px;
  background: rgba(184, 110, 37, 0.14);
  color: #7b471a;
  font-weight: 800;
}

.workflow-grid h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.support-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 1.4rem;
  background:
    linear-gradient(90deg, rgba(47, 105, 88, 0.1), rgba(39, 94, 145, 0.08)),
    #ffffff;
}

.support-copy {
  max-width: 680px;
}

.support-copy h2 {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
  line-height: 1.15;
}

.support-section .button-secondary {
  border-color: var(--green);
  background: #ffffff;
  color: var(--green-strong);
}

.support-section .button-secondary:hover,
.support-section .button-secondary:focus-visible {
  background: rgba(47, 105, 88, 0.1);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--green-strong);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero {
    min-height: 590px;
  }

  .hero-inner {
    min-height: 590px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .access-section,
  .workflow-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
  }

  .brand-copy span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 66px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 5vw 1rem;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 18px 30px var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-image {
    background-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(14, 22, 22, 0.9) 0%, rgba(14, 22, 22, 0.76) 58%, rgba(14, 22, 22, 0.4) 100%),
      linear-gradient(180deg, rgba(14, 22, 22, 0.1) 0%, rgba(14, 22, 22, 0.6) 100%);
  }

  .hero h1 {
    max-width: 9ch;
    font-size: 2.7rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .access-section,
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 1rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    width: auto;
    padding: 4rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-actions,
  .support-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .access-section,
  .workflow-section,
  .support-section {
    width: auto;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 1rem;
  }
}
