@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* =====================
   VARIABLES & RESET
   ===================== */
:root {
  --cream: #FAF8F4;
  --cream-dark: #F0EBE1;
  --dark: #1C1814;
  --dark-2: #2E2820;
  --brown: #6B4F35;
  --gold: #C4933F;
  --gold-light: #E8C97A;
  --rust: #A84832;
  --muted: #7A6E63;
  --border: #DDD5C8;
  --white: #FFFFFF;
  --shadow: 0 2px 20px rgba(28,24,20,0.08);
  --shadow-hover: 0 8px 40px rgba(28,24,20,0.15);
  --radius: 3px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --content-width: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.5em; }

/* =====================
   HEADER
   ===================== */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.3px;
}
.site-logo span { color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 32px; }

.site-nav a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250,248,244,0.7);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================
   HERO (HOME)
   ===================== */
.hero {
  background: var(--dark-2);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 60px,
    rgba(196,147,63,0.03) 60px, rgba(196,147,63,0.03) 61px
  );
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(196,147,63,0.4);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p {
  font-family: var(--font-ui);
  font-size: 16px;
  color: rgba(250,248,244,0.65);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================
   LAYOUT WRAPPER
   ===================== */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.page-wrapper.full-width {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
}

/* =====================
   SECTION LABELS
   ===================== */
.section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =====================
   ARTICLE CARDS (HOME)
   ===================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-thumb {
  height: 180px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid var(--border);
}

.card-body { padding: 22px; }

.card-cat {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--dark);
}

.card p {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

/* =====================
   FEATURED CARD (first article)
   ===================== */
.card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card.featured .card-thumb {
  height: 100%;
  min-height: 220px;
  border-bottom: none;
  border-right: 1px solid var(--border);
  font-size: 72px;
}
.card.featured .card-body { padding: 36px; }
.card.featured h2 { font-size: 24px; }

/* =====================
   SIDEBAR
   ===================== */
.sidebar { position: sticky; top: 88px; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}

/* Search */
.search-form { display: flex; gap: 0; }
.search-input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--cream);
  outline: none;
}
.search-input:focus { border-color: var(--gold); }
.search-btn {
  background: var(--dark);
  color: var(--cream);
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--gold); color: var(--dark); }

/* Categories */
.cat-list { list-style: none; padding: 0; }
.cat-list li {
  border-bottom: 1px solid var(--cream-dark);
  padding: 8px 0;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  transition: color 0.2s;
}
.cat-list a:hover { color: var(--gold); }
.cat-list span {
  background: var(--cream-dark);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--muted);
}

/* Recent posts in sidebar */
.recent-list { list-style: none; padding: 0; }
.recent-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.recent-list li:last-child { border-bottom: none; }
.recent-thumb {
  width: 52px;
  height: 52px;
  background: var(--cream-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.recent-info a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
  display: block;
  margin-bottom: 3px;
  transition: color 0.2s;
}
.recent-info a:hover { color: var(--gold); }
.recent-info span {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-ui);
}

/* AdSense placeholder */
.adsense-box {
  background: var(--cream-dark);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.adsense-box p {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =====================
   ARTICLE PAGE
   ===================== */
.article-header { margin-bottom: 40px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-cat {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: 4px 12px;
  border-radius: 2px;
}
.article-date, .article-time {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--dark);
}

.article-lead {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 36px;
  font-style: italic;
}

.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* Article content typography */
.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--dark);
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--brown);
}
.article-content p {
  margin-bottom: 20px;
  color: #3A3228;
}
.article-content ul, .article-content ol {
  margin: 20px 0;
  padding-left: 24px;
}
.article-content li {
  margin-bottom: 8px;
  color: #3A3228;
}
.article-content strong { color: var(--dark); font-weight: 600; }

/* Related articles */
.related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: var(--shadow); }
.related-card .card-cat { margin-bottom: 6px; }
.related-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  transition: color 0.2s;
}
.related-card:hover h3 { color: var(--gold); }

/* =====================
   STATIC PAGES (Sobre, Contato etc)
   ===================== */
.static-hero {
  background: var(--dark-2);
  padding: 60px 24px;
  text-align: center;
}
.static-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 12px;
}
.static-hero p {
  font-family: var(--font-ui);
  font-size: 15px;
  color: rgba(250,248,244,0.6);
}

.static-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 24px;
}
.static-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--dark);
}
.static-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 24px 0 10px;
  color: var(--brown);
}
.static-content p { margin-bottom: 18px; color: #3A3228; }
.static-content ul { margin: 16px 0; }
.static-content li { margin-bottom: 8px; color: #3A3228; }
.static-content a { color: var(--gold); text-decoration: underline; }
.static-content strong { color: var(--dark); }

/* Contact form */
.contact-form { margin-top: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { height: 140px; resize: vertical; }
.form-submit {
  background: var(--dark);
  color: var(--cream);
  border: none;
  padding: 14px 32px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--gold); color: var(--dark); }

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--dark);
  color: rgba(250,248,244,0.5);
  padding: 48px 24px 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,248,244,0.08);
  margin-bottom: 28px;
}
.footer-brand .site-logo { font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-family: var(--font-ui); font-size: 13px; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(250,248,244,0.5);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-family: var(--font-ui); font-size: 12px; }

/* =====================
   COOKIE BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-2);
  border-top: 2px solid var(--gold);
  padding: 18px 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(250,248,244,0.8);
  flex: 1;
  min-width: 200px;
}
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-accept {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 10px 24px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.cookie-accept:hover { background: var(--gold-light); }

/* =====================
   SEARCH OVERLAY
   ===================== */
#search-results {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 8px;
  display: none;
}
#search-results.active { display: block; }
#search-results a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--dark);
  border-bottom: 1px solid var(--cream-dark);
  transition: background 0.15s;
}
#search-results a:last-child { border-bottom: none; }
#search-results a:hover { background: var(--cream); color: var(--gold); }
#search-results .no-results {
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
}

/* =====================
   BREADCRUMB
   ===================== */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--border); }

/* =====================
   UTILITIES
   ===================== */
.text-gold { color: var(--gold); }
.mt-0 { margin-top: 0; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .articles-grid { grid-template-columns: 1fr; }
  .card.featured { grid-template-columns: 1fr; }
  .card.featured .card-thumb { border-right: none; border-bottom: 1px solid var(--border); height: 200px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark-2); padding: 20px 24px; border-top: 1px solid rgba(250,248,244,0.08); gap: 20px; }
  .site-nav.open { display: flex; }
  .hamburger { display: flex; }
  .hero { padding: 60px 20px; }
  .page-wrapper { padding: 40px 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .articles-grid { gap: 16px; }
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner > * {
  animation: fadeUp 0.6s ease both;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.3s; }
