/* Orla — rioguia.digital | local-newspaper, ocean + sand + coral */
:root {
  --ocean: #0c4a6e;
  --ocean-mid: #0369a1;
  --ocean-light: #38bdf8;
  --sand: #f5f0e8;
  --sand-dark: #e8dfd0;
  --coral: #e85d4c;
  --coral-dark: #c94a3a;
  --ink: #1e293b;
  --ink-muted: #64748b;
  --white: #ffffff;
  --shadow: 0 4px 18px rgba(12, 74, 110, 0.1);
  --shadow-lg: 0 8px 30px rgba(12, 74, 110, 0.14);
  --radius: 8px;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1160px;
  --line: 1.65;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--sand);
  color: var(--ink);
  line-height: var(--line);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean-mid); text-decoration: none; }
a:hover { color: var(--coral); }

/* Compact topbar */
.compact-topbar {
  background: var(--ocean);
  color: var(--white);
  font-size: 0.72rem;
  padding: 0.35rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.compact-topbar a { color: var(--ocean-light); }
.compact-topbar .neighborhoods { opacity: 0.85; }

.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ocean);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.site-logo span {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-top: 0.1rem;
}
.main-nav { display: flex; gap: 1.5rem; }
.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--coral); }
.menu-toggle {
  display: none;
  background: var(--ocean);
  color: var(--white);
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
main { flex: 1; }

/* Newsletter strip */
.newsletter-strip {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%);
  color: var(--white);
  padding: 1.25rem 0;
}
.newsletter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.newsletter-inner h2 { font-size: 1rem; font-weight: 700; }
.newsletter-inner p { font-size: 0.85rem; opacity: 0.9; }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input {
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  min-width: 220px;
}
.newsletter-form button {
  padding: 0.55rem 1.1rem;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}
.newsletter-form button:hover { background: var(--coral-dark); }

/* Mixed-magazine homepage */
.magazine-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
}
.hero-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-featured img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(12, 74, 110, 0.92));
  color: var(--white);
}
.hero-overlay .tag {
  display: inline-block;
  background: var(--coral);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.hero-overlay h1 { font-size: 1.55rem; line-height: 1.25; margin-bottom: 0.5rem; }
.hero-overlay h1 a { color: var(--white); }
.hero-overlay h1 a:hover { color: var(--ocean-light); }
.hero-excerpt { font-size: 0.88rem; opacity: 0.9; margin-bottom: 0.4rem; }
.hero-meta { font-size: 0.75rem; opacity: 0.75; }

.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.shadow-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.shadow-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.shadow-card img { width: 100%; height: 140px; object-fit: cover; }
.shadow-card-body { padding: 1rem; }
.neighborhood-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 0.3rem;
}
.shadow-card h3 { font-size: 0.95rem; line-height: 1.35; margin-bottom: 0.35rem; }
.shadow-card h3 a { color: var(--ink); }
.shadow-card h3 a:hover { color: var(--ocean-mid); }
.card-meta { font-size: 0.72rem; color: var(--ink-muted); }

/* Da redação block */
.redacao-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 1rem 0 2.5rem;
}
.redacao-block h2 {
  font-size: 1.15rem;
  color: var(--ocean);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--coral);
  display: inline-block;
}
.redacao-block p { margin-bottom: 0.85rem; color: var(--ink-muted); font-size: 0.92rem; }

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin-bottom: 0.35rem;
}
.section-title { font-size: 1.35rem; color: var(--ocean); margin-bottom: 1.25rem; }

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Wide-magazine article */
.article-wide {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.article-wide .article-header { margin-bottom: 1.5rem; }
.article-wide h1 { font-size: 2rem; line-height: 1.2; color: var(--ocean); margin: 0.5rem 0 0.75rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.tag-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: var(--sand-dark);
  color: var(--ocean);
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--sand-dark);
}
.article-hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 1.5rem 0;
}
.prose p { margin-bottom: 1rem; font-size: 1.02rem; }
.prose h2 { font-size: 1.3rem; color: var(--ocean); margin: 1.75rem 0 0.75rem; }
.prose .lead { font-size: 1.12rem; color: var(--ink-muted); }

.page-content { padding: 2rem 0 3rem; max-width: 800px; margin: 0 auto; }
.page-content h1 { font-size: 2rem; color: var(--ocean); margin-bottom: 0.75rem; }
.lead { font-size: 1.05rem; color: var(--ink-muted); margin-bottom: 1.25rem; }

/* Articles page */
.articles-magazine { padding: 2rem 0 3rem; }
.articles-magazine .shadow-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.articles-magazine .shadow-card img { height: 100%; min-height: 180px; }
.articles-list { display: flex; flex-direction: column; gap: 1.25rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
  color: var(--ocean);
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--white);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button {
  margin-top: 1rem;
  padding: 0.65rem 1.5rem;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.contact-form button:hover { background: var(--coral-dark); }
.form-feedback {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #ecfdf5;
  color: #065f46;
  border-radius: var(--radius);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--ocean);
  color: var(--white);
  padding: 2rem 0 1.25rem;
  margin-top: auto;
  font-size: 0.82rem;
}
.site-footer a { color: var(--ocean-light); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-grid h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  color: var(--ocean-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  display: none;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-notice.visible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-notice a { color: var(--ocean-light); }
.cookie-accept {
  background: var(--coral);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .magazine-hero, .magazine-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .articles-magazine .shadow-card { grid-template-columns: 1fr; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem 1.25rem; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { min-width: 0; width: 100%; }
}
