/* Mirevadigital LLC — shared styles */
:root {
  --ink: #14201c;
  --ink-soft: #3d4a45;
  --paper: #f5f2ea;
  --paper-deep: #ebe6d9;
  --card: #fffdf8;
  --line: #d6d0c0;
  --accent: #d9482b;
  --accent-dark: #b23920;
  --teal: #0f4c45;
  --teal-soft: #dbe8e3;
  --font-head: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

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

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 12px 18px; z-index: 100; border-radius: 4px;
}
.skip-link:focus { left: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
.kicker {
  font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent-dark); margin: 0 0 14px; font-weight: 500;
}

/* header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.brand svg { width: 34px; height: 34px; }
.brand small { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; color: var(--ink-soft); margin-left: 2px; }
.nav { display: none; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink); padding: 12px 14px; border-radius: 6px;
  font-weight: 500; font-size: .95rem; min-height: 48px; display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--paper-deep); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-toggle {
  min-width: 48px; min-height: 48px; border: 1px solid var(--line); background: var(--card);
  border-radius: 6px; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); padding: 0 14px;
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 20px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; }
@media (min-width: 900px) { .nav { display: flex; } .nav-toggle, .mobile-nav { display: none !important; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 6px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--teal); color: #eef5f2; }
.section-dark .kicker { color: #f3b8a8; }
.section-dark a { color: #fff; }
.section-head { max-width: 44rem; margin-bottom: 40px; }

/* hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-bottom: 22px; }
.hero-side {
  background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 26px;
  box-shadow: 8px 8px 0 var(--teal);
}
.hero-side h2 { font-size: 1.15rem; margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.hero-side ul { list-style: none; padding: 0; margin: 0; }
.hero-side li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.hero-side li:first-child { border-top: 0; }
.hero-side li b { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-dark); min-width: 26px; padding-top: 3px; }
.hero-side li span { font-weight: 600; }
.hero-side li small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .92rem; }

/* cards */
.grid { display: grid; gap: 22px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .tag { font-family: var(--font-mono); font-size: .75rem; color: var(--teal); background: var(--teal-soft); padding: 3px 9px; border-radius: 3px; display: inline-block; margin-bottom: 14px; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, border-color .15s ease; }
.card-link:hover { transform: translateY(-3px); border-color: var(--ink); color: inherit; }

/* service blocks on services page */
.service-block { display: grid; gap: 28px; padding: 48px 0; border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; }
@media (min-width: 900px) { .service-block { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.service-block .num { font-family: var(--font-mono); color: var(--accent-dark); font-size: .85rem; }
.service-block h2 { font-size: 1.9rem; margin: 6px 0 12px; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); }
.fit { background: var(--teal-soft); border-radius: 6px; padding: 14px 18px; font-size: .98rem; margin: 0; }

/* process */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 36px 64px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-family: var(--font-mono); display: flex; align-items: center; justify-content: center; font-weight: 500;
}
.steps li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); margin-bottom: 8px; }
.steps .you { font-size: .95rem; background: var(--paper-deep); padding: 8px 12px; border-radius: 4px; display: inline-block; }

/* prose pages */
.prose { max-width: 46rem; }
.prose h2 { margin: 40px 0 12px; font-size: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 6px; }
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 16px; }

/* facts */
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
form.contact-form { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #8b9a94; border-radius: 6px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: 5px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 6px; margin-bottom: 22px; font-weight: 500; }
.notice.ok { background: var(--teal-soft); border: 1px solid var(--teal); }
.notice.err { background: #fbe3dc; border: 1px solid var(--accent-dark); }

/* footer */
.site-foot { background: var(--ink); color: #c9d3ce; padding: 56px 0 28px; }
.site-foot a { color: #e8efec; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #34443e; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-grid h2 { font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: #f3b8a8; margin-bottom: 14px; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid p { font-size: .95rem; margin-bottom: 8px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: .88rem; }

/* ---- warmth pass ---- */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hand { font-family: "Caveat", "Segoe Print", cursive; font-weight: 600; }
.hl { background: linear-gradient(transparent 60%, #f4c3a3 60%, #f4c3a3 92%, transparent 92%); padding: 0 .08em; }
.card { border-radius: 14px; }
.btn { border-radius: 999px; }
.btn-primary::after { content: "\2192"; margin-left: 10px; transition: transform .15s ease; }
.btn-primary:hover::after { transform: translateX(4px); }
.hero-side, form.contact-form { border-radius: 16px; }
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -140px; top: -120px; width: 460px; height: 460px; border-radius: 50%;
  background: var(--teal-soft); z-index: -1;
}
.hero { z-index: 0; }

.hero-art { position: relative; min-height: 380px; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.sticky {
  position: absolute; left: -6px; bottom: 8px; background: #f7dd7a; color: #3b2f05; padding: 14px 18px 18px;
  border-radius: 3px; transform: rotate(-4deg); box-shadow: 4px 6px 0 rgba(20,32,28,.18);
  font-size: 1.45rem; line-height: 1.15; max-width: 190px;
}

.icon-chip {
  width: 56px; height: 56px; border-radius: 16px; background: var(--teal-soft); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon-chip svg { width: 28px; height: 28px; }
.card-link:hover .icon-chip { background: var(--accent); color: #fff; }

.letter {
  position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 16px;
  padding: 36px 34px 30px; box-shadow: 8px 8px 0 var(--accent); transform: rotate(-.6deg);
}
.letter p { font-size: 1.1rem; }
.letter .sign { font-size: 2rem; line-height: 1; margin: 18px 0 2px; color: var(--teal); }
.letter .role { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 0; }

.promise { display: grid; gap: 22px; }
@media (min-width: 800px) { .promise { grid-template-columns: repeat(3, 1fr); } }
.promise .card { background: transparent; border-style: dashed; border-width: 2px; border-color: #9aa8a2; }
.promise .big { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--accent-dark); line-height: 1; margin-bottom: 10px; }

details.faq { border-top: 1px solid var(--line); padding: 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary {
  list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; padding: 12px 4px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--accent); transition: transform .15s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding: 0 4px 20px; margin: 0; color: var(--ink-soft); max-width: 44rem; }

.wave { display: block; width: 100%; height: 40px; color: var(--paper-deep); }
.section-alt { border-top: 0; }

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