:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6470;
  --line: #d7dee8;
  --paper: #f6f1e8;
  --white: #ffffff;
  --navy: #1d3557;
  --navy-dark: #12243a;
  --blue: #457b9d;
  --gold: #d9a034;
  --gold-dark: #b97b12;
  --cream: #fff8eb;
  --shadow: 0 22px 55px rgba(18, 36, 58, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body.quote-gated main,
body.quote-gated .footer {
  visibility: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(18, 36, 58, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.phone-link {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0;
  padding: 12px 16px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  min-width: max-content;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 104px));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 36, 58, 0.9), rgba(29, 53, 87, 0.52) 52%, rgba(29, 53, 87, 0.14));
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 76px);
  padding-block: 64px 124px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-size: clamp(3rem, 7.4vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions,
.quote-form,
.service-options,
.estimate-grid {
  display: grid;
  gap: 14px;
}

.hero-actions {
  grid-template-columns: repeat(2, minmax(0, max-content));
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary-button {
  background: var(--gold);
  color: #1d160a;
}

.primary-button:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.secondary-button.dark-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.secondary-button.dark-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: 28px;
  align-items: start;
  width: min(1180px, calc(100% - 36px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
}

.quote-band.page-layout {
  margin-top: 0;
  margin-bottom: 88px;
}

.quote-panel,
.estimate-panel {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-panel {
  padding: clamp(22px, 4vw, 38px);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.section-intro {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.quote-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.quote-steps li {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e1e7;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.quote-steps li.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.quote-steps li.is-complete {
  border-color: rgba(188, 133, 59, 0.45);
  background: rgba(188, 133, 59, 0.12);
  color: var(--navy);
}

.quote-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.form-section {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.quote-step-panel[hidden] {
  display: none;
}

.form-section h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--navy);
}

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

label,
legend {
  color: #31404d;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbd5dd;
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--cream);
}

textarea {
  resize: vertical;
}

.autofill-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

.service-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid #d8e1e7;
  border-radius: 0;
  padding: 16px;
}

.service-options legend {
  padding: 0 8px;
}

.service-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  font-weight: 700;
}

.service-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
}

.address-help {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}

.full-row {
  grid-column: 1 / -1;
}

.estimate-panel {
  padding: 28px;
  position: sticky;
  top: 98px;
}

.price {
  margin: 8px 0 10px;
  font-size: clamp(2.25rem, 5vw, 3.55rem);
  font-weight: 800;
  color: var(--navy);
}

.estimate-note,
.fine-print {
  color: var(--muted);
  line-height: 1.55;
}

.quote-action-stack {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.quote-flow-layout {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.quote-start-section {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto 88px;
}

.quote-start-section.page-layout {
  display: block;
  margin-inline: auto;
}

.quote-start-card {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 44px);
}

.quote-start-card h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.quote-wizard-dialog {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100dvh;
  padding: 0;
  background: transparent;
  overflow: visible;
  z-index: 1000;
}

body.quote-wizard-open {
  overflow: hidden;
}

body.quote-wizard-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(12, 28, 46, 0.64);
}

.quote-wizard {
  width: min(760px, calc(100% - 24px));
  max-height: min(820px, calc(100dvh - 24px));
  position: relative;
  display: grid;
  gap: 22px;
  border: 1px solid rgba(29, 61, 99, 0.18);
  background: var(--white);
  box-shadow: 0 24px 80px rgba(10, 26, 43, 0.34);
  padding: clamp(24px, 5vw, 44px);
  overflow: visible;
}

.wizard-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wizard-progress {
  height: 4px;
  background: #e5ecf1;
  overflow: hidden;
}

.wizard-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 180ms ease;
}

.wizard-card {
  min-height: 330px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.wizard-card h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  color: var(--navy);
}

.wizard-fields {
  display: grid;
  gap: 16px;
}

.wizard-fields.two-up,
.choice-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.icon-choice,
.path-choice {
  min-height: 150px;
  display: grid;
  justify-items: center;
  align-content: center;
  grid-template-rows: 56px minmax(38px, auto);
  gap: 12px;
  border: 1px solid #cfd9e1;
  background: var(--cream);
  padding: 18px;
  color: var(--navy);
  cursor: pointer;
  text-align: center;
}

.icon-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.icon-choice:has(input:checked),
.path-choice:hover,
.path-choice:focus-visible {
  border-color: var(--navy);
  background: #eef5fb;
  box-shadow: inset 0 0 0 2px var(--navy);
}

.choice-icon {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  background: var(--navy);
  color: var(--white);
}

.choice-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.icon-choice strong,
.path-choice strong {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1rem;
  line-height: 1.18;
  text-align: center;
}

.path-choice {
  justify-items: start;
  grid-template-rows: auto auto;
  border-radius: 0;
  text-align: left;
  font: inherit;
}

.path-choice strong {
  min-height: 0;
  justify-content: flex-start;
  text-align: left;
}

.path-choice span {
  color: var(--muted);
  line-height: 1.45;
}

.wizard-address {
  margin: -8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.wizard-actions .primary-button,
.wizard-actions .secondary-button {
  min-width: 140px;
}

.mapbox-search-listbox,
.mapbox-search-box-popover,
.mapbox-search-popover,
.mapbox-address-autofill-suggestions,
.mapboxgl-ctrl-geocoder--suggestions,
[class*="suggestion"],
[class*="mapbox"][role="listbox"],
[class*="Mapbox"][role="listbox"],
[class*="mapbox"][popover],
[class*="Mapbox"][popover] {
  z-index: 5000 !important;
  max-height: 220px !important;
  overflow-y: auto !important;
}

.estimate-grid {
  grid-template-columns: 1fr auto;
  margin: 22px 0;
  padding-block: 18px;
  border-block: 1px solid var(--line);
}

.estimate-grid span {
  color: var(--muted);
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.process-list article {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.process-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.full-width {
  width: 100%;
}

.quote-choice-dialog {
  width: min(560px, calc(100% - 32px));
  border: 0;
  padding: 0;
  background: transparent;
}

.quote-choice-dialog::backdrop {
  background: rgba(18, 36, 58, 0.56);
}

.quote-choice-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-choice-card h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.quote-choice-card .lead {
  max-width: none;
  margin-bottom: 0;
  font-size: 1.02rem;
}

.quote-choice-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 26px;
}

.quote-success-dialog .quote-choice-card {
  max-width: 560px;
}

.success-checklist {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
}

.success-checklist span {
  display: block;
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

.success-checklist span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.services {
  width: min(1180px, calc(100% - 36px));
  margin: 88px auto;
}

.content-section,
.page-hero,
.cta-band,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.page-hero {
  padding: clamp(58px, 10vw, 112px) 0 44px;
}

.page-hero.compact {
  padding-bottom: 30px;
}

.page-hero h1 {
  max-width: 920px;
  color: var(--ink);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  width: min(1060px, calc(100% - 36px));
  padding: 82px 0 6px;
}

.intro-grid .section-heading h2 {
  max-width: 620px;
}

.intro-grid .lead {
  max-width: 430px;
  margin-top: 10px;
}

.feature-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-grid.content-section {
  width: min(1060px, calc(100% - 36px));
}

.feature-grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  margin-bottom: 88px;
}

.feature-grid article,
.review-grid article,
.values-list article {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.feature-grid article {
  overflow: hidden;
  min-height: 250px;
  padding: 28px 24px;
}

.feature-grid article > img {
  width: calc(100% + 48px);
  height: 180px;
  margin: -24px -24px 22px;
  object-fit: cover;
  display: block;
}

.feature-grid h3 {
  margin: 24px 0 12px;
}

.feature-grid p,
.review-grid p,
.values-list span {
  color: var(--muted);
  line-height: 1.55;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-block: 88px;
  border-radius: 0;
  padding: clamp(24px, 5vw, 42px);
  background: var(--navy);
  color: var(--white);
}

.image-text-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  width: min(1060px, calc(100% - 36px));
  margin-top: 94px;
}

.image-text-section img,
.story-photo,
.team-grid img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.image-text-section img {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.image-text-section .primary-button {
  margin-top: 14px;
}

.cta-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.story-layout,
.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 28px;
  margin-bottom: 88px;
}

.story-photo {
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 88px;
}

.team-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.team-grid img {
  aspect-ratio: 4 / 4.6;
}

.team-grid h3,
.team-grid p {
  margin-inline: 20px;
}

.team-grid h3 {
  margin-top: 20px;
  margin-bottom: 6px;
}

.team-grid p {
  margin-bottom: 22px;
  color: var(--muted);
}

.story-layout p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.values-list {
  display: grid;
  gap: 12px;
}

.values-list article {
  padding: 18px 20px;
}

.values-list strong,
.values-list span {
  display: block;
}

.values-list span {
  margin-top: 6px;
}

.review-grid {
  margin-bottom: 0;
}

.review-grid article {
  padding: 24px;
}

.review-metrics {
  width: min(1060px, calc(100% - 36px));
  margin-top: 10px;
  margin-bottom: 26px;
}

.review-grid-expanded {
  width: min(1060px, calc(100% - 36px));
  margin-bottom: 88px;
}

.home-reviews-strip {
  width: min(1060px, calc(100% - 36px));
  margin-top: 94px;
}

.home-review-grid {
  margin-bottom: 28px;
}

.social-review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.social-icon-button {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 53, 87, 0.18);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(18, 36, 58, 0.08);
}

.social-icon-button svg {
  width: 22px;
  height: 22px;
}

.social-icon-button:hover {
  transform: translateY(-1px);
  background: var(--navy);
  color: var(--white);
}

.stars {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 800;
}

.reviews-feature {
  margin-bottom: 88px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer strong,
.footer a {
  color: var(--ink);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.service-grid article {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.service-grid article {
  min-height: 240px;
  padding: 24px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(29, 53, 87, 0.14);
  border-radius: 50%;
  background: rgba(29, 53, 87, 0.05);
  color: var(--navy);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-grid h3 {
  margin: 34px 0 12px;
}

.service-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.home-services {
  width: min(1060px, calc(100% - 36px));
  margin-top: 88px;
  margin-bottom: 88px;
}

.home-services-heading {
  margin-bottom: 26px;
}

.home-service-grid {
  margin-top: 0;
}

.home-service-grid article {
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 340px;
  padding: 36px 26px 30px;
  text-align: center;
}

.home-service-grid .service-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  background: rgba(29, 53, 87, 0.04);
}

.home-service-grid .service-icon svg {
  width: 32px;
  height: 32px;
}

.home-service-grid h3 {
  margin: 18px 0 14px;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.home-service-grid p {
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  margin-top: auto;
  border: 1px solid var(--navy);
  padding: 0 16px;
  color: var(--navy);
  font-weight: 800;
}

.service-link:hover {
  background: var(--navy);
  color: var(--white);
}

.service-category-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 88px;
}

.service-category-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.service-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-category-copy {
  position: relative;
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 420px;
  padding: clamp(28px, 5vw, 42px);
  background: linear-gradient(180deg, rgba(18, 36, 58, 0.14), rgba(18, 36, 58, 0.82) 72%, rgba(18, 36, 58, 0.92));
}

.service-category-copy h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}

.service-category-copy p:last-of-type {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.service-category-copy .primary-button {
  margin-top: 8px;
  width: max-content;
}

.service-category-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.service-category-icon svg {
  width: 30px;
  height: 30px;
}

.detail-service-grid {
  margin-top: 0;
  margin-bottom: 88px;
}

.detail-service-grid article {
  min-height: 270px;
  padding-top: 28px;
}

.detail-service-grid .service-icon {
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100% - 36px));
  transform: translateY(18px);
  border-radius: 0;
  padding: 16px 18px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .quote-band {
    grid-template-columns: 1fr;
  }

  .estimate-panel {
    position: static;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .story-layout,
  .application-layout,
  .image-text-section,
  .service-category-card,
  .feature-grid,
  .feature-grid.wide,
  .review-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid .lead {
    max-width: 760px;
    margin-top: 0;
  }

  .service-category-card,
  .service-category-copy {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .phone-link {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(11, 24, 37, 0.9), rgba(11, 24, 37, 0.45));
  }

  .hero-content {
    align-self: start;
    margin: 0 auto;
    padding-top: 48px;
  }

  .hero-actions,
  .quote-form,
  .form-grid,
  .service-options,
  .choice-grid,
  .choice-grid.two-up,
  .wizard-fields.two-up,
  .service-grid,
  .feature-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .quote-choice-card {
    padding: 22px;
  }

  .quote-band {
    margin-top: -42px;
  }

  .quote-band.page-layout {
    margin-top: 0;
  }

  .quote-wizard {
    padding: 22px;
  }

  .wizard-card {
    min-height: 360px;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

  .wizard-actions .primary-button,
  .wizard-actions .secondary-button {
    width: 100%;
  }

  .cta-band,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.internal-body {
  background: #eef2f5;
  overflow-x: hidden;
}

.internal-app {
  min-height: 100vh;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 38px;
  align-items: center;
  width: min(980px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
}

.login-panel h1 {
  color: var(--navy);
}

.login-form,
.internal-card,
.metric-grid article,
.employee-grid article,
.job-row,
.job-detail-panel,
.job-dialog {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(18, 36, 58, 0.1);
}

.login-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.is-hidden {
  display: none !important;
}

.internal-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.internal-sidebar {
  display: flex;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  background: var(--navy);
  color: var(--white);
}

.internal-brand {
  color: var(--white);
}

.internal-tabs {
  display: grid;
  gap: 8px;
}

.internal-tabs button,
.jobs-toolbar button {
  min-height: 42px;
  border: 1px solid transparent;
  padding: 0 14px;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.internal-tabs button {
  color: rgba(255, 255, 255, 0.78);
}

.internal-tabs button.is-active,
.internal-tabs button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.internal-logout {
  margin-top: auto;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(6, 19, 36, 0.42);
  color: #ffffff;
}

.internal-logout:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(6, 19, 36, 0.72);
  color: #ffffff;
}

.internal-main {
  padding: clamp(20px, 4vw, 44px);
}

.internal-header,
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.internal-header {
  margin-bottom: 26px;
}

.internal-header h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  text-transform: uppercase;
}

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

.mobile-add-job {
  display: none;
}

.metric-grid article {
  padding: 22px;
}

.metric-grid span {
  display: block;
  color: var(--navy);
  font-size: 2.6rem;
  font-weight: 800;
}

.metric-grid strong {
  color: var(--muted);
}

.internal-card {
  padding: 22px;
}

.internal-card p {
  color: var(--muted);
  line-height: 1.65;
}

.schedule-list,
.hours-list,
.job-table,
.employee-grid,
.document-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.schedule-list article,
.document-list article {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.7fr) minmax(180px, 0.8fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.hours-list article {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, #c2a14b 16%);
  border-radius: 10px;
  background: #fffdf7;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.admin-hours-review {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.hours-history-admin {
  min-height: 100%;
}

.hours-review-header h3 {
  margin-bottom: 6px;
}

.hours-pay-period {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.hours-pay-period-copy h4 {
  margin: 6px 0 4px;
  color: var(--navy);
}

.hours-pay-period-copy .fine-print {
  margin: 0;
}

.hours-pay-period-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hours-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.hours-summary-header .fine-print {
  margin: 0;
}

.hours-week-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hours-week-summary article {
  padding: 16px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 10px;
  background: #fffdf7;
}

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

.hours-week-summary strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.hours-week-summary span {
  margin-top: 6px;
  color: var(--muted);
}

.hours-review-bins {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hours-review-bin {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 132px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}

.hours-review-bin span {
  font-weight: 700;
}

.hours-review-bin strong {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(18, 36, 58, 0.08);
  color: var(--navy);
  font-size: 0.9rem;
}

.hours-review-bin.is-active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 10px 24px rgba(18, 36, 58, 0.08);
}

.hours-review-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.hours-review-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.hours-review-employee-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.hours-review-detail {
  display: grid;
  align-content: start;
}

.hours-review-employee-button {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.hours-review-employee-button strong,
.hours-review-employee-button span {
  display: block;
}

.hours-review-employee-button span {
  margin-top: 4px;
  color: var(--muted);
}

.hours-review-employee-button.is-active {
  border-color: var(--gold);
  background: #fffdf7;
  box-shadow: 0 12px 28px rgba(18, 36, 58, 0.08);
}

.hours-review-employee-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hours-review-employee-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hours-review-employee-badge.status-submitted {
  background: rgba(212, 175, 55, 0.16);
  color: #8a6610;
}

.hours-review-employee-badge.status-approved {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.hours-review-employee-badge.status-rejected {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
}

.hours-review-employee-badge.status-paid {
  background: rgba(29, 53, 87, 0.12);
  color: var(--navy);
}

.hours-review-group {
  display: grid;
  gap: 12px;
}

.hours-review-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #f8fafc;
}

.hours-review-group-header h4 {
  margin: 0;
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hours-review-group-header .fine-print {
  margin: 6px 0 0;
}

.hours-review-group-header span {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(29, 53, 87, 0.1);
  color: var(--navy);
  font-weight: 800;
}

.hours-review-group-list {
  display: grid;
  gap: 12px;
}

.hours-review-employee-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.hours-review-employee-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.hours-review-employee-header h5 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1rem;
}

.hours-review-employee-header p {
  margin: 0;
  color: var(--muted);
}

.hours-review-employee-total {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(18, 36, 58, 0.08);
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

.hours-review-employee-list {
  display: grid;
  gap: 12px;
}

.employee-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #f8fafc;
}

.employee-checkbox-row input {
  width: 18px;
  height: 18px;
}

.employee-login-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.employee-credentials-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 10px;
  background: rgba(255, 248, 230, 0.92);
}

.employee-credentials-header h4 {
  margin: 4px 0 0;
}

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

.employee-credentials-grid div {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(16, 24, 40, 0.08);
}

.employee-credentials-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.employee-credentials-grid strong {
  display: block;
  word-break: break-word;
  color: var(--navy);
}

.document-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.job-crew-picker {
  margin-top: 10px;
}

.job-crew-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.job-crew-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 10px;
  background: var(--white);
}

.job-crew-pill strong,
.job-crew-pill span {
  display: block;
}

.job-crew-pill span {
  margin-top: 4px;
  color: var(--muted);
}

.hours-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.hours-actions {
  justify-content: stretch;
  flex-wrap: wrap;
}

.hours-actions button {
  flex: 1 1 180px;
}

.hours-live-status {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.hours-live-status.is-clocked-in {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.hours-live-status.is-break {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(255, 248, 230, 0.9);
}

.hours-live-status-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hours-live-status strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.hours-entry-top,
.hours-entry-job,
.hours-entry-meta {
  display: grid;
  gap: 4px;
}

.hours-entry-top {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.hours-entry-top strong,
.hours-entry-job strong,
.hours-entry-times strong {
  display: block;
}

.hours-entry-top strong {
  font-size: 1rem;
}

.hours-entry-top span,
.hours-entry-job span,
.hours-entry-meta span {
  color: var(--muted);
}

.hours-entry-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hours-entry-job strong {
  font-size: 1rem;
}

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

.hours-entry-times > div {
  padding: 12px 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.hours-entry-times span {
  display: block;
  margin-bottom: 6px;
}

.hours-entry-meta {
  padding-top: 12px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.hours-worker-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.hours-worker-summary > div {
  padding: 12px 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 10px;
  background: var(--white);
}

.hours-worker-summary-nav {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

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

.hours-worker-summary-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hours-worker-summary strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.hours-review-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.hours-review-main,
.hours-review-details,
.hours-review-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.hours-review-main strong,
.hours-review-main span,
.hours-review-details span {
  display: block;
}

.hours-review-main span,
.hours-review-details span,
.hours-review-note {
  color: var(--muted);
}

.hours-review-details {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hours-review-details span {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--cream);
}

.hours-review-status {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hours-review-status.status-submitted {
  background: rgba(212, 175, 55, 0.16);
  color: #8a6610;
}

.hours-review-status.status-approved {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.hours-review-status.status-rejected,
.hours-review-rejected {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
}

.hours-review-status.status-paid,
.hours-review-paid {
  background: rgba(29, 53, 87, 0.12);
  color: var(--navy);
}

.hours-review-paid,
.hours-review-rejected {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
}

.hours-review-note {
  margin: 0;
}

.schedule-list strong,
.schedule-list span,
.document-list strong,
.document-list span,
.job-row strong,
.job-row span,
.employee-grid strong,
.employee-grid span,
.employee-grid a {
  display: block;
}

.schedule-list span,
.document-list span,
.job-row span,
.employee-grid span,
.employee-grid a {
  margin-top: 4px;
  color: var(--muted);
}

.schedule-job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.jobs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.jobs-toolbar button {
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}

.jobs-toolbar button.is-active {
  background: var(--navy);
  color: var(--white);
}

.job-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
  gap: 16px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: var(--white);
  cursor: pointer;
}

.job-row:hover,
.job-row.is-selected {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold), 0 14px 36px rgba(18, 36, 58, 0.12);
}

.job-row p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
}

.jobs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 18px;
  align-items: start;
}

.job-table {
  margin-top: 0;
}

.job-detail-panel {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.job-detail-panel h3 {
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.job-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-section {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.detail-section h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-section a,
.detail-section li,
.detail-section p,
.detail-section dd {
  color: var(--muted);
  line-height: 1.55;
}

.detail-section a {
  display: block;
}

.document-link {
  font-weight: 800;
  color: var(--navy) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.detail-section dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-section dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
}

.detail-section dt {
  color: var(--ink);
  font-weight: 800;
}

.detail-section dd {
  margin: 0;
}

.empty-state {
  border: 1px dashed var(--line);
  padding: 20px;
  color: var(--muted);
  background: var(--cream);
}

.employee-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-grid article {
  padding: 20px;
}

.job-dialog {
  width: min(840px, calc(100% - 36px));
  border: 0;
  padding: 0;
}

.job-dialog::backdrop {
  background: rgba(18, 36, 58, 0.55);
}

.job-dialog form {
  padding: 26px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.document-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--cream);
}

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

.document-fields-header .eyebrow {
  margin: 0;
}

.document-fields-list {
  display: grid;
  gap: 12px;
}

.document-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.document-remove-button {
  align-self: end;
}

@media (max-width: 900px) {
  .login-panel,
  .internal-dashboard,
  .metric-grid,
  .employee-grid,
  .employee-login-fields,
  .employee-credentials-grid,
  .document-fields,
  .jobs-layout,
  .hours-review-shell,
  .hours-layout,
  .schedule-list article,
  .job-row {
    grid-template-columns: 1fr;
  }

  .job-detail-panel {
    position: static;
  }

  .internal-sidebar {
    position: static;
    height: auto;
    gap: 18px;
    padding: 18px;
  }

  .internal-main {
    padding: 20px 18px 28px;
  }

  .hours-review-main,
  .hours-pay-period,
  .hours-review-employee-header,
  .hours-review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hours-review-status,
  .hours-review-paid,
  .hours-review-rejected {
    width: max-content;
  }

  .hours-week-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .internal-body {
    background: #f4f6f8;
  }

  .login-panel {
    align-content: center;
    min-height: 100dvh;
    padding-block: 24px;
  }

  .login-panel h1 {
    font-size: 3.4rem;
  }

  .internal-dashboard {
    display: block;
    padding-bottom: 84px;
  }

  .internal-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: 12px;
    padding: 12px;
    box-shadow: 0 8px 22px rgba(18, 36, 58, 0.24);
  }

  .internal-brand .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 0.95rem;
  }

  .internal-brand small {
    display: none;
  }

  .internal-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .internal-tabs button {
    min-width: max-content;
    min-height: 46px;
    padding: 0 14px;
    border-color: rgba(255, 255, 255, 0.16);
    text-align: center;
  }

  .internal-logout {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .internal-main {
    padding: 18px 14px 0;
  }

  .internal-header {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .internal-header h2 {
    font-size: 2.6rem;
  }

  .internal-header #openJobForm {
    display: none;
  }

  .mobile-add-job {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    display: inline-flex;
    min-width: 150px;
    min-height: 54px;
    box-shadow: 0 16px 34px rgba(18, 36, 58, 0.28);
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-grid article {
    padding: 18px;
  }

  .metric-grid span {
    font-size: 2.25rem;
  }

  .internal-card,
  .job-detail-panel,
  .login-form {
    box-shadow: 0 10px 24px rgba(18, 36, 58, 0.08);
  }

  .card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .card-header .secondary-button {
    width: 100%;
  }

  .internal-card {
    padding: 18px;
  }

  .schedule-list article {
    gap: 12px;
    padding: 16px;
  }

  .hours-entry-times {
    grid-template-columns: 1fr;
  }

  .hours-review-details {
    gap: 8px;
  }

  .hours-review-details span {
    width: 100%;
    text-align: center;
  }

  .hours-week-summary {
    grid-template-columns: 1fr;
  }

  .hours-pay-period-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hours-summary-header {
    align-items: stretch;
    flex-direction: column;
  }

  .hours-pay-period-actions .secondary-button {
    width: 100%;
  }

  .hours-review-actions .primary-button,
  .hours-review-actions .secondary-button {
    width: 100%;
  }

  .hours-review-bin {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  .jobs-toolbar {
    position: sticky;
    top: 118px;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-inline: -14px;
    padding: 10px 14px;
    background: #f4f6f8;
  }

  .jobs-toolbar button {
    min-height: 44px;
    padding-inline: 8px;
    text-align: center;
  }

  .jobs-layout {
    gap: 14px;
  }

  .job-row {
    gap: 12px;
    padding: 16px;
    min-height: 128px;
  }

  .job-row p {
    display: none;
  }

  .job-detail-panel {
    margin-top: 2px;
    padding: 18px;
  }

  .job-detail-panel h3 {
    font-size: 1.55rem;
  }

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

  .detail-section dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .detail-section a,
  .employee-grid a {
    min-height: 38px;
    align-content: center;
  }

  .employee-grid article {
    padding: 18px;
  }

  .document-list article {
    grid-template-columns: 1fr;
  }

  .hours-list article,
  .hours-review-card {
    padding: 16px;
  }

  .job-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
  }

  .job-dialog form {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    max-height: 100dvh;
    overflow-y: auto;
    padding: 20px 16px 96px;
  }

  .document-fields {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .document-fields-header {
    align-items: stretch;
    flex-direction: column;
  }

  .document-fields-header .secondary-button {
    width: 100%;
  }

  .document-field-row {
    grid-template-columns: 1fr;
  }

  .document-remove-button {
    width: 100%;
  }

  .dialog-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .dialog-actions button {
    min-height: 50px;
  }
}

@media (max-width: 430px) {
  .metric-grid,
  .jobs-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .internal-tabs button {
    min-height: 44px;
  }

  .mobile-add-job {
    right: 10px;
    bottom: 10px;
    min-width: calc(100% - 20px);
  }
}
