/* ===== Tema GROING ===== */
:root {
  --background: oklch(0.16 0.012 265);
  --foreground: oklch(0.96 0.005 265);
  --card: oklch(0.2 0.014 265);
  --card-foreground: oklch(0.96 0.005 265);
  --primary: oklch(0.8 0.13 82);
  --primary-foreground: oklch(0.2 0.03 82);
  --secondary: oklch(0.26 0.016 265);
  --muted-foreground: oklch(0.68 0.012 265);
  --border: oklch(1 0 0 / 10%);
  --radius: 0.625rem;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Cinzel", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--foreground);
  text-wrap: balance;
}

.section-text {
  margin-top: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ===== Blog ===== */
.blog-page {
  min-height: 60vh;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.blog-intro {
  max-width: 46rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.blog-intro .section-text {
  margin-top: 0.75rem;
}

.blog-category-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  margin: -1rem auto 1.5rem;
}

.blog-category-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.blog-search-form {
  display: flex;
  flex: 0 1 25rem;
  gap: 0.5rem;
}

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

.blog-search-input {
  width: 100%;
  min-width: 10rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  background: var(--card);
}

.blog-search-input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.blog-search-button {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 0.5rem;
  color: var(--primary-foreground);
  background: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

.blog-search-button:hover {
  opacity: 0.9;
}

.blog-category-dropdown summary {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.blog-category-dropdown summary::-webkit-details-marker {
  display: none;
}

.blog-category-dropdown summary::after {
  content: "⌄";
  margin-left: 0.5rem;
}

.blog-category-menu,
.blog-category-children {
  z-index: 3;
  min-width: 13rem;
  margin: 0;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  box-shadow: 0 0.75rem 1.5rem rgb(0 0 0 / 18%);
  list-style: none;
}

.blog-category-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
}

.blog-category-menu li {
  position: relative;
}

.blog-category-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.3rem;
  color: var(--card-foreground);
  text-decoration: none;
  white-space: nowrap;
}

.blog-category-menu a:hover,
.blog-category-menu a:focus-visible,
.blog-category-menu a[aria-current="page"] {
  color: var(--primary-foreground);
  background: var(--primary);
}

.blog-category-children {
  position: absolute;
  top: 0;
  left: calc(100% - 1px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.blog-category-item:hover > .blog-category-children,
.blog-category-item:focus-within > .blog-category-children {
  visibility: visible;
  opacity: 1;
}

.blog-category-arrow {
  font-size: 1.2em;
}

.blog-filter-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 auto 1.5rem;
  color: var(--muted-foreground);
}

.blog-filter-active a {
  margin-left: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-list {
  display: grid;
  gap: 1.25rem;
  max-width: 54rem;
  margin: 0 auto;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
}

.blog-card-image-link {
  display: block;
}

.blog-card-image {
  display: block;
  width: 100%;
  max-height: 22rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card-title,
.blog-card-excerpt,
.blog-read-more {
  margin-left: clamp(1.25rem, 4vw, 2rem);
  margin-right: clamp(1.25rem, 4vw, 2rem);
}

.blog-card-title {
  margin-top: clamp(1.25rem, 4vw, 2rem);
  color: var(--card-foreground);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.blog-card-excerpt {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-card > .blog-read-more:last-child {
  margin-bottom: clamp(1.25rem, 4vw, 2rem);
}

.blog-read-more:hover {
  color: var(--foreground);
}

.blog-empty {
  max-width: 54rem;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--muted-foreground);
  text-align: center;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  color: var(--muted-foreground);
}

.blog-pagination a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-pagination a:hover {
  color: var(--foreground);
}

@media (max-width: 640px) {
  .blog-category-menu {
    position: static;
    box-shadow: none;
  }

  .blog-category-children {
    position: static;
    visibility: visible;
    opacity: 1;
    margin: 0 0 0.35rem 0.75rem;
    padding: 0.25rem;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }
}

.blog-article {
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.blog-article .section-title {
  margin-bottom: 1.5rem;
}

.blog-featured-image {
  display: block;
  width: 100%;
  max-height: 38rem;
  margin: 0 0 2rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.blog-article-content > * + * {
  margin-top: 1rem;
}

.blog-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-tags li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.blog-back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-back-link-top {
  margin: 0 0 1.5rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary .icon {
  width: 1rem;
  height: 1rem;
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
}

/* ===== Cabeçalho ===== */
.site-header {
  position: relative;
  z-index: 20;
  background: color-mix(in oklch, var(--background) 94%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--foreground);
  text-decoration: none;
}

.brand-sm {
  font-size: 0.875rem;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-left: auto;
}

.nav img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.donation-form {
  display: flex;
  align-items: center;
  margin: 0;
}

.donation-form input[type="image"] {
  width: auto;
  max-width: 100%;
}

.header-logo {
  display: block;
  width: clamp(15rem, 28vw, 25rem);
  height: clamp(5.5rem, 10.5vw, 9rem);
  object-fit: cover;
  object-position: center 42%;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.language-flag {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: cover;
}

.language-switcher select {
  width: 6rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in oklch, var(--background) 60%, transparent),
    color-mix(in oklch, var(--background) 50%, transparent),
    var(--background)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}

.hero-logo {
  height: 10rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 2rem;
}

.hero-title {
  max-width: 48rem;
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1.1;
  color: var(--foreground);
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.scroll-down:hover {
  color: var(--foreground);
}

.scroll-down .icon {
  width: 1.5rem;
  height: 1.5rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* ===== Sobre ===== */
.about {
  border-top: 1px solid var(--border);
  padding: 6rem 0;
}

.about-intro {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}

.feature-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
}

.feature-title {
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.feature-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.home-featured-posts {
  border-top: 1px solid var(--border);
  padding: 5rem 0;
}

.home-featured-intro {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}

.home-featured-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
}

.home-featured-image-link {
  display: block;
}

.home-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-featured-card-body {
  padding: 1.5rem;
}

.home-featured-card-body .feature-title {
  overflow-wrap: anywhere;
}

.home-featured-card-body .feature-text {
  overflow-wrap: anywhere;
}

.home-featured-link,
.home-featured-all a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.home-featured-link:hover,
.home-featured-all a:hover {
  color: var(--foreground);
}

.home-featured-all {
  margin-top: 2rem;
  text-align: center;
}

/* ===== Rodapé ===== */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding: 5rem 1.5rem;
  text-align: center;
}

.footer-text {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.copyright {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.copyright a:link {
  color:darkorange;
  text-decoration: none;
}

/* ===== Responsivo ===== */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; }
}

@media (min-width: 768px) {
  .hero-logo { height: 13rem; }
  .about { padding: 8rem 0; }
}

@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .brand {
    flex: 0 1 11rem;
    min-width: 0;
  }

  .header-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .nav-link,
  .header-actions .btn {
    white-space: nowrap;
  }

  .header-actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  .header-inner {
    justify-content: center;
  }

  .nav,
  .header-actions {
    justify-content: center;
    margin-left: 0;
  }
}

.app-version { opacity: 0.6; font-size: 0.85em; }
