/* ZachBuildsSites — homepage styles */

/* ---------- Fonts (self-hosted, latin subset, SIL Open Font License) ---------- */

@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-var.woff2') format('woff2');
  font-weight: 800 900;
  font-stretch: 62% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('assets/fonts/atkinson-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('assets/fonts/atkinson-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/plexmono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1C2B3A;
  --navy-hover: #2C4157;
  --paper: #F5F5F1;
  --yellow: #F2C230;
  --chalk: #D9E2EA;
  --photo-bg: #C5D1DC;
  --slate: #4A5663;
  --slate-dark: #33424F;
  --slate-deep: #27384A;
  --on-navy: #C9D3DC;
  --rule-dashed: #9AA5B0;
  --rule-dotted: #C3CAD1;
  --rule-header: #E2E4E0;
  --rule-footer: #D5D8D2;
  --error-bg: #FBE3DE;
  --white: #FFFFFF;

  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --content: 1160px;
  --gutter: 20px;
  --section-y: clamp(64px, 9vw, 112px);
  --inset: clamp(20px, 3.5vw, 40px);
  --header-h: 66px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--navy);
  accent-color: var(--navy);
}

::selection { background: var(--yellow); color: var(--navy); }

a {
  color: var(--navy);
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
a:hover { color: #000; text-decoration-color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
.band-navy :focus-visible { outline-color: var(--yellow); }

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
input, textarea, button { font: inherit; }

.mono { font-family: var(--font-mono); }

.wrap {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 50;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 16px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.anchor-top { position: absolute; top: 0; }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-stretch: 66%;
  font-weight: 900;
  text-transform: uppercase;
  text-wrap: balance;
}
.display--h1 {
  font-size: clamp(52px, 8.4vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.005em;
}
.display--h2 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 0.95;
}
.display--h3 {
  font-stretch: 70%;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
}

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-wrap: balance;
}
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--dark { color: var(--slate-dark); }

.highlight {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--slate);
  text-wrap: pretty;
}

/* ---------- Buttons & links ---------- */

.btn-navy {
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background-color 200ms ease-out;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.btn-navy:hover { background: var(--navy-hover); color: var(--white); }

.btn-yellow {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  padding: 16px 24px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  box-shadow: 0 2px 0 var(--navy);
  cursor: pointer;
  transition: transform 150ms ease-out;
}
.btn-yellow:hover { transform: translateY(-2px); color: var(--navy); }
.btn-yellow:active { transform: translateY(1px); }
.btn-yellow:disabled { cursor: progress; opacity: 0.75; transform: none; }
.btn-yellow--block { width: 100%; }

.text-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  padding: 16px 8px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 245, 241, 0.96);
  border-bottom: 1px solid var(--rule-header);
}
.site-header__inner {
  padding-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 9px;
  margin-block: -9px;
}
.wordmark:hover { color: var(--navy); }
.wordmark__block {
  background: var(--yellow);
  padding: 0 4px;
  margin: 0 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav__link {
  font-size: 16px;
  text-decoration: none;
  padding-block: 12px;
  margin-block: -12px;
}
.site-nav__link:hover { text-decoration: underline; text-decoration-color: var(--yellow); }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.hero__intro {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--slate);
  max-width: 34em;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero__trust {
  font-size: 15px;
  color: var(--slate);
}

.hero__slip-wrap {
  display: flex;
  justify-content: center;
  min-width: 0;
  padding-top: 24px; /* room for the sticker when stacked */
}

/* Work order slip */
.slip {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 4px;
  box-shadow: 8px 8px 0 var(--navy);
  transform: rotate(1.2deg);
  display: flex;
  flex-direction: column;
}
.slip__head {
  font-size: 13px;
  color: var(--slate);
  padding: 16px 24px;
  border-bottom: 1px dashed var(--rule-dashed);
}
.slip__meta {
  padding: 18px 24px 6px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.slip__meta dt { color: var(--slate); }
.slip__meta dd { font-weight: 600; }

.slip__table {
  padding: 4px 24px 0;
  display: flex;
  flex-direction: column;
}
.slip__cols {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate);
  padding: 8px 0;
  border-bottom: 1px solid var(--navy);
}
.slip__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 11px 0;
  border-bottom: 1px dotted var(--rule-dotted);
}
.slip__name { font-size: 16px; font-weight: 700; }
.slip__price {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.slip__time {
  font-size: 12px;
  color: var(--slate);
  grid-column: 1 / -1;
}

.slip__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 10px 24px 0;
  padding: 14px 0 20px;
  border-top: 2px solid var(--navy);
}
.slip__foot-label {
  font-size: 13px;
  font-weight: 600;
}
.slip__foot-price {
  font-family: var(--font-display);
  font-stretch: 70%;
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.sticker {
  position: absolute;
  top: -30px;
  right: -14px;
  transform: rotate(8deg);
  white-space: nowrap;
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-stretch: 70%;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}
.section-head--wide { max-width: 680px; }

/* ---------- How it works ---------- */

.band-navy { background: var(--navy); color: var(--paper); }
.band-navy a { color: var(--paper); }

.how {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-top: 2px solid var(--yellow);
}
.step {
  padding: 28px 28px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__when {
  font-size: 15px;
  font-weight: 600;
  color: var(--yellow);
}
.step__title { font-size: 24px; font-weight: 700; }
.step__body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-navy);
  text-wrap: pretty;
}

/* ---------- Pricing ---------- */

