/* Sua Morada — base e primitivos compartilhados (v3) */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--porcelana);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); line-height: var(--leading-snug); }
h1 em, h2 em { font-family: var(--font-serif); font-style: italic; }
p { text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--argila-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--argila); outline-offset: 3px; border-radius: 3px; }
input, select, textarea, button { font: inherit; color: inherit; }
input, textarea { caret-color: var(--argila); }
html { scrollbar-color: var(--areia-2) var(--porcelana); }
.tabular { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--musgo); color: var(--on-musgo); padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

/* Layout */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.surface-areia { background: var(--areia); }
/* .surface-musgo agora é uma faixa clara de sálvia; as variáveis on-musgo viram tinta escura dentro dela */
.surface-musgo { background: var(--salvia-claro); color: var(--ink); --on-musgo: var(--ink); --on-musgo-soft: var(--ink-soft); }

/* Logo: <a class="logo"><svg class="logo__mark">…</svg><span class="logo__word">Sua Morada</span></a> */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__word { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; letter-spacing: -0.005em; }

/* Buttons */
.btn {
  --btn-bg: var(--musgo);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-6);
  border: 0; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.btn:hover { --btn-bg: var(--musgo-2); text-decoration: none; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--porcelana); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Fields */
.field { display: grid; gap: var(--s-2); }
.field label, .field legend { font-weight: 600; font-size: var(--text-sm); }
.input {
  width: 100%; min-height: 52px; padding: 0 var(--s-4);
  background: var(--branco); color: var(--ink);
  border: 1px solid var(--areia-2); border-radius: var(--r-2);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
textarea.input { padding: var(--s-3) var(--s-4); min-height: 140px; resize: vertical; line-height: var(--leading-body); }
.input::placeholder { color: var(--ink-muted); }
.input:hover { border-color: var(--ink-muted); }
.input:focus { outline: none; border-color: var(--musgo); box-shadow: 0 0 0 3px rgb(47 58 50 / 0.15); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--text-sm); }

/* Section head (sem eyebrow/kicker) */
.section-head { max-width: 44rem; display: grid; gap: var(--s-4); margin-bottom: var(--s-8); }
.section-head h2 { font-size: var(--text-3xl); }
.section-head p { font-size: var(--text-lg); color: var(--ink-soft); max-width: var(--measure); }

/* Foto: moldura editorial simples */
.photo { border-radius: var(--r-3); overflow: hidden; background: var(--areia); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit { font-size: var(--text-xs); color: var(--ink-muted); margin-top: var(--s-2); }

[hidden] { display: none !important; }
