/* Palette + typography tokens live in styles/theme.css (single source of truth).
   This file is the index + legal-page SHELL styling (hero, contact, footer,
   legal prose). Everything inside the estimator itself moved to the scoped
   styles/estimator.css (ticket 036) so the same mount ships identically on /
   and on the /vendre/ and /acheter/ landing pages. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(135deg, var(--panel), var(--ground));
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 40px;
}

.hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: var(--ochre);
  margin: 0 0 14px;
}

h1, h2, p { margin-top: 0; }

h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

h2 {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -.01em;
}

.intro {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.hint, .disclaimer {
  color: var(--muted);
  line-height: 1.55;
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 0 6px;
}

/* The sentence names who answers, so it runs long; cap it at a comfortable
   measure and let the number keep its own column instead of being squeezed
   into a two-line stack against the right edge. */
.contact p { margin: 0; color: var(--muted); max-width: 46ch; }

/* Inline link on the network name — stays prose, never a button. */
.contact p a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line);
}

.contact p a:hover { color: var(--river); text-decoration-color: currentColor; }

.contact-phone {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 1.0625rem;
  letter-spacing: .01em;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.contact-phone:hover { border-color: var(--river); color: var(--river); }

@media (max-width: 820px) {
  .page { padding-top: 36px; }
  .contact { align-items: flex-start; flex-direction: column; gap: 14px; }
  .contact p { max-width: none; }
}

[hidden] {
  display: none !important;
}

/* ===== Masthead wordmark (nom commercial) ===== */
/* Same width formula as .page — anything else and the wordmark sits indented
   from the H1 below it, which is exactly how it looked wrong the first time. */
.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 0;
}
.site-header .brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
  text-decoration: none;
}
.site-header a.brand-name:hover { color: var(--river); }
/* The legal pages narrow their column to 760px (.legal below), so the masthead
   has to narrow with them or it hangs out to the left of the H1. */
body:has(.page.legal) .site-header { max-width: 760px; }
.brand-tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Site footer + legal pages (ticket 018) ===== */
.footer-brand { margin: 0 0 10px; color: var(--ink); }

.site-footer {
  max-width: 960px;
  margin: 48px auto 0;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.site-footer nav { margin-bottom: 10px; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.site-footer span { margin: 0 8px; color: var(--line); }

.legal { max-width: 760px; }
.legal h1 { font-family: var(--serif); letter-spacing: -.01em; }
.legal h2 {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -.01em;
}
.legal p, .legal li { line-height: 1.6; color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal .eyebrow a { color: var(--muted); text-decoration: none; }
