/*
Theme Name: Gabriel Gadelha 2026
Template: blog
Description: Visual 2026 do blog (escuro + areia, compacto, sem serifa). Tema filho do "blog": herda SEO, sitemap, busca e páginas especiais do tema pai.
Version: 1.0.0
Author: Gabriel Gadelha
Text Domain: gabrielgadelha
*/

:root {
  --g-bg: #120E0B; --g-bg2: #1B1511; --g-card: #211A15;
  --g-line: rgba(234, 189, 143, .16); --g-line2: rgba(234, 189, 143, .5);
  --g-sand: #EABD8F; --g-brown: #5C4130; --g-paper: #EAE8DB; --g-cream: #F7F5EE;
  --g-text: #F3EFE6; --g-muted: #A99C8D; --g-soft: #CFC5B8; --g-ink: #2F2F2F; --g-ink2: #6B6259;
  --g-white-line: #E6E0D2; --g-row-line: #EEE9DD;
}

.g26 *, .g26 *::before, .g26 *::after { box-sizing: border-box; }
body.g26 { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--g-bg); color: var(--g-text); -webkit-font-smoothing: antialiased; }
.g26 a { color: inherit; text-decoration: none; }
.g26 img { max-width: 100%; }
.g-wrap { max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) { .g-wrap { max-width: 720px; } }

/* ---------- header ---------- */
.g-top { position: sticky; top: 0; z-index: 900; background: rgba(18, 14, 11, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(234, 189, 143, .08); }
.g-top .g-wrap { height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.g-logo { display: flex; align-items: center; gap: 9px; }
.g-logo-mark { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #5C4130, #EABD8F); color: #fff; font-weight: 700; font-size: 13px; }
.g-logo-name { display: flex; flex-direction: column; line-height: 1; }
.g-logo-name small { font-size: 7px; letter-spacing: .42em; color: var(--g-muted); margin-bottom: 3px; }
.g-logo-name b { font-size: 13px; letter-spacing: .28em; font-weight: 600; color: var(--g-text); }
.g-icons { display: flex; gap: 6px; }
.g-icon-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--g-muted); cursor: pointer; border-radius: 8px; }
.g-icon-btn:hover { color: var(--g-text); background: rgba(234, 189, 143, .08); }
.g-icon-btn svg { width: 18px; height: 18px; }
.g-progress { height: 2px; background: rgba(234, 189, 143, .1); }
.g-progress span { display: block; height: 100%; width: 0; background: var(--g-sand); }

/* menu + search overlay */
.g-overlay { position: fixed; inset: 0; z-index: 950; background: rgba(10, 7, 5, .96); display: none; flex-direction: column; padding: 18px 22px; }
.g-overlay.open { display: flex; }
.g-overlay-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.g-menu a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--g-line); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--g-text); }
.g-menu a span { color: var(--g-sand); }
.g-search { display: flex; gap: 8px; }
.g-search input { flex: 1; height: 44px; border-radius: 10px; border: 1px solid var(--g-line); background: var(--g-card); color: var(--g-text); padding: 0 14px; font: 400 16px 'Inter', sans-serif; outline: none; }

/* ---------- type ---------- */
.g-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 9.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--g-muted); }
.g-eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--g-dot, var(--g-sand)); }
.g-title { margin: 0 0 10px; font-weight: 300; text-transform: uppercase; letter-spacing: .01em; font-size: 21px; line-height: 1.28; color: var(--g-text); font-family: inherit; }
.g-title em, .g-sec-title em { font-style: normal; font-weight: 600; color: var(--g-hl, var(--g-sand)); }
.g-sub { margin: 0 0 16px; font-size: 13px; line-height: 1.55; font-weight: 300; color: var(--g-soft); }
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 10px; border: 0; cursor: pointer; background: var(--g-paper); color: #1A1410 !important; font: 600 11px 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 10px 26px -12px rgba(234, 189, 143, .5); }
.g-btn:hover { background: #fff; }
.g-btn-dark { background: #2F2F2F; color: #fff !important; box-shadow: none; }
.g-btn-dark:hover { background: #000; }
.g-btn-block { width: 100%; }
.g-link { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--g-sand) !important; font-weight: 600; }

/* ---------- hero ---------- */
.g-hero { text-align: center; padding: 0 18px 28px; }
.g-hero-photo { margin: 0 -18px; height: 250px; overflow: hidden; position: relative; }
.g-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.g-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 14, 11, 0) 40%, rgba(18, 14, 11, .85) 80%, var(--g-bg) 100%); }
.g-hero .g-sub { margin-bottom: 20px; }
.g-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
@media (min-width: 900px) { .g-hero-photo { height: 340px; } .g-title { font-size: 26px; } }

