/*
  EnergiaVital visual polish layer.
  This file intentionally changes presentation only: no copy, URLs, JSON-LD,
  product data, or commercial attributes are controlled here.
*/

:root {
  --ev-bg: #FBF7EF;
  --ev-surface: #FFFDF8;
  --ev-primary: #2F7D5C;
  --ev-primary-strong: #235f47;
  --ev-primary-soft: #EAF4EC;
  --ev-secondary: #517A8E;
  --ev-accent: #D99A2B;
  --ev-text: #1F2933;
  --ev-muted: #64748B;
  --ev-border: #E8DFD2;
  --ev-warning: #FFF7E6;
  --ev-shadow-sm: 0 14px 34px rgba(31, 41, 51, 0.08);
  --ev-shadow-md: 0 26px 68px rgba(31, 41, 51, 0.14);
}

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

body {
  background:
    linear-gradient(180deg, #fffdf8 0%, #fbf7ef 34%, #faf4e9 100%),
    radial-gradient(circle at 8% 0%, rgba(47, 125, 92, 0.08), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(217, 154, 43, 0.10), transparent 24rem),
    var(--ev-bg) !important;
  color: var(--ev-text);
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(47, 111, 159, 0.35);
  outline-offset: 3px;
}

.header,
.site-header {
  background: rgba(255, 253, 248, 0.94) !important;
  border-bottom: 1px solid rgba(232, 223, 210, 0.92) !important;
  box-shadow: 0 14px 34px rgba(31, 41, 51, 0.075);
  backdrop-filter: blur(14px);
}

.header-container,
.container,
.footer-container {
  width: min(100%, 1180px);
}

.logo,
.brand {
  letter-spacing: -0.025em;
}

.nav-menu a,
.nav-links a {
  position: relative;
}

.nav-menu a::after,
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--ev-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-menu a:hover::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47, 125, 92, 0.22) !important;
  box-shadow: var(--ev-shadow-md) !important;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.22), transparent 14rem),
    radial-gradient(circle at 86% 8%, rgba(217, 154, 43, 0.18), transparent 13rem),
    linear-gradient(135deg, var(--ev-primary-strong), var(--ev-primary)) !important;
  color: #fff !important;
  border-radius: 24px !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.28), transparent 12rem),
    radial-gradient(circle at 88% 16%, rgba(217, 154, 43, 0.10), transparent 13rem);
}

.hero > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

h1 {
  text-wrap: balance;
}

.hero h1,
.hero h2,
.hero h3,
.hero p,
.hero .subtitle {
  color: #fff !important;
}

.hero p,
.hero .subtitle {
  opacity: 0.92 !important;
}

p {
  overflow-wrap: anywhere;
}

.section,
.intro,
.opening-text,
.quick-summary,
.table-of-contents,
.toc,
.authority-note,
.featured-product,
.pain-hub,
.editorial-section,
.warning-box,
.alert-box,
.caution-box,
.decision-box,
.cta-intermediate,
.sources,
.disclaimer,
.about-content,
.content,
.panel,
.notice {
  box-shadow: var(--ev-shadow-sm);
}

.section,
.intro,
.opening-text,
.table-of-contents,
.toc,
.featured-product,
.editorial-section,
.warning-box,
.alert-box,
.caution-box,
.decision-box,
.sources,
.disclaimer,
.content,
.panel,
.notice {
  border: 1px solid rgba(229, 231, 235, 0.95) !important;
  border-radius: 18px !important;
  background: rgba(255, 253, 248, 0.92) !important;
}

.intro,
.opening-text,
.editorial-section,
.about-content,
.content,
.panel,
.notice,
.section {
  backdrop-filter: blur(4px);
}

.category-card,
.product-card,
.guide-card,
.card,
.faq-item,
.quick-card {
  border: 1px solid rgba(47, 125, 92, 0.16) !important;
  box-shadow: var(--ev-shadow-sm) !important;
  transform: translateZ(0);
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255,253,248,0.98), rgba(255,250,242,0.92)) !important;
}

.product-card {
  min-height: 100%;
  display: flex !important;
  flex-direction: column;
  padding: 28px !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.78), transparent 4.8rem),
    linear-gradient(135deg, rgba(47, 125, 92, 0.08) 0%, rgba(255, 253, 248, 0.98) 48%, rgba(217, 154, 43, 0.10) 100%) !important;
}

