/* ═══════════════════════════════════════════════════════════════════════════
   Ótica Helena Blog Theme — brand-locked palette + fonts.
   Single source of truth: mirrors `oticahelena.com/css/helena-brand.css`.
   Archetype: oticahelena_brand_locked. Loaded by themes/helena/layout/header.php.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --color-brand:        #C1121F;
  --color-brand-dark:   #8a0d16;
  --color-accent:       #c45c2a;
  --color-accent-soft:  #e9b389;
  --color-base:         #faf6f0;
  --color-surface:      #ffffff;
  --color-grey-100:     #f3f0ea;
  --color-grey-300:     #d6d2cb;
  --color-grey-500:     #8a857d;
  --color-grey-700:     #3f3b35;
  --color-grey-900:     #1a1714;

  --font-display:       'Bebas Neue', sans-serif;
  --font-display-alt:   'Anton', sans-serif;
  --font-body:          'Inter', sans-serif;

  --radius-card:        10px;
  --shadow-sm:          0 2px 8px rgba(26, 23, 20, 0.06);
  --shadow-md:          0 8px 24px rgba(26, 23, 20, 0.10);
}

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

body {
  background: var(--color-base);
  color: var(--color-grey-900);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-brand-dark); }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Top header (matches main site) ─────────────────────────────────────── */
.hh-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-grey-300);
  padding: 1.1rem 0;
  position: sticky; top: 0; z-index: 100;
}
.hh-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.hh-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: .04em;
  color: var(--color-grey-900);
  line-height: 1;
}
.hh-logo:hover { color: var(--color-brand); }
.hh-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.hh-nav a {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-grey-900);
  position: relative;
}
.hh-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -4px;
  height: 2px; background: var(--color-brand);
  transition: left .25s ease, right .25s ease;
}
.hh-nav a:hover { color: var(--color-brand); }
.hh-nav a:hover::after { left: 0; right: 0; }

/* ─── Mobile burger menu (matches main site pattern) ──────────────────── */
.hh-burger {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 0;
}
.hh-burger span {
  display: block; width: 26px; height: 2px;
  background: var(--color-grey-900);
  transition: transform .25s ease, opacity .25s ease;
}
body.menu-open .hh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hh-burger span:nth-child(2) { opacity: 0; }
body.menu-open .hh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hh-mobile-menu {
  position: fixed; inset: 0; width: 100%;
  height: 100vh; height: 100dvh;
  background: var(--color-surface);
  z-index: 1300;
  padding: 4.5rem 1.75rem calc(2rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(-100%);
  transition: transform .45s ease;
  visibility: hidden;
  display: flex; flex-direction: column; gap: 1.25rem;
  overflow-y: auto;
}
.hh-mobile-menu.open { transform: translateY(0); visibility: visible; }
.hh-mobile-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 1.8rem; line-height: 1;
  color: var(--color-grey-500);
  border-radius: 50%;
  transition: color .2s ease, background .2s ease;
}
.hh-mobile-close:hover { color: var(--color-brand); background: var(--color-grey-100); }
.hh-mobile-eyebrow {
  font-family: var(--font-body); font-size: .75rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-accent); margin: 0;
}
.hh-mobile-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 2.5rem; line-height: 1.05; letter-spacing: .02em;
  color: var(--color-brand); margin: 0 0 1rem;
}
.hh-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.hh-mobile-menu li { margin: 0; }
.hh-mobile-menu li a {
  position: relative;
  display: block; padding: .9rem .25rem;
  color: var(--color-grey-900); text-decoration: none;
  font-family: var(--font-display-alt); font-weight: 400;
  font-size: 1.6rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .02em;
  transition: color .25s ease, padding-left .3s ease;
}
.hh-mobile-menu li a::after {
  content: ""; position: absolute; left: .25rem; right: 100%; bottom: .4rem;
  height: 1px; background: var(--color-brand);
  transition: right .35s ease;
}
.hh-mobile-menu li a:hover,
.hh-mobile-menu li a:focus-visible {
  color: var(--color-brand); padding-left: 1rem;
}
.hh-mobile-menu li a:hover::after,
.hh-mobile-menu li a:focus-visible::after { right: 30%; }
.hh-mobile-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-grey-300);
  display: flex; flex-direction: column; gap: .35rem;
  font-family: var(--font-body); font-size: .95rem;
  color: var(--color-grey-700);
}
.hh-mobile-contact a { color: inherit; text-decoration: none; }
.hh-mobile-contact a:hover { color: var(--color-brand); }
body.menu-open { overflow: hidden; touch-action: none; }

