/* ============================================================
   MAMÁPRESENTE — style.css
   Paleta: #FAFAF8 · #1C1C1C · #4A7C59 · #C9A97A · #E5E0D8
   Tipografia: Playfair Display + Inter
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #FAFAF8;
  color: #1C1C1C;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Utilitário de acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Barra de Progresso ── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #4A7C59;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: #FAFAF8;
  border-bottom: 1px solid #E5E0D8;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(28, 28, 28, 0.08);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #4A7C59;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.navbar__menu {
  display: flex;
  gap: 36px;
}

.navbar__menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}

.navbar__menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #4A7C59;
  transition: width 0.25s ease;
}

.navbar__menu a:hover {
  color: #4A7C59;
}

.navbar__menu a:hover::after {
  width: 100%;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background-color: #1C1C1C;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  border-top: 1px solid #E5E0D8;
  padding: 16px 32px 20px;
}

.navbar__mobile.open {
  display: block;
}

.navbar__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.navbar__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
}

.navbar__mobile a:hover {
  color: #4A7C59;
}

/* ── Hero ── */
.hero {
  padding: 64px 32px 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__inner {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 56px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A7C59;
  background-color: #EDF3EF;
  padding: 4px 12px;
  border-radius: 4px;
  width: fit-content;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #1C1C1C;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  max-width: 580px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.hero__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E5E0D8;
  flex-shrink: 0;
}

.hero__meta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero__author {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1C1C1C;
}

.hero__details {
  font-size: 0.82rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
}

.separator {
  color: #C9A97A;
}

.hero__image-wrap {
  border-radius: 12px;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease;
}

.hero__image-wrap:hover .hero__image {
  transform: scale(1.02);
}

/* ── Artigo ── */
.article {
  padding: 0 32px 72px;
}

.article__body {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article__body p {
  color: #2a2a2a;
}

.article__body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #1C1C1C;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E5E0D8;
}

.article__body section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Callout */
.callout {
  border-left: 4px solid #4A7C59;
  background-color: #EDF3EF;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 8px 0;
}

.callout p {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: #3a6347;
  line-height: 1.65;
}

/* Lista de estratégias */
.strategy-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 0;
  counter-reset: strategy-counter;
}

.strategy-list li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-increment: strategy-counter;
  position: relative;
  padding-left: 52px;
}

.strategy-list li::before {
  content: counter(strategy-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 36px;
  height: 36px;
  background-color: #4A7C59;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.strategy-list h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1C1C1C;
  line-height: 1.3;
}

/* Lista "evitar" */
.avoid-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background-color: #FDF6F0;
  border-radius: 10px;
  border: 1px solid #EADDD2;
}

.avoid-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.97rem;
  color: #3a3a3a;
}

.avoid-icon {
  color: #C0553B;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Lista de sinais */
.signs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signs-list li {
  padding-left: 24px;
  position: relative;
  color: #2a2a2a;
}

.signs-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #C9A97A;
  font-weight: 600;
}

/* Imagem interna */
.article__figure {
  margin: 8px 0;
}

.article__img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(28, 28, 28, 0.10);
}

.article__figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #888;
  font-style: italic;
  text-align: center;
}

/* ── Card de Autora ── */
.author-card {
  max-width: 720px;
  margin: 0 auto 72px;
  padding: 0 32px;
}

.author-card__inner {
  background-color: #F0EDE6;
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #E5E0D8;
  flex-shrink: 0;
}

.author-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.author-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

.author-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1C1C1C;
}

.author-card__bio {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
}

/* ── Artigos Relacionados ── */
.related {
  padding: 0 32px 80px;
  border-top: 1px solid #E5E0D8;
  margin-top: 0;
  padding-top: 56px;
}

.related__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.related__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1C1C1C;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Cards */
.card {
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #E5E0D8;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(28, 28, 28, 0.10);
}

.card__link {
  display: block;
  height: 100%;
}

.card__figure {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__img {
  transform: scale(1.04);
}

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4A7C59;
}

.card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1C1C1C;
  line-height: 1.35;
}

.card__time {
  font-size: 0.78rem;
  color: #999;
  margin-top: 4px;
}

/* ── Newsletter ── */
.newsletter {
  background-color: #EDF3EF;
  padding: 72px 32px;
}

.newsletter__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1C1C1C;
  line-height: 1.3;
}

.newsletter__subtitle {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

.newsletter__form {
  width: 100%;
}

.newsletter__field {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #4A7C59;
  background-color: #fff;
}

.newsletter__input {
  flex: 1;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1C1C1C;
  border: none;
  outline: none;
  background: transparent;
  min-width: 0;
}

.newsletter__input::placeholder {
  color: #AAA;
}

.newsletter__btn {
  padding: 14px 22px;
  background-color: #4A7C59;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.newsletter__btn:hover {
  background-color: #3a6347;
}

.newsletter__btn:focus-visible {
  outline: 2px solid #1C1C1C;
  outline-offset: 2px;
}

.newsletter__msg {
  font-size: 0.88rem;
  min-height: 22px;
  margin-top: 10px;
}

.newsletter__msg.success {
  color: #3a6347;
  font-weight: 500;
}

.newsletter__msg.error {
  color: #C0553B;
}

/* Campo com erro */
.newsletter__field.has-error {
  border-color: #C0553B;
}

/* ── Footer ── */
.footer {
  background-color: #1C1C1C;
  padding: 52px 32px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #FAFAF8;
  letter-spacing: -0.02em;
}

.footer__tagline {
  font-size: 0.88rem;
  color: #AAAAAA;
  margin-top: 6px;
  font-style: italic;
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.85rem;
  color: #AAAAAA;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #FAFAF8;
}

.footer__copy {
  font-size: 0.78rem;
  color: #666;
}

/* ── Focus visível global ── */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #4A7C59;
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* ── Tablet (768px – 1024px) ── */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__image {
    height: 340px;
  }

  .hero__title {
    font-size: 2.1rem;
  }

  .related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile (<768px) ── */
@media (max-width: 767px) {

  body {
    font-size: 16px;
  }

  /* Navbar */
  .navbar__inner {
    padding: 0 20px;
  }

  .navbar__menu {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile {
    padding: 16px 20px 20px;
  }

  /* Hero */
  .hero {
    padding: 36px 20px 48px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hero__subtitle {
    font-size: 0.97rem;
  }

  .hero__image {
    height: 260px;
  }

  /* Artigo */
  .article {
    padding: 0 20px 52px;
  }

  .article__body h2 {
    font-size: 1.35rem;
  }

  .strategy-list li {
    padding-left: 44px;
  }

  /* Author */
  .author-card {
    padding: 0 20px;
    margin-bottom: 52px;
  }

  .author-card__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  /* Related */
  .related {
    padding: 40px 20px 60px;
  }

  .related__grid {
    grid-template-columns: 1fr;
  }

  .related__title {
    font-size: 1.35rem;
  }

  /* Newsletter */
  .newsletter {
    padding: 52px 20px;
  }

  .newsletter__title {
    font-size: 1.3rem;
  }

  .newsletter__field {
    flex-direction: column;
    border-radius: 8px;
  }

  .newsletter__btn {
    border-radius: 0 0 6px 6px;
    padding: 14px;
  }

  /* Footer */
  .footer {
    padding: 40px 20px;
  }

  .footer__links {
    gap: 20px;
  }
}
