/* Northline Home Repair — portfolio concept
   Palette: plaster, pine, tape-measure yellow */
:root {
  --plaster: #ECEEE8;
  --paper: #FFFFFF;
  --pine: #1F3B33;
  --pine-deep: #142822;
  --slate: #4D5B54;
  --tape: #F2C230;
  --line: #C9CFC7;
  --error: #A12B1F;
  --ok: #1E6B45;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;

  --wrap: 72rem;
  --radius-s: 4px;
  --radius-m: 10px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--pine-deep);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--pine);
}
h1 { font-weight: 800; font-size: clamp(2.25rem, 5.5vw, 4rem); letter-spacing: -.01em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-weight: 600; font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--pine); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--tape);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--pine);
  border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 46rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--tape); color: var(--pine-deep);
  padding: .6rem 1rem; z-index: 10; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Concept notice */
.concept-bar {
  background: var(--tape);
  color: var(--pine-deep);
  text-align: center;
  font-size: .9rem;
  padding: .5rem 1rem;
  font-weight: 700;
}

/* Header */
.site-header { background: var(--plaster); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.35rem; }
.logo-mark { width: 1.75rem; height: 1.75rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.nav-list a { text-decoration: none; font-weight: 700; }
.nav-list a:hover { text-decoration: underline; }
.nav-cta { background: var(--pine); color: var(--paper) !important; padding: .45rem .9rem; border-radius: var(--radius-s); }

@media (max-width: 640px) {
  .nav-list li:not(:last-child) { display: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  font: 700 1rem/1 var(--font-body);
  padding: .95rem 1.4rem;
  border-radius: var(--radius-s);
  text-decoration: none;
  border: 2px solid var(--pine);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--pine); color: var(--paper); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--paper); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }
.hero h1 { max-width: 14ch; }
.lead { font-size: 1.2rem; max-width: 36rem; color: var(--slate); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* The memorable thing: a tape-measure strip under the headline */
.ruler {
  height: 2.25rem;
  max-width: 34rem;
  margin: 1.5rem 0 1.75rem;
  background-color: var(--tape);
  background-image:
    repeating-linear-gradient(90deg, var(--pine-deep) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, var(--pine-deep) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--pine-deep) 0 1px, transparent 1px 8px);
  background-size: 100% 70%, 100% 45%, 100% 25%;
  background-repeat: no-repeat;
  background-position: 0 0;
  border-radius: 2px;
  box-shadow: inset 0 -3px 0 rgba(20, 40, 34, .15);
}

/* Work order card */
.work-order {
  background: var(--paper);
  border: 2px solid var(--pine);
  border-radius: var(--radius-m);
  padding: 1.5rem;
}
.wo-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.15rem; border-bottom: 2px dashed var(--line); padding-bottom: .75rem; }
.wo-head span { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--slate); border: 1px solid var(--line); border-radius: 99px; padding: .1rem .6rem; }
.work-order dl { margin: 0 0 1rem; }
.work-order dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--plaster); }
.work-order dt { color: var(--slate); }
.work-order dd { margin: 0; font-weight: 700; }
.wo-note { font-size: .92rem; color: var(--slate); margin: 0; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-intro { max-width: 40rem; color: var(--slate); margin-bottom: 2rem; }
.section-dark { background: var(--pine); color: #E7ECE8; }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-tint { background: var(--paper); }

/* Services: a plain two-column list, not cards */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--pine); }
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.services li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.services h3 { margin-bottom: .25rem; }
.services p { margin: 0; color: var(--slate); }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 3px solid var(--tape); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 2.5rem; line-height: 1; color: var(--tape); margin-bottom: .5rem; }
.steps p { margin: 0; }

/* Gallery placeholders */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  border: 2px dashed var(--slate);
  display: grid; place-items: center;
  color: var(--slate);
  background-color: var(--paper);
}
.ph::after { content: "Photo placeholder"; font-weight: 700; font-size: .95rem; }
.ph-a { background-image: linear-gradient(135deg, transparent 49.5%, var(--line) 49.5% 50.5%, transparent 50.5%); }
.ph-b { background-image: linear-gradient(45deg, transparent 49.5%, var(--line) 49.5% 50.5%, transparent 50.5%); }
.ph-c { background-image: linear-gradient(90deg, transparent 49.5%, var(--line) 49.5% 50.5%, transparent 50.5%); }
.gallery figcaption { margin-top: .6rem; font-weight: 700; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--pine); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: .25rem; top: .85rem;
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--pine);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--slate); padding-right: 2rem; }

/* Quote form */
.quote-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-alt { font-weight: 700; }
.muted { color: var(--slate); font-weight: 400; font-size: .92rem; }

.quote-form { background: var(--paper); border: 2px solid var(--pine); border-radius: var(--radius-m); padding: clamp(1.25rem, 4vw, 2rem); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--pine-deep);
  background: var(--paper);
  border: 2px solid var(--slate);
  border-radius: var(--radius-s);
  padding: .7rem .8rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--pine); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: .9rem; color: var(--slate); margin: .35rem 0 0; }
.error { font-size: .92rem; color: var(--error); font-weight: 700; margin: .35rem 0 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { margin: 1rem 0 0; font-weight: 700; min-height: 1.6em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }

/* Footer */
.site-footer { background: var(--pine-deep); color: #D5DDD8; padding: 2rem 0; font-size: .95rem; }
.site-footer strong { color: var(--paper); }
.footer-inner p { margin: 0 0 .4rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: left; padding: 4rem 0; }
