/*
Theme Name: Contractor Paperwork
Theme URI: https://contractor.automaite.ca
Author: Automaite
Description: A conversion-focused WordPress theme for contractor paperwork, change orders, lien waivers, scopes of work, and payment packets.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: contractor-paperwork
*/

:root {
  --ink: #18211d;
  --muted: #647067;
  --paper: #fffdf7;
  --panel: #ffffff;
  --line: #dfe5dd;
  --field: #f5f7f2;
  --brand: #1f6f50;
  --brand-dark: #154a38;
  --brand-soft: #d9f1e6;
  --warning: #b7642d;
  --blue: #345f8c;
  --gold: #e8bb55;
  --shadow: 0 18px 55px rgba(24, 33, 29, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap,
.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 19px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--ink);
}

.header-cta,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 17px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255,253,247,0.98) 0%, rgba(255,253,247,0.88) 42%, rgba(255,253,247,0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Crect width='1400' height='900' fill='%23d9dfd7'/%3E%3Cg fill='none' stroke='%2399a69d' stroke-width='3' opacity='.55'%3E%3Cpath d='M120 170h460v300H120zM185 235h330M185 300h330M185 365h250M720 150h420v530H720zM790 235h280M790 312h280M790 389h220M790 466h280M790 543h180'/%3E%3Cpath d='M600 625l360-360 115 115-360 360-150 35z'/%3E%3C/g%3E%3Cg fill='%231f6f50' opacity='.2'%3E%3Crect x='1040' y='610' width='210' height='42' rx='6'/%3E%3Crect x='180' y='505' width='260' height='42' rx='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero .section-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 42px;
  align-items: center;
  min-height: 760px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #cdd7cf;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-top: 20px;
  font-size: clamp(48px, 7vw, 86px);
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #39443d;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 720px;
}

.proof-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.proof-item strong {
  display: block;
  font-size: 15px;
}

.proof-item span {
  color: var(--muted);
  font-size: 13px;
}

.builder {
  padding: 20px;
  border: 1px solid #cfd9d2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.builder-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.builder-head h2 {
  font-size: 23px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.builder-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid #ccd5ce;
  border-radius: 7px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d8dfd9;
  border-radius: 8px;
  background: #fbfcf8;
}

.preview h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.preview dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.preview-row {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 10px;
  font-size: 14px;
}

.preview dt {
  color: var(--muted);
  font-weight: 800;
}

.preview dd {
  margin: 0;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.image-band {
  padding: 24px 0 72px;
  border-bottom: 1px solid var(--line);
  background: #eef3ee;
}

.image-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
}

.photo-card {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cbd5ce;
  border-radius: 8px;
  background: #d7ded8;
}

.photo-card.large {
  grid-row: span 2;
  min-height: 520px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(12, 20, 16, 0.78), rgba(12, 20, 16, 0));
}

.photo-card figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

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

.section-title h2 {
  max-width: 720px;
  font-size: clamp(34px, 5vw, 56px);
}

.section-title p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

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

.workflow,
.protection-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.workflow div,
.protection-steps div {
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workflow span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--brand);
  font-weight: 900;
}

.workflow strong,
.protection-steps strong {
  display: block;
  font-size: 18px;
}

.workflow p,
.protection-steps span {
  color: var(--muted);
  font-size: 14px;
}

.protection-panel {
  display: grid;
  gap: 26px;
}

.protection-panel h2 {
  max-width: 830px;
  margin-top: 16px;
  font-size: clamp(36px, 6vw, 64px);
}

.protection-panel p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.protection-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.protection-steps div {
  min-height: 180px;
}

.calc-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #ced9d2;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.calc-card h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.calc-card p {
  color: var(--muted);
}

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

.calc-result {
  display: grid;
  gap: 10px;
}

.calc-result div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7faf6;
}

.calc-result span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calc-result strong {
  text-align: right;
}

.split,
.esign-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 38px;
  align-items: center;
}

.visual-section {
  background: #f6f8f4;
}

.feature-photo {
  min-height: 430px;
}

.esign-panel {
  padding: 30px;
  border: 1px solid #ced9d2;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.esign-panel h2 {
  margin-top: 16px;
  font-size: clamp(32px, 5vw, 52px);
}

.esign-panel p {
  color: var(--muted);
  font-size: 18px;
}

.signature-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: #edf3ee;
}

.sig-doc {
  padding: 24px;
  border: 1px solid #cfd8d1;
  border-radius: 7px;
  background: #fff;
}

.sig-doc span {
  color: var(--brand);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}

.sig-doc strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.sig-doc p {
  font-size: 14px;
}

.sig-line {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid #9fafaa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sig-line.short {
  width: 72%;
}

.sig-status {
  display: grid;
  gap: 2px;
  padding: 16px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
}

.sig-status span {
  color: #c8d7d0;
}

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

.trade-grid a {
  min-height: 92px;
  display: flex;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #ecf3ee);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.trade-grid a:hover {
  border-color: var(--brand);
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card h3 {
  font-size: 22px;
}

.card p {
  color: var(--muted);
}

.search-cluster {
  margin-bottom: 28px;
}

.linked-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 174px;
  color: var(--ink);
  text-decoration: none;
}

.linked-card:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 34px rgba(24, 33, 29, 0.08);
}

.card ul,
.check-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.card li,
.check-list li {
  position: relative;
  padding-left: 24px;
}

.card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand);
}

.keyword-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #fff;
}

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

.keyword-table th {
  background: #edf3ee;
  font-size: 13px;
  text-transform: uppercase;
}

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

.price {
  display: grid;
  gap: 14px;
  align-content: start;
}

.price strong {
  font-size: 32px;
}

.site-footer {
  padding: 42px 0;
  background: var(--ink);
  color: #ecf3ee;
}

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

.widget-area {
  color: #d7e0d9;
}

.widget-area a {
  color: #fff;
}

.legal {
  margin-top: 26px;
  color: #b6c4bd;
  font-size: 13px;
}

.content-page {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0;
}

.content-page h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.content-page p,
.content-page li {
  color: #3f4a44;
  font-size: 18px;
}

@media (max-width: 960px) {
  .hero .section-inner,
  .card-grid,
  .pricing-grid,
  .footer-grid,
  .image-grid,
  .split,
  .esign-panel {
    grid-template-columns: 1fr;
  }

  .workflow,
  .protection-steps,
  .trade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-title {
    display: grid;
  }

  .nav-menu {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .section-inner,
  .content-page {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 46px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

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

  .photo-card.large,
  .feature-photo {
    min-height: 320px;
  }

  .workflow,
  .protection-steps,
  .calc-grid,
  .trade-grid {
    grid-template-columns: 1fr;
  }

  .calc-result div {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }
}
