/* Chuva Firme — galocha.info | regional-press / deep-navy */

:root {
  --navy-900: #07111f;
  --navy-800: #0f1e33;
  --navy-700: #1a3050;
  --navy-600: #254268;
  --navy-500: #3a5a82;
  --slate-100: #e8edf3;
  --slate-200: #c5d0dc;
  --slate-300: #8fa3b8;
  --slate-400: #5c7389;
  --accent: #c4a35a;
  --accent-hover: #d4b86e;
  --white: #f7f9fb;
  --text: #1c2a3a;
  --text-muted: #4a5f75;
  --border: #2a4060;
  --border-light: #c8d4e0;
  --container: 1140px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", monospace;
  --radius: 0;
  --gap-tight: 0.5rem;
  --gap: 0.75rem;
  --gap-lg: 1.25rem;
  --header-h: 96px;
  --header-h-shrink: 56px;
  --sidebar-w: 240px;
  --transition: 0.22s ease;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

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

/* Cookie strip */
.cookie-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-800);
  color: var(--slate-100);
  padding: 8px 16px;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  transform: translateY(-100%);
  transition: transform var(--transition);
  border-bottom: 1px solid var(--border);
}
.cookie-strip.visible { transform: translateY(0); }
.cookie-strip p { flex: 1; line-height: 1.4; }
.cookie-strip a { color: var(--accent); }
body.cookie-active { padding-top: 44px; }

/* Header — double-row-nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--navy-900);
  color: var(--white);
  transition: box-shadow var(--transition);
}
.site-header.shrink { box-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.site-header.shrink .header-top { display: none; }
.site-header.shrink .header-nav { padding: 8px 0; }

.header-top {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--white);
}
.brand:hover { color: var(--accent); }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-300);
}
.header-meta {
  font-size: 0.75rem;
  color: var(--slate-300);
  text-align: right;
  line-height: 1.4;
}
.header-meta time { color: var(--accent); }

.header-nav {
  padding: 0;
  transition: padding var(--transition);
}
.header-nav .container {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--gap-lg);
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 10px 0;
  color: var(--slate-100);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Buttons — outlined */
.btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid var(--navy-600);
  background: transparent;
  color: var(--navy-700);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.btn--light { border-color: var(--slate-200); color: var(--slate-100); }
.btn--light:hover { background: var(--accent); color: var(--navy-900); border-color: var(--accent); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: var(--navy-900); }
.btn--sm { padding: 5px 12px; font-size: 0.75rem; }

/* Tags — uppercase-small */
.tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-600);
  border: 1px solid var(--border-light);
  padding: 2px 6px;
  border-radius: var(--radius);
}
.tag--accent { color: var(--accent); border-color: var(--accent); }

/* Hero carousel — single, manual */
.hero-carousel {
  position: relative;
  background: var(--navy-800);
  border-bottom: 3px solid var(--navy-700);
}
.hero-slides { position: relative; overflow: hidden; }
.hero-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  padding: var(--gap-lg) 0;
  align-items: center;
}
.hero-slide.active { display: grid; }
.hero-slide__text { padding: var(--gap) 0; }
.hero-slide__text h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--gap);
}
.hero-slide__text p {
  color: var(--slate-200);
  font-size: 0.9375rem;
  margin-bottom: var(--gap-lg);
}
.hero-slide__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-slide__media img,
.hero-slide__media svg { width: 100%; height: 100%; object-fit: cover; }
.hero-controls {
  display: flex;
  gap: 4px;
  padding-bottom: var(--gap);
}
.hero-tab {
  flex: 1;
  padding: 8px 12px;
  background: var(--navy-700);
  border: 1px solid var(--border);
  color: var(--slate-300);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.hero-tab:hover { background: var(--navy-600); color: var(--white); }
.hero-tab.active { background: var(--accent); color: var(--navy-900); border-color: var(--accent); }

/* Main layout — left sidebar */
.page-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: var(--gap-lg);
  padding: var(--gap-lg) 0;
}
.sidebar {
  border-right: 1px solid var(--border-light);
  padding-right: var(--gap-lg);
}
.sidebar-block {
  margin-bottom: var(--gap-lg);
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid var(--border-light);
}
.sidebar-block:last-child { border-bottom: none; }
.sidebar-block h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-600);
  margin-bottom: var(--gap);
}
.sidebar-list { list-style: none; }
.sidebar-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.8125rem;
}
.sidebar-list a { text-decoration: none; color: var(--text); }
.sidebar-list a:hover { color: var(--accent); }

.main-content { min-width: 0; }

