/* Maple Valley Supply
   Layout: 1104px column on warm paper, serif display headings, rounded cards, dark rounded CTA. */
:root {
  --paper: #f8f7f2;
  --band: #f2f0e9;
  --card: #fdfdf9;
  --line: #e4e2da;
  --forest: #12301f;
  --forest-2: #1d3a2b;
  --sage: #6e8e76;
  --mint: #dbe7db;
  --ghost: #ebeae3;
  --ink: #1b2a21;
  --muted: #59625b;
  --font-serif: "Newsreader", "Georgia", "Times New Roman", serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1104px;
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 500; color: var(--forest); text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); line-height: 1.06; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; }
h3 { font-size: 1.32rem; line-height: 1.3; letter-spacing: -0.005em; }

.wrap { max-width: calc(var(--max) + 48px); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 1.22rem; line-height: 1.6; color: var(--muted); max-width: 34em; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(248, 247, 242, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 70px; height: 28px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.22rem; color: var(--forest); letter-spacing: -0.01em; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.32em; font-weight: 600; color: var(--sage); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.98rem; color: var(--ink); opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--forest); }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; color: var(--forest); }
.nav .btn { opacity: 1; color: #fff; margin-left: 4px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--forest); }
.menu-toggle svg { width: 26px; height: 26px; display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--forest); color: #fff; border: 0; border-radius: 999px; padding: 13px 26px; font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(18, 48, 31, 0.16); transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--forest-2); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn-light { background: var(--paper); color: var(--forest); box-shadow: none; }
.btn-light:hover { background: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--forest); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link svg { width: 17px; height: 17px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

/* Page hero with ghost mountains */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 1; padding-block: 110px 110px; display: grid; gap: 22px; }
.page-hero h1 { max-width: 15em; }
.ghost-mark { position: absolute; right: 0; bottom: 0; width: min(46vw, 680px); height: auto; z-index: 0; pointer-events: none; }
.updated { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }

/* Home hero */
.home-hero { border-bottom: 1px solid var(--line); }
.home-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; padding-block: 96px; }
.home-hero .copy { display: grid; gap: 24px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 6px; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -20px rgba(18, 48, 31, 0.35); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.home-hero .photo { aspect-ratio: 4 / 5; max-width: 100%; }

/* Sections */
.section { padding-block: 96px; }
.section-band { background: var(--band); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 40em; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.icon-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--mint); color: var(--forest); display: grid; place-items: center; flex-shrink: 0; }
.icon-circle svg { width: 22px; height: 22px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px -18px rgba(18, 48, 31, 0.22); }
.card-grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.value-card { padding: 30px 28px; display: grid; gap: 14px; align-content: start; }
.value-card .icon-circle { margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 0.98rem; }
.pillar-card { padding: 26px 22px; display: grid; gap: 12px; align-content: start; }
.pillar-card h3 { font-size: 1.18rem; }
.pillar-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.grow-card { padding: 26px 26px; display: flex; gap: 18px; align-items: flex-start; }
.grow-card > div { min-width: 0; display: grid; gap: 6px; }
.grow-card h3 { font-size: 1.15rem; }
.grow-card p { color: var(--muted); font-size: 0.97rem; }

