/* NavegaGuia Blog — Design System Rota Marítima Segura */
:root {
  --gold: #C9A227;
  --gold-light: #F0C040;
  --blue: #1A6FC4;
  --blue-light: #2E88E0;
  --navy: #0B1426;
  --navy-mid: #0D2347;
  --navy-light: #1A3A6C;
  --surface: #0D1B30;
  --surface-raised: #122040;
  --text: #E8EDF5;
  --text-muted: #B0BEC5;
  --divider: rgba(201, 162, 39, 0.12);
}

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

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Open Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }

a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
}
.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo span { color: var(--gold); }
.logo:hover { text-decoration: none; }
.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-light); text-decoration: none; }

/* Hero (index) */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 {
  font-size: clamp(36px, 5.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.7;
  max-width: 620px;
  margin: 16px auto 0;
}

/* Post cards */
.post-grid { display: grid; gap: 24px; padding: 24px 0 64px; }
.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 24px;
  color: var(--text);
  transition: background 0.2s;
}
.post-card:hover { background: var(--surface-raised); text-decoration: none; }
.post-card .tag {
  display: inline-block;
  background: rgba(26, 111, 196, 0.18);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}
.post-card h2 { font-size: 27px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.post-card p { color: var(--text-muted); font-size: 17px; }
.post-card .meta {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--gold);
}

/* Article */
.article-header { padding: 56px 0 8px; }
.article-header .tag {
  display: inline-block;
  background: rgba(26, 111, 196, 0.18);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(31px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.article-header .meta {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}
.article-header .meta strong { color: var(--gold); font-weight: 400; }

article.post-body { padding: 24px 0 48px; }
article.post-body p { margin-bottom: 20px; font-size: 19px; line-height: 1.75; }
article.post-body h2 {
  font-size: 29px;
  font-weight: 700;
  margin: 40px 0 16px;
  line-height: 1.2;
}
article.post-body h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
}
article.post-body ul, article.post-body ol { margin: 0 0 20px 24px; }
article.post-body li { margin-bottom: 10px; font-size: 19px; line-height: 1.7; }
article.post-body strong { color: var(--text); }
article.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 16px;
}
article.post-body th {
  text-align: left;
  background: var(--surface-raised);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 12px;
  border: 1px solid var(--navy-light);
}
article.post-body td {
  padding: 12px;
  border: 1px solid var(--navy-light);
  background: var(--surface);
  color: var(--text-muted);
}
article.post-body blockquote {
  border-left: 3px solid var(--gold);
  background: var(--surface);
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
}

.note-box {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-muted);
}
.note-box strong { color: var(--gold); }

/* CTA box */
.cta-box {
  background: var(--surface-raised);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.cta-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-box p { color: var(--text-muted); margin-bottom: 20px; font-size: 17px; }
.cta-box .btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background 0.2s, box-shadow 0.2s;
}
.cta-box .btn:hover {
  background: var(--gold-light);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
  text-decoration: none;
}

/* Related posts */
.related { padding: 24px 0 56px; border-top: 1px solid var(--divider); }
.related h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.related ul { list-style: none; }
.related li { margin-bottom: 12px; }
.related a { font-size: 18px; font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  background: var(--surface);
  padding: 32px 0;
  text-align: center;
}
.site-footer p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 4px;
}
.site-footer a { color: var(--gold); }

@media (max-width: 600px) {
  .hero { padding: 40px 0 24px; }
  .post-card { padding: 20px; }
  .cta-box { padding: 24px 20px; }
}

/* ============ OCEAN HERO (fundo dinâmico) ============ */
.ocean-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #060D1A 0%, #0B1426 45%, #0D2347 100%);
  border-bottom: 1px solid var(--divider);
}
.ocean-hero .hero { position: relative; z-index: 3; }
.ocean-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ocean-scene svg { width: 100%; height: 100%; display: block; }

