/*
Theme Name: Claudiojr Editorial
Theme URI: https://claudiojr.dev.br
Author: Claudio Almeida Santos Junior
Description: Tema editorial claro, com titulos serifados, cards discretos e rodape azul-marinho. Identidade visual adaptada do site pessoal de Claudio Jr (paleta azul e laranja).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: claudiojr
*/

:root {
  --color-bg: #f8f9f7;
  --color-panel: #f8f9f7;
  --color-panel-soft: #edf1f4;
  --color-surface: #e4ebf1;
  --color-soft: #eef2f5;
  --color-text: #1e3652;
  --color-muted: #526579;
  --color-line: #ccd6df;
  --color-blue: #315f8c;
  --color-blue-soft: #e8eef3;
  --color-navy: #172e49;
  --color-navy-top: #213c59;
  --color-orange: #b84e26;
  --color-orange-strong: #9d3d1d;
  --color-orange-soft: #f0a477;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Fira Code", Consolas, monospace;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow-soft: 0 1px 3px rgba(23, 46, 73, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-text);
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(184, 78, 38, 0.6);
  outline-offset: 2px;
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 249, 247, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(204, 214, 223, 0.4);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
}

.brand-mark img {
  max-height: 40px;
  width: auto;
}

.brand-mark small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(30, 54, 82, 0.7);
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  color: rgba(30, 54, 82, 0.9);
  transition: 0.15s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  border-color: rgba(168, 184, 199, 0.8);
  background: rgba(228, 235, 241, 0.8);
  color: var(--color-text);
}

.menu-toggle-checkbox {
  display: none;
}

.menu-toggle-label {
  display: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(168, 184, 199, 0.5);
  background: rgba(228, 235, 241, 0.7);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-primary {
  background: var(--color-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-orange-strong);
}

.btn-secondary {
  border-color: rgba(168, 184, 199, 0.5);
  background: rgba(228, 235, 241, 0.65);
  color: var(--color-text);
}

/* Hero */
.hero-section {
  padding: 72px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(168, 184, 199, 0.5);
  background: rgba(228, 235, 241, 0.55);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(30, 54, 82, 0.85);
}

.hero-section h1 {
  margin-top: 16px;
  max-width: 18ch;
  font-size: 44px;
  line-height: 1.15;
}

.hero-section p {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--color-muted);
  font-size: 16px;
}

.hero-cta-group {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Cards */
.card,
.content-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(168, 184, 199, 0.4);
  background: rgba(237, 241, 244, 0.8);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.card + .card,
.content-card + .content-card {
  margin-top: 20px;
}

.card h2, .content-card h2 {
  font-size: 24px;
}

.card p, .content-card p {
  margin-top: 8px;
  color: var(--color-muted);
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin: 40px 0;
}

.entry-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

/* Section */
.section-block {
  padding: 48px 0;
}

.section-soft {
  background: rgba(238, 242, 245, 0.75);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 32px;
}

.section-heading p {
  margin-top: 12px;
  color: var(--color-muted);
}

/* Single / page content */
.entry-content {
  margin-top: 16px;
}

.entry-content > * + * {
  margin-top: 16px;
}

.entry-content a {
  color: var(--color-orange);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(184, 78, 38, 0.4);
}

.entry-content img {
  border-radius: var(--radius-md);
}

.entry-content blockquote {
  margin: 0;
  padding: 16px 20px;
  border-left: 3px solid var(--color-orange);
  background: var(--color-blue-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text);
}

/* Search form */
.search-form {
  display: flex;
  gap: 8px;
  margin: 24px 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(168, 184, 199, 0.6);
  background: #fff;
  font-family: var(--font-body);
}

.search-form button {
  border: none;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  margin: 32px 0;
  font-family: var(--font-mono);
  font-size: 13px;
}

.pagination .page-numbers {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(168, 184, 199, 0.5);
}

.pagination .current {
  background: var(--color-orange);
  color: #fff;
  border-color: var(--color-orange);
}

/* Footer */
.site-footer {
  margin-top: 64px;
  background: var(--color-navy);
  color: var(--color-bg);
  padding: 56px 0 32px;
}

.site-footer a {
  color: var(--color-bg);
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-widget h2,
.site-footer .widget-title {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-bg);
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 8px;
  color: #c2cfdd;
}

.site-footer ul li a:hover {
  color: var(--color-orange-soft);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #3c536c;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c2cfdd;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #3c536c;
  transition: 0.15s ease;
}

.footer-social a:hover {
  color: var(--color-orange-soft);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .primary-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle-label {
    display: inline-flex;
  }

  .menu-toggle-checkbox:checked ~ .primary-nav {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-section h1 {
    font-size: 32px;
  }
}

/* ---------------------------------------------------------------- */
/* Landing page (front-page): hero, features, about, depoimentos,    */
/* blog e contato                                                     */
/* ---------------------------------------------------------------- */

#hero, #features, #about, #testimonials, #blog, #contact {
  scroll-margin-top: 90px;
}

.site-header-wrap.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.text-highlight {
  color: var(--color-orange-soft);
}

.badge-invert {
  border-color: rgba(248, 249, 247, 0.35);
  background: rgba(248, 249, 247, 0.12);
  color: #f8f9f7;
}

.btn-outline-invert {
  border-color: rgba(248, 249, 247, 0.5);
  background: transparent;
  color: #f8f9f7;
}

.btn-outline-invert:hover {
  background: rgba(248, 249, 247, 0.12);
}

/* Hero cheia, com imagem de fundo, overlay e imagem flutuante */
.hero-full {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-navy);
  background-size: cover;
  background-position: center;
  color: #f8f9f7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(23, 46, 73, 0.92), rgba(49, 95, 140, 0.82));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-full .hero-copy h1 {
  color: #f8f9f7;
  max-width: 14ch;
  font-size: 52px;
}

.hero-full .hero-copy p {
  color: #d7e1ea;
  max-width: 46ch;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-visual-img {
  max-width: 100%;
  max-height: 420px;
  filter: drop-shadow(0 24px 40px rgba(9, 20, 33, 0.45));
  will-change: transform;
  transition: transform 0.05s linear;
}

/* Recursos */
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  font-size: 26px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
}

/* Sobre */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: var(--about-image-height, 420px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.entry-thumbnail img {
  width: 100%;
  height: var(--post-thumbnail-height, 420px);
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Filtro/links de categoria (secao Blog e archive.php) */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.category-filter-btn {
  display: inline-block;
  border: 1px solid rgba(168, 184, 199, 0.5);
  background: rgba(228, 235, 241, 0.5);
  color: var(--color-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s ease;
}

.category-filter-btn:hover {
  border-color: rgba(184, 78, 38, 0.5);
}

.category-filter-btn.is-active {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
}

/* Depoimentos */
.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card .dashicons-format-quote {
  color: var(--color-orange);
  font-size: 28px;
}

.testimonial-author {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
}

.contact-list .dashicons {
  color: var(--color-orange);
}

@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 220px;
  }

  .hero-full .hero-copy h1 {
    max-width: none;
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-visual-img {
    transform: none !important;
  }
}
