/* Wheat Electric & Controls
   Charcoal shop, warm paper, one wheat-gold accent. */

:root {
  --ink: #1a1916;
  --char: #23211d;
  --char-2: #2f2c27;
  --paper: #f3efe6;
  --paper-2: #e7e0d1;
  --paper-3: #ddd4c3;
  --wheat: #c9a56a;
  --wheat-deep: #a67c42;
  --copper: #8c6239;
  --muted: #534f48;
  --muted-on-dark: #b7b0a4;
  --line: #d4cbb8;
  --line-dark: #3d3a34;
  --focus: #c9a56a;
  --danger: #8a3a2a;
  --header-h: 4.25rem;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --max: 68rem;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--copper);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--wheat-deep); }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--wheat);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.35rem;
}


/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--char);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem var(--space);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand nav cta";
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.wordmark {
  grid-area: brand;
  text-decoration: none;
  color: var(--paper);
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.wordmark:hover { opacity: 0.92; }

.wordmark-logo {
  display: block;
  height: 3.4rem;
  width: auto;
  max-width: min(17rem, 48vw);
  object-fit: contain;
}

.wordmark-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

.wordmark-sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  grid-area: toggle;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--wheat); color: var(--wheat); }

.site-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  justify-content: center;
}

.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--wheat); }

.site-nav a[aria-current="page"] {
  color: var(--wheat);
  border-bottom-color: var(--wheat);
}

.header-cta {
  grid-area: cta;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

a.phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wheat);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

a.phone-btn:hover,
a.phone-btn:focus-visible {
  background: #d4b37c;
  color: var(--ink);
}

.license-stamp {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  font-weight: 700;
}

@media (max-width: 52rem) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "brand cta toggle"
      "nav nav nav";
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.25rem 0 0.5rem;
    border-top: 1px solid var(--line-dark);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.55rem 0;
    width: 100%;
    border-bottom: 1px solid var(--line-dark);
  }
}

@media (max-width: 42rem) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand brand"
      "cta toggle"
      "nav nav";
  }
  .wordmark { overflow: hidden; }
  .wordmark-logo { height: 2.55rem; max-width: 16.5rem; }
  .header-cta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
  }
  .license-stamp { display: none; }
  .site-nav { width: 100%; }
  .site-nav a { text-align: left; }
}

@media (max-width: 28rem) {
  .wordmark-logo { height: 2.35rem; max-width: 15rem; }
  .wordmark-name { font-size: 1rem; }
  .phone-btn { font-size: 0.82rem; padding: 0.38rem 0.55rem; }
}

/* ----- Layout ----- */
main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.28rem);
  max-width: 38rem;
  color: var(--muted);
  margin: 0;
}

.kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wheat-deep);
  margin-bottom: 0.55rem;
}

.section {
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem);
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

.prose {
  max-width: 40rem;
}

.prose p { margin: 0 0 1rem; }

.prose p:last-child { margin-bottom: 0; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 2rem;
}

/* ----- Homepage chooser ----- */
.home-hero {
  padding: clamp(1.75rem, 4.5vw, 3rem) 0 1.25rem;
}

.positioning {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 1.2rem + 2.2vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 0.6rem;
}

.positioning-sub {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
}

.doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 48rem) {
  .doors {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
    min-height: 22rem;
  }
}

.door {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 16.5rem;
  padding: 1.5rem 1.5rem 1.35rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.door::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--wheat);
}

.door h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.3rem + 1vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--paper);
}

.door p {
  margin: 0 0 1.15rem;
  color: var(--muted-on-dark);
  max-width: 28ch;
}

.door-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 0.35rem;
}

.door-go {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--wheat);
  letter-spacing: 0.04em;
}

.door:hover .door-go,
.door:focus-visible .door-go {
  text-decoration: underline;
}

.door--plant {
  background: var(--char);
  color: var(--paper);
}

.door--home {
  background: var(--char-2);
  color: var(--paper);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding: 1rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.meta-row strong {
  color: var(--ink);
  font-weight: 700;
}

/* ----- Work lists ----- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 44rem) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}

.work-item {
  padding: 1.15rem 1.15rem 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 44rem) {
  .work-item:nth-child(odd) { padding-right: 1.5rem; }
  .work-item:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}

.work-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.work-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.quiet-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.quiet-list li {
  padding: 0.28rem 0 0.28rem 1rem;
  position: relative;
}

.quiet-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--wheat-deep);
}

/* ----- Photo slots (no stock photos) ----- */
.photo-slot {
  background: #2a2824;
  color: var(--muted-on-dark);
  min-height: 12rem;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 1.5rem 0 0;
}

.photo-slot figcaption {
  margin: 0;
  color: var(--wheat);
  font-size: 0.8rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 50rem) {
  .split {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.callout {
  background: var(--char);
  color: var(--paper);
  padding: 1.35rem 1.4rem;
}

.callout p { margin: 0 0 0.75rem; color: var(--muted-on-dark); }
.callout p:last-child { margin: 0; }
.callout a:not(.phone-btn) { color: var(--wheat); }
.callout .phone-btn { margin-top: 0.35rem; }

/* ----- Reviews ----- */
.reviews {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .reviews { grid-template-columns: 1fr 1fr; }
}

.review {
  background: var(--paper-2);
  padding: 1.2rem 1.25rem 1.1rem;
  border-top: 3px solid var(--wheat);
}

.review blockquote {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  quotes: none;
}

.review footer {
  font-size: 0.85rem;
  color: var(--muted);
}

.review cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.google-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ----- Towns / map ----- */
.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.town-list li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.map-board {
  background: #2a2824;
  color: var(--paper);
  min-height: 18rem;
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
}

.map-board .map-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
  margin: 0 0 1rem;
}

.map-schematic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 2.4rem);
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.map-pin {
  color: var(--muted-on-dark);
  align-self: center;
}

.map-pin.is-home {
  color: var(--wheat);
}

.map-pin.is-home::before {
  content: "★ ";
}

@media (max-width: 40rem) {
  .map-schematic {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 50rem) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
}

.contact-facts h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.contact-facts p { margin: 0 0 1.15rem; }

.contact-facts a.phone-xl {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.contact-facts a.phone-xl:hover { color: var(--wheat-deep); }

form.contact-form {
  display: grid;
  gap: 0.85rem;
  background: var(--paper-2);
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  width: 100%;
}

.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--wheat-deep);
}

