/* Alpha Arquitetura - portal editorial sobre arquitetura e reforma residencial */
:root {
  --brand: #A85A3C;
  --brand-deep: #7E3F28;
  --sage: #4A5D4E;
  --ink: #23201D;
  --paper: #F4EEE6;
  --surface: #FFFFFF;
  --body-text: #2B2724;
  --muted: #6E655C;
  --line: #E2D8CB;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--paper);
}
h1, h2, h3, h4 {
  font-family: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.3em; }
table { border-collapse: collapse; width: 100%; }
.alp-wrap { width: min(1160px, 92%); margin: 0 auto; }
.alp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alp-kicker {
  display: inline-block;
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .9rem;
}
.alp-kicker::before {
  content: '';
  display: inline-block;
  width: 22px; height: 3px;
  background: var(--brand);
  vertical-align: middle;
  margin-right: .55rem;
  transform: translateY(-1px);
}
.alp-lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.alp-btn {
  display: inline-block;
  padding: .8rem 1.35rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: background .18s, color .18s;
}
.alp-btn:hover { background: var(--ink); color: var(--paper); }
.alp-btn--solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.alp-btn--solid:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.alp-sec { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.alp-sec--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.alp-sec__head { max-width: 68ch; margin-bottom: 2.4rem; }

/* Barra editorial superior */
.alp-topbar {
  background: var(--ink);
  color: #D9CFC2;
  font-size: .82rem;
  text-align: center;
  padding: .5rem 1rem;
  line-height: 1.45;
}
.alp-topbar a { color: #F1E6D8; }

/* Cabecalho */
.alp-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 238, 230, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.alp-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.alp-logo {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink);
  font-family: 'Archivo', Arial, sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em;
}
.alp-logo__mark {
  width: 34px; height: 34px; flex: none;
  background: var(--brand);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 78% 100%, 50% 42%, 22% 100%);
}
.alp-logo small { display: block; font: 500 .68rem/1 'DM Sans', sans-serif; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: .2rem; }
.alp-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.alp-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.alp-nav a:hover { border-bottom-color: var(--brand); color: var(--ink); }
.alp-menu-toggle, .alp-menu-btn { display: none; }
.alp-menu-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); cursor: pointer; position: relative;
}
.alp-menu-btn span, .alp-menu-btn span::before, .alp-menu-btn span::after {
  content: ''; position: absolute; left: 10px; width: 22px; height: 2px; background: var(--ink); transition: transform .2s;
}
.alp-menu-btn span { top: 20px; }
.alp-menu-btn span::before { left: 0; top: -7px; }
.alp-menu-btn span::after { left: 0; top: 7px; }

/* Hero */
.alp-hero { padding: clamp(2.6rem, 6vw, 5rem) 0 0; overflow: hidden; }
.alp-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.alp-hero h1 span { color: var(--brand); }
.alp-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.alp-hero__media { position: relative; }
.alp-hero__media::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--brand); z-index: 0;
}
.alp-hero__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.alp-hero__media figcaption { font-size: .8rem; color: var(--muted); margin-top: 1.7rem; text-align: right; }
.alp-fatos {
  margin-top: clamp(2.4rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); background: var(--surface);
}
.alp-fatos > div { padding: 1.35rem 1.4rem; border-left: 1px solid var(--line); }
.alp-fatos > div:first-child { border-left: 0; }
.alp-fatos strong { display: block; font-family: 'Archivo', Arial, sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1.1; margin-bottom: .3rem; }
.alp-fatos span { font-size: .92rem; color: var(--muted); line-height: 1.45; display: block; }

