/* psantos.pro — rebuild estático */
:root {
  /* palete inspirada no quadro: laranja da camisa + verde-azulado do fundo */
  --bg: #f7f3ea;
  --surface: #fffdf6;
  --text: #332f27;
  --muted: #7f8272;
  --accent: #c75b21;
  --accent-dark: #8f451a;
  --border: #e0d8c4;
  --header-bg: #234740;
  --header-text: #e9ede2;
  --radius: 10px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
}

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

/* ---------- header ---------- */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
  max-width: 1140px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  letter-spacing: .5px;
  white-space: nowrap;
}
.brand strong { font-weight: 700; }

.header-social { display: flex; gap: 6px; margin-left: 8px; }
.header-social a {
  color: var(--header-text);
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}
.header-social a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav > a,
.drop-btn {
  color: var(--header-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .95rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.site-nav > a:hover,
.drop-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav > a.active { color: #fff; border-bottom: 2px solid var(--accent); border-radius: 0; }

.dropdown { position: relative; }
.drop-btn::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .7; }

.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  padding: 6px;
}
.drop-menu a {
  display: block;
  padding: 9px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  font-size: .93rem;
}
.drop-menu a:hover { background: #f4ecdb; color: var(--accent-dark); }
.drop-menu a.active { color: var(--accent-dark); font-weight: 600; }

@media (min-width: 900px) {
  .dropdown:hover .drop-menu,
  .dropdown:focus-within .drop-menu { display: block; }
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 10px;
}

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--header-bg);
    padding: 10px 16px 18px;
    gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a, .drop-btn { text-align: left; padding: 10px 12px; }
  .drop-menu {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, .06);
  }
  .drop-menu a { color: var(--header-text); }
  .drop-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .dropdown.open .drop-menu { display: block; }
}

/* ---------- content ---------- */
main { padding-top: 36px; padding-bottom: 60px; }

.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
}

.content h1 {
  margin: 0 0 24px;
  font-size: 2rem;
  line-height: 1.25;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}
.content h2 { margin-top: 40px; font-size: 1.45rem; color: #111827; }
.content h3 { margin-top: 30px; font-size: 1.2rem; color: #1f2937; }
.content h4 { margin-top: 24px; font-size: 1.05rem; }

.content p { margin: 0 0 16px; }
.content ul, .content ol { margin: 0 0 16px 24px; padding: 0; }
.content li { margin-bottom: 6px; }

.content a { color: var(--accent); text-decoration: none; }
.content a:hover { text-decoration: underline; }

.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 8px;
}

.content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--accent);
  background: #fbf0df;
  border-radius: 0 8px 8px 0;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: .95rem;
  background: var(--surface);
}
.content th, .content td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.content th { background: #f2ecda; font-weight: 600; }
.content tr:nth-child(even) td { background: #faf6ec; }
.content td p, .content th p { margin: 0; }

.content pre, .content code {
  font-family: Consolas, "Courier New", monospace;
  background: #f3eede;
  border-radius: 6px;
}
.content code { padding: 2px 6px; font-size: .92em; }
.content pre { padding: 14px 18px; overflow-x: auto; }
.content pre code { padding: 0; background: none; }

.content hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }

.note {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid #e5cf9f;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  background: #fdf6e3;
  font-size: .92rem;
  color: #6b5a3e;
}
.note strong { color: #57432a; }

.post-date { color: var(--muted); font-size: .6em; font-weight: 400; }

.content h5, .content h6 { margin-top: 20px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.content td:empty { border: none; background: none; }

/* ---------- homepage ---------- */
.photo-banner {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 26px;
  border-radius: var(--radius);
}
p.photo-banner { margin: 0 0 26px; text-align: center; }
p.photo-banner img { margin: 0 auto; }

figure.fig {
  margin: 1.5rem 0;
  text-align: center;
}
figure.fig img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(35, 71, 64, 0.18);
}
figure.fig figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.55rem;
  line-height: 1.45;
}
figure.fig figcaption .credit {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
}
.fig-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.fig-row figure.fig { margin: 0; }
.fig-row figure.fig img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* ---------- percurso profissional ---------- */
.job {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 1.6rem 0;
}
.job h3 { margin: 0 0 4px; }
.job-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.6rem;
}

.hero { text-align: center; padding: 10px 0 30px; }
.hero h1 { border: 0; padding: 0; margin-bottom: 10px; font-size: 2.4rem; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.cta { margin-top: 20px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 26px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { text-decoration: none; background: rgba(199, 91, 33, 0.08); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark, #a84a1a); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 6px 0 34px;
}
.stat { text-align: center; padding: 14px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat b { display: block; font-size: 1.9rem; color: var(--accent); font-weight: 600; }
.stat span { color: var(--muted); font-size: 0.88rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: #fcf8ed;
}
.card h2 {
  margin: 0 0 12px;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-dark);
}
.card ul { margin: 0; list-style: none; }
.card li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.card li:last-child { border-bottom: 0; }

/* ---------- guia de estilos ---------- */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0 30px;
}
.swatch {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.swatch .color { height: 64px; }
.swatch .info { padding: 9px 12px; font-size: .82rem; line-height: 1.5; }
.swatch .info code { background: none; padding: 0; color: var(--accent-dark); }

.demo {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 10px 0 26px;
  background: var(--bg);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 28px 0;
  font-size: .92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
}
.site-footer a { color: #eda46f; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links a { margin-right: 14px; }
.copyright { color: #9aa393; }

@media (max-width: 640px) {
  .content { padding: 26px 20px; }
  .content h1 { font-size: 1.6rem; }
  body { font-size: 15.5px; }
}
