:root {
  --paper: #f7f1e7;
  --paper-strong: #fffaf0;
  --ink: #1f2520;
  --muted: #59645c;
  --concrete: #d8d2c5;
  --concrete-dark: #8b877d;
  --moss: #2f5d50;
  --moss-dark: #1f4037;
  --rust: #a55332;
  --safety: #e3b740;
  --line: rgba(31, 37, 32, 0.16);
  --shadow: 0 12px 36px rgba(31, 37, 32, 0.1);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, auto) 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header[data-scrolled] {
  box-shadow: 0 10px 28px rgba(31, 37, 32, 0.08);
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 43%, currentColor 44%, currentColor 48%, transparent 49%),
    linear-gradient(90deg, transparent 47%, currentColor 48%, currentColor 52%, transparent 53%);
}

.brand strong {
  display: block;
  font-weight: 700;
  letter-spacing: 0;
}

nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

nav a,
.header-phone {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

nav a[aria-current="page"],
nav a:hover,
.header-phone {
  border-color: currentColor;
}

.header-phone {
  color: #fffaf0;
  background: var(--moss-dark);
  border-color: var(--moss-dark);
}

.top-intake {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  padding: clamp(32px, 5vw, 58px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(19, 24, 21, 0.86) 0%, rgba(19, 24, 21, 0.66) 48%, rgba(19, 24, 21, 0.28) 100%),
    var(--top-image) center / cover;
  border-bottom: 1px solid var(--line);
}

.top-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 760px;
  padding-top: 8px;
  color: #fffaf0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 4.6vw, 4.75rem);
}

.top-copy > p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.top-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.top-points li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 250, 240, 0.42);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.12);
  color: #fffaf0;
  font-weight: 700;
  font-size: 0.9rem;
}

.phone-note {
  margin-top: 22px;
  color: rgba(255, 250, 240, 0.88);
  font-weight: 650;
}

.phone-note a {
  color: #fffaf0;
  font-weight: 800;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--safety);
  color: #201b0d;
  border-color: var(--safety);
}

.button.secondary {
  color: #fffaf0;
  border-color: rgba(255, 250, 240, 0.74);
  background: rgba(255, 250, 240, 0.08);
}

.button:hover,
.button:focus-visible,
nav a:focus-visible,
.header-phone:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(227, 183, 64, 0.82);
  outline-offset: 3px;
}

.quote-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.quote-copy h2,
.section-heading h2 {
  max-width: 760px;
  font-size: clamp(1.55rem, 2.6vw, 2.7rem);
}

.quote-copy p {
  max-width: 580px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

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

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--moss-dark);
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(31, 37, 32, 0.22);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

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

.wide {
  grid-column: 1 / -1;
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
}

.consent input {
  min-height: auto;
  margin-top: 3px;
}

.form-photo-attachments {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(47, 93, 80, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.95), rgba(241, 246, 238, 0.78)),
    #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.form-photo-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.form-photo-copy strong {
  color: var(--moss-dark);
  font-size: 0.9rem;
  line-height: 1.15;
}

.form-photo-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.25;
}

.form-photo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 10px;
}

.form-photo-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--moss-dark);
  border-radius: 6px;
  background: var(--moss-dark);
  color: #fffaf0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 37, 32, 0.1);
}

.form-photo-button .upload-icon {
  display: block;
  width: 19px;
  height: 19px;
}

.form-photo-button:hover,
.form-photo-button:focus-visible {
  outline: 3px solid rgba(227, 183, 64, 0.82);
  outline-offset: 3px;
}

.form-photo-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.form-photo-preview {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-photo-item {
  width: min(100%, 232px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(31, 37, 32, 0.16);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(31, 37, 32, 0.06);
}

.form-photo-item img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 5px;
  object-fit: cover;
  background: rgba(47, 93, 80, 0.1);
}

.form-photo-item figcaption {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  line-height: 1.18;
}

.form-photo-item strong,
.form-photo-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-photo-item strong {
  color: var(--ink);
  font-size: 0.76rem;
}

.form-photo-item button {
  min-height: 28px;
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 93, 80, 0.1);
  color: var(--moss-dark);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.form-photo-item button:hover,
.form-photo-item button:focus-visible {
  background: var(--moss-dark);
  color: #fffaf0;
  outline: 2px solid rgba(227, 183, 64, 0.72);
  outline-offset: 2px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--moss);
  font-weight: 700;
}

