/*
Theme Name: Melhores Hospedagens
Theme URI: https://melhores-hospedagens.com.br
Author: Melhores Hospedagens
Description: Tema editorial para reviews e comparativos de hospedagens de sites. Blog, glossário, comparativos, avaliações e muito mais.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hospedagem-tema
Tags: blog, review, hospedagem, tech, responsivo
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-light:  #dbeafe;
  --secondary:      #7c3aed;
  --secondary-light:#ede9fe;
  --accent:         #f59e0b;
  --accent-light:   #fef3c7;
  --success:        #16a34a;
  --success-light:  #dcfce7;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --background:     #f8fafc;
  --surface:        #ffffff;
  --surface-2:      #f1f5f9;
  --border:         #e2e8f0;
  --border-dark:    #cbd5e1;
  --text:           #0f172a;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --radius:         0.625rem;
  --radius-lg:      1rem;
  --radius-xl:      1.5rem;
  --shadow-sm:      0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:      0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:      0 10px 30px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.06);
  --shadow-xl:      0 20px 50px rgba(15,23,42,.15);
  --font-display:   'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
  --header-h:       68px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
ul,ol { list-style: none; padding: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container     { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container--sm { max-width: 780px;  margin: 0 auto; padding: 0 1.25rem; }
.container--md { max-width: 980px;  margin: 0 auto; padding: 0 1.25rem; }
.py-section    { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (min-width: 768px) { .py-section { padding-top: 6rem; padding-bottom: 6rem; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
}
.site-header__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  height: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 1.25rem;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; text-decoration: none; }
.site-logo img { max-height: 40px; width: auto; }
.site-logo__icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.site-logo__icon svg { color: #fff; }
.site-logo__text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--text); }
.site-logo__text span { color: var(--primary); }

/* Desktop nav */
.site-nav { display: none; }
@media (min-width: 960px) {
  .site-nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }
}
.site-nav a {
  font-size: .875rem; font-weight: 600;
  color: var(--text-muted); padding: .5rem .875rem;
  border-radius: var(--radius); transition: all .15s; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--primary-light); }

/* Header right */
.site-header__right { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }

.header-search { position: relative; display: none; }
@media (min-width: 640px) { .header-search { display: block; } }
.header-search input {
  border: 1.5px solid var(--border); border-radius: 9999px;
  background: var(--surface-2);
  padding: .45rem 2.4rem .45rem 1rem;
  font-size: .85rem; font-family: var(--font-body);
  width: 210px; outline: none; color: var(--text);
  transition: border-color .15s, width .2s, background .15s;
}
.header-search input:focus { border-color: var(--primary); background: var(--surface); width: 250px; }
.header-search input::placeholder { color: var(--text-light); }
.header-search__btn {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; padding: .15rem;
}

/* Menu toggle */
.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
@media (min-width: 960px) { .menu-toggle { display: none; } }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xl); z-index: 99;
  padding: 1.25rem; flex-direction: column; gap: .2rem;
}
.mobile-nav.open { display: flex; }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }
.mobile-nav a { display: block; padding: .7rem 1rem; font-size: .95rem; font-weight: 600; color: var(--text); border-radius: var(--radius); transition: background .15s; }
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }
.mobile-nav__search { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.mobile-nav__search input { width: 100%; border: 1.5px solid var(--border); border-radius: 9999px; padding: .6rem 1.25rem; font-size: .95rem; font-family: var(--font-body); outline: none; color: var(--text); }
.mobile-nav__search input:focus { border-color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e1b4b 100%);
  padding: 5rem 1.25rem 5.5rem; text-align: center;
  color: #fff;
}
@media (min-width: 768px) { .hero { padding: 7.5rem 1.25rem 7rem; } }