.pricing {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.estimate {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 4px;
  box-shadow: 8px 8px 0 var(--yellow);
}
.estimate__cols,
.estimate__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 32px;
}
.estimate__cols {
  font-size: 13px;
  color: var(--slate);
  border-bottom: 2px solid var(--navy);
  padding: 16px var(--inset);
}
.estimate__rows { padding: 0 var(--inset); }
.estimate__row {
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px dashed var(--rule-dashed);
}
.estimate__row:last-child { border-bottom: 0; }
.estimate__what,
.estimate__cost {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.estimate__what { gap: 4px; }
.estimate__cost { gap: 2px; }
.estimate__name { font-size: 21px; font-weight: 700; }
.estimate__desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--slate);
  text-wrap: pretty;
}
.estimate__price {
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.estimate__time { font-size: 13px; color: var(--slate); }

@media (min-width: 720px) {
  .estimate__cols,
  .estimate__row { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 1060px) {
  .estimate__cols,
  .estimate__row { grid-template-columns: 2fr 1fr 1fr; }
}

.else-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  border-radius: 4px;
  padding: 24px var(--inset);
  transition: background-color 200ms ease-out;
}
.else-block:hover { background: var(--navy-hover); color: var(--paper); }
.else-block:focus-visible { outline-color: var(--navy); }
.else-block__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 420px;
  min-width: 0;
}
.else-block__title { font-size: 22px; font-weight: 700; }
.else-block__body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--on-navy);
  text-wrap: pretty;
}
.else-block__pill {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 17px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 2px solid var(--yellow);
}

.addons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}
.addons__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
}
.addons__intro {
  font-size: 17px;
  line-height: 1.55;
  color: var(--slate);
  text-wrap: pretty;
}
.addons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px 28px;
}
.addon {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0 4px;
  border-top: 2px solid var(--navy);
  min-width: 0;
}
.addon__name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.addon__price { font-size: 16px; font-weight: 600; }
.addon__time { font-size: 13px; color: var(--slate); }

.pricing__note {
  font-size: 15px;
  line-height: 1.55;
  color: var(--slate);
  max-width: 48em;
}

/* ---------- Why hire one person ---------- */

.band-chalk { background: var(--chalk); }

.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.why__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.why__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate-deep);
  max-width: 34em;
}
.why__body p { text-wrap: pretty; }

.signature {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}
.signature__photo {
  width: 140px;
  height: 175px;
  flex: 0 0 auto;
  border: 2px solid var(--navy);
  border-radius: 4px;
  overflow: hidden;
  background: var(--photo-bg);
  box-shadow: 6px 6px 0 var(--yellow);
}
.signature__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.signature__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.signature__name {
  font-family: var(--font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 24px;
}
.signature__role { font-size: 13px; color: var(--slate); }

.promises {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 4px;
  box-shadow: 8px 8px 0 var(--navy);
  padding: 8px clamp(20px, 3vw, 32px) 12px;
  min-width: 0;
}
.promises__head {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
  padding: 14px 0;
}
.promise {
  padding: 20px 0;
  border-top: 1px dashed var(--rule-dashed);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.promise__title { font-weight: 700; font-size: 22px; }
.promise__body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--slate-dark);
}

/* ---------- FAQ + areas served ---------- */

.faq-band { border-bottom: 1px solid var(--rule-footer); }

.faq {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.faq__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 28px clamp(36px, 6vw, 72px);
  align-items: end;
}
.faq__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.faq__intro .lede { max-width: 30em; }

.areas {
  border-top: 2px solid var(--navy);
  min-width: 0;
}
.areas__head {
  padding: 14px 0 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
}
.areas__list {
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate-deep);
  max-width: 34em;
  text-wrap: pretty;
}

.faq__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  column-gap: clamp(36px, 6vw, 72px);
}
.faq__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0 26px;
  border-top: 2px solid var(--navy);
  min-width: 0;
}
.faq__q { font-size: 21px; font-weight: 700; line-height: 1.3; }
.faq__a {
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate-deep);
  max-width: 38em;
  text-wrap: pretty;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.contact__intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 30em;
  text-wrap: pretty;
}
.contact__email {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 8px;
}
.contact__email-label { font-size: 15px; color: var(--slate); }
.contact__email-link {
  padding-block: 10px;
  margin-block: -10px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.next {
  margin-top: 16px;
  border-top: 2px solid var(--navy);
}
.next__head {
  padding: 14px 0 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
}
.next__row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--rule-dotted);
}
.next__row dt {
  font-size: 14px;
  font-weight: 600;
  padding-top: 2px;
}
.next__row dd {
  font-size: 17px;
  line-height: 1.5;
  color: var(--slate-deep);
}

/* Form */
.form {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 4px;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.form__pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
}
.field__input {
  border: 2px solid var(--rule-dashed);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 17px;
  font-weight: 400;
  background: var(--paper);
  color: var(--navy);
  outline: none;
  width: 100%;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.field__input--area { line-height: 1.5; resize: vertical; min-height: 7.5em; }
.field__input::placeholder { color: #66727E; opacity: 1; }
.field__input:focus {
  border-color: var(--navy);
  background: var(--white);
}
.field__input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.notice {
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  padding: 14px 16px;
  border-radius: 6px;
}
.notice[hidden] { display: none; }
.notice--ok { background: var(--chalk); }
.notice--err { background: var(--error-bg); font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule-footer); }
.site-footer__inner {
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--slate);
}
.site-footer__mark {
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--navy);
}
.site-footer__inner a {
  padding-block: 12px;
  margin-block: -12px;
}

/* ---------- Small screens ---------- */

@media (max-width: 520px) {
  :root { --header-h: 96px; }
  .site-header__inner { flex-wrap: wrap; row-gap: 10px; }
  .site-nav { gap: 18px; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Keep colour feedback, drop the movement. */
  .btn-yellow { transition: none; }
  .btn-yellow:hover, .btn-yellow:active { transform: none; }
}