/* ---------- light sections ---------- */
.g-light { background: var(--g-cream); color: var(--g-ink); }
.g-light .g-eyebrow { color: var(--g-ink2); }
.g-light .g-eyebrow::before { background: var(--g-dot, var(--g-brown)); }
.g-section { padding: 26px 16px; }
.g-sec-title { margin: 0 0 12px; font-size: 17px; font-weight: 300; text-transform: uppercase; letter-spacing: .02em; color: var(--g-ink); font-family: inherit; }
.g-light .g-sec-title em { color: var(--g-brown); }
.g-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.g-chip { height: 28px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; border: 1px solid #DDD6C6; color: var(--g-ink2) !important; background: #fff; }
.g-chip.on { background: #2F2F2F; border-color: #2F2F2F; color: #fff !important; }
.g-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 6px; display: inline-block; }

.g-feature { display: block; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--g-white-line); margin-bottom: 12px; color: var(--g-ink); }
.g-cover { position: relative; aspect-ratio: 16 / 9; color: var(--g-text); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 55%), var(--g-bg); }
.g-cover img.g-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-cover .g-eyebrow { position: absolute; top: 14px; left: 16px; --g-dot: var(--c); }
.g-cover p { position: relative; margin: 0; font-size: 17px; font-weight: 300; text-transform: uppercase; line-height: 1.25; letter-spacing: .01em; }
.g-cover p em { font-style: normal; font-weight: 600; color: var(--c); }
.g-cover .g-mini { position: absolute; top: 12px; right: 14px; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #5C4130, #EABD8F); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.g-feature .g-body { padding: 14px 16px 16px; }
.g-feature h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--g-ink); font-family: inherit; }
.g-feature .g-ex { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--g-ink2); }
.g-meta { font-size: 11px; color: #8A8075; }

.g-list { background: #fff; border: 1px solid var(--g-white-line); border-radius: 16px; overflow: hidden; }
.g-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--g-row-line); color: var(--g-ink); }
.g-item:first-child { border-top: 0; }
.g-thumb { flex: 0 0 52px; width: 52px; height: 52px; overflow: hidden; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 300; text-transform: uppercase; color: var(--c); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 34%, transparent), transparent 60%), var(--g-bg); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-item .g-k { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #5C4130); font-weight: 600; margin-bottom: 3px; }
.g-item h4 { margin: 0 0 3px; font-size: 13.5px; line-height: 1.3; font-weight: 600; color: var(--g-ink); font-family: inherit; }

.g-cats { background: #fff; border: 1px solid var(--g-white-line); border-radius: 14px; overflow: hidden; }
.g-catrow { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; border-top: 1px solid var(--g-row-line); color: var(--g-ink); }
.g-catrow:first-child { border-top: 0; }
.g-catrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: 0 0 8px; }
.g-catrow b { flex: 1; font-size: 14px; font-weight: 600; }
.g-catrow span { font-size: 12px; color: #8A8075; }
.g-catrow svg { width: 7px; height: 12px; color: #C2B8AA; }

/* ---------- dark CTA ---------- */
.g-cta-wrap { background: var(--g-cream); padding: 0 16px 26px; }
.g-cta { border-radius: 18px; padding: 20px 18px 16px; text-align: center; background: radial-gradient(120% 60% at 50% 0%, #1E1712 0%, #120E0B 65%); border: 1px solid var(--g-line); color: var(--g-text); }
.g-cta .g-title { font-size: 17px; }
.g-cta .g-fine { margin: 8px 0 0; font-size: 10.5px; color: var(--g-muted); }

/* ---------- sobre ---------- */
.g-about-sec { padding: 8px 16px 28px; }
.g-about-card { border-radius: 18px; overflow: hidden; background: var(--g-bg); color: var(--g-text); border: 1px solid var(--g-line); }
.g-about-photo { height: 230px; position: relative; overflow: hidden; }
.g-about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.g-about-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 14, 11, 0) 45%, var(--g-bg) 100%); }
.g-status { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(18, 14, 11, .7); font-size: 10px; color: var(--g-text); }
.g-status i { width: 6px; height: 6px; border-radius: 50%; background: #3CCB75; }
.g-about-body { padding: 4px 18px 18px; }
.g-about-body .g-title { font-size: 17px; }
.g-about-body p.g-txt { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: var(--g-soft); font-weight: 300; }
.g-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0; }
.g-stats div { padding: 4px; text-align: center; }
.g-stats div + div { border-left: 1px solid var(--g-line); }
.g-stats b { display: block; font-size: 14px; font-weight: 600; color: var(--g-sand); }
.g-stats span { font-size: 7.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--g-muted); }
.g-quote { margin: 0 0 14px; padding: 10px 12px; border-left: 2px solid var(--g-sand); font-size: 13px; line-height: 1.5; color: var(--g-text); font-style: italic; }
.g-quote small { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; color: var(--g-muted); }
.g-expertise { margin-top: 10px; background: #fff; border: 1px solid var(--g-white-line); border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; }
.g-exp { padding: 12px 14px; border-top: 1px solid var(--g-row-line); }
.g-exp:nth-child(-n+2) { border-top: 0; }
.g-exp:nth-child(odd) { border-right: 1px solid var(--g-row-line); }
.g-exp b { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 2px; color: var(--g-ink); }
.g-exp span { font-size: 11px; line-height: 1.4; color: var(--g-ink2); }

/* ---------- footer ---------- */
.g-foot { padding: 28px 16px 40px; text-align: center; background: var(--g-bg); color: var(--g-text); }
.g-foot-about { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 12px; }
.g-foot-about img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--g-line2); }
.g-foot-about b { display: block; font-size: 14px; }
.g-foot-about span { font-size: 12px; color: var(--g-muted); }
.g-foot p.g-bio { max-width: 300px; margin: 0 auto 16px; font-size: 12.5px; line-height: 1.55; color: var(--g-soft); font-weight: 300; }
.g-news { display: flex; gap: 6px; max-width: 340px; margin: 0 auto 18px; }
.g-news input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--g-line); background: var(--g-card); color: var(--g-text); padding: 0 12px; font: 400 16px 'Inter', sans-serif; outline: none; }
.g-news input::placeholder { color: #6F655B; }
.g-news .g-btn { height: 40px; padding: 0 14px; font-size: 10px; }
.g-news-ok { display: none; font-size: 12px; color: var(--g-sand); margin: -8px 0 16px; }
.g-fcols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; border-top: 1px solid var(--g-line); padding-top: 16px; }
.g-fcols p.g-h { margin: 0 0 6px; font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--g-muted); }
.g-fcols a { display: block; font-size: 12px; color: var(--g-soft); line-height: 1.9; }
.g-fcontact { font-size: 12px; color: var(--g-soft); line-height: 1.7; margin-bottom: 14px; }
.g-social { display: flex; justify-content: center; gap: 10px; margin: 4px 0 16px; }
.g-social a { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--g-sand); background: var(--g-card); border: 1px solid var(--g-line); }
.g-social svg { width: 17px; height: 17px; }
.g-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 10px; color: #6F655B; border-top: 1px solid var(--g-line); padding-top: 14px; }

