/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --ink: #24211d;
  --ink-soft: #4a453d;
  --paper: #f3efe6;
  --paper-alt: #eae3d2;
  --line: #d9d2c2;
  --paper-on-dark: #f6f3ec;

  --brand: #2a3f63;     /* WM Painting signature color -- buttons, links, logo */
  --brand-dark: #1e2d47;

  --teal: #2f5c52;      /* Residential */
  --rust: #b5482f;      /* Commercial */
  --ochre: #c99a3b;     /* Exterior */
  --slate: #3d5a73;     /* Interior */

  --teal-dark: #23473f;
  --rust-dark: #8f3a25;
  --ochre-dark: #a97f2e;
  --slate-dark: #2f4759;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Libre Franklin", "Segoe UI", sans-serif;

  --radius: 3px;
  --container: 72rem;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::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; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; max-width: 62ch; }
p.lede { font-size: 1.2rem; color: var(--ink-soft); }

a { color: var(--brand); }
a:not([class]) { text-decoration-thickness: 1px; text-underline-offset: 2px; }

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

ul { padding-left: 0; list-style: none; margin: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-alt { background: var(--paper-alt); }

/* ============================================================
   Swatch strip -- the recurring color-code motif
   ============================================================ */
.swatch-strip {
  display: flex;
  gap: 6px;
}
.swatch-strip .chip {
  width: 18px;
  height: 18px;
  border-radius: 2px;
}
.swatch-strip.chip--lg .chip { width: 28px; height: 28px; }
.chip.teal { background: var(--teal); }
.chip.rust { background: var(--rust); }
.chip.ochre { background: var(--ochre); }
.chip.slate { background: var(--slate); }

.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  padding: 0.15em 0.6em;
  border-radius: 2px;
  color: var(--paper);
}
.tag.teal { background: var(--teal); }
.tag.rust { background: var(--rust); }
.tag.ochre { background: var(--ochre); color: var(--ink); }
.tag.slate { background: var(--slate); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  display: inline-block;
  padding: 0.7em 1.4em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid {
  background: var(--brand);
  color: var(--paper);
  border-color: var(--brand);
}
.btn-solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline.on-dark { color: var(--paper); border-color: var(--paper); }
.btn-outline.on-dark:hover { background: var(--paper); color: var(--ink); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  width: 44px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  transition: transform 0.15s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 4px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav > ul {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a[aria-current="page"] { color: var(--brand); }

.nav-toplevel {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-toplevel:hover { color: var(--brand); }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem;
  min-width: 12rem;
  box-shadow: 0 6px 14px rgba(36, 33, 29, 0.12);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 2px;
}
.dropdown li a:hover { background: var(--paper-alt); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > ul { flex-direction: column; gap: 0.2rem; align-items: stretch; }
  .main-nav ul li a { display: block; padding: 0.6rem 0; }
  .has-dropdown .dropdown {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 0.75rem;
  }
  .nav-cta { margin-top: 0.75rem; }
}

/* ============================================================
   Home page hero banner -- full-width, 1920:650, 2 swappable photo
   slides with the headline/CTA overlaid on top (text stays put,
   only the background photo changes)
   ============================================================ */
.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 650;
  min-height: 380px;
  overflow: hidden;
  color: var(--paper);
}
.hero-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  background-size: cover;
  background-position: center;
}
.hero-banner-slide.is-active { opacity: 1; visibility: visible; }
.hero-banner-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(36, 33, 29, 0.82) 0%,
    rgba(36, 33, 29, 0.55) 42%,
    rgba(36, 33, 29, 0.18) 68%,
    rgba(36, 33, 29, 0) 85%
  );
}
.hero-banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-banner-content h1 { color: var(--paper); max-width: 20ch; margin-bottom: 0.4em; }
.hero-banner-content .lede { color: rgba(246, 243, 236, 0.92); max-width: 38rem; margin-bottom: 1.4em; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.hero-banner-arrow:hover { background: var(--brand-dark); }
.hero-banner-prev { left: 16px; }
.hero-banner-next { right: 16px; }

.hero-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.hero-banner-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.hero-banner-dot.is-active { background: var(--brand); border-color: var(--brand); }

/* ============================================================
   Service hero band (used on the 4 service pages)
   ============================================================ */
.service-hero {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  color: var(--paper);
  background-size: cover;
  background-position: center;
}
.service-hero.teal { background-color: var(--teal); }
.service-hero.rust { background-color: var(--rust); }
.service-hero.slate { background-color: var(--slate); }
.service-hero.ochre { background-color: var(--ochre); color: var(--ink); }
.service-hero h1 { color: inherit; }
.service-hero .lede { color: inherit; opacity: 0.92; max-width: 46ch; }
.service-hero .tag { background: rgba(255, 255, 255, 0.22); color: inherit; margin-bottom: 0.9em; }
.service-hero.ochre .tag { background: rgba(36, 33, 29, 0.14); }

/* ============================================================
   Services grid (home page)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--card-color, var(--ink));
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.service-card:hover { border-color: var(--card-color, var(--ink)); }
.service-card-media { display: block; width: 100%; height: 110px; object-fit: cover; }
.service-card-body {
  padding: 1.3rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.1em; }
.service-card p { font-size: 0.98rem; margin-bottom: 0; color: var(--ink-soft); }
.service-card[data-color="teal"] { --card-color: var(--teal); }
.service-card[data-color="rust"] { --card-color: var(--rust); }
.service-card[data-color="ochre"] { --card-color: var(--ochre); }
.service-card[data-color="slate"] { --card-color: var(--slate); }

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Why-us list
   ============================================================ */
.proof-list { display: grid; gap: 1.4rem; max-width: 46rem; }
.proof-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.proof-item .chip { flex-shrink: 0; margin-top: 0.4em; }
.proof-item h3 { margin-bottom: 0.15em; font-size: 1.15rem; }
.proof-item p { margin-bottom: 0; color: var(--ink-soft); }

/* ============================================================
   Process steps (real sequence -- numbering earned)
   ============================================================ */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process-step { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1rem; }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
  margin-bottom: 0.2rem;
}
.process-step p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0; }
@media (max-width: 780px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Feature list (service pages -- "what's included")
   ============================================================ */
.feature-list { display: grid; gap: 0.75rem; max-width: 52rem; }
.feature-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .chip { flex-shrink: 0; margin-top: 0.5em; }

/* ============================================================
   Two-column layout helper
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--ink);
  color: var(--paper);
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #cfc9bb; }
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ============================================================
   Forms
   ============================================================ */
.form-grid { display: grid; gap: 1.1rem; max-width: 36rem; }
.form-row { display: grid; gap: 0.35rem; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) {
  .form-row.two { grid-template-columns: 1fr; }
}
label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65em 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--slate); }
textarea { resize: vertical; min-height: 8rem; }
.form-status {
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.ok { border-color: var(--teal); color: var(--teal); }
.form-status.err { border-color: var(--rust); color: var(--rust); }

.contact-info { display: grid; gap: 1.4rem; }
.contact-info dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.contact-info dd { margin: 0.15rem 0 0; font-size: 1.15rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink-soft);
  color: var(--paper-on-dark);
  padding-block: 3rem;
}
.footer-logo {
  height: 72px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}