@media (max-width: 768px) {
  .hh-header .hh-nav { display: none; }
  .hh-burger { display: flex; }
}

/* ─── NAP band ───────────────────────────────────────────────────────────── */
.hh-band {
  background: var(--color-grey-900);
  color: var(--color-grey-100);
  font-family: var(--font-body);
  font-size: .875rem;
  padding: .85rem 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem;
}
.hh-band a { color: inherit; }
.hh-band a:hover { color: var(--color-accent-soft); }

/* ─── Main layout ────────────────────────────────────────────────────────── */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  padding: 3rem 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.25rem; }
}

/* ─── Post list (home.php) ───────────────────────────────────────────────── */
.archive-title {
  font-family: var(--font-display-alt);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
  color: var(--color-grey-900);
  margin-bottom: 2rem;
  letter-spacing: .02em;
}
.post-list { display: flex; flex-direction: column; gap: 2.5rem; }
.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-thumb { width: 100%; max-height: 260px; object-fit: cover; }
.post-card-body { padding: 1.5rem 1.75rem 1.75rem; }
.post-cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .5rem;
}
.post-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: .02em;
  margin: .25rem 0 .75rem;
}
.post-card h2 a { color: var(--color-grey-900); }
.post-card h2 a:hover { color: var(--color-brand); }
.post-meta {
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--color-grey-500);
  margin-bottom: .85rem;
}
.post-excerpt {
  color: var(--color-grey-700);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.read-more {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--color-brand);
}
.read-more:hover { color: var(--color-brand-dark); }
.no-posts {
  font-family: var(--font-body);
  color: var(--color-grey-500);
  text-align: center;
  padding: 3rem 0;
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-grey-300);
  font-family: var(--font-body);
  font-size: .9rem;
}
.pagination a {
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pagination span { color: var(--color-grey-500); }

/* ─── Single post ────────────────────────────────────────────────────────── */
.single-post {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 2.5rem 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .single-post { padding: 1.75rem 1.5rem 2.25rem; }
}
.post-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: .02em;
  color: var(--color-grey-900);
  margin: .5rem 0 1rem;
}
.post-header .featured-image {
  border-radius: var(--radius-card);
  margin-top: 1.5rem;
}
.post-content {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-grey-900);
  margin: 2rem 0;
}
.post-content > * + * { margin-top: 1.1rem; }
.post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--font-display-alt);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--color-grey-900);
  margin-top: 2rem;
}
.post-content h2 { font-size: 1.75rem; line-height: 1.15; }
.post-content h3 { font-size: 1.35rem; }
.post-content h4 { font-size: 1.1rem; }
.post-content a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content ul, .post-content ol { padding-left: 1.5rem; }
.post-content li + li { margin-top: .35rem; }
.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: .5rem 0 .5rem 1.25rem;
  color: var(--color-grey-700);
  font-style: italic;
  margin: 1.5rem 0;
}
.post-content img {
  border-radius: var(--radius-card);
  margin: 1.5rem auto;
}

/* ─── Attribution block ──────────────────────────────────────────────────── */
.post-attribution {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-grey-100);
  border-left: 3px solid var(--color-grey-500);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--color-grey-700);
  border-radius: 6px;
}
.post-attribution a { color: var(--color-brand); text-decoration: underline; }

