/* Pulso Jovem — brasiliaclick.digital */
:root {
  --coral: #FF6B6B;
  --coral-dark: #e85555;
  --navy: #1A1A2E;
  --navy-light: #2a2a45;
  --gray: #E8E8E8;
  --gray-mid: #b8b8b8;
  --white: #ffffff;
  --text: #2d2d3a;
  --text-muted: #6b6b7b;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 26, 46, 0.14);
  --transition: 0.25s ease;
  --max-width: 1280px;
  --header-h: 72px;
}

[data-theme="dark"] {
  --navy: #0f0f1a;
  --navy-light: #1a1a2e;
  --gray: #2a2a3a;
  --gray-mid: #5a5a6a;
  --white: #f0f0f5;
  --text: #e8e8f0;
  --text-muted: #a0a0b0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
}

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

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

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

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

a { color: var(--coral); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--coral-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: var(--white); }

/* ── Split Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--coral);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.25rem;
  height: var(--header-h);
  gap: 1rem;
}

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

.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-left a, .nav-right a {
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-left a:hover, .nav-right a:hover,
.nav-left a.active, .nav-right a.active { color: var(--coral); }

.logo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.logo a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-tagline {
  color: var(--coral);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle, .menu-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gray);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.1rem;
}

.theme-toggle:hover, .menu-toggle:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.menu-toggle { display: none; }

.mobile-nav {
  display: none;
  background: var(--navy-light);
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

.mobile-nav a {
  display: block;
  color: var(--gray);
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav a:hover { color: var(--coral); }

/* ── Hero Grid ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 520px;
}

.hero-main {
  position: relative;
  grid-row: 1 / 3;
  overflow: hidden;
  background: var(--navy);
}

.hero-main img, .hero-main svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(255,107,107,0.25) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  width: fit-content;
}

.hero-overlay h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
  max-width: 28ch;
}

.hero-overlay h1 a { color: inherit; }
.hero-overlay h1 a:hover { color: var(--coral); }

.hero-meta {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--navy-light);
  min-height: 260px;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.hero-card + .hero-card { border-top: 1px solid rgba(255,255,255,0.06); }

.hero-card img, .hero-card svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.hero-card-content {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  background: linear-gradient(transparent 20%, rgba(26,26,46,0.9) 100%);
}

.hero-card-content .tag {
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-card-content h2 {
  color: var(--white);
  font-size: 1.15rem;
}

.hero-card-content h2 a { color: inherit; }
.hero-card-content h2 a:hover { color: var(--coral); }

.hero-card-content .meta {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

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

.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.75rem;
}

.section-header h2 {
  font-size: 1.5rem;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--coral);
}

.section-header a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Article Grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray);
}

[data-theme="dark"] .article-card {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.08);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--navy);
}

.card-image img, .card-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-image img,
.article-card:hover .card-image svg { transform: scale(1.05); }

.card-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--coral);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
}

.card-body { padding: 1.25rem; }

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.card-body h3 a { color: var(--navy); }
[data-theme="dark"] .card-body h3 a { color: var(--white); }
.card-body h3 a:hover { color: var(--coral); }

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-meta img, .card-meta svg {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Editorial Picks ── */
.editorial-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.pick-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy);
}

.pick-featured img, .pick-featured svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.pick-featured-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(26,26,46,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.pick-featured-content h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pick-featured-content h3 a { color: inherit; }
.pick-featured-content h3 a:hover { color: var(--coral); }

.pick-list { display: flex; flex-direction: column; gap: 1.25rem; }

.pick-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray);
}

.pick-item:last-child { border-bottom: none; padding-bottom: 0; }

.pick-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--navy);
}

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

.pick-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.pick-item h4 a { color: var(--navy); }
[data-theme="dark"] .pick-item h4 a { color: var(--white); }
.pick-item h4 a:hover { color: var(--coral); }

.pick-item .meta { font-size: 0.8rem; color: var(--text-muted); }

/* ── Newsletter Strip ── */
.newsletter-strip {
  background: var(--navy);
  padding: 2.5rem 0;
  margin: 2rem 0 0;
}

.newsletter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-inner h2 {
  color: var(--white);
  font-size: 1.25rem;
}

.newsletter-inner p {
  color: var(--gray-mid);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 220px;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: 0.02em;
}

.btn:hover { background: var(--coral-dark); color: var(--white); }

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

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

/* ── Article Page ── */
.article-hero {
  position: relative;
  background: var(--navy);
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.article-hero img, .article-hero svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.article-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}

.article-hero .category {
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.article-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 20ch;
  margin-bottom: 1rem;
}

.article-hero .meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content p { margin-bottom: 1.25rem; }

.article-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

.article-content blockquote {
  border-left: 4px solid var(--coral);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--gray);
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

[data-theme="dark"] .article-content blockquote {
  background: var(--navy-light);
}

.article-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.author-box {
  background: var(--gray);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

[data-theme="dark"] .author-box {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.08);
}

.author-box img, .author-box svg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.author-box h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.author-box .role { color: var(--coral); font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem; }
.author-box p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.related-box h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--coral);
}

.related-list { list-style: none; }

.related-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray);
  font-size: 0.9rem;
}

.related-list li a { color: var(--navy); font-weight: 500; }
[data-theme="dark"] .related-list li a { color: var(--white); }
.related-list li a:hover { color: var(--coral); }

/* ── Page Content (about, legal, contact) ── */
.page-hero {
  background: var(--navy);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--gray-mid);
  font-size: 1rem;
  max-width: 50ch;
  margin: 0 auto;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.page-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.page-content p { margin-bottom: 1rem; }

.page-content ul, .page-content ol {
  margin: 0 0 1rem 1.5rem;
}

.page-content li { margin-bottom: 0.5rem; }

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.contact-info h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-detail strong { color: var(--navy); min-width: 80px; }
[data-theme="dark"] .contact-detail strong { color: var(--white); }

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

[data-theme="dark"] .form-group label { color: var(--white); }

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

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.15);
}

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

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

/* ── Articles Listing ── */
.articles-page-header {
  background: var(--gray);
  padding: 2.5rem 0;
  text-align: center;
}

[data-theme="dark"] .articles-page-header { background: var(--navy-light); }

.articles-page-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.articles-page-header p { color: var(--text-muted); }

.filter-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-mid);
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: var(--gray-mid);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo a { font-size: 1.25rem; }
.footer-brand p { font-size: 0.85rem; margin-top: 0.75rem; line-height: 1.6; }

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

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--gray-mid); font-size: 0.85rem; }
.footer-col a:hover { color: var(--coral); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ── Cookie Notice ── */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--gray);
  padding: 1rem 1.25rem;
  z-index: 200;
  display: none;
  border-top: 3px solid var(--coral);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.cookie-notice.visible { display: block; }

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

.cookie-inner p { font-size: 0.85rem; flex: 1; min-width: 200px; }
.cookie-inner a { color: var(--coral); text-decoration: underline; }

.cookie-actions { display: flex; gap: 0.5rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--coral); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-main { grid-row: auto; min-height: 380px; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-card { border-left: none; min-height: 220px; }
  .hero-card + .hero-card { border-top: none; border-left: 1px solid rgba(255,255,255,0.06); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-picks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav-left, .nav-right { display: none; }
  .menu-toggle { display: flex; }
  .logo { text-align: left; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-card + .hero-card { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .articles-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { min-width: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