.site-footer a { color: var(--paper-on-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-grid h3 { color: var(--paper-on-dark); font-size: 1rem; }
.footer-grid ul { display: grid; gap: 0.5rem; }
.footer-grid p { color: #b9b3a4; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #3a362f;
  font-size: 0.9rem;
  color: #9d9684;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Misc page bits
   ============================================================ */
.eyebrow-free { /* placeholder hook, intentionally unused: no tracked-out eyebrow labels */ }
.page-hero {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.faq-item { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 0.4em; }
.faq-item p { margin-bottom: 0; color: var(--ink-soft); }

.about-photo-section { padding-block: 0 clamp(1rem, 3vw, 2rem); }
.about-photo {
  display: block;
  width: 100%;
  height: clamp(160px, 22vw, 260px);
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================================
   Portfolio ("Our Work")
   ============================================================ */
.portfolio-section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.portfolio-section:first-child { margin-top: 0; }
.portfolio-section-head { display: flex; align-items: baseline; gap: 0.7rem; }
.portfolio-section-head h2 { margin-bottom: 0; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (max-width: 700px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}
.portfolio-media { display: block; width: 100%; height: 150px; object-fit: cover; }

/* Reusable striped placeholder fill -- stands in for a project photo
   until real photos are available; swap the element for an <img> then. */
.stripe-teal,
.stripe-rust,
.stripe-ochre,
.stripe-slate,
.stripe-brand { background-repeat: repeat; }
.stripe-teal { background-image: repeating-linear-gradient(135deg, var(--teal) 0 22px, var(--teal-dark) 22px 44px); }
.stripe-rust { background-image: repeating-linear-gradient(135deg, var(--rust) 0 22px, var(--rust-dark) 22px 44px); }
.stripe-ochre { background-image: repeating-linear-gradient(135deg, var(--ochre) 0 22px, var(--ochre-dark) 22px 44px); }
.stripe-slate { background-image: repeating-linear-gradient(135deg, var(--slate) 0 22px, var(--slate-dark) 22px 44px); }
.stripe-brand { background-image: repeating-linear-gradient(135deg, var(--brand) 0 22px, var(--brand-dark) 22px 44px); }

.portfolio-body { padding: 1rem 1.15rem 1.2rem; }
.portfolio-body h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.portfolio-body p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.3em; }
.portfolio-meta { font-size: 0.85rem; color: var(--ink-soft); }
.portfolio-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.1rem 1.3rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