/* Lead story */
.lead-story {
  border: 1px solid var(--border-light);
  margin-bottom: var(--gap-lg);
}
.lead-story__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.lead-story__media img,
.lead-story__media svg { width: 100%; height: 100%; object-fit: cover; }
.lead-story__body { padding: var(--gap-lg); }
.lead-story__body h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.15;
  margin-bottom: var(--gap);
}
.lead-story__body h2 a { color: var(--text); text-decoration: none; }
.lead-story__body h2 a:hover { color: var(--navy-600); }
.lead-deck {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: var(--gap);
  line-height: 1.5;
}

/* Byline — inline */
.byline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--gap);
}
.byline a { font-weight: 600; text-decoration: none; }
.byline .updated { font-style: italic; color: var(--slate-400); }

/* Article list — horizontal rows */
.feed-list { list-style: none; }
.feed-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--gap);
  padding: var(--gap) 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.feed-item:first-child { border-top: 1px solid var(--border-light); }
.feed-item__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.feed-item__thumb img,
.feed-item__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.feed-item__title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.25;
  margin-bottom: 4px;
}
.feed-item__title a { color: var(--text); text-decoration: none; }
.feed-item__title a:hover { color: var(--navy-600); }
.feed-item__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Cards — bordered */
.card {
  border: 1px solid var(--border-light);
  padding: var(--gap);
  margin-bottom: var(--gap);
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: var(--gap);
}

/* Section headings */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy-800);
  padding-bottom: 6px;
  margin-bottom: var(--gap);
}
.section-head h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy-800);
}

/* Article page — wide magazine */
.article-wide {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--gap-lg) 0;
}
.article-wide .article-header { margin-bottom: var(--gap-lg); }
.article-wide h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: var(--gap);
}
.article-hero {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: var(--gap-lg);
}
.article-hero img,
.article-hero svg { width: 100%; height: 100%; object-fit: cover; }
.article-body {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.article-body h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin: var(--gap-lg) 0 var(--gap);
  color: var(--navy-800);
}
.article-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: var(--gap) 0 var(--gap-tight);
}
.article-body p { margin-bottom: var(--gap); }
.article-body ul, .article-body ol {
  margin: 0 0 var(--gap) 1.25rem;
}
.article-body li { margin-bottom: 4px; }

.author-box {
  border: 1px solid var(--border-light);
  padding: var(--gap);
  margin: var(--gap-lg) 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--gap);
  align-items: start;
}
.author-box__avatar {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.author-box__avatar img,
.author-box__avatar svg { width: 100%; height: 100%; object-fit: cover; }
.author-box h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}
.author-box p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.related-articles {
  border-top: 2px solid var(--navy-800);
  padding-top: var(--gap-lg);
  margin-top: var(--gap-lg);
}
.related-articles h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--gap);
}

/* Static pages */
.page-content {
  padding: var(--gap-lg) 0 var(--gap-lg);
  max-width: 720px;
}
.page-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: var(--gap);
  color: var(--navy-900);
}
.page-content h2 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  margin: var(--gap-lg) 0 var(--gap);
  color: var(--navy-800);
}
.page-content p { margin-bottom: var(--gap); line-height: 1.6; }
.page-content ul, .page-content ol { margin: 0 0 var(--gap) 1.25rem; }
.page-content li { margin-bottom: 4px; }

/* Contact form */
.contact-form { margin-top: var(--gap-lg); }
.form-group { margin-bottom: var(--gap); }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border-radius: var(--radius);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Articles hub teasers */
.teaser-section {
  scroll-margin-top: calc(var(--header-h) + 16px);
  border: 1px solid var(--border-light);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-lg);
}
.teaser-section h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  margin-bottom: var(--gap);
}
.teaser-section h2 a { color: var(--text); text-decoration: none; }
.teaser-section h2 a:hover { color: var(--navy-600); }

/* Footer — two-column */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-200);
  padding: var(--gap-lg) 0;
  margin-top: var(--gap-lg);
  border-top: 3px solid var(--navy-700);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--gap);
}
.footer-col p, .footer-col li {
  font-size: 0.8125rem;
  line-height: 1.5;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: var(--slate-200); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: var(--gap-lg);
  padding-top: var(--gap);
  font-size: 0.75rem;
  color: var(--slate-400);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap);
}

/* Utility */
.text-muted { color: var(--text-muted); }
.mt-lg { margin-top: var(--gap-lg); }
.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;
}

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-right: 0;
    padding-bottom: var(--gap-lg);
  }
  .hero-slide { grid-template-columns: 1fr; }
  .feed-item { grid-template-columns: 120px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .feed-item { grid-template-columns: 1fr; }
  .article-wide h1 { font-size: 1.625rem; }
  .brand-name { font-size: 1.25rem; }
}
