/* Prisma Brasil — lime-cream modern magazine */
:root {
  --primary: #2D6A4F;
  --accent: #95D5B2;
  --bg: #F8FFF6;
  --text: #1B4332;
  --muted: #74A57F;
  --white: #ffffff;
  --overlay: rgba(27, 67, 50, 0.62);
  --radius-pill: 24px;
  --radius-sm: 12px;
  --container: 1140px;
  --space-xs: 12px;
  --space-sm: 24px;
  --space-md: 36px;
  --space-lg: 48px;
  --space-xl: 72px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --transition: 0.25s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-xs);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-sm); }

.container {
  width: min(100% - var(--space-sm), var(--container));
  margin-inline: auto;
}

/* Stacked header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(45, 106, 79, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-stack {
  padding: var(--space-sm) 0 var(--space-xs);
  text-align: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--text);
}

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

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Horizontal underline nav */
.main-nav {
  border-top: 1px solid rgba(45, 106, 79, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--primary);
  cursor: pointer;
  margin: var(--space-xs) auto;
}

/* Hero full-bleed */
.hero-full {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.hero-full img,
.hero-full .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-xl) var(--space-sm);
  background: linear-gradient(to top, var(--overlay) 0%, transparent 100%);
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  color: var(--white);
}

.hero-content h1 {
  max-width: 18ch;
  margin-bottom: var(--space-sm);
}

.hero-content p {
  max-width: 52ch;
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: var(--space-md);
}

.hero-meta {
  font-size: 0.875rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
}

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

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

.btn-primary:hover {
  background: #245a42;
  color: var(--white);
}

/* Tags underline-text */
.tag {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}

.tag:hover { color: var(--muted); }

/* Magazine columns feed */
.section-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
}

.section-header h2 { margin-bottom: var(--space-xs); }

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

.magazine-columns {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* Image overlay cards */
.card-overlay {
  position: relative;
  border-radius: var(--radius-pill);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--white);
  transition: transform var(--transition);
}

.card-overlay:hover {
  transform: translateY(-4px);
  color: var(--white);
}

.card-overlay img,
.card-overlay .card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 67, 50, 0.88) 0%, rgba(27, 67, 50, 0.2) 60%);
}

.card-body {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
}

.card-body .tag {
  color: var(--accent);
  text-decoration-color: var(--white);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.card-body h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.card-excerpt {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin: 0 0 var(--space-xs);
  line-height: 1.5;
}

.card-date {
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* Magazine breakout grid spans */
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }

.card-overlay.featured { min-height: 480px; }

/* Page content */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}

.page-hero p {
  color: var(--muted);
  max-width: 52ch;
  margin: var(--space-sm) auto 0;
}

.content-block {
  padding-bottom: var(--space-xl);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose-wide {
  max-width: 820px;
  margin: 0 auto;
}

.prose p,
.prose-wide p { margin-bottom: var(--space-sm); }

.prose h2,
.prose-wide h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.prose ul,
.prose-wide ul {
  margin: 0 0 var(--space-sm);
  padding-left: var(--space-sm);
}

.prose li { margin-bottom: var(--space-xs); }

/* Wide magazine article */
.article-header {
  padding: var(--space-lg) 0;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.article-header .tag { margin-bottom: var(--space-sm); }

.article-lead {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
  margin: var(--space-sm) 0 var(--space-md);
}

.article-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.85;
}

.article-body p { margin-bottom: var(--space-md); }

.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
}

/* Author card with avatar */
.author-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(45, 106, 79, 0.12);
  margin: var(--space-lg) auto;
  max-width: 520px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.author-info h4 { margin: 0 0 4px; font-family: var(--font-sans); }
.author-info p { margin: 0; font-size: 0.875rem; color: var(--muted); }

.article-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.article-meta time { font-weight: 500; }

/* Related stories */
.related-section {
  padding: var(--space-lg) 0 var(--space-xl);
  border-top: 1px solid rgba(45, 106, 79, 0.12);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.related-item {
  text-decoration: none;
  color: var(--text);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.related-item:hover { background: rgba(149, 213, 178, 0.2); color: var(--text); }

.related-item h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: var(--space-xs) 0 4px;
}

.related-item .card-date { color: var(--muted); font-size: 0.8125rem; }

/* Articles archive list */
.archive-list { margin-bottom: var(--space-xl); }

.archive-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(45, 106, 79, 0.1);
  text-decoration: none;
  color: var(--text);
  align-items: center;
  transition: opacity var(--transition);
}

.archive-item:hover { opacity: 0.85; color: var(--text); }

.archive-thumb {
  border-radius: var(--radius-pill);
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.archive-content h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.archive-content p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact-info h3 { margin-bottom: var(--space-sm); }

.contact-info p { color: var(--muted); }

.form-group { margin-bottom: var(--space-sm); }

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(45, 106, 79, 0.25);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}

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

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

/* Two-column footer */
.site-footer {
  background: var(--primary);
  color: var(--accent);
  padding: var(--space-xl) 0 var(--space-lg);
}

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

.footer-brand .brand-name {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 40ch;
}

.footer-nav h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

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

.footer-links li { margin-bottom: var(--space-xs); }

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-links a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(149, 213, 178, 0.25);
  font-size: 0.8125rem;
  opacity: 0.75;
  text-align: center;
}

/* Cookie corner popup */
.cookie-popup {
  position: fixed;
  bottom: var(--space-sm);
  right: var(--space-sm);
  max-width: 360px;
  background: var(--white);
  border: 1px solid rgba(45, 106, 79, 0.15);
  border-radius: var(--radius-pill);
  padding: var(--space-md);
  box-shadow: 0 8px 32px rgba(27, 67, 50, 0.15);
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

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

.cookie-popup h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.cookie-popup p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(45, 106, 79, 0.2);
}

.btn-ghost:hover { background: var(--bg); color: var(--text); }

/* Thumb placeholders with flat shapes */
.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

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

  .card-overlay.featured { min-height: 360px; }

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

  .archive-item { grid-template-columns: 1fr; }
}

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

  .nav-inner {
    display: none;
    flex-direction: column;
    gap: var(--space-xs);
    padding-bottom: var(--space-sm);
  }

  .nav-inner.is-open { display: flex; }

  .hero-full { min-height: 60vh; }

  .author-card { flex-direction: column; text-align: center; }
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.link-accent { color: var(--accent); }
.form-feedback { margin-top: var(--space-sm); color: var(--primary); font-size: 0.9375rem; }
.thumb-grad-a { background: linear-gradient(135deg, #74A57F, #95D5B2); }
.thumb-grad-b { background: linear-gradient(160deg, #1B4332, #2D6A4F); }
.thumb-grad-c { background: linear-gradient(120deg, #2D6A4F, #74A57F); }
.thumb-grad-d { background: linear-gradient(90deg, #95D5B2, #2D6A4F); }
.thumb-grad-e { background: linear-gradient(90deg, #95D5B2, #F8FFF6 60%, #2D6A4F); }
.article-section-top { padding-top: var(--space-lg); border-top: 2px solid var(--accent); margin-bottom: var(--space-xl); }
.article-section { padding-top: var(--space-lg); border-top: 1px solid rgba(45, 106, 79, 0.12); margin-bottom: var(--space-xl); }
.article-body-offset { margin-top: var(--space-lg); }
.card-tall { min-height: 280px; }