/* Temas */
.alp-temas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.alp-card {
  background: var(--surface); border: 1px solid var(--line); padding: 1.6rem;
  display: flex; flex-direction: column; gap: .5rem; position: relative;
  transition: transform .18s, border-color .18s;
}
.alp-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.alp-card__num { font-family: 'Archivo', Arial, sans-serif; font-weight: 800; font-size: .85rem; color: var(--brand); letter-spacing: .08em; }
.alp-card h3 { margin: .2rem 0 .3rem; font-size: 1.15rem; }
.alp-card p { color: var(--muted); font-size: .97rem; margin: 0 0 .8rem; flex: 1; }
.alp-card a { font-weight: 700; font-size: .92rem; }
.alp-card--wide { grid-column: span 2; background: var(--sage); border-color: var(--sage); color: #fff; }
.alp-card--wide h3, .alp-card--wide .alp-card__num { color: #fff; }
.alp-card--wide p { color: #DCE4DE; }
.alp-card--wide a { color: #fff; }
.alp-card--wide:hover { border-color: var(--sage); }

/* Utilidade: checklist + tabela */
.alp-util__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.4rem; align-items: start; }
.alp-check { background: var(--paper); border: 1px solid var(--line); padding: 1.6rem 1.6rem 1.2rem; }
.alp-check h3 { margin-bottom: .35rem; }
.alp-check > p { color: var(--muted); font-size: .95rem; }
.alp-check ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.alp-check li { border-top: 1px solid var(--line); }
.alp-check input { position: absolute; opacity: 0; pointer-events: none; }
.alp-check label {
  display: flex; gap: .85rem; align-items: flex-start; padding: .8rem .2rem; cursor: pointer; font-size: .98rem;
}
.alp-check label::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: .2rem;
  border: 2px solid var(--sage); border-radius: 2px; background: var(--surface);
}
.alp-check input:checked + label { color: var(--muted); text-decoration: line-through; }
.alp-check input:checked + label::before { background: var(--sage); box-shadow: inset 0 0 0 3px var(--surface); }
.alp-check input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.alp-check__nota { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.alp-tabela { overflow-x: auto; }
.alp-tabela table { font-size: .95rem; background: var(--surface); }
.alp-tabela caption { text-align: left; font-family: 'Archivo', Arial, sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); padding: 0 0 .8rem; }
.alp-tabela th, .alp-tabela td { padding: .8rem .9rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.alp-tabela thead th { background: var(--ink); color: #F1E6D8; font-weight: 700; font-family: 'Archivo', Arial, sans-serif; }
.alp-tabela tbody th { background: var(--paper); font-weight: 700; width: 24%; }
.alp-tabela__nota { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

/* Guia ancora */
.alp-guia { max-width: 76ch; margin: 0 auto; }
.alp-guia__meta { font-size: .9rem; color: var(--muted); margin: -.4rem 0 1.6rem; }
.alp-guia__meta strong { color: var(--body-text); }
.alp-guia__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.2rem; padding: 0; list-style: none; }
.alp-guia__chips a {
  display: inline-block; padding: .4rem .85rem; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--ink);
}
.alp-guia__chips a:hover { border-color: var(--brand); color: var(--brand-deep); }
.alp-guia h3 { margin-top: 2.2rem; scroll-margin-top: 90px; font-size: 1.45rem; }
.alp-guia h3 small { display: block; font: 700 .75rem/1 'Archivo', Arial, sans-serif; letter-spacing: .14em; color: var(--brand); text-transform: uppercase; margin-bottom: .5rem; }
.alp-guia figure { margin: 2rem 0; }
.alp-guia figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.alp-guia figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.alp-caixa {
  border-left: 4px solid var(--brand); background: var(--surface); padding: 1.1rem 1.3rem; margin: 1.6rem 0;
}
.alp-caixa--sage { border-left-color: var(--sage); }
.alp-caixa p:last-child { margin-bottom: 0; }
.alp-caixa strong:first-child { display: block; font-family: 'Archivo', Arial, sans-serif; margin-bottom: .3rem; }
.alp-guia table { font-size: .93rem; background: var(--surface); margin: 1.2rem 0 1.6rem; }
.alp-guia th, .alp-guia td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; }
.alp-guia thead th { background: var(--paper); }

/* Sobre */
.alp-sobre__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.alp-sobre__media { position: relative; }
.alp-sobre__media img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.alp-sobre__media::after {
  content: ''; position: absolute; left: -14px; bottom: -14px; width: 55%; height: 45%;
  background: var(--brand); z-index: -1;
}
.alp-sobre__ficha { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.2rem; font-size: .93rem; }
.alp-sobre__ficha li { border-top: 1px solid var(--line); padding-top: .55rem; }
.alp-sobre__ficha span { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }

/* Blog preview */
.alp-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.alp-post { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.alp-post img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.alp-post__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.alp-post__meta { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.alp-post h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.alp-post h3 a { color: var(--ink); text-decoration: none; }
.alp-post h3 a:hover { color: var(--brand-deep); }
.alp-post p { font-size: .95rem; color: var(--muted); flex: 1; }
.alp-post .alp-post__link { font-weight: 700; font-size: .9rem; }

/* FAQ */
.alp-faq { max-width: 78ch; }
.alp-faq details { background: var(--surface); border: 1px solid var(--line); margin-bottom: .7rem; }
.alp-faq summary {
  list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.3rem; position: relative;
  font-family: 'Archivo', Arial, sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.alp-faq summary::-webkit-details-marker { display: none; }
.alp-faq summary::after {
  content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1;
}
.alp-faq details[open] summary::after { content: '\2013'; }
.alp-faq details > div { padding: 0 1.3rem 1.2rem; color: var(--body-text); }
.alp-faq details > div p:last-child { margin-bottom: 0; }

/* Contato */
.alp-contato__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.alp-contato__info dl { margin: 1.2rem 0 0; }
.alp-contato__info dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.alp-contato__info dd { margin: .15rem 0 0; }
.alp-form { background: var(--surface); border: 1px solid var(--line); padding: 1.8rem; }
.alp-form label { display: block; font-weight: 500; font-size: .92rem; margin: 0 0 .35rem; }
.alp-form input, .alp-form textarea, .alp-form select {
  width: 100%; font: inherit; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 2px;
  background: var(--paper); color: var(--body-text); margin-bottom: 1.1rem;
}
.alp-form input:focus, .alp-form textarea:focus, .alp-form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.alp-form textarea { min-height: 130px; resize: vertical; }
.alp-form button {
  font: inherit; font-weight: 700; padding: .85rem 1.5rem; border: 0; border-radius: 2px;
  background: var(--brand); color: #fff; cursor: pointer;
}
.alp-form button:hover { background: var(--brand-deep); }
.alp-form__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-bottom: 1.2rem; }
.alp-form__consent input { width: auto; margin: .3rem 0 0; }

/* Rodape */
.alp-footer { background: var(--ink); color: #C9BFB2; padding: 3.2rem 0 1.6rem; font-size: .92rem; }
.alp-footer a { color: #EFE4D6; }
.alp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; }
.alp-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.alp-footer ul { list-style: none; padding: 0; margin: 0; }
.alp-footer li { margin-bottom: .5rem; }
.alp-footer .alp-logo { color: #fff; margin-bottom: 1rem; }
.alp-footer .alp-logo small { color: #A69A8C; }
.alp-footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.4rem; font-size: .82rem; color: #A69A8C; line-height: 1.6; }
.alp-footer__legal p { margin-bottom: .5rem; }

/* Aviso de cookies (sem script) */
.alp-cookie-toggle { position: absolute; opacity: 0; pointer-events: none; }
.alp-cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(35,32,29,.18);
  padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  font-size: .9rem; max-width: 720px; margin: 0 auto;
}
.alp-cookie p { margin: 0; flex: 1 1 320px; }
.alp-cookie label { cursor: pointer; }
.alp-cookie-toggle:checked ~ .alp-cookie { display: none; }

/* Paginas internas (blog, legais) */
.alp-page { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.alp-artigo { max-width: 74ch; margin: 0 auto; }
.alp-artigo__hero { margin: 1.6rem 0 2rem; }
.alp-artigo__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.alp-artigo__hero figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.alp-artigo h2 { font-size: 1.55rem; margin-top: 2.2rem; }
.alp-artigo h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.alp-artigo table { font-size: .93rem; background: var(--surface); margin: 1.2rem 0 1.6rem; }
.alp-artigo th, .alp-artigo td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; }
.alp-artigo thead th { background: var(--paper); }
.alp-crumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.alp-crumb a { color: var(--muted); }
.alp-legal { max-width: 78ch; margin: 0 auto; }
.alp-legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.alp-relacionados { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }
.alp-relacionados ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.alp-blog-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }

/* Responsivo */
@media (max-width: 960px) {
  .alp-hero__grid, .alp-util__grid, .alp-sobre__grid, .alp-contato__grid { grid-template-columns: 1fr; }
  .alp-hero__media { max-width: 560px; }
  .alp-fatos, .alp-temas__grid { grid-template-columns: 1fr 1fr; }
  .alp-fatos > div:nth-child(odd) { border-left: 0; }
  .alp-fatos > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .alp-card--wide { grid-column: span 2; }
  .alp-blog__grid, .alp-blog-lista { grid-template-columns: 1fr 1fr; }
  .alp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .alp-menu-btn { display: block; }
  .alp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem 4%; }
  .alp-nav ul { flex-direction: column; gap: .2rem; }
  .alp-nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .alp-menu-toggle:checked ~ .alp-header__in .alp-nav { display: block; }
  .alp-menu-toggle:checked ~ .alp-header__in .alp-menu-btn span { background: transparent; }
  .alp-menu-toggle:checked ~ .alp-header__in .alp-menu-btn span::before { transform: translateY(7px) rotate(45deg); }
  .alp-menu-toggle:checked ~ .alp-header__in .alp-menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }
  .alp-fatos, .alp-temas__grid, .alp-blog__grid, .alp-blog-lista, .alp-footer__grid, .alp-sobre__ficha { grid-template-columns: 1fr; }
  .alp-fatos > div { border-left: 0; border-top: 1px solid var(--line); }
  .alp-fatos > div:first-child { border-top: 0; }
  .alp-card--wide { grid-column: span 1; }
  .alp-hero__media::before { inset: 12px -10px -12px 12px; }
  .alp-form { padding: 1.3rem; }
  .alp-cookie { left: .6rem; right: .6rem; bottom: .6rem; }
  .alp-guia table, .alp-artigo table { display: block; overflow-x: auto; width: 100%; }
  .alp-guia__chips a { font-size: .8rem; }
}
