/* =============================================================
   G1 — Portal de Notícias (inspirado no g1.globo.com)
   ============================================================= */

:root {
  --brand: #c4170c;
  --brand-dark: #a6130a;
  --accent: #00695c;
  --ink: #1f1f1f;
  --muted: #777;
  --line: #e2e2e2;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

ul, li { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { font-family: 'Roboto', 'Open Sans', sans-serif; margin: 0; }

.kicker {
  display: inline-block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.time { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---- Header ---- */
.top-strip { height: 4px; background: var(--brand); }

.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.brand-text {
  font-family: 'Roboto', sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--brand);
  text-transform: lowercase;
}
.masthead-tagline {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-main { background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.header-menu-btn {
  display: none;
  background: var(--brand);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
}
.header-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.header-nav-links li a {
  display: block;
  padding: 12px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.header-nav-links li a:hover,
.header-nav-links li a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.nav-search { margin-left: auto; color: #555; font-size: 17px; cursor: pointer; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  padding: 20px 0;
}
.hero-lead { display: block; }
.hero-media { border-radius: 6px; overflow: hidden; }
.hero-media img { width: 100%; height: 340px; object-fit: cover; }
.hero-copy { padding-top: 12px; }
.hero-copy h1 { font-size: 30px; line-height: 1.2; color: #111; margin-bottom: 10px; }
.hero-lead:hover .hero-copy h1 { color: var(--accent); }
.hero-resumo { font-size: 15px; color: #444; line-height: 1.5; margin: 0 0 4px; }

.hero-side { display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--line); padding-left: 20px; }
.hero-mini { display: flex; gap: 12px; align-items: flex-start; }
.hero-mini-media { flex: 0 0 110px; border-radius: 4px; overflow: hidden; }
.hero-mini-media img { width: 110px; height: 74px; object-fit: cover; }
.hero-mini-copy h2 { font-size: 14px; line-height: 1.35; color: #111; font-weight: 700; }
.hero-mini:hover .hero-mini-copy h2 { color: var(--accent); }

/* ---- Sections ---- */
.section { padding: 14px 0 24px; }
.section-head {
  border-bottom: 2px solid var(--brand);
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .3px;
  padding-bottom: 6px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.card a { display: flex; flex-direction: column; height: 100%; }
.card-media img { width: 100%; height: 150px; object-fit: cover; }
.card-body { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { font-size: 15px; line-height: 1.4; color: #111; margin-bottom: 6px; }
.card:hover .card-body h3 { color: var(--accent); }
.card-resumo { font-size: 13px; color: #555; line-height: 1.45; margin: 0 0 8px; }
.card-body .time { margin-top: auto; }

/* ---- Article ---- */
.single-article { max-width: 760px; margin: 0 auto; padding: 24px 0; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 22px; }
.article-title { font-size: 40px; line-height: 1.12; color: #111; margin: 8px 0 14px; }
.article-resumo { font-size: 18px; color: #444; line-height: 1.5; margin: 0 0 16px; }
.article-meta { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.byline { color: var(--brand); font-weight: 700; }

.article-main-image { margin: 0 0 24px; }
.article-main-image img { width: 100%; border-radius: 6px; }
.article-main-image figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

.article-body { font-size: 17px; line-height: 1.7; color: #222; }
.article-body p { margin: 0 0 18px; }
.article-body h2, .article-body h3 { margin: 28px 0 12px; color: #111; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body img { border-radius: 6px; margin: 8px 0; }

.related { border-top: 1px solid var(--line); margin-top: 20px; }

/* ---- Footer ---- */
.site-footer { background: #1f1f1f; color: #cfcfcf; margin-top: 30px; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding: 28px 16px;
}
.footer-brand-text { font-size: 24px; font-weight: 900; color: #fff; text-transform: lowercase; }
.footer-brand p { font-size: 12px; margin: 6px 0 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links li a { font-size: 12px; color: #cfcfcf; }
.footer-links li a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-left: auto; }
.footer-social li a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid #555; border-radius: 50%;
  color: #cfcfcf; font-size: 15px; transition: all .2s;
}
.footer-social li a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .article-title { font-size: 28px; }
}
@media (max-width: 640px) {
  .header-menu-btn { display: flex; align-items: center; justify-content: center; }
  .header-nav-links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    display: none;
    z-index: 100;
  }
  .header-nav-links.nav-active { display: flex; }
  .header-nav-links li a { border-bottom: 1px solid var(--line); }
  .nav-main { position: relative; }
  .hero-media img { height: 220px; }
  .grid { grid-template-columns: 1fr; }
  .footer-social { margin-left: 0; }
}