/* Naravo — photo-reportage editorial | urban-slate palette */

:root {
  --primary: #3A506B;
  --accent: #5BC0BE;
  --bg: #F0F4F8;
  --text: #1C2541;
  --muted: #6B7F99;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 12px;
  --container: 1140px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 4px 24px rgba(28, 37, 65, 0.08);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

p { margin: 0 0 1.15rem; }

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

.container--narrow {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

/* Split-nav header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(58, 80, 107, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.header-split__left,
.header-split__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-split__left { justify-content: flex-start; }
.header-split__right { justify-content: flex-end; }

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

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(58, 80, 107, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.85rem;
  font-family: var(--sans);
}

/* Category tags row */
.category-nav {
  background: var(--primary);
  padding: 0.65rem 0;
}

.category-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.category-nav__label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), opacity var(--transition);
}

.tag:hover { transform: translateY(-1px); opacity: 0.92; }

.tag--cidade { background: #5BC0BE; color: var(--text); }
.tag--cultura { background: #8ECAE6; color: var(--text); }
.tag--rua { background: #C4D4E8; color: var(--text); }
.tag--foto { background: #E8D5B5; color: var(--text); }
.tag--rio { background: #7FB3D5; color: var(--text); }
.tag--sp { background: #A8C5A0; color: var(--text); }

/* Hero full-width + overlay */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 3rem;
}

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

.hero__overlay {
  position: relative;
  width: 100%;
  padding: 3rem 0 4rem;
  background: linear-gradient(to top, rgba(28, 37, 65, 0.88) 0%, rgba(28, 37, 65, 0.35) 55%, transparent 100%);
}

.hero__content {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  color: var(--white);
  max-width: 780px;
}

.hero__kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero__title {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero__deck {
  font-size: 1.15rem;
  line-height: 1.55;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.hero__meta {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Hero grid homepage */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin: 3rem auto;
  width: min(100% - 2rem, var(--container));
}

.hero-grid__secondary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-grid__card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

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

.hero-grid__card-text {
  position: relative;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(28, 37, 65, 0.9), transparent);
  color: var(--white);
  width: 100%;
}

.hero-grid__card-text h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.hero-grid__card-text span {
  font-size: 0.8rem;
  opacity: 0.85;
}

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

.section-header h2 {
  margin: 0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(58, 80, 107, 0.35);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background var(--transition), border-color var(--transition);
}

.btn-ghost:hover {
  background: rgba(91, 192, 190, 0.12);
  border-color: var(--accent);
  color: var(--primary);
}

.article-list--magazine {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
  margin-bottom: 4rem;
}

.article-list--magazine .article-card:nth-child(1) {
  grid-column: 1 / -1;
}

/* Horizontal thumb cards */
.article-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: 0.25rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.article-card:hover {
  background: rgba(255, 255, 255, 0.6);
}

.article-card--featured {
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

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

.article-card--featured .article-card__thumb {
  aspect-ratio: 16 / 10;
}

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

.article-card__tags {
  margin-bottom: 0.5rem;
}

.article-card__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.3;
}

.article-card--featured .article-card__title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.article-card__excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  line-height: 1.55;
}

.article-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Magazine breakout grid */
.breakout-section {
  margin: 4rem 0;
}

.breakout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.breakout-grid__aside {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-left: -1rem;
  margin-right: 2rem;
}

@media (min-width: 900px) {
  .breakout-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .breakout-grid__main {
    padding-right: 1.5rem;
  }
}

/* Author card with avatar */
.author-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

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

.author-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
}

.author-card__role {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* Article page — image-heavy */
.article-hero {
  margin-bottom: 2.5rem;
}

.article-hero__image {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-height: 70vh;
  object-fit: cover;
}

.article-header {
  margin: 2rem auto 2.5rem;
  width: min(100% - 2rem, 780px);
}

.article-header__tags { margin-bottom: 1rem; }

.article-header__title {
  margin-bottom: 1rem;
}

.article-header__deck {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.article-header__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(58, 80, 107, 0.15);
  font-size: 0.875rem;
  color: var(--muted);
}

.article-body {
  width: min(100% - 2rem, 680px);
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.75;
}

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

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(91, 192, 190, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}

.article-body figure {
  margin: 2.5rem 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.article-body figure img {
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
}

.article-body figcaption {
  width: min(100% - 2rem, 680px);
  margin: 0.75rem auto 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.article-related {
  background: var(--white);
  padding: 3rem 0;
  margin-top: 3rem;
}

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

/* Page layouts */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  margin-bottom: 2rem;
}

.page-hero--compact {
  padding: 2.5rem 0 1.5rem;
}

.page-hero__title {
  margin-bottom: 0.75rem;
}

.page-hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}

.prose {
  margin-bottom: 3rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.15rem 1.25rem;
  padding: 0;
}

.prose li { margin-bottom: 0.5rem; }

/* Contact form */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(58, 80, 107, 0.25);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  margin-bottom: 1rem;
}

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

.contact-info {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  margin-bottom: 1rem;
}

/* Editorial masthead footer */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-masthead {
  text-align: center;
  margin-bottom: 2.5rem;
}

.footer-masthead__logo {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-masthead__tagline {
  font-size: 0.95rem;
  opacity: 0.75;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.65;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

/* Cookie corner popup */
.cookie-popup {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(28, 37, 65, 0.18);
  padding: 1.25rem;
  z-index: 1000;
  border: 1px solid rgba(58, 80, 107, 0.1);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.cookie-popup.is-hidden {
  display: none;
}

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

.cookie-popup__actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-popup__actions .btn-ghost {
  flex: 1;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

.cookie-popup__accept {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.cookie-popup__accept:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

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

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

.mt-0 { margin-top: 0; }
.mt-md { margin-top: 1.25rem; }
.mb-lg { margin-bottom: 3rem; }

.btn-ghost--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost--light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

.text-sm { font-size: 0.9rem; }

.link-list {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
}

.link-list li {
  margin-bottom: 0.75rem;
}

.hero-grid__card--tall {
  min-height: 380px;
}

/* Mobile */
@media (max-width: 900px) {
  .header-split {
    grid-template-columns: 1fr auto;
  }

  .header-split__left .nav-link,
  .header-split__right .nav-link {
    display: none;
  }

  .menu-toggle { display: block; }

  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0 1rem;
    border-top: 1px solid rgba(58, 80, 107, 0.1);
    margin-top: 0.5rem;
  }

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

  .mobile-nav .nav-link { display: block; padding: 0.35rem 0; }

  .hero { min-height: 60vh; }

  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .article-card,
  .article-card--featured {
    grid-template-columns: 1fr;
  }

  .article-card__thumb {
    aspect-ratio: 16 / 9;
  }

  .breakout-grid__aside {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .cookie-popup {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
