/* M Power Mend - styles */

:root {
  --c-primary: #5b6e5a;
  --c-primary-dark: #3e4f3e;
  --c-primary-light: #8aa089;
  --c-accent: #c97b5e;
  --c-bg: #faf6ee;
  --c-warm: #f3ecdb;
  --c-surface: #ffffff;
  --c-text: #2d2a26;
  --c-muted: #6b7466;
  --c-border: #e6dfd0;
  --c-error: #b3553e;
  --c-error-bg: #fbe9e1;
  --c-ok: #4a6b48;
  --c-ok-bg: #e7efe1;
  --c-warn: #a8742d;
  --c-warn-bg: #faeed3;

  --shadow-sm: 0 1px 2px rgba(45,42,38,0.04), 0 1px 3px rgba(45,42,38,0.06);
  --shadow-md: 0 4px 6px rgba(45,42,38,0.05), 0 10px 15px rgba(45,42,38,0.08);
  --shadow-lg: 0 12px 24px rgba(45,42,38,0.08), 0 24px 48px rgba(45,42,38,0.10);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --container: 1140px;
  --narrow: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--c-text);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-accent); }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--narrow); }
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.small { font-size: 0.875rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: #443d35;
  margin-bottom: 1.6rem;
  max-width: 38em;
}

/* === Header === */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(250, 246, 238, 0.9);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 600;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-surface);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
}
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 500;
}
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a { color: var(--c-text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--c-primary); }
.site-header nav a.nav-cta {
  background: var(--c-primary);
  color: var(--c-surface);
  padding: 0.55rem 1rem;
  border-radius: 999px;
}
.site-header nav a.nav-cta:hover { background: var(--c-primary-dark); color: var(--c-surface); }

@media (max-width: 640px) {
  .site-header nav a:not(.nav-cta) { display: none; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--c-primary); color: var(--c-surface); border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-dark); color: var(--c-surface); }
.btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { background: var(--c-warm); color: var(--c-text); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-google {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-border);
  padding: 0.85rem 1.6rem;
}
.btn-google:hover { background: var(--c-warm); color: var(--c-text); }

/* === Hero === */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-warm) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.hero-centered { padding: 6rem 0 5rem; }
.hero-centered .hero-cta { justify-content: center; }

.trust-row {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.trust-row li {
  font-size: 0.88rem;
  color: var(--c-muted);
  position: relative;
  padding-left: 1.4rem;
}
.trust-row li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
}

.hero-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.card-heading {
  font-weight: 600;
  margin: 0 0 1.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-primary);
}
.facts { margin: 0; padding: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--c-border);
}
.facts > div:last-child { border-bottom: none; }
.facts dt { font-weight: 600; color: var(--c-muted); font-size: 0.85rem; }
.facts dd { margin: 0; font-size: 0.95rem; }

/* === Sections === */
.section { padding: 4rem 0; }
.section-warm { background: var(--c-warm); }
.section-contact { padding: 4rem 0 5rem; background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-warm) 100%); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card-feature {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-feature h3 { margin: 0 0 0.5rem; color: var(--c-primary-dark); }
.card-feature p { margin: 0; color: var(--c-muted); font-size: 0.96rem; }

.steps {
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 1.1rem 0 1.1rem 3rem;
  border-bottom: 1px solid var(--c-border);
  position: relative;
  font-size: 1.02rem;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-surface);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
}

/* === Forms === */
.contact-form { margin-top: 1.5rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: var(--c-text);
}
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--c-surface);
  color: var(--c-text);
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(91, 110, 90, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--c-error);
}
.form-error {
  background: var(--c-error-bg);
  color: var(--c-error);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.field.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.disclaimer { margin-top: 1rem; }

/* === Footer === */
.site-footer {
  background: var(--c-primary-dark);
  color: #d6dcd2;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.site-footer a { color: #f3ecdb; }
.site-footer .muted { color: #aab3a4; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: var(--c-surface);
}
.footer-heading {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.5rem;
  color: var(--c-surface);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

/* === Admin === */
.admin-shell {
  min-height: 80vh;
  padding: 3rem 1.25rem;
  display: grid;
  place-items: start center;
}
.admin-shell.wide {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
}
.admin-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.admin-card h1 { font-size: 1.6rem; margin-bottom: 0.6em; }
.admin-card .btn { width: 100%; margin: 1.5rem 0; }

.admin-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.admin-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.banner-warn { background: var(--c-warn-bg); color: #6b4810; border: 1px solid #e9c98c; }
.banner-ok { background: var(--c-ok-bg); color: var(--c-ok); border: 1px solid #b8c9b3; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
@media (max-width: 600px) { .stats-row { grid-template-columns: 1fr; } }
.stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--c-primary-dark);
}
.stat-label { font-size: 0.85rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.msg-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.msg {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.msg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.msg-meta { display: flex; align-items: center; gap: 0.6rem; }
.msg-body {
  white-space: pre-wrap;
  background: var(--c-warm);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  margin: 0.5rem 0 1rem;
}
.msg-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill-ok { background: var(--c-ok-bg); color: var(--c-ok); }
.pill-warn { background: var(--c-warn-bg); color: var(--c-warn); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* === Missions callout band === */
.section-callout {
  background: linear-gradient(180deg, var(--c-warm) 0%, var(--c-bg) 100%);
  padding: 3.5rem 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.section-callout h2 { margin-bottom: 0.6em; }
.section-callout .btn { margin-top: 0.5rem; }
