/* ==============================================
   Discretta Blog — Main Stylesheet
   Tema: Branco & Rosa Discretta | Mobile-First
   Paleta: #CC0066 (rosa), #000 (preto), #fff (fundo)
   ============================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #ffffff;
  color: #333333;
  font-family: 'Arial', 'Helvetica Neue', sans-serif;
  line-height: 1.75;
  min-height: 100vh;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Arial', sans-serif;
  line-height: 1.3;
  color: #111111;
  scroll-margin-top: 80px;
}

p { margin-bottom: 1.25rem; }

a {
  color: #CC0066;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus { color: #990050; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

strong {
  color: #111111;
  font-weight: 700;
}

/* --- Layout --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Skip Link (Acessibilidade) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #CC0066;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-size: 0.9rem;
  z-index: 999;
}
.skip-link:focus { top: 0; }

/* --- Barra superior preta --- */
.site-header {
  background: #CC0066;
  border-bottom: none;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo img {
  height: 36px;
  width: auto;
  max-width: 180px;
  display: block;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 1rem;
}
.footer-brand .logo img {
  height: 32px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}
.nav-menu a {
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}
.nav-menu a:hover { opacity: 1; color: #ffccdd; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.2rem;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #CC0066 0%, #ff3399 50%, #CC0066 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffccdd;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 900;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn--primary {
  background: #ffffff;
  color: #CC0066;
  border-color: #ffffff;
}
.btn--primary:hover {
  background: #ffccdd;
  border-color: #ffccdd;
  color: #CC0066;
}
.btn--outline {
  background: transparent;
  color: #CC0066;
  border-color: #CC0066;
}
.btn--outline:hover {
  background: #CC0066;
  color: #fff;
}

/* --- Section Headers --- */
.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #CC0066;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
  color: #111111;
  font-weight: 900;
}
.section-subtitle {
  color: #666666;
  font-size: 1rem;
  max-width: 500px;
}

/* --- Sections --- */
.section { padding: 4rem 0; }
.section--alt { background: #f8f0f4; }

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(204,0,102,0.15);
  border-color: #CC0066;
}

