/* ==========================================================================
   Thaisa Montenegro — design system
   Paleta: pedra quente + tinta profunda + latão envelhecido
   Tipografia: Fraunces (display) + Work Sans (texto/UI)
   ========================================================================== */

:root {
  --bg: #ede7dd;
  --surface: #fbf8f2;
  --ink: #1e1912;
  --ink-soft: #55493c;
  --ink-faint: #8a7d6c;
  --gold: #a9803d;
  --gold-deep: #7c5d28;
  --clay: #7a3f2c;
  --line: #ddd2bf;
  --line-strong: #c9bb a3;
  --line-strong: #c9bba3;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Work Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  --max: 1160px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 480;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  max-width: 20ch;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus {
  left: var(--pad);
  top: 12px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(237, 231, 221, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark { width: 38px; height: 38px; flex: none; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-name strong { display: block; font-weight: 560; }
.brand-name span { display: block; font-size: 0.72rem; color: var(--ink-soft); font-family: var(--sans); letter-spacing: 0.02em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.main-nav .nav-links a:hover { color: var(--clay); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 3px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
}
.btn-primary:hover { background: var(--clay); color: var(--surface); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-copy .kicker {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  max-width: 14ch;
}

.hero-copy .lede {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-cta .btn-primary { padding: 14px 26px; }

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.hero-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait {
  position: relative;
  margin: 0;
  max-width: 360px;
  width: 100%;
  border: 1px solid var(--line-strong);
  padding: 10px;
  background: var(--surface);
}

.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-portrait-seal {
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 10px rgba(30, 25, 18, 0.25));
}

/* ---------- trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.trust-item .trust-label {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.trust-item .trust-value {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}

/* ---------- generic section ---------- */
.section {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.section-alt { background: var(--surface); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 44px;
}

@media (min-width: 780px) {
  .section-head { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
}

.section-head .section-intro {
  color: var(--ink-soft);
  align-self: end;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 780px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; }
}

.about-timeline {
  border-left: 1px solid var(--line-strong);
  padding-left: 28px;
}

.about-timeline .tl-year {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold-deep);
  line-height: 1;
}

.about-timeline .tl-label {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.about-timeline .tl-item + .tl-item { margin-top: 28px; }

.about-body p { color: var(--ink-soft); }
.about-body p + p { margin-top: 1em; }

.about-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 700px) {
  .about-gallery { grid-template-columns: 1fr 1fr; max-width: 620px; }
}

.framed-photo {
  margin: 0;
  border: 1px solid var(--line-strong);
  padding: 10px;
  background: var(--surface);
}

.framed-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.framed-photo figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- services (menu style list) ---------- */
.menu-list {
  border-top: 1px solid var(--line-strong);
}

.menu-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .menu-row { grid-template-columns: 260px 1fr; gap: 32px; }
}

.menu-row h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

.menu-row p { color: var(--ink-soft); margin: 0; max-width: 56ch; }

/* ---------- differentials ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 700px) {
  .diff-grid { grid-template-columns: repeat(3, 1fr); }
}

.diff-card {
  background: var(--bg);
  padding: 32px 28px;
}

.diff-card h3 {
  font-size: 1.05rem;
  font-weight: 560;
  margin-bottom: 10px;
}

.diff-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 780px) {
  .location-grid { grid-template-columns: 1fr 1fr; }
}

.location-card {
  border: 1px solid var(--line-strong);
  padding: 32px;
  background: var(--surface);
}

.location-card dl { margin: 0; }
.location-card dt {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 18px;
}
.location-card dt:first-child { margin-top: 0; }
.location-card dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.map-frame {
  border: 1px solid var(--line-strong);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  text-align: left;
  background: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}

.map-frame p { color: var(--ink-soft); max-width: 32ch; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 780px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.contact-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-list .c-label { color: var(--ink-faint); font-size: 0.85rem; }
.contact-list .c-value { font-family: var(--serif); font-size: 1.05rem; }
.contact-list .c-value a { color: var(--ink); text-decoration-color: var(--line-strong); }
.contact-list .c-value a:hover { color: var(--clay); text-decoration-color: var(--clay); }

.contact-panel {
  background: var(--ink);
  color: var(--surface);
  padding: 40px 36px;
}

.contact-panel h3 {
  color: var(--surface);
  font-size: 1.5rem;
  max-width: 16ch;
}

.contact-panel p { color: #d8cfc0; margin-top: 14px; }

.contact-panel .btn-primary {
  margin-top: 24px;
  background: var(--gold);
  color: var(--ink);
}
.contact-panel .btn-primary:hover { background: var(--surface); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}

@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0 0 12px;
  font-weight: 600;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--ink-soft); }

.footer-col .footer-tagline { max-width: 34ch; color: var(--ink-soft); }

.footer-bottom-simple {
  border-top: none;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-bottom-simple a { color: var(--ink-faint); }

.legal-block {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 32px;
  line-height: 1.7;
}

.legal-block strong { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.footer-bottom a { color: var(--ink-faint); }

/* ---------- legal pages (política / termos) ---------- */
.legal-page {
  padding-top: 56px;
  padding-bottom: 80px;
}

.legal-page .wrap { max-width: 780px; }

.legal-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal-page .updated { color: var(--ink-faint); font-size: 0.9rem; margin-top: 10px; }

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-page p, .legal-page li { color: var(--ink-soft); max-width: 68ch; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page li + li { margin-top: 8px; }

.legal-emergency-notice {
  margin-top: 40px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
}

.back-link { display: inline-block; margin-bottom: 28px; font-size: 0.9rem; }

/* ---------- responsive nav ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 96px 28px 28px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 220ms ease;
    box-shadow: -8px 0 30px rgba(30, 25, 18, 0.15);
  }

  .main-nav.is-open { transform: translateX(0); }

  .main-nav .nav-links {
    flex-direction: column;
    gap: 20px;
  }

  .main-nav .nav-links a { font-size: 1.05rem; }

  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; margin-bottom: 8px; }
  .hero-portrait { max-width: 240px; }
}

@media (max-width: 700px) {
  .trust-strip .wrap { grid-template-columns: 1fr; gap: 18px; }
}