.form-status {
  margin: 0;
  padding: 0.7rem 0.8rem;
  background: var(--char);
  color: var(--wheat);
  font-weight: 600;
}

.form-status[hidden] { display: none; }

.btn {
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  border-radius: var(--radius);
  width: fit-content;
}

.btn:hover { background: var(--char-2); }

.tbd {
  font-size: 0.85em;
  color: var(--wheat-deep);
  font-weight: 600;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--char);
  color: var(--muted-on-dark);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.92rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer a { color: var(--wheat); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
  margin: 0 0 0.55rem;
  font-weight: 700;
}

.site-footer p { margin: 0 0 0.35rem; }

.footer-license {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
  font-size: 0.82rem;
}


.door:hover,
.door:focus-visible {
  border-color: var(--wheat);
}

@media (min-width: 48rem) {
  .door { min-height: 22rem; }
}

.btn:focus-visible,
.phone-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

noscript.form-noscript {
  margin: 0;
  padding: 0.7rem 0.8rem;
  background: var(--char);
  color: var(--wheat);
  font-weight: 600;
}

/* ----- Job photos and door frames (first-run) ----- */
.door {
  padding: 0;
  justify-content: flex-start;
  min-height: 0;
}

.door-photo {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #1a1916;
}

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

.door-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.35rem 1.3rem 1.5rem;
  position: relative;
  z-index: 1;
}

.door::after {
  z-index: 2;
}

.door--plant .door-photo img {
  object-position: 48% 38%;
  filter: saturate(0.86) contrast(1.05);
}

.door--plant .door-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(to bottom, transparent, var(--char));
  pointer-events: none;
}

.door--home {
  background: #efe6d4;
  color: var(--ink);
  border-color: #cfc4b0;
}

.door--home h2 { color: var(--ink); }
.door--home p { color: var(--muted); }
.door--home .door-kicker { color: var(--wheat-deep); }
.door--home .door-go { color: var(--copper); }

.door--home .door-photo {
  margin: 0.65rem 0.65rem 0 0.7rem;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: #d8cebc;
}

.door--home .door-photo img {
  object-position: 46% 32%;
  filter: saturate(0.94);
}

.door--home:hover,
.door--home:focus-visible {
  border-color: var(--wheat-deep);
}

.photo-grid,
.photo-pair,
.stack-photos {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 44rem) {
  .photo-grid,
  .photo-pair {
    grid-template-columns: 1fr 1fr;
  }
  .photo-grid .photo-frame--lead {
    grid-column: 1 / -1;
  }
}

.photo-frame {
  margin: 0;
  background: #2a2824;
  color: var(--muted-on-dark);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-frame--lead img {
  width: 100%;
  max-height: 36rem;
  object-fit: cover;
  object-position: center 42%;
}

.photo-frame figcaption {
  margin: 0;
  padding: 0.62rem 0.85rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted-on-dark);
}

.photo-frame--flir {
  max-width: 18rem;
  margin-top: 1.35rem;
}

.photo-frame--flir img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #050505;
}

.stack-photos .callout {
  margin-top: 0.15rem;
}

@media (min-width: 48rem) {
  .door,
  .doors {
    min-height: 0;
  }
}

@media (max-width: 40rem) {
  .door-photo { aspect-ratio: 16 / 11; }
  .door--home .door-photo { aspect-ratio: 5 / 4; }
  .photo-frame--lead img { max-height: 28rem; }
}

/* Phone button text must stay ink on gold at rest.
   .callout a used to set color wheat at (0,1,1), same weight as
   a.phone-btn and later in the file, so it painted the number the
   same gold as the button until :hover (a.phone-btn:hover is (0,2,1)).
   :not(.phone-btn) keeps that wheat color off this control.
   This block is last and more specific so it wins the cascade. */
a.phone-btn,
a.phone-btn:link,
a.phone-btn:visited,
a.phone-btn:hover,
a.phone-btn:focus,
a.phone-btn:focus-visible,
a.phone-btn:active,
.callout a.phone-btn,
.callout a.phone-btn:link,
.callout a.phone-btn:visited,
.callout a.phone-btn:hover,
.callout a.phone-btn:focus,
.callout a.phone-btn:focus-visible,
.callout a.phone-btn:active {
  color: #1a1916;
  -webkit-text-fill-color: #1a1916;
  background-color: #c9a56a;
  opacity: 1;
  text-indent: 0;
  font-size: 0.95rem;
}
a.phone-btn:hover,
a.phone-btn:focus-visible,
.callout a.phone-btn:hover,
.callout a.phone-btn:focus-visible {
  background-color: #d4b37c;
  color: #1a1916;
  -webkit-text-fill-color: #1a1916;
}
@media (max-width: 28rem) {
  a.phone-btn,
  .callout a.phone-btn {
    font-size: 0.82rem;
  }
}
