/*
Theme Name: Bussola 60+
Theme URI: https://bussola60mais.com.br
Author: Bussola 60+
Description: Tema personalizado do blog Bussola 60+, a partir do protótipo aprovado pelo cliente (tom terracota + verde-azulado, tipografia Lora/Public Sans, foco em legibilidade para o público 60+).
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bussola60mais
*/

:root {
  --accent: #C2410C;
  --accent-2: #0F766E;
  --ink: #241d16;
  --ink-soft: #332b23;
  --text-muted: #5a4f40;
  --text-mutedest: #857a68;
  --border: #E8DFCF;
  --bg: #FBF6EE;
  --bg-panel: #FFFBF5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
}

h1, h2, h3 { font-family: 'Lora', Georgia, serif; margin: 0; color: var(--ink); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #9a3410; text-decoration: underline; }

img { max-width: 100%; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 8px; font-weight: 600; font-size: 17px;
  border: 2px solid transparent; cursor: pointer; min-height: 44px;
}
.btn-primary { background: var(--accent); color: #FFFBF5; }
.btn-primary:hover { background: #9a3410; color: #FFFBF5; text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #FBF6EE; text-decoration: none; }

section { padding: 64px 0; }

.eyebrow { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; color: var(--accent-2); }

/* HEADER */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg-panel); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: 'Lora', serif; font-weight: 700; font-size: 24px; color: var(--ink); }

.nav-panel { display: flex; align-items: center; gap: 32px; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); font-weight: 600; }

#nav-toggle { display: none; }
.hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 8px; cursor: pointer;
}
.hamburger:hover { background: #F1E9DA; }
.hamburger .icon-close { display: none; }
#nav-toggle:checked ~ .hamburger .icon-menu { display: none; }
#nav-toggle:checked ~ .hamburger .icon-close { display: block; }

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 18px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 28px rgba(36, 29, 22, 0.1);
    padding: 22px 32px 30px;
    z-index: 20;
  }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
  #nav-toggle:checked ~ .nav-panel { display: flex; }
}

/* HERO */
.hero-inner { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 460px; min-width: 320px; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { font-size: 46px; line-height: 1.2; margin-bottom: 22px; }
.hero-copy .lead { font-size: 20px; color: var(--text-muted); margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { flex: 1 1 380px; min-width: 300px; }
.hero-media img { display: block; width: 100%; height: auto; border-radius: 20px; }

/* SEÇÕES */
.section-alt { background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: 32px; }
.see-all { font-weight: 600; white-space: nowrap; }

.visually-hidden-anchor { display: block; height: 0; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }
.card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 440; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 21px; margin-bottom: 10px; line-height: 1.35; }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { text-decoration: none; color: var(--accent); }
.card-body p { color: var(--text-muted); font-size: 16px; margin: 0 0 14px; }
.card-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.card-link { font-weight: 600; }

/* FOOTER */
.site-footer { padding: 56px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-muted); font-size: 15px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col-title { font-weight: 700; margin-bottom: 12px; font-size: 15px; }
.footer-links, .footer-links ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; list-style: none; margin: 0; padding: 0; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom p { color: var(--text-mutedest); font-size: 13px; margin: 0 0 8px; }

/* BLOG / ARCHIVE / SINGLE / PAGE */
.page-hero { padding: 48px 0 8px; }
.blog-title { font-size: 36px; margin-bottom: 8px; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 40px 0; }
@media (max-width: 860px) { .post-list { grid-template-columns: 1fr; } }
.pagination { display: flex; gap: 12px; justify-content: center; margin: 40px 0 80px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

.single-post { max-width: 760px; margin: 0 auto; padding: 48px 0 80px; }
.single-post .featured-image { width: 100%; border-radius: 16px; margin-bottom: 28px; }
.single-post h1 { font-size: 36px; margin: 10px 0 24px; }
.single-post .entry-content p { margin: 0 0 20px; }
.single-post .entry-content img { max-width: 100%; border-radius: 12px; }
.back-link { display: inline-block; margin-top: 32px; font-weight: 600; }

.page-content { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.page-content h1 { font-size: 34px; margin-bottom: 20px; }
