/* Popular Brasil — tropical-bright tabloid editorial */
:root {
  --primary: #FB8500;
  --accent: #FFB703;
  --bg: #FFF9F0;
  --text: #023047;
  --muted: #8ECAE6;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(2, 48, 71, 0.1);
  --radius-pill: 999px;
  --radius-card: 20px;
  --container: 1140px;
  --font-compact: "Segoe UI", system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-compact);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

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

/* ── Compact topbar header ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo span {
  color: var(--primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

/* Category tags row nav */
.category-nav {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  padding: 8px 0;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.category-tags a {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--transition);
}

.category-tags a:hover,
.category-tags a.active {
  background: var(--white);
  color: var(--primary);
}

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--muted);
  padding: 12px 0;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  display: block;
  padding: 8px 16px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-pill);
}

.mobile-nav a:hover {
  background: var(--muted);
}

/* ── Hero full-width image + overlay ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.hero img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 48, 71, 0.85) 0%, rgba(251, 133, 0, 0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  max-width: 700px;
  letter-spacing: -0.03em;
}

.hero-meta {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

/* ── Bento grid / mosaic tiles ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 32px 0;
}

.bento-tile {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 200px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.bento-tile:hover {
  transform: translateY(-3px);
}

.bento-tile.span-8 { grid-column: span 8; }
.bento-tile.span-4 { grid-column: span 4; }
.bento-tile.span-6 { grid-column: span 6; }
.bento-tile.span-5 { grid-column: span 5; }
.bento-tile.span-7 { grid-column: span 7; }
.bento-tile.span-12 { grid-column: span 12; }
.bento-tile.tall { min-height: 280px; }

.tile-img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 48, 71, 0.92) 0%, rgba(2, 48, 71, 0.2) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.tile-overlay h2,
.tile-overlay h3 {
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tile-overlay h2 { font-size: 1.4rem; }
.tile-overlay h3 { font-size: 1.1rem; }

.tile-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  margin-top: 6px;
}

/* Image overlay cards */
.card-overlay {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-overlay img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.card-overlay-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(2, 48, 71, 0.9));
}

.card-overlay-body h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

/* Pill colored tags */
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-moda { background: #FFB703; color: var(--text); }
.tag-mercado { background: #FB8500; color: var(--white); }
.tag-bairro { background: #8ECAE6; color: var(--text); }
.tag-marcas { background: #219EBC; color: var(--white); }
.tag-dicas { background: #FF6B35; color: var(--white); }

/* ── Compact dense article list ── */
.section-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
  letter-spacing: -0.02em;
}

.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(142, 202, 230, 0.4);
  transition: background var(--transition);
}

.article-list li:hover {
  background: rgba(142, 202, 230, 0.15);
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 12px;
}

.article-list .thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-list .list-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.article-list .list-content h3 a {
  color: inherit;
}

.article-list .list-content h3 a:hover {
  color: var(--primary);
}

.article-list .list-meta {
  font-size: 0.78rem;
  color: #5a8fa8;
  margin-top: 4px;
}

.article-list .list-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 600;
}

/* ── Article page image-heavy ── */
.article-header {
  padding: 32px 0 24px;
}

.article-header .tag {
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.article-lead {
  font-size: 1.1rem;
  color: #1a5570;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.6;
}

.article-hero-img {
  width: 100%;
  border-radius: var(--radius-card);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--text);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(251, 133, 0, 0.08);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

/* Author card with avatar */
.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin: 32px 0;
}

.author-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.author-card .author-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.author-card .author-info span {
  font-size: 0.85rem;
  color: #5a8fa8;
}

/* ── Buttons filled-accent ── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* ── Page layouts ── */
.main-content {
  flex: 1;
  padding-bottom: 48px;
}

.page-header {
  padding: 32px 0 24px;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-header p {
  color: #5a8fa8;
  margin-top: 8px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 24px 0 10px;
}

.prose p {
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 14px 24px;
}

.prose li {
  margin-bottom: 6px;
}

/* Contact form */
.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--muted);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* Articles grid page */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 0;
}

/* Mixed asymmetric spacing */
.asymmetric-block {
  padding: 24px 0 40px;
}

.asymmetric-block.offset-right {
  padding-left: 0;
  padding-right: 32px;
}

.highlight-strip {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-card);
  margin: 24px 0;
  font-weight: 600;
}

.bento-tile.text-tile .tile-overlay {
  position: relative;
  background: linear-gradient(135deg, #023047, #219EBC);
  min-height: 200px;
  justify-content: center;
  padding: 28px;
}

.bento-tile.text-tile .tile-overlay h3 {
  margin-top: 10px;
}

.cta-wrap {
  margin-top: 24px;
}

/* ── Editorial masthead footer ── */
.site-footer {
  background: var(--text);
  color: var(--white);
  margin-top: auto;
}

.footer-masthead {
  text-align: center;
  padding: 40px 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-masthead .logo-text {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.footer-masthead .logo-text span {
  color: var(--accent);
}

.footer-masthead .tagline {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 20px;
  list-style: none;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding: 16px 20px 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Cookie corner popup ── */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 40px rgba(2, 48, 71, 0.2);
  padding: 20px;
  z-index: 1000;
  border: 2px solid var(--accent);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-popup.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-popup h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cookie-popup p {
  font-size: 0.82rem;
  color: #5a8fa8;
  margin-bottom: 14px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-actions .btn {
  flex: 1;
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .bento-tile.span-8,
  .bento-tile.span-4,
  .bento-tile.span-6,
  .bento-tile.span-5,
  .bento-tile.span-7 {
    grid-column: span 12;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-list li {
    grid-template-columns: 64px 1fr;
  }

  .article-list .list-date {
    display: none;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: block;
  }

  .category-nav {
    display: none;
  }

  .hero-overlay {
    padding: 24px 20px;
  }

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

  .cookie-popup {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}
