/* ══════════════════════════════════════════════════════════
   Abate Carros / New Tec Recycling — estilos do blog
   Partilhado por /blog/, artigos e 404.
   Tokens iguais aos da landing page.
   ══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0f1f3d;
  --navy2:  #162847;
  --orange: #f47c00;
  --orange2:#e06b00;
  --green:  #1a9e4e;
  --light:  #f5f7fa;
  --text:   #1a1a2e;
  --muted:  #5a6272;
  --line:   #e8edf3;
  --white:  #ffffff;
  --radius: 10px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--orange2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 940px; margin: 0 auto; padding: 0 20px; }
.narrow    { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ─── Botões ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--white);
  font-size: 1.05rem; font-weight: 700;
  padding: 15px 28px; border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-1px); text-decoration: none; color: var(--white); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: var(--white);
  font-size: 1rem; font-weight: 700;
  padding: 14px 24px; border-radius: var(--radius);
  transition: background .2s;
}
.btn-whatsapp:hover { background: #1eb358; text-decoration: none; color: var(--white); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--navy); color: var(--navy);
  font-weight: 700; padding: 13px 24px; border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: var(--navy); color: var(--white); text-decoration: none; }

/* ─── Top bar / Header ───────────────────────────────── */
.topbar {
  background: var(--navy); color: rgba(255,255,255,.85);
  font-size: .82rem; padding: 8px 20px; text-align: center;
}
.topbar strong { color: var(--white); }

header {
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 940px; margin: 0 auto;
}
.logo { font-size: 1.1rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--orange); }
.logo-sub { font-size: .7rem; font-weight: 500; color: var(--muted); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone {
  font-size: 1.15rem; font-weight: 800; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
}
.header-phone:hover { color: var(--orange); text-decoration: none; }

@media (max-width: 560px) {
  .header-phone-label { display: none; }
  .logo-sub { display: none; }
}

/* ─── Breadcrumbs ────────────────────────────────────── */
.breadcrumb {
  font-size: .85rem; color: var(--muted);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange2); }

/* ─── Hero do blog ───────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: var(--white); padding: 52px 20px 56px; text-align: center;
}
.blog-hero h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.blog-hero p { color: rgba(255,255,255,.78); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}

@media (max-width: 560px) { .blog-hero h1 { font-size: 1.6rem; } }

/* ─── Cartões de post ────────────────────────────────── */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin: 28px 0 8px;
}
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--white);
  transition: box-shadow .2s, transform .1s, border-color .2s;
  display: flex; flex-direction: column;
}
.post-card:hover {
  box-shadow: 0 8px 24px rgba(15,31,61,.10);
  border-color: #d4dde8; transform: translateY(-2px);
  text-decoration: none;
}
.post-card h2, .post-card h3 {
  font-size: 1.12rem; font-weight: 800; color: var(--navy);
  line-height: 1.3; margin-bottom: 8px;
}
.post-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.post-tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.post-more {
  margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--orange2);
}

.post-card--soon { background: var(--light); border-style: dashed; opacity: .82; }
.post-card--soon:hover { transform: none; box-shadow: none; }
.post-card--soon .post-tag { color: var(--muted); }

/* ─── Artigo ─────────────────────────────────────────── */
.article-head { padding: 34px 0 6px; }
.article-head h1 {
  font-size: 2.15rem; font-weight: 800; color: var(--navy);
  line-height: 1.22; margin-bottom: 14px;
}
.article-meta {
  font-size: .87rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}

.article-body { padding: 26px 0 10px; font-size: 1.05rem; }
.article-body > p:first-of-type { font-size: 1.15rem; color: var(--text); }
.article-body h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
  margin: 38px 0 14px; line-height: 1.28;
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  margin: 26px 0 10px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--navy); }

@media (max-width: 560px) {
  .article-head h1 { font-size: 1.62rem; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.28rem; }
}