/* Estrelas */
.star { fill: #E8EDF5; opacity: 0.35; animation: twinkle 4s ease-in-out infinite; }
.star:nth-of-type(2n) { animation-delay: 1.3s; }
.star:nth-of-type(3n) { animation-delay: 2.1s; }
@keyframes twinkle { 0%,100% { opacity: 0.15; } 50% { opacity: 0.5; } }

/* Luzes das embarcações/plataforma */
.beacon { fill: var(--gold-light); animation: blink 2.4s ease-in-out infinite; }
.beacon.slow { animation-duration: 3.6s; animation-delay: 1s; }
.beacon.red { fill: #DC2626; animation-duration: 3s; animation-delay: .5s; }
@keyframes blink { 0%,100% { opacity: 0.15; } 50% { opacity: 1; } }

/* Chama da plataforma (flare) */
.flare {
  fill: var(--gold);
  transform-origin: center bottom;
  transform-box: fill-box;
  animation: flicker 1.8s ease-in-out infinite;
}
@keyframes flicker {
  0%,100% { opacity: .7; transform: scaleY(1); }
  40% { opacity: 1; transform: scaleY(1.25); }
  70% { opacity: .8; transform: scaleY(.9); }
}

/* Ondas — 3 camadas em paralaxe */
.waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  z-index: 1;
}
.wave-layer {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  will-change: transform;
}
.wave-1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 110' preserveAspectRatio='none'%3E%3Cpath d='M0,55 C150,25 300,85 450,55 C600,25 750,85 900,55 C1050,25 1200,85 1200,55 L1200,110 L0,110 Z' fill='%231A3A6C' fill-opacity='0.45'/%3E%3C/svg%3E");
  animation: drift 26s linear infinite;
  opacity: .8;
}
.wave-2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 110' preserveAspectRatio='none'%3E%3Cpath d='M0,65 C200,35 400,90 600,62 C800,35 1000,92 1200,62 L1200,110 L0,110 Z' fill='%230D2347' fill-opacity='0.85'/%3E%3C/svg%3E");
  animation: drift 18s linear infinite reverse;
}
.wave-3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 110' preserveAspectRatio='none'%3E%3Cpath d='M0,78 C180,55 380,98 600,76 C820,55 1020,100 1200,76 L1200,110 L0,110 Z' fill='%23081020'/%3E%3C/svg%3E");
  animation: drift 12s linear infinite;
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .wave-layer, .beacon, .flare, .star { animation: none; }
}

/* Hero dual CTA */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background .2s, box-shadow .2s;
}
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 0 24px rgba(201,162,39,.35); text-decoration: none; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 4px;
  transition: background .2s;
}
.btn-outline:hover { background: rgba(201,162,39,.1); text-decoration: none; }

/* ============ LP PREPARATÓRIO ============ */
.lp-section { padding: 56px 0; }
.lp-section.alt { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.lp-section h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.lp-section .section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 19px;
  line-height: 1.7;
}
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.benefit {
  background: var(--surface-raised);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 24px;
}
.benefit .icon { font-size: 26px; margin-bottom: 12px; }
.benefit h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.benefit p { color: var(--text-muted); font-size: 17px; line-height: 1.6; }

.price-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface-raised);
  border: 1px solid rgba(201,162,39,.4);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 0 40px rgba(201,162,39,.12);
}
.price-card .badge-top {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}
.price-card .price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
}
.price-card .price small { font-size: 16px; color: var(--text-muted); }
.price-card ul { list-style: none; text-align: left; margin: 24px 0; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 16px; color: var(--text-muted); }
.price-card li::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.price-card .btn-gold { width: 100%; font-size: 17px; padding: 16px; }
.price-card .risk { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

.compare-table { max-width: 720px; margin: 0 auto; }
.faq-item {
  max-width: 720px;
  margin: 0 auto 12px;
  background: var(--surface-raised);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 18px 22px;
}
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 18px; font-family: 'Montserrat', sans-serif; }
.faq-item p { margin-top: 12px; color: var(--text-muted); font-size: 17px; line-height: 1.7; }

/* ============ PHOTO HERO (fotografia real + Ken Burns) ============ */
.photo-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--divider);
  min-height: 520px;
  display: flex;
  align-items: center;
}
.photo-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.1) translateX(-1.5%); }
}
.photo-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,13,26,0.82) 0%, rgba(11,20,38,0.55) 45%, rgba(6,13,26,0.92) 100%);
}
.photo-hero .hero {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 96px 0;
}
.photo-hero .hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.photo-hero .hero p { color: #D5DEEA; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }

@media (prefers-reduced-motion: reduce) {
  .photo-hero .hero-bg { animation: none; }
}
@media (max-width: 600px) {
  .photo-hero { min-height: 440px; }
  .photo-hero .hero { padding: 64px 0; }
}

/* Cards com foto */
.post-card { padding: 0; overflow: hidden; }
.post-card .card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--divider);
}
.post-card .card-body { padding: 24px; }
@media (min-width: 768px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid .post-card:first-child { grid-column: 1 / -1; }
  .post-grid .post-card:first-child .card-thumb { height: 300px; }
}

/* Galeria "a bordo de verdade" */
.gallery-strip { padding: 56px 0; }
.gallery-strip h2 { font-size: clamp(24px,3.5vw,32px); font-weight: 700; text-align: center; margin-bottom: 8px; }
.gallery-strip .sub { text-align: center; color: var(--text-muted); margin-bottom: 32px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--divider);
}
.gallery-grid figure { margin: 0; }
.gallery-grid figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* Imagem de destaque nos artigos */
.article-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--divider);
  margin-top: 28px;
}
@media (max-width: 600px) { .article-hero-img { height: 200px; } }

/* Foto lado a lado na LP */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.split img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--divider);
}
.split h2 { text-align: left !important; }
.split .section-sub { text-align: left !important; margin-left: 0 !important; }