.content-wrap {
  display: grid;
  gap: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.content-section {
  display: grid;
  grid-template-columns: minmax(0, 940px);
  justify-content: center;
  row-gap: 20px;
  padding: clamp(34px, 5vw, 58px) clamp(20px, 5vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.content-section h2 {
  max-width: 820px;
  font-size: clamp(1.75rem, 3vw, 3rem);
}

.content-section p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.content-image {
  width: min(100%, 860px);
  margin: 4px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--concrete);
  box-shadow: var(--shadow);
}

.content-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1731 / 909;
  object-fit: cover;
}

.content-section > p,
.content-section .check-list,
.content-section .area-grid,
.content-section .content-image,
.content-section .table-wrap,
.content-section .content-callout,
.content-section .tool-panel {
  grid-column: auto;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
}

.decision-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.decision-table caption {
  padding: 14px 16px 0;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

.decision-table th,
.decision-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.decision-table th {
  color: #fffaf0;
  background: var(--moss-dark);
  font-size: 0.9rem;
}

.decision-table td {
  color: var(--muted);
  font-weight: 600;
}

.decision-table tr:last-child td {
  border-bottom: 0;
}

.content-callout {
  max-width: 820px;
  padding: 18px 20px;
  border-left: 5px solid var(--safety);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.content-callout strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.28rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.content-callout p {
  margin-top: 8px;
}

.tool-panel {
  width: min(100%, 900px);
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.tool-header {
  display: grid;
  gap: 8px;
}

.tool-header h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.tool-header p {
  max-width: 720px;
}

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

.photo-check-item {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  min-height: 230px;
  padding: 14px;
  border: 1px solid rgba(31, 37, 32, 0.18);
  border-radius: var(--radius);
  background: rgba(247, 241, 231, 0.72);
  color: var(--ink);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.photo-check-item:hover,
.photo-check-item:focus-within {
  border-color: rgba(47, 93, 80, 0.54);
  box-shadow: 0 12px 32px rgba(31, 37, 32, 0.08);
}

.photo-check-item[data-has-photo="true"] {
  border-color: rgba(47, 93, 80, 0.72);
  background: rgba(47, 93, 80, 0.08);
}

.photo-check-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.photo-check-item strong {
  color: var(--moss-dark);
  font-size: 1rem;
  line-height: 1.2;
}

.photo-check-item small {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.42;
}

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

.upload-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(31, 37, 32, 0.24);
  border-radius: 6px;
  background: #fff;
  color: var(--moss-dark);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.upload-icon {
  display: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-action:hover,
.upload-action:focus-visible {
  outline: 3px solid rgba(227, 183, 64, 0.82);
  outline-offset: 3px;
}

.photo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.photo-upload-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

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

.photo-preview-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.photo-preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-preview-grid figcaption {
  padding: 7px 8px 36px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.photo-remove {
  position: absolute;
  left: 7px;
  bottom: 7px;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid rgba(31, 37, 32, 0.2);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--moss-dark);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.tool-result {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(47, 93, 80, 0.24);
  border-radius: var(--radius);
  background: rgba(47, 93, 80, 0.07);
}

.tool-result strong {
  color: var(--moss-dark);
  font-size: 1.05rem;
}

.tool-result p {
  max-width: 760px;
  font-size: 0.98rem;
}

.tool-result ul {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

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

.button.ghost {
  color: var(--moss-dark);
  border-color: rgba(31, 37, 32, 0.2);
  background: #fff;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 54px;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.62);
  font-weight: 650;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--moss);
  border-bottom: 3px solid var(--moss);
  transform: rotate(-45deg);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.area-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf0;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.area-card:hover,
a.area-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(47, 93, 80, 0.52);
  box-shadow: 0 18px 48px rgba(31, 37, 32, 0.12);
}

.area-card strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.08;
}

.area-card p {
  margin-top: 18px;
  color: var(--muted);
}

.source-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding: 22px clamp(20px, 5vw, 72px);
  background: var(--paper-strong);
  color: var(--muted);
}

.source-note strong {
  color: var(--ink);
}

.source-note a {
  font-weight: 800;
  color: var(--moss-dark);
}

.process-band {
  padding: clamp(36px, 6vw, 68px) clamp(20px, 5vw, 72px);
}

.process-band {
  background: var(--paper-strong);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
  background: transparent;
}

.process-list li {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
}

.process-list strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  line-height: 1;
}

.process-list span {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 28px;
  padding: 34px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: #fffaf0;
}

.site-footer p {
  max-width: 720px;
  margin: 8px 0 0;
  color: rgba(255, 250, 240, 0.72);
}

.fine-print {
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: start;
  justify-content: end;
}

.footer-links a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .top-intake,
  .content-section {
    grid-template-columns: 1fr;
  }

  .quote-card {
    max-width: 760px;
  }

  .content-section > p,
  .content-section .check-list,
  .content-section .area-grid,
  .content-section .content-image,
  .content-section .table-wrap,
  .content-section .content-callout,
  .content-section .tool-panel {
    grid-column: auto;
  }

  .area-grid,
  .process-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    padding: 12px 14px;
    gap: 10px;
  }

  .header-phone {
    display: none;
  }

  nav a {
    min-height: 34px;
    font-size: 0.82rem;
  }

  nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex-wrap: wrap;
    justify-content: start;
    overflow: visible;
  }

  nav a {
    min-width: 0;
    padding-inline: 6px;
    white-space: normal;
  }

  .top-intake {
    width: 100vw;
    max-width: 100vw;
    gap: 22px;
    padding: 24px 18px 32px;
    overflow: hidden;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2rem, 8vw, 2.8rem);
    overflow-wrap: break-word;
  }

  .top-copy > p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .top-intake,
  .content-section,
  .process-band {
    max-width: 100vw;
    padding-left: 18px;
    padding-right: 18px;
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 0;
  }

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

  .form-photo-controls {
    justify-content: stretch;
  }

  .form-photo-button {
    width: 100%;
  }

  .form-photo-status {
    width: 100%;
    text-align: center;
  }

  .form-photo-item {
    width: 100%;
  }

  .top-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .top-points li {
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .wide {
    grid-column: auto;
  }

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

  .photo-checklist-grid {
    grid-template-columns: 1fr;
  }

  .photo-check-item {
    min-height: auto;
  }

  .photo-upload-actions {
    display: flex;
  }

  .upload-action {
    width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 999px;
    color: #fffaf0;
    background: var(--moss-dark);
    border-color: var(--moss-dark);
  }

  .upload-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .upload-icon {
    display: block;
  }

  .tool-actions .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }
}