.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 9999px; padding: .35rem 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #a5b4fc; margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-display); font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800; color: #fff; max-width: 860px; margin: 0 auto; line-height: 1.1;
  letter-spacing: -.02em;
}
.hero__title span { color: #60a5fa; }
.hero__desc { margin-top: 1.25rem; font-size: clamp(1rem, 2vw, 1.2rem); color: #94a3b8; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }
.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.hero__stat-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: #fff; display: block; }
.hero__stat-label { font-size: .8rem; color: #94a3b8; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: var(--radius); padding: .7rem 1.5rem;
  font-size: .9rem; font-weight: 700; font-family: var(--font-display);
  cursor: pointer; border: none; transition: all .15s;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--secondary { background: var(--secondary); color: #fff; }
.btn--secondary:hover { opacity: .9; color: #fff; }
.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary-light); }
.btn--ghost  { background: var(--surface); border: 1.5px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--white  { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--primary-light); }
.btn--sm     { padding: .45rem 1rem; font-size: .8rem; }
.btn--lg     { padding: .9rem 2rem; font-size: 1rem; }
.btn--icon   { padding: .6rem; border-radius: 50%; }

/* ============================================================
   BADGES / LABELS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  border-radius: 9999px; padding: .2rem .75rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge--primary   { background: var(--primary-light);   color: var(--primary); }
.badge--secondary { background: var(--secondary-light); color: var(--secondary); }
.badge--success   { background: var(--success-light);   color: var(--success); }
.badge--danger    { background: var(--danger-light);    color: var(--danger); }
.badge--accent    { background: var(--accent-light);    color: #92400e; }
.badge--dark      { background: var(--text);            color: #fff; }

/* ============================================================
   RATING STARS
   ============================================================ */
.stars { display: inline-flex; gap: .1rem; }
.stars__star { color: var(--accent); font-size: 1rem; }
.stars__star--empty { color: var(--border-dark); }
.rating-value { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--text); margin-left: .35rem; }

/* ============================================================
   HOSPEDAGEM CARD (principal)
   ============================================================ */
.hosp-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.hosp-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-4px); }
.hosp-card--featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-md); }
.hosp-card--featured .hosp-card__ribbon {
  background: var(--primary); color: #fff;
  text-align: center; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: .35rem;
}

.hosp-card__body { padding: 1.5rem; flex: 1; }
.hosp-card__header { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.hosp-card__logo { width: 60px; height: 60px; border-radius: var(--radius); object-fit: contain; border: 1px solid var(--border); padding: .25rem; flex-shrink: 0; background: var(--surface); }
.hosp-card__logo-placeholder { width: 60px; height: 60px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-light), var(--secondary-light)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.hosp-card__info { flex: 1; min-width: 0; }
.hosp-card__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.hosp-card__tagline { font-size: .825rem; color: var(--text-muted); margin-top: .15rem; }
.hosp-card__rating { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }

.hosp-card__price-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.hosp-card__price-from { font-size: .72rem; color: var(--text-muted); }
.hosp-card__price-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text); }
.hosp-card__price-value span { font-size: .8rem; font-weight: 600; color: var(--text-muted); }

.hosp-card__pros-cons { display: grid; gap: .875rem; margin-top: 1.25rem; }
@media (min-width: 500px) { .hosp-card__pros-cons { grid-template-columns: 1fr 1fr; } }

.hosp-card__pros h4, .hosp-card__cons h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.hosp-card__pros h4 { color: var(--success); }
.hosp-card__cons h4 { color: var(--danger); }
.hosp-card__pros li, .hosp-card__cons li { font-size: .825rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: .4rem; margin-bottom: .3rem; line-height: 1.4; }
.hosp-card__pros li::before { content: '✓'; color: var(--success); flex-shrink: 0; font-weight: 700; }
.hosp-card__cons li::before { content: '✕'; color: var(--danger); flex-shrink: 0; font-weight: 700; }

