/* Home Remedy Hub — estilo base: caseiro, confiavel, mobile-first */

:root {
  --bg: #faf6ef;
  --bg-card: #ffffff;
  --text: #3a332b;
  --text-muted: #7a7166;
  --accent: #7a8b5c;
  --accent-dark: #5c6b43;
  --border: #e7ddcc;
  --cta-bg: #a3482b;
  --cta-bg-hover: #8a3a22;
  --max-width: 720px;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.15;
  color: var(--text);
}

a { color: var(--accent-dark); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Home */

.hero {
  position: relative;
  text-align: center;
  padding: 64px 20px;
  margin: -24px 0 32px;
  overflow: hidden;
  background-color: var(--accent-dark);
  background-size: cover;
  background-position: center;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,10,0.62) 0%, rgba(20,16,10,0.68) 45%, rgba(20,16,10,0.8) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 1.7rem;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.hero p {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* Niche sections (home) */

.niche-section {
  margin: 36px 0 8px;
  scroll-margin-top: 74px;
}

.niche-section h2 {
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.niche-section .pain-line,
.featured-section .pain-line {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.featured-section {
  margin: 8px 0 20px;
}

.featured-section h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

/* Recipe cards */

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) {
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 4px 20px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

/* cards em modo paisagem dentro do carrossel - largura quase igual a tela
   no mobile, pra aparecer so 1 por vez ao rolar, dando mais destaque ao
   titulo. No desktop o card tem largura maxima, entao cabem 2-3 lado a lado. */
.carousel-track .recipe-card {
  flex: 0 0 min(88vw, 420px);
  aspect-ratio: 2.15 / 1;
  display: flex;
  flex-direction: row;
}

.carousel-track .recipe-card-img {
  width: 42%;
  height: 100%;
  aspect-ratio: unset;
  flex-shrink: 0;
}

.carousel-track .recipe-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  min-width: 0;
}

.carousel-track .recipe-card-body h3 {
  font-size: 1.05rem;
  -webkit-line-clamp: 3;
}

.carousel-track .recipe-card-body p {
  -webkit-line-clamp: 2;
}

.recipe-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.recipe-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--border);
}

.recipe-card-body {
  padding: 10px 12px 14px;
}

.recipe-card-body h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card-body p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Recipe post */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }

.recipe-post h1 {
  font-size: 1.6rem;
  margin: 6px 0 14px;
}

.recipe-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 2.15 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  background: var(--border);
}

.excerpt {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.recipe-body h2 {
  font-size: 1.2rem;
  margin-top: 28px;
}

.recipe-body ul, .recipe-body ol {
  padding-left: 22px;
}

.recipe-body li { margin-bottom: 6px; }

.soft-cta {
  margin-top: 36px;
  padding: 26px 20px;
  background: #f1ece0;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.soft-cta-eyebrow {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cta-bg);
  margin-bottom: 14px;
}

.soft-cta-img {
  width: 200px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 14px rgba(58,51,40,0.28));
  animation: bottle-float 3.2s ease-in-out infinite;
}

.soft-cta-body { width: 100%; }

.soft-cta h3 { margin: 0 0 10px; font-size: 1.15rem; }

.soft-cta p { margin: 0 0 16px; }

@media (min-width: 700px) {
  .soft-cta {
    position: relative;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .soft-cta-eyebrow { font-size: 0.72rem; letter-spacing: 1.5px; margin-bottom: 6px; }
  .soft-cta-body { flex: 1; padding-right: 190px; }
  .soft-cta-img {
    position: absolute;
    top: 50%;
    right: -26px;
    width: 200px;
    margin: 0;
    animation: bottle-float-centered 3.2s ease-in-out infinite;
  }
}

@keyframes bottle-float-centered {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 14px)); }
}

.cta-button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 22px;
  background: var(--cta-bg);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
}

.cta-button:hover { background: var(--cta-bg-hover); }

.cta-button-large {
  font-size: 1.1rem;
  padding: 16px 30px;
}

.recipe-post .featured-section {
  margin-top: 32px;
}

/* TSL page */

.tsl-hero {
  text-align: center;
  padding: 10px 0 20px;
}

.tsl-hero h1 {
  font-size: 1.65rem;
}

.subheadline {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.tsl-body h2 {
  font-size: 1.25rem;
  margin-top: 30px;
}

.tsl-cta {
  text-align: center;
  margin-top: 36px;
  padding: 24px 0;
}

.tsl-disclaimer {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Faixa fixa no rodape da tela - pergunta sobre o encapsulado, some se
   a pessoa sair rapido da pagina sem chegar no card do fim do post */
.recipe-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(58,51,40,0.14);
  padding: 14px 44px 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(110%);
  transition: transform .4s ease;
}
.recipe-banner.show { transform: translateY(0); }
.recipe-banner p {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.recipe-banner-yes {
  background: var(--cta-bg);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.recipe-banner-yes:hover { background: var(--cta-bg-hover); }
.recipe-banner-close {
  position: absolute;
  top: 6px; right: 10px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
@media (max-width: 480px) {
  .recipe-banner { flex-wrap: wrap; padding: 14px 40px 14px 16px; }
  .recipe-banner p { flex-basis: 100%; }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
}

.site-footer p {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}
