/* Ponte Dev — fullstackbr.digital | business-digest | deep-navy */

:root {
  --navy-950: #060d18;
  --navy-900: #0b1423;
  --navy-800: #142036;
  --navy-700: #1e3050;
  --navy-600: #2a4170;
  --navy-500: #3d5a8a;
  --accent: #3b82f6;
  --accent-soft: #dbeafe;
  --gold: #c9a227;
  --text: #1a2332;
  --text-muted: #5a6578;
  --text-light: #8b95a5;
  --bg: #f4f6f9;
  --bg-card: #ffffff;
  --border: #dde3ec;
  --shadow: 0 4px 16px rgba(11, 20, 35, 0.08);
  --shadow-lg: 0 8px 32px rgba(11, 20, 35, 0.12);
  --radius: 8px;
  --radius-sm: 4px;
  --container: 1140px;
  --header-h: 64px;
  --header-h-shrink: 52px;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

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

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

/* ── Compact Topbar Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-700);
  height: var(--header-h);
  transition: height var(--transition), box-shadow var(--transition);
}

.site-header.is-shrunk {
  height: var(--header-h-shrink);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo:hover { color: #fff; opacity: 0.9; }

.logo-icon {
  width: 32px;
  height: 32px;
  transition: transform var(--transition);
}

.site-header.is-shrunk .logo-icon { width: 26px; height: 26px; }

.logo-text span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  line-height: 1.2;
}

.btn-outlined {
  background: transparent;
  border: 1.5px solid var(--navy-600);
  color: var(--navy-700);
}

.btn-outlined:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.btn-outlined-light {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.btn-outlined-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.tag-carreira { background: #dbeafe; color: #1d4ed8; }
.tag-mercado { background: #fef3c7; color: #b45309; }
.tag-stack { background: #d1fae5; color: #047857; }
.tag-transicao { background: #ede9fe; color: #6d28d9; }
.tag-remoto { background: #fce7f3; color: #be185d; }

/* ── Hero Split Image Text ── */
.hero-split {
  background: var(--navy-900);
  color: #fff;
  padding: 48px 0 56px;
}

.hero-split .grid-12 { align-items: center; }

.hero-content { grid-column: span 6; }

.hero-content .tag { margin-bottom: 16px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
}

.hero-image {
  grid-column: span 6;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}

.hero-image img, .hero-image svg { width: 100%; height: 100%; object-fit: cover; }

/* ── Homepage Hero Grid ── */
.hero-grid-section { padding: 40px 0 48px; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy-800);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy-900);
}

.section-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Horizontal Row Article List ── */
.article-rows { display: flex; flex-direction: column; gap: 20px; }

.article-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.article-row:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.article-row-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-800);
}

.article-row-thumb img, .article-row-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-row-body {
  padding: 20px 24px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-row-body .tag { margin-bottom: 8px; align-self: flex-start; }

.article-row-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--navy-900);
}

.article-row-title a { color: inherit; }
.article-row-title a:hover { color: var(--accent); }

.article-row-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

/* ── Inline Byline ── */
.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.byline-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.byline-avatar img, .byline-avatar svg { width: 100%; height: 100%; object-fit: cover; }

.byline-author { font-weight: 600; color: var(--text-muted); }
.byline-sep { opacity: 0.4; }

/* ── Sidebar Right Rail ── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 40px 0;
}

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

.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.sidebar-widget h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-800);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-list { list-style: none; }

.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a { color: var(--text); font-weight: 500; }
.sidebar-list a:hover { color: var(--accent); }

.sidebar-list .date {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── Wide Magazine Article ── */
.article-header {
  background: var(--navy-900);
  color: #fff;
  padding: 48px 0 40px;
}

.article-header .tag { margin-bottom: 16px; }

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: 780px;
  margin-bottom: 20px;
}

.article-header .byline { color: rgba(255,255,255,0.6); }
.article-header .byline-author { color: rgba(255,255,255,0.85); }

.article-featured-image {
  margin: -20px auto 0;
  max-width: var(--container);
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.article-featured-image figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
  background: var(--navy-800);
}

.article-featured-image img, .article-featured-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  max-width: 720px;
  padding: 40px 0;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 32px 0 12px;
  line-height: 1.25;
}

.article-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-800);
  margin: 24px 0 10px;
}

.article-body p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.65;
}

.article-body ul, .article-body ol {
  margin: 0 0 16px 20px;
  line-height: 1.65;
}

.article-body li { margin-bottom: 6px; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--navy-700);
}

.article-updated {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Page Header (inner pages) ── */
.page-header {
  background: var(--navy-900);
  color: #fff;
  padding: 40px 0 36px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  max-width: 560px;
}

.page-content {
  padding: 40px 0 56px;
  max-width: 720px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 28px 0 12px;
}

.page-content p, .page-content li {
  margin-bottom: 14px;
  line-height: 1.65;
  color: var(--text);
}

.page-content ul, .page-content ol { margin: 0 0 16px 20px; }

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0 56px;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--navy-900);
}

.contact-info p { margin-bottom: 12px; color: var(--text-muted); }

.contact-email {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
  margin: 8px 0 20px;
}

.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy-800);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  margin-bottom: 16px;
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
}

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

/* ── Two Column Footer ── */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo { margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-nav h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--navy-800);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ── Cookie Bottom Bar ── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy-900);
  border-top: 1px solid var(--navy-700);
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.cookie-bar.is-visible { transform: translateY(0); }

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  min-width: 200px;
}

.cookie-text a { color: var(--accent); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Editorial Picks Grid (homepage) ── */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.pick-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.pick-card:hover { box-shadow: var(--shadow-lg); }

.pick-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-800);
}

.pick-card-thumb img, .pick-card-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pick-card-body { padding: 16px; }

.pick-card-body .tag { margin-bottom: 8px; }

.pick-card-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.pick-card-title a { color: var(--navy-900); }
.pick-card-title a:hover { color: var(--accent); }

/* ── Brief intro block ── */
.intro-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 32px;
  border-left: 4px solid var(--accent);
}

.intro-block p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.intro-block p:last-child { margin-bottom: 0; }

/* ── Related Articles ── */
.related-articles {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 20px;
  color: var(--navy-900);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-content, .hero-image { grid-column: span 12; }
  .hero-image { order: -1; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .article-row { grid-template-columns: 1fr; }
  .article-row-body { padding: 16px 20px 20px; }
  .picks-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

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

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--navy-700);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 999;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 0.9375rem;
  }

  .site-header.is-shrunk { --header-h: var(--header-h-shrink); }

  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
}
