/* Escolha Clara — consumidor.digital
   Archetype: business-digest | Palette: teal + cinza claro */

:root {
  --teal-900: #0d4f4f;
  --teal-700: #147373;
  --teal-500: #1a9e9e;
  --teal-300: #5ec4c4;
  --teal-100: #e0f5f5;
  --gray-50: #f7f8f9;
  --gray-100: #eef0f2;
  --gray-200: #dde1e5;
  --gray-400: #9aa3ad;
  --gray-600: #5c6670;
  --gray-800: #2d3339;
  --gray-900: #1a1e22;
  --white: #ffffff;
  --accent: var(--teal-500);
  --text: var(--gray-800);
  --text-muted: var(--gray-600);
  --border: var(--gray-200);
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max-wide: 1140px;
  --max-read: 680px;
  --topbar-h: 52px;
  --radius: 4px;
  --shadow-none: none;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-700);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover { color: var(--teal-900); }

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--gray-900);
  font-weight: 700;
  margin-top: 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

/* ——— Compact topbar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal-900);
  color: var(--white);
  height: var(--topbar-h);
  border-bottom: 2px solid var(--teal-500);
}

.topbar__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover { color: var(--teal-300); }

.brand__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
}

.menu-toggle svg { width: 24px; height: 24px; }

/* ——— Layout ——— */
.container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: var(--max-read);
}

.section {
  padding: 2.5rem 0;
}

.section--tight { padding: 1.75rem 0; }

/* ——— Mixed-magazine homepage ——— */
.hero-mag {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hero-mag__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 2.5rem;
}

.hero-mag__lead h1 {
  font-size: 2.15rem;
  margin-bottom: 0.5em;
}

.hero-mag__lead .kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-700);
  margin-bottom: 0.6rem;
}

.hero-mag__lead p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-mag__visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--teal-100);
}

/* Flat cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-none);
  overflow: hidden;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--teal-300); }

.card__img {
  aspect-ratio: 16/9;
  background: var(--gray-100);
  overflow: hidden;
}

.card__img img,
.card__img svg { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: 1.1rem 1.25rem 1.25rem; }

.card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-700);
  margin-bottom: 0.4rem;
}

.card__title {
  font-size: 1.05rem;
  margin: 0 0 0.45em;
  line-height: 1.35;
}

.card__title a { color: var(--gray-900); }
.card__title a:hover { color: var(--teal-700); }

.card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75em;
  line-height: 1.55;
}

.card__meta {
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* Magazine grids */
.mag-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mag-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mag-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mag-sidebar .card { display: flex; flex-direction: row; }
.mag-sidebar .card__img { width: 110px; flex-shrink: 0; aspect-ratio: 1; }
.mag-sidebar .card__body { padding: 0.85rem 1rem; }

/* Topics strip */
.topics-strip {
  background: var(--teal-100);
  border-top: 1px solid var(--teal-300);
  border-bottom: 1px solid var(--teal-300);
  padding: 0.85rem 0;
}

.topics-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.topics-strip__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-900);
}

.topics-strip a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-700);
  padding: 0.2rem 0.6rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--teal-300);
}

.topics-strip a:hover {
  background: var(--teal-700);
  color: var(--white);
  border-color: var(--teal-700);
}

/* Digest block */
.digest-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}

.digest-block h2 {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--teal-500);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.digest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.digest-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
}

.digest-list li:last-child { border-bottom: none; }

/* ——— Article listing ——— */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.75rem;
}

.page-header h1 { margin-bottom: 0.35em; }
.page-header p { color: var(--text-muted); max-width: 560px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 2rem 0;
}

/* ——— Narrow reading article ——— */
.article-narrow {
  background: var(--white);
  padding: 2.5rem 0 3rem;
}

.article-narrow__header {
  max-width: var(--max-read);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.article-narrow__header .kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal-700);
  margin-bottom: 0.5rem;
}

.article-narrow__header h1 {
  font-size: 2rem;
  margin-bottom: 0.6em;
}

.article-narrow__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.article-narrow__updated {
  font-size: 0.82rem;
  color: var(--gray-400);
  font-style: italic;
}

.article-narrow__content {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 0 1.25rem;
  font-size: 1.02rem;
}

.article-narrow__content h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.article-narrow__content h3 {
  margin-top: 1.5rem;
}

.article-narrow__content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--teal-100);
  border-left: 3px solid var(--teal-500);
  font-style: italic;
  color: var(--gray-800);
}

.article-narrow__content .tip-box {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-narrow__content .tip-box strong {
  display: block;
  margin-bottom: 0.35em;
  color: var(--teal-900);
}

/* Author bio */
.author-box {
  max-width: var(--max-read);
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.25rem;
  display: flex;
  gap: 1rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--teal-100);
}

.author-box__name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2em;
}

.author-box__role {
  font-size: 0.8rem;
  color: var(--teal-700);
  margin-bottom: 0.4em;
}

.author-box__bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ——— Static pages ——— */
.prose {
  background: var(--white);
  padding: 2.5rem 0 3rem;
}

.prose__inner {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.05rem; }

/* Contact form */
.contact-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--teal-300);
  outline-offset: 1px;
  border-color: var(--teal-500);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.btn--primary {
  background: var(--teal-700);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--teal-900);
  color: var(--white);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--teal-300); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.45rem; font-size: 0.88rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ——— Cookie notice ——— */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--gray-900);
  color: var(--white);
  padding: 1rem 1.25rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 2px solid var(--teal-500);
}

.cookie-notice.is-visible { transform: translateY(0); }

.cookie-notice__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-notice p {
  margin: 0;
  font-size: 0.85rem;
  flex: 1;
  min-width: 200px;
}

.cookie-notice a { color: var(--teal-300); }

.cookie-notice__actions {
  display: flex;
  gap: 0.6rem;
}

.btn--cookie {
  background: var(--teal-500);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn--cookie:hover { background: var(--teal-300); color: var(--gray-900); }

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn--ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ——— Utilities ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-muted { color: var(--text-muted); }

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .hero-mag__grid { grid-template-columns: 1fr; }
  .mag-featured { grid-template-columns: 1fr; }
  .mag-row { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }

  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    background: var(--teal-900);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    border-bottom: 2px solid var(--teal-500);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
  }

  .mag-row,
  .articles-grid { grid-template-columns: 1fr; }

  .mag-sidebar .card { flex-direction: column; }
  .mag-sidebar .card__img { width: 100%; aspect-ratio: 16/9; }

  .footer-grid { grid-template-columns: 1fr; }

  .article-narrow__header h1 { font-size: 1.65rem; }

  .hero-mag__lead h1 { font-size: 1.75rem; }
}
