/* ============================================
   Echo Paintworks — shared styles
   Tokens
   ============================================ */
:root {
  --ink: #14140f;
  --ink-soft: #1d1d17;
  --paper: #f5f2ea;
  --paper-dim: #ece7db;
  --lake: #2e4a4a;
  --lake-light: #587d7d;
  --stone: #5c584b;
  --stone-light: #b9b4a4;
  --line: rgba(20, 20, 15, 0.14);
  --line-on-ink: rgba(245, 242, 234, 0.22);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--stone);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.eyebrow-line .rule { width: 34px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-dark { color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--paper); }
.btn-light { color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-fill {
  background: var(--lake);
  color: var(--paper);
  border-color: var(--lake);
}
.btn-fill:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 34px; width: auto; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
}
.brand-word .thin { font-weight: 400; }

nav.links {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.links a {
  font-size: 0.98rem;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
}
nav.links a.active { color: var(--lake); }
nav.links a:hover { color: var(--lake); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 96px 0 84px;
}
.hero-mountain {
  position: absolute;
  right: -6%;
  top: 8%;
  width: 62%;
  max-width: 780px;
  opacity: 0.14;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 22px; }
.hero p.lede { font-size: 1.18rem; color: var(--stone-light); margin-bottom: 34px; max-width: 46ch; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-line-top { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 20ch; }
.section-head p { color: var(--stone); margin: 0; max-width: 40ch; }
.section-dark .section-head p { color: var(--stone-light); }

/* ---------- Grid helpers ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

/* ---------- Service / feature cell (no card chrome — divider-based) ---------- */
.cell { padding-top: 26px; border-top: 1px solid var(--line); }
.section-dark .cell { border-top: 1px solid var(--line-on-ink); }
.cell h3 { font-size: 1.28rem; margin-bottom: 10px; }
.cell p { color: var(--stone); font-size: 0.98rem; }
.section-dark .cell p { color: var(--stone-light); }

/* ---------- Service rows (with photo) ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: none; padding-top: 0; }
.service-row.reverse .service-photo { order: 2; }
.service-row.reverse .service-text { order: 1; }
.service-text h3 { font-size: 1.5rem; margin-bottom: 14px; }
.service-text p { color: var(--stone); }

/* ---------- Before/After ---------- */
.ba-pair {
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.ba-pair:first-of-type { padding-top: 0; }
.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 16px;
  position: relative;
}
.ba-tile {
  aspect-ratio: 4/3;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ba-tile .tile-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 30%;
  transform: translate(-50%, -60%);
  opacity: 0.15;
}
.ba-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 2;
}
.ba-caption h4 { font-size: 1.05rem; margin-bottom: 4px; }
.ba-caption p { color: var(--stone); font-size: 0.9rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.tile {
  aspect-ratio: 4/3;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.tile .tile-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 34%;
  transform: translate(-50%, -60%);
  opacity: 0.18;
}
.tile .tile-cap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--stone);
  background: linear-gradient(to top, rgba(245,242,234,0.92), rgba(245,242,234,0));
}

/* ---------- Story block ---------- */
.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-quote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
}
.story-quote .lake-word { color: var(--lake); }

/* ---------- Contact / info list ---------- */
.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-row { display: flex; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.info-row .label { width: 120px; flex-shrink: 0; color: var(--stone); font-size: 0.92rem; }
.info-row .value { font-size: 1.05rem; }

/* ---------- Forms ---------- */
form.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
form.quote-form .field-full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.88rem;
  color: var(--stone);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--lake);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 120px; }
fieldset { border: none; padding: 0; margin: 0; }
.radio-row { display: flex; gap: 22px; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--ink); margin-bottom: 0; }
.radio-row input { width: auto; }

.form-note { color: var(--stone); font-size: 0.9rem; margin-top: 18px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--lake);
  color: var(--paper);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 22px; }
.cta-banner .wrap { display: flex; flex-direction: column; align-items: center; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: var(--stone-light);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-on-ink);
}
.footer-top img { height: 30px; margin-bottom: 16px; }
.footer-top p { color: var(--stone-light); font-size: 0.94rem; }
.footer-col h4 {
  font-family: var(--sans);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 10px; color: var(--stone-light); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--stone);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; gap: 34px; }
  .grid-2, .story-block { grid-template-columns: 1fr; gap: 34px; }
  .service-row { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .service-row.reverse .service-photo, .service-row.reverse .service-text { order: initial; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  form.quote-form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-row { padding: 16px 20px; }
  nav.links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 18px;
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .hero-mountain { width: 90%; opacity: 0.10; }
  section { padding: 56px 0; }
  .cta-banner { padding: 48px 0; }
}

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