.card__img {
  height: 180px;
  background: linear-gradient(135deg, #ffccdd, #ff99bb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #CC0066;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.card__title {
  font-size: 1.05rem;
  color: #111111;
  margin-bottom: 0.75rem;
  flex: 1;
  font-weight: 700;
  line-height: 1.4;
}
.card__title a { color: inherit; }
.card__title a:hover { color: #CC0066; }

.card__excerpt {
  color: #666666;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card__meta {
  font-size: 0.78rem;
  color: #999999;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.card__read-more {
  font-size: 0.85rem;
  color: #CC0066;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-weight: 700;
}
.card__read-more:hover { color: #990050; }

/* Article Cover Image */
.article__cover {
  margin: 1.5rem 0 2rem;
  border-radius: 10px;
  overflow: hidden;
}
.article__cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.article__cover figcaption {
  font-size: 0.75rem;
  color: #999999;
  padding: 0.4rem 0.5rem;
  text-align: right;
}
.article__cover figcaption a { color: #999999; }
.article__body figcaption {
  font-size: 0.78rem;
  color: #9a7080;
  text-align: center;
  padding: 0.4rem 0;
  font-style: italic;
}

/* Article Page --- */
.article-page { padding: 3rem 0 5rem; }

.article__breadcrumb {
  font-size: 0.8rem;
  color: #999999;
  margin-bottom: 1.5rem;
}
.article__breadcrumb a { color: #CC0066; }
.article__breadcrumb a:hover { color: #990050; }

.article__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #CC0066;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.article__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #111111;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 900;
}

.article__meta {
  color: #999999;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

/* Answer Box — GEO Optimized */
.answer-box {
  background: #fff5f8;
  border-left: 4px solid #CC0066;
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.answer-box__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #CC0066;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.answer-box__content { color: #333333; font-size: 1rem; }
.answer-box__content p:last-child { margin-bottom: 0; }
.answer-box__content ul { margin-bottom: 0; }

/* Table of Contents */
.toc {
  background: #f8f0f4;
  border: 1px solid #f0d0dc;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.toc__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #CC0066;
  margin-bottom: 1rem;
  font-weight: 700;
}
.toc__list {
  counter-reset: toc;
  padding-left: 0;
  list-style: none;
}
.toc__list li {
  counter-increment: toc;
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.5rem;
}
.toc__list li::before {
  content: counter(toc) ".";
  color: #CC0066;
  min-width: 1.5rem;
  flex-shrink: 0;
  font-weight: 700;
}
.toc__list a {
  color: #444444;
  font-size: 0.9rem;
}
.toc__list a:hover { color: #CC0066; }

/* Article Body Typography */
.article__body h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #111111;
  margin: 3rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 2px solid #f0f0f0;
  font-weight: 900;
}
.article__body h3 {
  font-size: 1.2rem;
  color: #CC0066;
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}
.article__body p {
  color: #444444;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.article__body ul,
.article__body ol {
  color: #444444;
  margin-bottom: 1.25rem;
}
.article__body li { margin-bottom: 0.5rem; line-height: 1.65; }
.article__body strong { color: #111111; }

/* Highlight / Info Box */
.highlight-box {
  background: #fff5f8;
  border: 1px solid #f0d0dc;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  display: block;
}
.comparison-table th {
  background: #CC0066;
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
}
.comparison-table td {
  padding: 0.75rem 1rem;
  color: #444444;
  border-bottom: 1px solid #eeeeee;
}
.comparison-table tr:hover td { background: #fff5f8; }

/* FAQ Section */
.faq-section { margin: 3rem 0; }
.faq-item { border-top: 1px solid #eeeeee; }
.faq-item:last-child { border-bottom: 1px solid #eeeeee; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #111111;
  font-size: 1rem;
  font-family: 'Arial', sans-serif;
  font-weight: 600;
}
.faq-question::after {
  content: '+';
  color: #CC0066;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  font-weight: 300;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 0 1.2rem;
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer { display: block; }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #CC0066, #ff3399);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-box h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: #ffffff; font-weight: 900; }
.cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }

/* Author Box (EEAT) */
.author-box {
  background: #f8f0f4;
  border: 1px solid #f0d0dc;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 3rem;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #CC0066, #ff3399);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.author-info h4 { font-size: 1rem; margin-bottom: 0.25rem; color: #111111; font-weight: 700; }
.author-info p { font-size: 0.85rem; color: #666666; margin-bottom: 0; }

/* Related Articles */
.related-section { margin-top: 4rem; padding-top: 2rem; border-top: 2px solid #f0f0f0; }
.related-section h2 { font-size: 1.35rem; margin-bottom: 1.5rem; color: #111111; }

/* --- Blog Listing Page --- */
.blog-hero {
  background: linear-gradient(135deg, #CC0066, #ff3399);
  padding: 3.5rem 0;
  border-bottom: none;
}
.blog-hero .section-label { color: #ffccdd; }
.blog-hero .section-title { color: #ffffff; }
.blog-hero p { color: rgba(255,255,255,0.85); }

.categories-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.cat-pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  transition: all 0.2s;
  font-weight: 600;
}
.cat-pill:hover, .cat-pill.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #CC0066;
}

.articles-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.article-row {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.article-row:hover {
  border-color: #CC0066;
  box-shadow: 0 4px 16px rgba(204,0,102,0.12);
}

.article-row__icon {
  height: 90px;
  background: linear-gradient(135deg, #ffccdd, #ff99bb);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  flex-shrink: 0;
  width: 90px;
}
.article-row__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-row__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #CC0066;
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.article-row__title {
  font-size: 1.1rem;
  color: #111111;
  margin-bottom: 0.4rem;
  display: block;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
}
.article-row__excerpt {
  color: #666666;
  font-size: 0.87rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.article-row__meta { font-size: 0.78rem; color: #999999; }

/* --- Footer --- */
.site-footer {
  background: #111111;
  border-top: 4px solid #CC0066;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { font-size: 1.3rem; display: block; margin-bottom: 1rem; color: #ffffff; }
.footer-brand p { color: #888888; font-size: 0.85rem; line-height: 1.6; margin-bottom: 0; }

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #CC0066;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #888888; font-size: 0.875rem; }
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid #333333;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #666666;
  font-size: 0.8rem;
}

.age-notice {
  background: #CC0066;
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #CC0066;
    border-bottom: 3px solid #990050;
    padding: 1.25rem;
    gap: 1rem;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .article-row { grid-template-columns: 1fr; }
  .article-row__icon { display: none; }
  .author-box { flex-direction: column; }
  .hero { padding: 3.5rem 0 3rem; }
}
