/* Medinhouse Consulting — tokens from 02-identidad/guardrails.md */
:root {
  --paper: #F4F1EA;
  --paper-2: #ECE7DC;
  --ink: #141414;
  --muted: #6B6760;
  --line: #D9D3C7;
  --accent: #C2532D;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(48px, 9vw, 112px); line-height: 0.98; }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
p { margin: 0 0 1em; }
.label {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 52ch; color: #2a2926; }
.measure { max-width: 62ch; }
.indent { margin-left: 104px; }
@media (max-width: 900px) { .indent { margin-left: 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.link { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.link:hover { border-color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font: 400 22px/1 var(--serif); letter-spacing: -0.02em; text-decoration: none; }
.brand span { color: var(--muted); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14px; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { padding: 12px 18px; font-size: 14px; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  font: 500 14px var(--sans); color: var(--ink);
}

/* Sections */
section { padding: var(--section) 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.section-head { display: grid; grid-template-columns: 80px 1fr; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-num { font: 400 15px/1.6 var(--sans); color: var(--muted); padding-top: 12px; }

/* Hero */
.hero { padding: clamp(72px, 12vw, 160px) 0 clamp(72px, 10vw, 128px); border-top: 0; }
.hero .label { margin-bottom: 32px; display: block; }
.hero h1 { max-width: 11ch; margin-bottom: 40px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Approach */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.principle { padding: 32px 32px 0 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle h3 { font-size: 24px; margin-bottom: 12px; }
.principle p { color: var(--muted); font-size: 16px; }

/* Services index */
.services { list-style: none; margin: 0; padding: 0; }
.service {
  display: grid; grid-template-columns: 80px 1.1fr 1fr; gap: 24px;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service .num { color: var(--muted); font-size: 15px; padding-top: 10px; }
.service p { color: #2a2926; margin-top: 16px; max-width: 40ch; }
.deliverables { list-style: none; margin: 0; padding: 0; align-self: center; }
.deliverables li { font-size: 15px; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.deliverables li::before { content: "— "; color: var(--accent); }
.pricing-note {
  margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; background: var(--paper-2);
}
.pricing-note p { margin: 0; max-width: 60ch; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: 24px; }
.step .label { display: block; margin-bottom: 20px; }
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 16px; }

/* Who */
.who { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px; align-items: start; }
.who h2 { max-width: 14ch; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts span:first-child { color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; margin-left: 104px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0;
  font: 400 clamp(20px, 2vw, 26px)/1.3 var(--serif); letter-spacing: -0.01em;
  display: flex; justify-content: space-between; gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #2a2926; padding-bottom: 24px; max-width: 62ch; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); border-top: 0; }
.contact .label, .contact .section-num { color: #9C978D; }
.contact-grid { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px; }
.contact h2 { margin-bottom: 24px; }
.contact p { color: #CFC9BD; }
.contact a.link { border-color: #4a4843; }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9C978D; }
input, select, textarea {
  width: 100%; background: transparent; color: var(--paper);
  border: 0; border-bottom: 1px solid #4a4843; padding: 10px 0;
  font: 400 17px var(--sans); border-radius: 0;
}
select option { color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
.contact .btn-primary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form-note { font-size: 13px; color: #9C978D; margin: 0; }

/* Footer */
.site-footer { padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-grid .brand { display: inline-block; margin-bottom: 16px; color: var(--ink); }
.footer-grid h4 { font: 500 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; color: var(--ink); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: clamp(56px, 8vw, 112px) 0; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin: 16px 0 12px; }
.legal .updated { color: var(--muted); margin-bottom: 56px; }
.legal-body { max-width: 68ch; }
.legal-body h2 { font-size: 26px; margin: 48px 0 16px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }

/* Content is always visible: no scroll-triggered hiding (bank/Stripe reviewers and crawlers must see everything) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; width: auto; border-bottom: 1px solid var(--accent); }
  .section-head, .who, .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-num { padding-top: 0; }
  .hero-foot { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .service .num { padding-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faq { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .pricing-note { padding: 24px; }
  .facts li { flex-direction: column; gap: 4px; }
}