.product-card::before {
  height: 0 !important;
  background: transparent !important;
}

.product-card .tag,
.product-card .badge,
.product-card small {
  width: fit-content;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--ev-primary-strong) !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  margin-bottom: 12px !important;
}

.product-card h3,
.product-card h4 {
  margin-top: 0 !important;
  color: var(--ev-primary-strong) !important;
}

.product-card p {
  margin-bottom: 16px !important;
}

.product-card .store-buttons,
.product-card .button-row,
.product-card .button-stack {
  margin-top: auto !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
}

.category-card,
.product-card,
.guide-card,
.card {
  position: relative;
  overflow: hidden;
}

.category-card::before,
.product-card::before,
.guide-card::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ev-primary), var(--ev-secondary), var(--ev-accent));
  opacity: 1;
}

.category-card:hover,
.product-card:hover,
.guide-card:hover,
.card:hover,
.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ev-shadow-md);
}

.btn,
.buy-button,
.btn-buy,
.btn-store,
.hero-actions a,
.store-buttons a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0;
  box-shadow: 0 13px 26px rgba(31, 41, 51, 0.16) !important;
  min-height: 48px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 18px !important;
  line-height: 1.2 !important;
  white-space: normal;
}

.product-card .btn,
.product-card .buy-button,
.product-card .btn-buy,
.product-card .btn-store,
.product-card .button-row a,
.product-card .button-stack a,
.product-card .store-buttons a {
  min-width: 190px;
  max-width: 100%;
  flex: 0 1 auto;
}

.btn:hover,
.buy-button:hover,
.btn-buy:hover,
.btn-store:hover,
.hero-actions a:hover,
.store-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 41, 51, 0.16);
}

.btn:not(.btn-amazon):not(.btn-mercadolivre):not(.btn-shopee):not(.btn-secondary):not(.btn-primary):not(.btn-accent),
.buy-button {
  background: linear-gradient(135deg, var(--ev-primary), var(--ev-primary-strong)) !important;
  color: #fff !important;
  border-color: var(--ev-primary) !important;
}

.btn-primary {
  background: #fff !important;
  color: var(--ev-primary-strong) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.74) !important;
}

.tag,
.badge,
.eyebrow,
.guide-card small {
  letter-spacing: 0.02em;
}

.quick-summary {
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,0.18), transparent 10rem),
    linear-gradient(135deg, var(--ev-accent), #bd791e) !important;
  color: #fff !important;
  border: 0 !important;
}

.cta-intermediate {
  background:
    radial-gradient(circle at 16% 0%, rgba(255,255,255,0.16), transparent 11rem),
    var(--ev-primary) !important;
}

.warning-box,
.alert-box {
  background:
    linear-gradient(135deg, var(--ev-warning), #fffdf8) !important;
  border-color: rgba(217, 154, 43, 0.38) !important;
}

.caution-box {
  background: linear-gradient(135deg, #fff5f5, #ffffff) !important;
}

.footer,
.site-footer {
  box-shadow: 0 -10px 30px rgba(31, 41, 51, 0.05);
  background: #1f2933 !important;
  color: #fff !important;
}

.footer a,
.site-footer a,
.footer p,
.site-footer p {
  color: rgba(255,255,255,0.82) !important;
}

.products-grid,
.guides-grid,
.categories,
.category-grid,
.cards-grid {
  gap: 26px !important;
}

.instagram-bridge {
  position: relative;
}

.instagram-bridge .section-header,
.instagram-bridge .section-title {
  margin-bottom: 22px;
}

.instagram-bridge .section-lead {
  max-width: 760px;
  margin: -8px 0 22px;
  color: var(--ev-muted);
  font-size: 1.05rem;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.instagram-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(47, 125, 92, 0.14);
  color: var(--ev-text);
  text-decoration: none;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.76), transparent 4.6rem),
    linear-gradient(135deg, var(--ig-a, rgba(47, 125, 92, 0.10)), rgba(255, 253, 248, 0.98) 48%, var(--ig-b, rgba(217, 154, 43, 0.10)));
  box-shadow: var(--ev-shadow-sm);
}

.instagram-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ev-shadow-md);
}

.instagram-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,0.22) 18% 19%, transparent 19% 100%),
    radial-gradient(circle at 12% 82%, rgba(47,125,92,0.10), transparent 5.5rem);
  opacity: 0.8;
}

