/* Ganho Cultura — terracotta-warm culture desk */

:root {
  --terra: #b85c38;
  --terra-dark: #8a3f28;
  --terra-light: #d4875a;
  --cream: #faf6f0;
  --sand: #e8d5c4;
  --sand-dark: #d4bda8;
  --ink: #2c2420;
  --ink-soft: #5a4f48;
  --olive: #6b7c5c;
  --olive-light: #8a9d78;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 12px;
  --radius-lg: 16px;
  --container: 1140px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 8px 32px rgba(44, 36, 32, 0.08);
  --shadow-lg: 0 16px 48px rgba(44, 36, 32, 0.12);
  --transition: 0.25s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.25rem; }

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

/* ── Split-nav header ── */

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

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

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.header-meta {
  text-align: right;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.header-meta time {
  display: block;
  font-weight: 600;
  color: var(--terra-dark);
}

.nav-tags-row {
  border-top: 1px solid var(--sand);
  padding: 0.65rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-tags-row__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: max-content;
}

.nav-tags-row a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--cream);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav-tags-row a:hover,
.nav-tags-row a.is-active {
  background: var(--terra);
  color: var(--white);
}

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

.header-link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.header-link:hover { color: var(--terra); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--sand);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-nav a {
  text-decoration: none;
  padding: 0.65rem 0;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--sand);
}

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

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid var(--terra);
  color: var(--terra-dark);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

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

.btn--light {
  border-color: var(--white);
  color: var(--white);
}

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

/* ── Tags ── */

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

.tag--terra { background: var(--terra); color: var(--white); }
.tag--olive { background: var(--olive); color: var(--white); }
.tag--sand { background: var(--sand); color: var(--ink); }
.tag--cream { background: rgba(255,255,255,0.2); color: var(--white); border: 1px solid rgba(255,255,255,0.4); }

/* ── Hero full-bleed ── */

.hero-fullbleed {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-fullbleed__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fullbleed__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(44, 36, 32, 0.88) 0%,
    rgba(44, 36, 32, 0.45) 45%,
    rgba(44, 36, 32, 0.15) 100%
  );
}

.hero-fullbleed__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.5rem;
  color: var(--white);
  max-width: 720px;
}

.hero-fullbleed__content h1 {
  margin: 0.75rem 0 1rem;
  color: var(--white);
}

.hero-fullbleed__content p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terra-light);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
}

/* ── Bento grid ── */

.section {
  padding: 3.5rem 0;
}

.section--tight { padding: 2.5rem 0; }

.section__header {
  margin-bottom: 2rem;
}

.section__title {
  margin: 0;
}

.section__subtitle {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

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

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.bento-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,32,0.85) 0%, rgba(44,36,32,0.2) 60%, transparent 100%);
}

.bento-card__body {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.bento-card__body h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1.25rem;
  color: var(--white);
}

.bento-card__meta {
  font-size: 0.78rem;
  opacity: 0.85;
}

.bento-span-8 { grid-column: span 8; min-height: 380px; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-5 { grid-column: span 5; }
.bento-span-7 { grid-column: span 7; }

/* ── Horizontal article rows ── */

.article-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--sand);
  text-decoration: none;
  color: inherit;
  align-items: start;
  transition: background var(--transition);
}

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

.article-row:hover {
  color: inherit;
}

.article-row:hover h3 { color: var(--terra-dark); }

.article-row__thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--sand);
}

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

.article-row__body h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.2rem;
  transition: color var(--transition);
}

.article-row__excerpt {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-row__meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* ── Author card ── */

.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--sand);
}

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

.author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card__name {
  font-weight: 700;
  font-family: var(--font-serif);
  margin: 0;
}

.author-card__role {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0.15rem 0 0;
}

/* ── Article page (image-heavy) ── */

.article-hero {
  position: relative;
  margin-bottom: 2.5rem;
}

.article-hero__img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0;
}

.article-hero--fullbleed .article-hero__img {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
}

.article-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding-inline: 1.25rem;
}

.article-header h1 {
  margin: 0.75rem 0 1rem;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  font-size: 1.05rem;
}

.article-body h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.45rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--terra);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
}

.article-body figure {
  margin: 2.5rem -1.25rem;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius);
}

.article-body figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  padding: 0 1.25rem;
}

.article-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--sand);
}

/* ── Page layouts ── */

.page-header {
  padding: 3rem 0 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  margin-bottom: 2.5rem;
}

.page-header h1 { margin: 0 0 0.5rem; }

.page-header p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 600px;
}

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

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

.page-content ul, .page-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

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

/* ── Contact form ── */

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

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

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

/* ── Two-column footer ── */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-nav h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terra-light);
  margin: 0 0 1rem;
  font-family: var(--font-sans);
}

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

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ── Cookie corner popup ── */

.cookie-popup {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand);
  z-index: 200;
  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 p {
  font-size: 0.85rem;
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.cookie-popup .btn {
  width: 100%;
  justify-content: center;
}

/* ── Intro prose block ── */

.intro-block {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}

.intro-block p {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ── Asymmetric spacing helpers ── */

.offset-right {
  margin-left: auto;
  max-width: 90%;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--terra-dark);
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--terra-light);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .bento-span-8,
  .bento-span-7,
  .bento-span-6,
  .bento-span-5,
  .bento-span-4 {
    grid-column: span 12;
    min-height: 260px;
  }

  .bento-span-8 { min-height: 300px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-row {
    grid-template-columns: 120px 1fr;
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  html { font-size: 16px; }

  .header-link { display: none; }

  .menu-toggle { display: flex; }

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

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

  .article-row__thumb {
    max-height: 180px;
    aspect-ratio: 16/9;
  }

  .cookie-popup {
    left: 1rem;
    right: 1rem;
    max-width: none;
    bottom: 1rem;
  }
}