/* Detail rows */
.detail-list { border-top: 1px solid var(--line); }
.detail { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px 24px; align-items: start; padding-block: 34px; border-bottom: 1px solid var(--line); }
.detail h3 { padding-top: 8px; font-size: 1.35rem; }
.detail .body { color: var(--muted); padding-top: 8px; display: grid; gap: 12px; font-size: 0.98rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; color: #a9b2aa; margin-bottom: 8px; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 14px; padding: 16px 20px; font-size: 0.98rem; }
.check-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.check-dot svg { width: 15px; height: 15px; }

/* About story */
.story { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.story > * { min-width: 0; }
.story .photo { aspect-ratio: 4 / 5; }
.story-text { display: grid; gap: 20px; color: var(--muted); }
.story-text h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 4px; }
.pull { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.4; color: var(--forest); border-left: 2px solid var(--forest); padding-left: 22px; margin: 6px 0; }

/* CTA */
.cta-section { padding-block: 72px 96px; }
.cta { position: relative; overflow: hidden; background: var(--forest); color: #fff; border-radius: 28px; padding: 64px 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #f6f4ec; font-size: clamp(2rem, 4vw, 3.1rem); }
.cta p { color: #cfdad1; margin-top: 18px; max-width: 26em; }
.cta .ghost-cta { position: absolute; right: 60px; bottom: 0; width: 460px; height: auto; z-index: 0; opacity: 1; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: stretch; }
.contact-layout > * { min-width: 0; }
.email-card { background: var(--forest); color: #fff; border-radius: 28px; padding: 56px 56px; display: grid; gap: 18px; align-content: start; }
.email-card .mail-icon { width: 32px; height: 32px; color: #cfdad1; margin-bottom: 18px; }
.email-card h2 { color: #f6f4ec; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.email-card p { color: #cfdad1; }
.email-card .address { font-family: var(--font-serif); font-size: clamp(1.2rem, 2.1vw, 1.85rem); color: #f6f4ec; text-decoration: none; border-bottom: 2px solid var(--sage); justify-self: start; overflow-wrap: anywhere; margin-block: 16px 14px; line-height: 1.3; }
.email-card .btn { justify-self: start; }
.info-card { padding: 10px 32px; display: grid; }
.info-item { display: flex; gap: 20px; align-items: flex-start; padding-block: 30px; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item h3 { font-size: 1.3rem; margin-bottom: 4px; }
.info-item p { color: var(--muted); }

/* Policies */
.policy-layout { display: grid; grid-template-columns: 200px 1fr; gap: 56px; align-items: start; }
.policy-toc { position: sticky; top: 100px; display: grid; gap: 12px; }
.policy-toc a { text-decoration: none; color: var(--muted); font-size: 0.93rem; line-height: 1.4; }
.policy-toc a:hover { color: var(--forest); }
.policy-body { display: grid; gap: 52px; min-width: 0; max-width: 42em; }
.policy { display: grid; gap: 14px; scroll-margin-top: 100px; }
.policy h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.policy p, .policy li { color: var(--muted); }
.policy ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.policy a { color: var(--forest); text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--band); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer-top > * { min-width: 0; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 22em; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--forest); text-decoration: underline; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; align-content: start; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--forest); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 26px 32px; font-size: 0.85rem; color: var(--muted); }

.notfound .wrap { padding-block: 140px; }

/* Responsive */
@media (max-width: 1000px) {
  .cols-5 { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 48px minmax(0, 1fr); }
  .detail .body { grid-column: 2; padding-top: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .policy-layout { grid-template-columns: 1fr; gap: 32px; }
  .policy-toc { position: static; display: flex; flex-wrap: wrap; gap: 10px 20px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
  .home-hero .wrap, .story, .split, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .home-hero .wrap { padding-block: 56px; }
  .home-hero .photo { aspect-ratio: 4 / 3; }
  .story .photo { aspect-ratio: 4 / 3; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .page-hero .wrap { padding-block: 72px; }
  .ghost-mark { width: 70vw; opacity: 0.8; }
  .section { padding-block: 64px; }
  .cta { padding: 44px 28px; }
  .cta .ghost-cta { right: -40px; width: 340px; }
  .email-card { padding: 40px 28px; }
  .info-card { padding: 4px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 36px; }
}
@media (max-width: 600px) {
  .cols-5 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .pillar-card { grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 4px; }
  .pillar-card .icon-circle { grid-row: span 2; }
  .grow-card { padding: 22px; }
  .brand-name { font-size: 1.1rem; }
}

/* Home hero illustration (has its own card built in) */
.hero-art { aspect-ratio: 2 / 3; max-width: 100%; justify-self: center; width: 100%; max-width: 460px; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 860px) { .hero-art { max-width: 380px; } }