.hosp-card__footer { padding: 1rem 1.5rem; background: var(--surface-2); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.hosp-card__cta-note { font-size: .75rem; color: var(--text-muted); }

/* Specs chips */
.specs-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.spec-chip {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9999px; padding: .2rem .75rem;
  font-size: .75rem; font-weight: 600; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: .3rem;
}
.spec-chip--highlight { background: var(--primary-light); color: var(--primary); border-color: transparent; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.compare-table th { background: var(--surface-2); padding: .875rem 1rem; text-align: left; font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 2px solid var(--border); white-space: nowrap; }
.compare-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--surface-2); }
.compare-table__check { color: var(--success); font-size: 1.1rem; }
.compare-table__cross { color: var(--danger); font-size: 1.1rem; }
.compare-table__name { font-weight: 700; font-family: var(--font-display); display: flex; align-items: center; gap: .5rem; }
.compare-table__rank { background: var(--text); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; }
.compare-table__rank--1 { background: var(--accent); }
.compare-table__rank--2 { background: var(--text-muted); }
.compare-table__rank--3 { background: #b45309; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px)  { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3,1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__thumb img { transform: scale(1.04); }
.card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__category { display: inline-block; background: var(--primary-light); color: var(--primary); border-radius: 9999px; padding: .2rem .75rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.card__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.card__title a:hover { color: var(--primary); }
.card__excerpt { margin-top: .5rem; font-size: .875rem; color: var(--text-muted); flex: 1; }
.card__footer { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--text-muted); }
.card__author { display: flex; align-items: center; gap: .5rem; }
.card__author-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.card__read-more { font-weight: 700; color: var(--primary); font-size: .8rem; }

/* ============================================================
   GLOSSARIO CARDS
   ============================================================ */
.glossario-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px)  { .glossario-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .glossario-grid { grid-template-columns: repeat(3,1fr); } }

.g-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: box-shadow .2s, border-color .2s; color: inherit;
}
.g-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); color: inherit; }
.g-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.g-card__term { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.g-card__def  { margin-top: .5rem; font-size: .875rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header      { text-align: center; margin-bottom: 3rem; }
.section-header--left{ text-align: left; margin-bottom: 2rem; }
.section-kicker      { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); display: block; margin-bottom: .5rem; }
.section-title       { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.section-title span  { color: var(--primary); }
.section-desc        { margin-top: .75rem; color: var(--text-muted); max-width: 540px; margin-left: auto; margin-right: auto; }

/* ============================================================
   GLOSSARIO PAGE FILTERS
   ============================================================ */
.glossario-search { max-width: 38rem; margin: 0 auto; position: relative; }
.glossario-search input {
  width: 100%; border: 2px solid var(--border); border-radius: 9999px;
  background: var(--surface); padding: .875rem 3.5rem .875rem 1.5rem;
  font-size: 1rem; font-family: var(--font-body); outline: none;
  color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .15s;
}
.glossario-search input:focus { border-color: var(--primary); }
.glossario-search input::placeholder { color: var(--text-light); }
.glossario-search__btn {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: var(--primary); border: none; border-radius: 50%;
  width: 2.1rem; height: 2.1rem; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.filter-btn {
  border-radius: 9999px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  padding: .375rem 1.1rem; font-size: .825rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-body); transition: all .15s;
}
.filter-btn:hover  { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.alphabet-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; margin-top: 1.25rem; }
.alphabet-strip a { min-width: 1.9rem; text-align: center; border-radius: var(--radius); padding: .25rem .35rem; font-size: .78rem; font-weight: 700; color: var(--text-muted); transition: all .15s; }
.alphabet-strip a:hover { color: var(--primary); }
.alphabet-strip a.active { background: var(--text); color: #fff; }

.results-count { text-align: center; font-size: .875rem; color: var(--text-muted); margin-top: 2rem; }
.results-count strong { color: var(--text); }
.load-more-btn {
  display: block; margin: 2.5rem auto 0; border-radius: 9999px;
  border: 1.5px solid var(--border); background: var(--surface);
  padding: .7rem 2rem; font-size: .875rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-body); transition: all .15s; color: var(--text);
}
.load-more-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   SINGLE TERMO
   ============================================================ */
.termo-article { max-width: 780px; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }
@media (min-width: 768px) { .termo-article { padding: 4rem 1.25rem 6rem; } }
.termo-header { border-bottom: 1px solid var(--border); padding-bottom: 2rem; margin-bottom: 2.5rem; }
.termo-title  { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; margin-top: .75rem; }
.termo-def    { font-size: 1.1rem; line-height: 1.7; margin-top: 1.25rem; color: rgba(15,23,42,.8); }
.termo-info-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 560px) { .termo-info-grid { grid-template-columns: 1fr 1fr; } }
.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.info-box__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.info-box__value { margin-top: .5rem; font-size: .9375rem; color: var(--text); line-height: 1.6; }
.related-termos { margin-top: 4rem; }
.related-termos h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 1.25rem; }

