/* Mort-Fi — calm, simple theme: warm cream, deep forest green, soft sand */
:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --sand: #F1E8DA;
  --sand-2: #E7DAC5;
  --green: #1F4A3D;
  --green-2: #2D6A56;
  --green-soft: #E3EDE7;
  --clay: #C46F45;
  --ink: #1C2421;
  --muted: #5E6A64;
  --line: #E6DED1;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(28, 36, 33, .04), 0 10px 30px -12px rgba(28, 36, 33, .12);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green-2); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--green-2); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 6px; }

/* Top note + header */
.topnote { background: var(--green); color: #E3EDE7; font-size: 13px; text-align: center; padding: 7px 16px; }
.topnote strong { color: #fff; font-weight: 600; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 36px; height: 36px; }
.logo span { font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.logo b { color: var(--clay); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { background: var(--green-soft); color: var(--green); font-weight: 500; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.menu-btn svg { margin: auto; }
@media (max-width: 920px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .menu-btn { display: grid; }
  .header .btn-call-sm { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font: 500 16px/1 var(--sans); padding: 16px 26px; border-radius: 999px; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -10px rgba(31, 74, 61, .7); }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--sand-2); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--sand); color: var(--green); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-call-sm { padding: 11px 18px; font-size: 15px; }

/* Sections */
section { padding: clamp(56px, 9vw, 104px) 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sand { background: var(--sand); }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4A3D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; flex: none; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); position: relative; }
.hero-card::before { content: ""; position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px; border-radius: 50%; background: var(--sand); z-index: -1; }
.hero-card h2 { font-size: 1.6rem; }
.hero-card .small { color: var(--muted); font-size: 15px; }
.call-big { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.4rem); color: var(--green); text-decoration: none; margin: 6px 0 2px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3BA776; box-shadow: 0 0 0 4px rgba(59, 167, 118, .18); }
.status.closed i { background: var(--clay); box-shadow: 0 0 0 4px rgba(196, 111, 69, .18); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; }
.mini-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.mini-list .n { width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* Strip of facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.facts div { padding: 22px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--green); line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.card h3 { margin-bottom: .4em; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 500; font-size: 15px; text-decoration: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); background: #FBEDE4; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 30px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 2.4rem; color: var(--clay); line-height: 1; display: block; margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Split / feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks.no li::before { background: #F6E3D8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C46F45' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/11px no-repeat; }
.panel { background: var(--sand); border-radius: 26px; padding: clamp(26px, 4vw, 44px); }
.panel.white { background: var(--surface); border: 1px solid var(--line); }
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.35; margin: 0 0 14px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.calc label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.calc .row { margin-bottom: 18px; }
.calc output { float: right; font-weight: 600; color: var(--green); }
input[type=range] { width: 100%; accent-color: var(--green); }
.result { background: var(--green); color: #fff; border-radius: 22px; padding: 28px; }
.result small { display: block; color: #BFD6CB; font-size: 14px; }
.result b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1; margin: 4px 0 16px; }
.result p { color: #D5E4DD; font-size: 14px; margin: 0; }
.result .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; margin-bottom: 16px; border-top: 1px solid rgba(255, 255, 255, .18); }
.result .pair b { font-size: 1.5rem; margin: 2px 0 0; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--sand); position: relative; transition: transform .25s, background .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] summary i { transform: rotate(45deg); background: var(--green-soft); }
.faq p { padding: 0 22px 20px; margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 999px; font: 500 14px var(--sans); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

/* CTA band */
.cta { background: var(--green); color: #fff; border-radius: 30px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #CFE0D8; margin: 0; }
.cta .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form .two { grid-template-columns: 1fr; } }
.form label.f { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.input { width: 100%; font: 400 16px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--sand-2); border-radius: 12px; padding: 13px 14px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(45, 106, 86, .14); background: #fff; }
textarea.input { min-height: 120px; resize: vertical; }
.input.bad { border-color: var(--clay); }
.err { display: none; color: #A4532C; font-size: 13px; margin: 6px 0 0; }
.err.show { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 12.5px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); flex: none; }
.form-status { display: none; border-radius: 12px; padding: 14px; font-size: 15px; margin: 0; }
.form-status.ok { display: block; background: var(--green-soft); color: var(--green); }
.form-status.no { display: block; background: #FBEDE4; color: #8A4322; }
.hp { position: absolute; left: -9999px; }

/* Legal / prose */
.page-head { padding: clamp(44px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose { font-size: 16.5px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; scroll-margin-top: 96px; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 1em 0 1.5em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sand); font-weight: 600; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 8px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; columns: 2; column-gap: 32px; font-size: 15px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info { display: grid; gap: 14px; }
.info .card { padding: 22px; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.info .card .icon { margin: 0; }
.info .card b { display: block; font-weight: 600; }
.info .card span, .info .card a { font-size: 15px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }

/* Footer */
.footer { background: #17302A; color: #A9BDB4; padding: 64px 0 120px; font-size: 14.5px; margin-top: clamp(56px, 9vw, 104px); }
.footer a { color: #DCE7E2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font: 600 14px var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .fine { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; font-size: 13px; line-height: 1.7; }
.footer .fine p { margin: 0 0 10px; }
@media (min-width: 921px) { .footer { padding-bottom: 56px; } }

/* Mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 248, 243, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.callbar .btn { width: 100%; }
.callbar small { display: block; text-align: center; color: var(--muted); font-size: 12px; margin-top: 6px; }
@media (min-width: 921px) { .callbar { display: none; } }

/* Gentle reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } .btn, .card { transition: none; } }
