/* ===========================================================
   All Maintenance & Services LLC — Design System
   Palette:
     --denim   #1F2E3C  primary dark (header/footer/nav)
     --canvas  #EDE7DA  light background (raw canvas fabric)
     --wood    #4A3526  dark text / wood tones
     --rust    #B24A26  accent / calls to action
     --steel   #7C8790  borders, secondary text, dividers
     --ochre   #D9A62E  tape-measure yellow, sparing highlight
   Type:
     Display  — Barlow Condensed (bold, wide tracking, uppercase)
     Body     — Source Sans 3
     Utility  — IBM Plex Mono (phone numbers, addresses, measurements)
   Signature: the tape-measure ruler strip, used as a section divider
   and, on the quote page, as literal step markers instead of 01/02/03.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Source+Sans+3:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --denim: #1F2E3C;
  --denim-light: #2C4054;
  --canvas: #EDE7DA;
  --canvas-dim: #E2DACA;
  --wood: #4A3526;
  --rust: #B24A26;
  --rust-dark: #8F3A1D;
  --steel: #7C8790;
  --ochre: #D9A62E;
  --white: #FFFBF3;

  --display: 'Barlow Condensed', sans-serif;
  --body: 'Source Sans 3', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --radius: 3px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--wood);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--denim);
  margin: 0 0 0.4em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: 0.03em; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.9em;
}

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

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
:root {
  --header-bg: #6D9EEB;
}
.site-header {
  background: var(--header-bg);
  color: var(--denim);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--rust);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  color: var(--denim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.logo-mark {
  height: 56px;
  width: auto;
  flex: none;
  display: block;
}
.logo-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
}
.logo-text small {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--denim);
  font-weight: 600;
  margin-top: 4px;
  display: block;
  max-width: 250px;
  white-space: normal;
  line-height: 1.35;
  text-transform: none;
}
@media (max-width: 480px) {
  .logo-text { display: none; }
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--denim);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover { border-color: var(--ochre); }
nav.main-nav a[aria-current="page"] { border-color: var(--rust); color: var(--wood); }

.nav-call {
  background: var(--rust);
  color: var(--white) !important;
  padding: 9px 16px !important;
  border-radius: var(--radius);
  border-bottom: none !important;
  font-family: var(--mono) !important;
  letter-spacing: 0.02em !important;
}
.nav-call:hover { background: var(--rust-dark); border-color: transparent !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--denim);
  color: var(--denim);
  padding: 8px 10px;
  border-radius: var(--radius);
  font-family: var(--mono);
  cursor: pointer;
}

@media (max-width: 800px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--header-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 3px solid var(--rust);
  }
  nav.main-nav.open { max-height: 400px; }
  nav.main-nav a { padding: 16px 24px; border-bottom: 1px solid rgba(0,0,0,0.12); }
  nav.main-nav a[aria-current="page"] { border-left: 4px solid var(--rust); }
  .nav-call { margin: 12px 24px; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Ruler / tape-measure divider (signature element) ---------- */
.ruler {
  --tick-color: var(--wood);
  position: relative;
  height: 34px;
  background: var(--white);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  background-image:
    repeating-linear-gradient(90deg,
      var(--tick-color) 0, var(--tick-color) 1px,
      transparent 1px, transparent calc(100% / 48));
  background-size: 100% 100%;
  background-position: 0 100%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.ruler::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 16px;
  background-image: repeating-linear-gradient(90deg,
    var(--tick-color) 0, var(--tick-color) 1px,
    transparent 1px, transparent calc(100% / 12));
  opacity: 0.55;
}
.ruler.on-dark { --tick-color: var(--canvas); background: var(--denim-light); border-color: var(--denim-light); }

