/* MPF Conservation marketing landing pages — shared styles
   Themes are set with body[data-theme="..."] */
:root {
  --cream: #f6f1e8;
  --cream-dark: #ece4d6;
  --paper: #fffaf2;
  --ink: #1d1812;
  --ink-soft: #4e463c;
  --muted: #6b6256;
  --line: #d8cdb8;
  --accent: #6b3a1f;
  --accent-dark: #3f2212;
  --accent-soft: #efe2d0;
  --max: 72rem;
  --wide: 80rem;
  --serif: Palatino, "Palatino Linotype", "Book Antiqua", "Times New Roman", Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 2px;
}

body[data-theme="finishes"] {
  --accent: #8a4a12;
  --accent-dark: #4d2808;
  --accent-soft: #f3e4d0;
}
body[data-theme="upholstery"] {
  --accent: #7a2e3a;
  --accent-dark: #3d161c;
  --accent-soft: #f3e4e6;
}
body[data-theme="heritage"] {
  --accent: #2f4a3c;
  --accent-dark: #16241d;
  --accent-soft: #dde8e1;
}
body[data-theme="furniture"] {
  --accent: #4a3426;
  --accent-dark: #261910;
  --accent-soft: #eadccb;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(246, 241, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.brand .wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.brand .tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  justify-content: flex-end;
}
.site-header nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-header nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: min(78vh, 44rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-media {
  margin: 0;
  min-height: 22rem;
  background: var(--accent-dark);
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.25rem;
  max-width: 38rem;
}
.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.lede {
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.btn {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fffaf2;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius);
}
.btn:hover { background: var(--accent-dark); color: #fff; }

.wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), calc(100% - 3rem)); margin-inline: auto; }

section { padding: 4.25rem 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}
.section-intro {
  max-width: 44rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.section-intro.center, .center { margin-left: auto; margin-right: auto; text-align: center; }

.columns { display: grid; gap: 2rem; }
.columns-2 { grid-template-columns: 1fr 1fr; }
.columns-3 { grid-template-columns: 1fr 1fr 1fr; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
}
.work-list li {
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 2px solid var(--accent);
}

.steps { display: grid; gap: 1.25rem; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem;
}
.step .num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: start;
}
.gallery picture {
  display: block;
  width: 100%;
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.gallery figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8e0d2;
}
.gallery figure.portrait img { aspect-ratio: 3 / 4; object-position: center top; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.wide img { aspect-ratio: 16 / 9; }
.gallery figcaption {
  padding: 0.7rem 0.85rem 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.why {
  background: var(--paper);
}
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.person {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
}
.person h3 { margin-bottom: 0.15rem; }
.person .role {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.credentials {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.5rem;
}
.credentials li {
  padding-left: 0;
}
.credentials strong { display: block; font-family: var(--serif); font-size: 1.05rem; }

.area p { max-width: 44rem; }

.appoint {
  background: var(--accent-dark);
  color: #f6f1e8;
  border-top: 0;
}
.appoint h2, .appoint a { color: #fffaf2; }
.appoint .section-intro { color: #e8dece; }
.appoint-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-card {
  background: rgba(255,250,242,0.07);
  border: 1px solid rgba(255,250,242,0.18);
  padding: 1.5rem 1.6rem;
}
.contact-card h3 { margin-bottom: 0.8rem; }
.contact-card p { margin: 0 0 0.65rem; }
.contact-card a { color: #fff; }
.phones { font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; }
.phones a { text-decoration: none; }
.note { font-size: 0.95rem; color: #e8dece; }

.more {
  background: var(--cream-dark);
}
.more-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.more-links a {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.more-links a:hover { border-color: var(--accent); color: var(--accent-dark); }
.more-links a span {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.site-footer {
  background: var(--ink);
  color: #d8cdb8;
  padding: 2.25rem 0 2rem;
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: grid;
  gap: 0.75rem;
}
.site-footer a { color: #f6f1e8; }
.site-footer .legal { color: #9d9284; font-size: 0.8rem; }

.tbd {
  display: inline;
  background: #f3ead0;
  border: 1px dashed #b8953a;
  border-radius: 2px;
  padding: 0.05em 0.32em;
  color: #5c4b00;
  font-size: 0.86em;
  font-style: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.appoint .tbd {
  background: rgba(255, 243, 191, 0.16);
  border-color: rgba(243, 230, 184, 0.5);
  color: #f3e6b8;
}
.site-footer .tbd {
  background: rgba(243, 234, 208, 0.12);
  border-color: rgba(184, 149, 58, 0.45);
  color: #d8c48a;
}

.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.page-404 .wrap { max-width: 36rem; padding: 4rem 0; }
.page-404 p { color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 18rem; max-height: 28rem; }
  .hero-copy { padding: 2rem 1.5rem 2.5rem; }
  .columns-2, .columns-3, .people, .appoint-grid, .credentials, .work-list {
    grid-template-columns: 1fr;
  }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure.wide { grid-column: span 2; }
  .site-header { flex-direction: column; align-items: flex-start; padding: 0.85rem 1.1rem; }
  .site-header nav { gap: 0.3rem 0.9rem; }
  .wrap, .wrap-wide { width: min(var(--max), calc(100% - 2.2rem)); }
  section { padding: 3rem 0; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: auto; }
  .phones { font-size: 1.25rem; }
  body { font-size: 1rem; }
}
