/* Sharp Brasil — style.css */

/* --- :root --- */
:root {
  --primary: #144552;
  --accent: #2A9D8F;
  --bg: #F2FBFC;
  --text: #0B1F26;
  --muted: #6B9AA5;
  --border: #C5DDE3;
  --white: #FFFFFF;
  --shadow: 0 2px 8px rgba(11, 31, 38, 0.08);
  --shadow-hover: 0 4px 16px rgba(11, 31, 38, 0.12);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --radius: 6px;
  --container: 1140px;
  --font-serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --line-tight: 1.3;
  --line-body: 1.65;
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: var(--line-body);
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: var(--line-tight);
  color: var(--primary);
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p {
  margin-bottom: var(--space-2);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.125rem;
  line-height: var(--line-body);
  color: var(--primary);
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.tag {
  display: inline;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link {
  display: inline;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--primary);
}

/* --- layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

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

.col-main { grid-column: span 12; }
.col-sidebar { grid-column: span 12; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.site-brand {
  flex: 1 1 auto;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.site-tagline {
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

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

.nav-toggle {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.site-main {
  padding: var(--space-4) 0 var(--space-5);
}

.page-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: var(--space-2);
}

/* --- components --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  align-items: center;
}

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

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

.hero-split__content h1 {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}

.hero-split__content .lead {
  max-width: 38rem;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.lead-feature {
  margin-bottom: var(--space-5);
}

.card-shadow {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

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

.card-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.card-lead__image {
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.card-lead__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-lead__body {
  padding: var(--space-3);
}

.card-lead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.card-lead__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.card-lead__title a {
  color: var(--primary);
  text-decoration: none;
}

.card-lead__title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.card-lead__excerpt {
  font-size: 0.9375rem;
  margin-bottom: var(--space-2);
}

.article-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.article-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

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

.article-row__thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.article-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-row__body {
  padding: var(--space-2) var(--space-3) var(--space-3);
}

.article-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-1);
}

.article-row__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

.article-row__title a {
  color: var(--primary);
  text-decoration: none;
}

.article-row__title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.article-row__excerpt {
  font-size: 0.875rem;
  color: var(--text);
}

.editorial-block {
  margin-bottom: var(--space-5);
}

.editorial-block h2 {
  margin-bottom: var(--space-2);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.article-content {
  font-size: 1rem;
}

.article-content h2 {
  margin: var(--space-4) 0 var(--space-2);
}

.article-content h3 {
  margin: var(--space-3) 0 var(--space-2);
}

.article-content ul,
.article-content ol {
  margin: var(--space-2) 0 var(--space-2) var(--space-3);
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: var(--space-1);
}

.article-content blockquote {
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-3);
  border-left: 4px solid var(--accent);
  background: var(--white);
  font-style: italic;
  color: var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-hero-image {
  aspect-ratio: 16 / 9;
  margin-bottom: var(--space-3);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
}

.author-footer-note {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.author-footer-note__header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.author-footer-note__inner {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.author-footer-note__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.author-footer-note__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.author-footer-note__role {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: var(--space-1);
}

.author-footer-note__text {
  font-size: 0.875rem;
  line-height: 1.55;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-sticky {
  position: static;
}

.sidebar-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-3);
}

.sidebar-box h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

.toc-list li {
  margin-bottom: var(--space-1);
}

.toc-list a {
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.related-list li {
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.related-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.related-list a {
  font-size: 0.9375rem;
  color: var(--primary);
  text-decoration: none;
}

.related-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer {
  background: var(--primary);
  color: var(--bg);
  padding: var(--space-4) 0 var(--space-3);
}

.site-footer a {
  color: var(--bg);
}

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

.footer-masthead {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(242, 251, 252, 0.2);
}

.footer-masthead .site-logo {
  color: var(--bg);
  display: inline-block;
  margin-bottom: var(--space-2);
}

.footer-masthead .site-logo:hover {
  color: var(--accent);
}

.footer-masthead p {
  font-size: 0.875rem;
  color: rgba(242, 251, 252, 0.8);
  max-width: 36rem;
}

.footer-disclaimer {
  font-size: 0.8125rem;
  font-style: italic;
  color: rgba(242, 251, 252, 0.7);
  margin-top: var(--space-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  color: var(--accent);
}

.footer-col ul li {
  margin-bottom: var(--space-1);
}

.footer-col a {
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(242, 251, 252, 0.2);
  padding-top: var(--space-3);
  font-size: 0.75rem;
  color: rgba(242, 251, 252, 0.65);
  text-align: center;
}

.cookie-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(11, 31, 38, 0.1);
  padding: var(--space-2) var(--space-2);
}

.cookie-bar.is-visible {
  display: block;
}

.cookie-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text);
}

.cookie-bar button {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--primary);
}

.contact-form .field {
  margin-bottom: var(--space-3);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: var(--space-1) var(--space-2);
  font: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

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

.form-card {
  padding: var(--space-3);
}

.prose-section {
  margin-bottom: var(--space-4);
}

.prose-section h2 {
  margin-bottom: var(--space-2);
}

.prose-section h3 {
  margin: var(--space-3) 0 var(--space-2);
}

.articles-list-page .article-row__body {
  padding: var(--space-3);
}

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

.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-2); }
.mb-md { margin-bottom: var(--space-3); }
.mb-lg { margin-bottom: var(--space-4); }
.mt-sm { margin-top: var(--space-2); }

body.has-cookie-bar {
  padding-bottom: 72px;
}

/* --- media queries --- */
@media (min-width: 480px) {
  h1 { font-size: 2.125rem; }
  .hero-split__content h1 { font-size: 2.25rem; }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-row {
    grid-template-columns: 200px 1fr;
  }
  .article-row__thumb {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

@media (min-width: 768px) {
  h1 { font-size: 2.375rem; }
  h2 { font-size: 1.625rem; }
  .hero-split__content h1 { font-size: 2.5rem; }

  .nav-toggle { display: none; }

  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .card-lead {
    grid-template-columns: 5fr 7fr;
  }

  .card-lead__image {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .article-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }

  .sidebar-sticky {
    position: sticky;
    top: var(--space-3);
  }

  .article-row {
    grid-template-columns: 240px 1fr;
  }

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

@media (min-width: 1024px) {
  .col-main { grid-column: span 8; }
  .col-sidebar { grid-column: span 4; }

  .card-lead__title {
    font-size: 1.75rem;
  }

  .article-row {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
    order: 3;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-2) 0;
    gap: var(--space-2);
  }
}