.ruler-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--canvas);
  padding: 0 14px;
  width: max-content;
  margin: 0 auto;
  color: var(--rust);
  font-weight: 600;
}
.ruler.on-dark .ruler-label { background: var(--denim); color: var(--ochre); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dark); }
.btn-outline { background: transparent; border-color: var(--denim); color: var(--denim); }
.btn-outline:hover { background: var(--denim); color: var(--white); }
.btn-outline.on-dark { border-color: var(--canvas); color: var(--canvas); }
.btn-outline.on-dark:hover { background: var(--canvas); color: var(--denim); }
.btn small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; opacity: 0.85; text-transform: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--canvas);
  position: relative;
  padding: 78px 0 64px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--wood) 0px, var(--wood) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(90deg, var(--wood) 0px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero h1 { color: var(--wood); }
.hero h1 span { color: var(--rust); }
.hero-lede { font-size: 1.15rem; max-width: 46ch; color: var(--denim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-panel {
  background: var(--denim);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}
.hero-panel .eyebrow { color: var(--ochre); }
.hero-panel h3 { color: var(--white); }
.radius-track {
  position: relative;
  height: 22px;
  margin: 14px 0 6px;
  background-image: repeating-linear-gradient(90deg, var(--canvas) 0, var(--canvas) 1px, transparent 1px, transparent calc(100%/40));
  border-bottom: 2px solid var(--canvas);
}
.radius-track span {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -60%);
  background: var(--rust);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.hero-panel ul { list-style: none; margin: 18px 0 0; padding: 0; }
.hero-panel li {
  padding: 9px 0 9px 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
  position: relative;
  font-size: 0.95rem;
}
.hero-panel li::before {
  content: "";
  position: absolute; left: 0; top: 17px;
  width: 12px; height: 2px; background: var(--ochre);
}

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.section-canvas-dim { background: var(--canvas-dim); }
.section-denim { background: var(--denim); color: var(--white); }
.section-denim h2 { color: var(--white); }
.section-denim .eyebrow { color: var(--ochre); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head p { color: var(--steel); font-size: 1.05rem; }
.section-denim .section-head p { color: #C9D2D9; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid #DCD4C2;
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card .tick {
  width: 8px; height: 22px; background: var(--rust); flex: none;
}
.card p:last-child { margin-bottom: 0; color: var(--denim); }

/* Service list with tick-mark bullets (functional: each tick = one trade) */
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #DCD4C2;
}
.service-list li:first-child { border-top: 1px solid #DCD4C2; }
.service-list .num {
  font-family: var(--mono);
  color: var(--rust);
  font-size: 0.85rem;
  flex: none;
  width: 3.2em;
}
.service-list h3 { margin-bottom: 4px; }
.service-list p { margin: 0; color: var(--denim); font-size: 0.98rem; }

/* Steps (quote page) — ruler ticks stand in for 1/2/3 numbering */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid #DCD4C2;
}
.step:first-child { border-top: none; }
.step-mark {
  font-family: var(--mono);
  color: var(--rust);
  font-size: 0.95rem;
  position: relative;
  padding-top: 4px;
}
.step-mark::before {
  content: "";
  display: block;
  width: 100%;
  height: 14px;
  margin-bottom: 8px;
  background-image: repeating-linear-gradient(90deg, var(--wood) 0, var(--wood) 1px, transparent 1px, transparent 8px);
}

/* ---------- Forms ---------- */
form { max-width: 640px; }
.field { margin-bottom: 20px; }
label {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--denim);
  margin-bottom: 7px;
}
input, textarea, select {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid #CFC6B2;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--wood);
}
input:focus, textarea:focus, select:focus { border-color: var(--rust); }
textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 0.85rem; color: var(--steel); margin-top: 6px; }
.checkline { display: flex; align-items: flex-start; gap: 10px; }
.checkline input { width: auto; margin-top: 4px; }
.checkline label { text-transform: none; font-family: var(--body); font-size: 0.95rem; letter-spacing: normal; margin: 0; }

.form-note {
  background: var(--canvas-dim);
  border-left: 4px solid var(--rust);
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.photo-note {
  background: var(--canvas-dim);
  border-left: 4px solid var(--ochre);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 4px 0 26px;
}
.photo-note h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.photo-note p { margin-bottom: 16px; color: var(--denim); font-size: 0.95rem; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  border: 1px solid #DCD4C2;
}
.tile-fill {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 10px);
}
.tile-cap {
  position: relative;
  padding: 14px 16px;
  width: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
}
.tile-cap .eyebrow { color: var(--ochre); margin-bottom: 2px; }
.tile-cap strong { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.05rem; }

.gallery-note {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--steel);
}

/* ---------- Testimonial / trust strip ---------- */
.trust-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--steel);
  border-top: 1px solid #DCD4C2;
  border-bottom: 1px solid #DCD4C2;
  padding: 18px 0;
}

blockquote {
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--denim);
  line-height: 1.3;
  max-width: 30ch;
}
blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--rust);
  letter-spacing: 0.04em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--wood);
  color: var(--white);
  padding: 56px 0;
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #E4D9C8; margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--denim);
  color: #C9D2D9;
  padding: 48px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
footer a { color: #C9D2D9; text-decoration: none; }
footer a:hover { color: var(--ochre); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 6px; }