.instagram-card > * {
  position: relative;
  z-index: 1;
}

.instagram-card small {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  color: var(--ev-primary-strong);
  font-size: 0.78rem;
  font-weight: 850;
  margin-bottom: 46px;
}

.instagram-card h3 {
  color: var(--ev-primary-strong) !important;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.12;
  margin: 0 0 10px;
}

.instagram-card p {
  color: var(--ev-muted);
  font-size: 0.98rem;
  margin: 0;
}

.instagram-card span {
  margin-top: auto;
  padding-top: 18px;
  color: var(--ev-primary);
  font-weight: 850;
}

.instagram-card.sleep {
  --ig-a: rgba(47, 111, 159, 0.12);
  --ig-b: rgba(217, 154, 43, 0.12);
}

.instagram-card.water {
  --ig-a: rgba(47, 111, 159, 0.14);
  --ig-b: rgba(47, 125, 92, 0.10);
}

.instagram-card.walk {
  --ig-a: rgba(47, 125, 92, 0.13);
  --ig-b: rgba(217, 154, 43, 0.11);
}

.instagram-card.sun {
  --ig-a: rgba(217, 154, 43, 0.14);
  --ig-b: rgba(47, 125, 92, 0.09);
}

.instagram-card.minerals {
  --ig-a: rgba(47, 125, 92, 0.11);
  --ig-b: rgba(123, 174, 127, 0.13);
}

.instagram-card.immune {
  --ig-a: rgba(217, 154, 43, 0.13);
  --ig-b: rgba(47, 125, 92, 0.12);
}

.instagram-card.gut {
  --ig-a: rgba(123, 174, 127, 0.13);
  --ig-b: rgba(217, 154, 43, 0.10);
}

.product-card h3,
.guide-card h3,
.category-card h3,
.card h4 {
  color: var(--ev-primary-strong) !important;
}

@media (max-width: 768px) {
  body {
    background: var(--ev-bg) !important;
  }

  .container,
  .section,
  .hero {
    width: min(100%, 100%);
  }

  .hero {
    border-radius: 14px !important;
  }

  .section,
  .intro,
  .opening-text,
  .quick-summary,
  .table-of-contents,
  .toc,
  .featured-product,
  .pain-hub,
  .editorial-section,
  .warning-box,
  .alert-box,
  .caution-box,
  .decision-box,
  .sources,
  .disclaimer {
    border-radius: 12px !important;
  }

  .btn,
  .buy-button,
  .btn-buy,
  .btn-store {
    width: 100%;
  }

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

  .instagram-card {
    min-height: 230px;
  }
}

/* Home conversion pass: keep the first screen useful, not just beautiful. */
.container {
  padding-top: 24px !important;
}

.hero {
  padding: clamp(30px, 4.4vw, 48px) !important;
}

.hero-grid {
  align-items: stretch !important;
  gap: clamp(22px, 3vw, 32px) !important;
}

.hero h1 {
  font-size: clamp(2.45rem, 5.1vw, 4.9rem) !important;
  line-height: 1.02 !important;
}

.hero p {
  font-size: clamp(1.02rem, 1.65vw, 1.2rem) !important;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 2.4vw, 24px) !important;
}

.hero-panel ul {
  gap: 8px !important;
}

.hero-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.hero-paths a {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 850;
  line-height: 1.18;
  box-shadow: 0 12px 26px rgba(31, 41, 51, 0.12);
}

.hero-paths a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
}

.hero-paths span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--ev-accent);
  vertical-align: 0.08em;
}

#comece,
#diagnostico {
  scroll-margin-top: 92px;
}

#diagnostico .diagnostic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#diagnostico .diagnostic-card {
  background:
    linear-gradient(135deg, rgba(47,125,92,0.06), rgba(255,253,248,0.98) 52%, rgba(217,154,43,0.07)) !important;
}

@media (max-width: 900px) {
  .hero-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #diagnostico .diagnostic-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 24px 18px !important;
  }

  .hero h1 {
    font-size: 2.28rem !important;
  }

  .hero p {
    font-size: 1rem !important;
  }

  .hero-panel {
    display: none !important;
  }

  .hero-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-paths a {
    min-height: 52px;
    padding: 10px 11px;
    font-size: 0.92rem;
  }
}