/* ─── Reviewer block (Helena E-A-T signal — appears on every post) ─────── */
.post-reviewer {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-base);
  border-left: 3px solid var(--color-brand);
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.6;
  color: var(--color-grey-900);
  border-radius: 6px;
}
.post-reviewer strong { color: var(--color-brand); }

/* ─── Helena CTA in single post ──────────────────────────────────────────── */
.helena-cta {
  margin-top: 2.5rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--color-grey-900);
  color: var(--color-grey-100);
  border-radius: var(--radius-card);
  text-align: center;
}
.helena-cta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: .02em;
  color: var(--color-surface);
  margin-bottom: .5rem;
}
.helena-cta p { font-family: var(--font-body); font-size: 1rem; margin-bottom: 1rem; }
.helena-cta-btn {
  display: inline-block;
  background: var(--color-brand);
  color: var(--color-surface);
  font-family: var(--font-display);
  letter-spacing: .06em;
  font-size: 1.05rem;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  margin-right: .5rem;
}
.helena-cta-btn:hover {
  background: var(--color-brand-dark);
  color: var(--color-surface);
}
.helena-cta-link {
  color: var(--color-accent-soft);
  font-size: .9rem;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.helena-cta-link:hover { color: var(--color-surface); }

/* ─── CTA no meio do texto (posts curados) ──────────────────────────────── */
/* Interrompe a leitura na voz da Helena, sem o peso do bloco escuro do fim. */
.post-content .helena-inline-cta {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-base);
  border-left: 4px solid var(--color-brand);
  border-radius: 6px;
}
.post-content .helena-inline-cta p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-grey-900);
}
.post-content .helena-inline-cta strong { color: var(--color-brand); }
.post-content .helena-inline-cta a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content .helena-inline-cta a:hover { color: var(--color-brand-dark); }

/* ─── Tabelas dentro dos posts ───────────────────────────────────────────── */
.post-content table {
  width: 100%;
  margin: 1.75rem 0;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: .95rem;
}
.post-content thead th {
  background: var(--color-grey-900);
  color: var(--color-surface);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .04em;
  font-size: 1rem;
  text-align: left;
  padding: .65rem .85rem;
}
.post-content tbody td {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--color-grey-300);
  color: var(--color-grey-900);
  vertical-align: top;
}
.post-content tbody tr:nth-child(even) { background: var(--color-base); }
.post-content tbody td strong { color: var(--color-brand); }

/* Em telas estreitas a tabela rola em vez de estourar o layout. */
@media (max-width: 600px) {
  .post-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-grey-300);
}
.post-footer a {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-grey-700);
}
.post-footer a:hover { color: var(--color-brand); }

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.widget {
  background: var(--color-surface);
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-display-alt);
  font-weight: 400;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-grey-900);
  padding-bottom: .6rem;
  margin-bottom: .85rem;
  border-bottom: 2px solid var(--color-brand);
}
.widget ul { list-style: none; }
.widget li + li { margin-top: .35rem; }
.widget a {
  display: flex; justify-content: space-between;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-grey-700);
  padding: .35rem 0;
}
.widget a:hover { color: var(--color-brand); }
.widget a span { color: var(--color-grey-500); font-size: .8rem; }
.widget-contact p {
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--color-grey-700);
  margin-bottom: .55rem;
}
.widget-contact a { display: inline; padding: 0; }

/* ─── Site footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-grey-900);
  color: var(--color-grey-300);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-surface);
  letter-spacing: .04em;
  margin-bottom: .75rem;
}
.site-footer p { font-size: .9rem; line-height: 1.5; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: .3rem; }
.site-footer a { color: var(--color-grey-300); font-size: .9rem; }
.site-footer a:hover { color: var(--color-accent-soft); }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-grey-700);
  font-size: .8rem;
  color: var(--color-grey-500);
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card:hover, .hh-nav a::after { transition: none !important; }
}