/* ---------- post ---------- */
.g-post-hero { padding: 18px 18px 22px; }
.g-crumb { font-size: 10px; color: #6F655B; margin-bottom: 14px; letter-spacing: .04em; }
.g-crumb a:hover { color: var(--g-soft); }
.g-author { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.g-author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--g-line2); }
.g-author div { font-size: 11.5px; line-height: 1.35; color: var(--g-text); }
.g-author small { display: block; color: var(--g-muted); font-size: 10.5px; }
.g-article { padding: 24px 18px 8px; font-size: 15.5px; line-height: 1.75; color: #33302C; }
.g-article p { margin: 0 0 18px; }
.g-article h2 { display: flex; gap: 10px; align-items: baseline; margin: 28px 0 12px; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--g-ink); letter-spacing: -.01em; font-family: inherit; scroll-margin-top: 70px; }
.g-article h2::before { content: ''; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--g-brown); transform: translateY(-3px); }
.g-article h3 { margin: 22px 0 10px; font-size: 15.5px; font-weight: 600; color: var(--g-ink); font-family: inherit; }
.g-article strong { color: var(--g-ink); }
.g-article a { color: var(--g-brown); text-decoration: underline; text-underline-offset: 3px; }
.g-article ul, .g-article ol { margin: 0 0 18px; padding-left: 22px; }
.g-article li { margin-bottom: 6px; }
.g-article blockquote { margin: 0 0 18px; padding: 10px 14px; border-left: 2px solid var(--g-brown); background: #fff; border-radius: 0 10px 10px 0; font-style: italic; }
.g-article img { height: auto; border-radius: 12px; }
.g-toc { margin: 0 0 22px; border: 1px solid var(--g-white-line); border-radius: 14px; background: #fff; padding: 12px 14px; }
.g-toc .g-eyebrow { margin-bottom: 6px; }
.g-toc ol { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.7; color: var(--g-ink2); }
.g-toc a { color: var(--g-ink2); text-decoration: none; }
.g-inline-news { margin: 26px 0; border-radius: 14px; background: #fff; border: 1px solid var(--g-white-line); padding: 14px; text-align: left; }
.g-inline-news b { display: block; font-size: 14px; margin-bottom: 4px; color: var(--g-ink); }
.g-inline-news > span { font-size: 12px; color: var(--g-ink2); }
.g-inline-news .g-news { margin: 10px 0 0; max-width: none; }
.g-inline-news .g-news input { background: var(--g-cream); border-color: #DDD6C6; color: var(--g-ink); }
.g-inline-news .g-news-ok { margin: 8px 0 0; color: var(--g-brown); }
.g-related { padding: 0 16px 26px; }

/* ---------- archive / search / 404 ---------- */
.g-archive-head { padding: 22px 18px 22px; }
.g-archive-head .g-search { margin-top: 14px; }
.g-empty { background: #fff; border: 1px solid var(--g-white-line); border-radius: 16px; padding: 22px 16px; text-align: center; font-size: 13.5px; color: var(--g-ink2); }
.g-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.g-pagination a, .g-pagination span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; border: 1px solid #DDD6C6; background: #fff; color: var(--g-ink2); }
.g-pagination .current { background: #2F2F2F; border-color: #2F2F2F; color: #fff; }

/* ---------- modal (etapa 1 do diagnóstico) ---------- */
.g-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 7, 5, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; }
.g-modal.open { display: block; }
.g-modal-wrap { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 12px; }
.g-modal-card { position: relative; width: 100%; max-width: 380px; max-height: calc(100svh - 24px); overflow-y: auto; background: radial-gradient(120% 60% at 50% 0%, #1E1712 0%, #120E0B 65%), #120E0B; border: 1px solid var(--g-line); border-radius: 20px; padding: 20px 18px 14px; color: var(--g-text); text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); animation: g-pop .25s ease; }
@keyframes g-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.g-modal-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--g-muted); background: rgba(234, 189, 143, .08); }
.g-modal .g-title { font-size: 17px; line-height: 1.3; padding: 0 8px; margin-bottom: 8px; }
.g-modal .g-sub { font-size: 12.5px; margin-bottom: 14px; }
.g-form { text-align: left; }
.g-form .g-field { margin-bottom: 9px; position: relative; }
.g-form label { display: block; margin-bottom: 4px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--g-muted); }
.g-form input, .g-form select { width: 100%; height: 42px; padding: 0 14px; font: 400 16px 'Inter', system-ui, sans-serif; color: var(--g-text); background: var(--g-card); border: 1px solid var(--g-line); border-radius: 10px; outline: none; -webkit-appearance: none; appearance: none; box-sizing: border-box; }
.g-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23EABD8F' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.g-form select:invalid { color: #6F655B; }
.g-form select option { background: var(--g-card); color: var(--g-text); }
.g-form input::placeholder { color: #6F655B; }
.g-form input:focus, .g-form select:focus { border-color: var(--g-line2); }
.g-form .error { border-color: #F08A7E; }
.g-form .g-btn { width: 100%; margin-top: 14px; height: 44px; }
.g-form .g-fine { margin: 9px 0 0; text-align: center; font-size: 11px; font-weight: 300; color: var(--g-muted); }
@media (max-height: 600px) { .g-modal .g-sub { display: none; } }
body.g-lock { overflow: hidden; }