/* ============================================================
   BLOG SINGLE
   ============================================================ */
.blog-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .blog-layout { grid-template-columns: 1fr 320px; } }
.blog-single { padding: 2.5rem 1.25rem 5rem; }
@media (min-width: 768px) { .blog-single { padding: 4rem 1.25rem 6rem; } }
.blog-single__title { font-family: var(--font-display); font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: .875rem; }
.blog-single__meta  { display: flex; flex-wrap: wrap; align-items: center; gap: .875rem; margin-top: 1rem; font-size: .85rem; color: var(--text-muted); }
.blog-single__thumb { margin-bottom: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.blog-single__thumb img { width: 100%; max-height: 480px; object-fit: cover; }

.author-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 3rem; }
.author-box__avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--primary-light); }
.author-box__name   { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.author-box__bio    { font-size: .875rem; color: var(--text-muted); margin-top: .25rem; }

.prose { line-height: 1.85; color: rgba(15,23,42,.85); }
.prose p  { margin-bottom: 1.25rem; }
.prose h2 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; margin: 2.5rem 0 .875rem; letter-spacing: -.02em; }
.prose h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style: disc; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { border-left: 4px solid var(--primary); padding-left: 1.5rem; margin: 2rem 0; font-size: 1.05rem; font-style: italic; color: var(--text-muted); }
.prose a  { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5rem auto; }
.prose code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: .1em .4em; font-family: var(--font-mono); font-size: .875em; color: var(--secondary); }
.prose pre  { background: var(--text); border-radius: var(--radius); padding: 1.5rem; overflow-x: auto; margin-bottom: 1.25rem; }
.prose pre code { background: none; border: none; color: #e2e8f0; font-size: .875rem; padding: 0; }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sidebar-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-widget h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 800; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary-light); }
.sidebar-widget li + li { margin-top: .5rem; border-top: 1px solid var(--border); padding-top: .5rem; }
.sidebar-widget li a { font-size: .875rem; font-weight: 600; color: var(--text); }
.sidebar-widget li a:hover { color: var(--primary); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-pill { background: var(--primary-light); color: var(--primary); border-radius: 9999px; padding: .25rem .875rem; font-size: .775rem; font-weight: 700; }
.tag-pill:hover { background: var(--primary); color: #fff; }

.post-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-nav__link { display: flex; flex-direction: column; gap: .25rem; max-width: 46%; }
.post-nav__link--next { text-align: right; margin-left: auto; }
.post-nav__dir   { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.post-nav__title { font-family: var(--font-display); font-size: .9rem; font-weight: 700; }
.post-nav__link:hover .post-nav__title { color: var(--primary); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); font-size: .875rem; font-weight: 700; color: var(--text); padding: 0 .875rem; transition: all .15s; font-family: var(--font-display); }
.pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   STATIC PAGES
   ============================================================ */
.static-page { padding: 3rem 1.25rem 5rem; }
@media (min-width: 768px) { .static-page { padding: 5rem 1.25rem 6rem; } }
.static-page h1 { font-family: var(--font-display); font-size: clamp(2rem,5vw,3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.static-page h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 2.25rem 0 .75rem; }
.static-page p, .static-page li { line-height: 1.8; color: rgba(15,23,42,.82); margin-bottom: 1rem; }
.static-page ul, .static-page ol { padding-left: 1.5rem; list-style: disc; margin-bottom: 1.25rem; }
.static-page a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.static-page__date { font-size: .8rem; color: var(--text-muted); margin-bottom: 2rem; margin-top: -.75rem; display: block; }
.contact-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin: 2rem 0; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; font-weight: 700; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface-2); padding: .65rem 1rem; font-size: .9375rem; font-family: var(--font-body); color: var(--text); outline: none; transition: border-color .15s; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: var(--surface); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); border-radius: var(--radius-xl); padding: 3rem 2rem; text-align: center; color: #fff; }
@media (min-width: 768px) { .cta-strip { padding: 4.5rem 4rem; } }
.cta-strip h2 { font-family: var(--font-display); font-size: clamp(1.6rem,4vw,2.25rem); color: #fff; letter-spacing: -.02em; }
.cta-strip p  { margin-top: .75rem; color: #94a3b8; max-width: 32rem; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin-top: 5rem; border-top: 1px solid var(--border); background: var(--text); color: rgba(255,255,255,.8); }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.25rem 2rem; }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2.5fr 1fr 1fr 1fr; } }
.footer-brand__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: #fff; }
.footer-brand__desc { margin-top: .5rem; font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a { color: rgba(255,255,255,.5); transition: color .15s; }
.footer-social a:hover { color: #fff; }
.footer-nav h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer-nav li + li { margin-top: .5rem; }
.footer-nav a { font-size: .875rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; font-size: .825rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { opacity: .4; margin: 0 .2rem; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 99; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: none; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: #0f172a; color: #fff; padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; transform: translateY(100%); transition: transform .35s ease; border-top: 1px solid rgba(255,255,255,.1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .875rem; flex: 1; min-width: 200px; color: rgba(255,255,255,.8); }
.cookie-banner a { color: #60a5fa; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .75rem; flex-shrink: 0; }
.btn--cookie-ok { background: var(--primary); color: #fff; padding: .5rem 1.25rem; border-radius: var(--radius); font-size: .825rem; font-weight: 700; border: none; cursor: pointer; font-family: var(--font-body); }
.btn--cookie-ok:hover { background: var(--primary-dark); }
.btn--cookie-no { background: transparent; color: rgba(255,255,255,.6); padding: .5rem 1rem; border-radius: var(--radius); font-size: .825rem; border: 1px solid rgba(255,255,255,.2); cursor: pointer; font-family: var(--font-body); }

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot { margin: 2rem 0; text-align: center; }
.ad-slot--sidebar { margin: 0 0 1.5rem; }

/* ============================================================
   WIDGETS & COMMENTS
   ============================================================ */
.widget { margin-bottom: 2rem; }
.widget-title { font-family: var(--font-display); font-size: 1rem; font-weight: 800; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary-light); }
.blog-single__comments { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.comment-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; }
.comment-author b { font-weight: 700; color: var(--text); }
.comment-content p { color: rgba(15,23,42,.82); line-height: 1.7; }
.comment-form input,.comment-form textarea { border:1.5px solid var(--border);border-radius:var(--radius);padding:.6rem 1rem;font-family:var(--font-body);font-size:.9rem;width:100%;color:var(--text);background:var(--surface-2);outline:none;transition:border-color .15s; }
.comment-form input:focus,.comment-form textarea:focus { border-color:var(--primary);background:var(--surface); }
.form-submit input[type="submit"] { background:var(--primary);color:#fff;border:none;border-radius:var(--radius);padding:.65rem 1.75rem;font-size:.875rem;font-weight:700;cursor:pointer;font-family:var(--font-display); }

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden      { display: none !important; }
.text-center { text-align: center; }
.sr-only     { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0; }
