/* Pulso Brasil — cashbr.click | coastal-blue business-digest */

:root {
  --ocean-deep: #143d56;
  --coastal: #2a7094;
  --coastal-mid: #3d8fb5;
  --coastal-light: #6eb3d4;
  --foam: #e8f3f9;
  --sand: #f6fafc;
  --white: #ffffff;
  --ink: #1a2c38;
  --ink-muted: #5a7080;
  --ink-faint: #8a9eac;
  --border: #c8dce8;
  --shadow: 0 4px 18px rgba(20, 61, 86, 0.09);
  --shadow-hover: 0 8px 28px rgba(20, 61, 86, 0.13);
  --radius: 8px;
  --container: 1140px;
  --gap: 1.5rem;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --line: 1.65;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: var(--line);
  color: var(--ink);
  background: var(--sand);
}

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

a {
  color: var(--coastal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--ocean-deep); }

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .col-8, .col-4 { grid-column: span 12; }
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ocean-deep);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--coastal); }

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  color: var(--ocean-deep);
  font-size: 0.85rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

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

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Hero split */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
  padding: 2.5rem 0;
}

.hero-split .hero-text h1 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.25;
  color: var(--ocean-deep);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero-split .hero-text p {
  color: var(--ink-muted);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.hero-split .hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-image { order: -1; }
}

/* Tags */
.tag {
  display: inline;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coastal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Byline */
.byline {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0.5rem 0;
}

.byline a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.byline a:hover { color: var(--coastal); }

/* Text link button */
.btn-link {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--coastal);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link:hover { color: var(--ocean-deep); }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.card:hover { box-shadow: var(--shadow-hover); }

/* Article list horizontal rows */
.article-rows { margin: 2rem 0; }

.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.article-row:first-child { padding-top: 0; }

.article-row-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--foam);
}

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

.article-row-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.article-row-body h3 a {
  color: var(--ocean-deep);
  text-decoration: none;
}

.article-row-body h3 a:hover {
  color: var(--coastal);
  text-decoration: underline;
}

.article-row-body p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

@media (max-width: 600px) {
  .article-row { grid-template-columns: 1fr; }
  .article-row-thumb { max-width: 100%; }
}

/* Section headings */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coastal);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--foam);
}

.page-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--ocean-deep);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-intro {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  max-width: 680px;
}

/* Sidebar right rail */
.layout-rail {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 5rem;
}

.sidebar-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-block h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coastal);
  margin: 0 0 0.75rem;
}

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

.sidebar-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--foam);
  font-size: 0.9rem;
}

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

.sidebar-list a { color: var(--ink); }
.sidebar-list a:hover { color: var(--coastal); }

@media (max-width: 900px) {
  .layout-rail { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* Article split content rail */
.article-header {
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  color: var(--ocean-deep);
  margin: 0.5rem 0;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.article-meta .updated {
  font-style: italic;
}

.article-hero-img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

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

.article-body {
  font-size: 1.02rem;
}

.article-body h2 {
  font-size: 1.25rem;
  color: var(--ocean-deep);
  margin: 2rem 0 0.75rem;
}

.article-body p { margin: 0 0 1rem; }

.article-body ul, .article-body ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.article-body li { margin-bottom: 0.4rem; }

.related-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-block h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coastal);
  margin: 0 0 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.related-item {
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.related-item a {
  color: var(--ocean-deep);
  font-weight: 600;
}

@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* Author card */
.author-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--foam);
}

.author-card .author-name {
  font-weight: 600;
  color: var(--ocean-deep);
  margin: 0;
}

.author-card .author-bio {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0.2rem 0 0;
}

/* Prose pages */
.prose {
  max-width: 720px;
  padding: 2rem 0 3rem;
}

.prose h2 {
  font-size: 1.2rem;
  color: var(--ocean-deep);
  margin: 2rem 0 0.75rem;
}

.prose p, .prose li {
  font-size: 0.98rem;
  color: var(--ink);
}

.prose ul { padding-left: 1.3rem; }

/* Contact form */
.contact-form {
  max-width: 520px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

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

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

/* Footer three-column */
.site-footer {
  background: var(--ocean-deep);
  color: var(--foam);
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}

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

.footer-col h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coastal-light);
  margin: 0 0 0.75rem;
}

.footer-col p,
.footer-col li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(232, 243, 249, 0.85);
}

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

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: var(--foam);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(232, 243, 249, 0.6);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(20, 61, 86, 0.1);
  padding: 1rem 0;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

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

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  flex: 1;
  min-width: 200px;
}

.cookie-inner a { font-size: 0.88rem; }

/* Utility */
.main-content { padding-bottom: 2rem; }

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

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