/* Tabelas — scroll horizontal em telemóvel */
.table-wrap { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.article-body table {
  border-collapse: collapse; width: 100%; min-width: 460px; font-size: .95rem;
}
.article-body th {
  background: var(--navy); color: var(--white); text-align: left;
  padding: 11px 13px; font-weight: 700; font-size: .88rem;
}
.article-body td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body tr:nth-child(even) td { background: #fafbfd; }

/* Caixa de destaque / nota legal */
.callout {
  background: var(--light); border-left: 4px solid var(--orange);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 22px; font-size: .97rem;
}
.callout strong { color: var(--navy); }

.note-legal {
  background: #f4f8f5; border-left: 4px solid var(--green);
  padding: 15px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 22px; font-size: .93rem; color: var(--muted);
}
.note-legal strong { color: var(--navy); }

/* CTA dentro do artigo */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: var(--white); border-radius: var(--radius);
  padding: 28px 26px; margin: 34px 0; text-align: center;
}
.cta-box h3 { color: var(--white); font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,.8); margin-bottom: 18px; font-size: .98rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* FAQ */
.faq { margin: 30px 0; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; background: var(--white); overflow: hidden;
}
.faq summary {
  padding: 15px 18px; font-weight: 700; color: var(--navy);
  cursor: pointer; list-style: none; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--orange); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-answer { padding: 15px 18px; color: var(--muted); font-size: .97rem; }
.faq .faq-answer p { margin-bottom: 10px; }
.faq .faq-answer p:last-child { margin-bottom: 0; }

/* ─── Formulário de avaliação ────────────────────────── */
.form-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  margin: 40px 0 10px;
  color: var(--white);
}
.form-box h2 {
  color: var(--white); font-size: 1.45rem; font-weight: 800;
  margin: 0 0 6px; line-height: 1.25;
}
.form-box .form-sub {
  color: rgba(255,255,255,.75); font-size: .97rem; margin-bottom: 22px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .col-2 { grid-column: 1 / -1; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-box { padding: 24px 18px; }
}

.field label {
  display: block; font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.9); margin-bottom: 6px; letter-spacing: .01em;
}
.field label .opt { font-weight: 500; color: rgba(255,255,255,.5); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;                 /* 16px evita o zoom automático no iOS */
  padding: 13px 14px;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: var(--white);
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 92px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.42); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,.12);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-opacity='.6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field select option { background: var(--navy2); color: var(--white); }

.field input:invalid:not(:placeholder-shown) { border-color: #e05a4a; }

/* Honeypot — invisível para pessoas, visível para bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  font-size: 1.08rem;
  padding: 16px 24px;
}

.form-legal {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}
.form-legal a { color: rgba(255,255,255,.8); text-decoration: underline; }

.form-alt {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .92rem;
  color: rgba(255,255,255,.7);
}
.form-alt a { color: var(--white); font-weight: 700; }

/* ─── Página de obrigado ─────────────────────────────── */
.obrigado { padding: 56px 20px 20px; text-align: center; }
.obrigado .tick {
  width: 72px; height: 72px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.obrigado h1 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.obrigado .lead { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin: 0 auto 26px; }
.passos {
  max-width: 520px; margin: 0 auto; text-align: left;
  background: var(--light); border-radius: var(--radius); padding: 22px 24px;
}
.passos h2 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.passos ol { margin: 0 0 0 20px; }
.passos li { margin-bottom: 8px; color: var(--muted); }
.passos li strong { color: var(--text); }

@media (max-width: 560px) { .obrigado h1 { font-size: 1.55rem; } }

/* Links relacionados */
.related { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 26px; }
.related h2 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 9px; padding-left: 18px; position: relative; }
.related li::before { content: '›'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* ─── Página 404 ─────────────────────────────────────── */
.e404 {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: var(--white); padding: 54px 20px 60px; text-align: center;
}
.e404 h1 { font-size: 2.1rem; font-weight: 800; margin: 22px 0 12px; line-height: 1.2; }
.e404 .e404-lead { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 26px; font-size: 1.05rem; }
.e404 .cta-actions { margin-bottom: 6px; }
.crusher { max-width: 300px; margin: 0 auto; }

@media (max-width: 560px) { .e404 h1 { font-size: 1.6rem; } }

.e404-links { padding: 44px 0 10px; }
.e404-links h2 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; text-align: center; }
.e404-links > .container > p { color: var(--muted); text-align: center; margin-bottom: 24px; }

/* ─── Rodapé ─────────────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,.6);
  padding: 34px 20px 96px; text-align: center; font-size: .88rem; margin-top: 50px;
}
footer a { color: rgba(255,255,255,.85); }
footer p { margin-top: 6px; }

/* ─── Barra fixa em telemóvel ────────────────────────── */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  display: none; gap: 1px; background: var(--line);
  box-shadow: 0 -2px 12px rgba(0,0,0,.14);
}
.sticky-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 10px; font-weight: 700; color: var(--white); font-size: .95rem;
}
.sticky-bar a:hover { text-decoration: none; color: var(--white); }
.sticky-call { background: var(--orange); }
.sticky-wa   { background: #25d366; }

@media (max-width: 768px) { .sticky-bar { display: flex; } }
@media (min-width: 769px) { footer { padding-bottom: 34px; } }

/* ─── Impressão ──────────────────────────────────────── */
@media print {
  .topbar, header, .sticky-bar, .cta-box, footer, .breadcrumb { display: none !important; }
  body { font-size: 12pt; }
}
