/* ===================================
   NutritionInsightLab — Static CSS
   =================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2E7D32;
  --primary-light: #8BC34A;
  --secondary: #1A2A4F;
  --bg-light: #F7F9FB;
  --bg-white: #FFFFFF;
  --bg-muted: #F0F2F5;
  --cta: #43A047;
  --cta-hover: #388E3C;
  --text-dark: #1E1E1E;
  --text-muted: #737373;
  --border-color: #E2E6EB;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --hero-gradient: linear-gradient(135deg, #1A2A4F 0%, #24385f 50%, #2E7D32 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 640px; margin: 0 auto; padding: 0 1.25rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  border: none; cursor: pointer; border-radius: var(--radius);
  transition: all 0.25s ease;
}
.btn-cta {
  background: var(--cta); color: #fff;
}
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-outline-light {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem;
}
.logo { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--secondary); }
.logo-accent { color: var(--primary); }

.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-family: 'Open Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
  color: rgba(30,30,30,0.8); transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }

.mobile-toggle {
  display: none; background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text-dark); padding: 0.5rem;
}
.nav-mobile {
  background: #fff; border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--hero-gradient); opacity: 0.88;
}
.hero-content { position: relative; z-index: 2; padding: 6rem 0; max-width: 680px; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.85); max-width: 540px; margin-bottom: 1.75rem;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-products { background: var(--bg-light); }
.section-tips { background: var(--bg-muted); }
.section-about { background: var(--bg-light); }
.section-contact { background: var(--bg-muted); }

.section-header { text-align: center; max-width: 560px; margin: 0 auto 3.5rem; }
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700;
  color: var(--secondary); margin-bottom: 0.75rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; }

/* ---------- Grid ---------- */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border-color); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Product Card */
.product-card .card-image {
  aspect-ratio: 1/1; overflow: hidden; background: var(--bg-muted);
}
.product-card .card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 1.5rem; }
.card-title {
  font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 600;
  color: var(--secondary); margin-bottom: 0.5rem;
}
.card-text {
  color: var(--text-muted); font-size: 0.875rem; line-height: 1.65;
  margin-bottom: 0.75rem;
}

/* Tip Card */
.tip-card { padding: 1.75rem; text-align: center; }
.tip-card:hover { border-color: rgba(46,125,50,0.3); }
.tip-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: rgba(46,125,50,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}

/* ---------- About ---------- */
.about-text {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.75;
}

/* ---------- Contact ---------- */
.link-primary { color: var(--primary); }
.link-primary:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border-color); background: var(--bg-white);
  font-family: 'Open Sans', sans-serif; font-size: 0.875rem;
  color: var(--text-dark); transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}
.form-textarea { resize: none; }

/* ---------- Footer ---------- */
.footer { background: var(--secondary); color: #fff; padding: 3rem 0; }
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-start; gap: 2rem; margin-bottom: 2rem;
}
.logo-footer { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; }
.logo-accent-footer { color: var(--primary-light); }
.footer-tagline { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-top: 0.5rem; max-width: 280px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: 0.875rem; }
.footer-nav a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.footer-nav a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; }
.footer-disclaimer { color: rgba(255,255,255,0.6); font-size: 0.75rem; line-height: 1.65; max-width: 720px; }
.footer-disclaimer a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-disclaimer a:hover { color: var(--primary-light); }
.footer-copyright { color: rgba(255,255,255,0.4); font-size: 0.75rem; margin-top: 0.75rem; }
html, body {
  overflow-x: hidden;
}

body.elementor-page,
.elementor-page,
.elementor-kit-7 {
  width: 100%;
  max-width: 100%;
}

.elementor-location-single,
.elementor-widget-html,
.elementor-widget-container,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-element {
  max-width: 100%;
}

.elementor-widget-html .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
}

body.page .elementor {
  width: 100%;
  max-width: 100%;
}

header.header,
section.hero,
section.section,
footer.footer {
  width: 100%;
}.header {
  width: 100%;
  left: 0;
  right: 0;
}

.header .container,
.hero .container,
.section .container,
.footer .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  margin: 0;
}
/* ===== Ajustes finais WordPress / Elementor ===== */

html, body {
  overflow-x: hidden;
}

body {
  margin: 0 !important;
  padding: 0 !important;
}

/* remove interferência do Elementor */
.elementor-widget-html,
.elementor-widget-html .elementor-widget-container,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-element {
  margin: 0;
  padding: 0;
}

.header {
  width: 100%;
  left: 0;
  right: 0;
}

.hero {
  width: 100%;
  min-height: 100vh;
  padding-top: 90px; /* espaço do header */
}

.section-products,
.section-tips,
.section-about,
.section-contact,
.footer {
  position: relative;
  z-index: 1;
}

/* garante que o topo das seções não fique escondido sob o menu fixo */
#products,
#about,
#contact,
#home {
  scroll-margin-top: 100px;
}

/* imagens dos cards */
.product-card .card-image {
  background: #eef1f4;
  min-height: 260px;
}

.product-card .card-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* responsivo */
@media (max-width: 1024px) {
  .header-inner {
    height: 72px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 70px;
  }

  .hero-content {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-title {
    font-size: 3rem;
    line-height: 1.1;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card .card-image,
  .product-card .card-image img {
    height: 240px;
    min-height: 240px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 767px) {
  .logo {
    font-size: 1.1rem;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 56px;
  }

  .hero-title {
    font-size: 2.3rem;
    line-height: 1.12;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .product-card .card-image,
  .product-card .card-image img {
    height: 220px;
    min-height: 220px;
  }

  .footer-top {
    flex-direction: column;
  }
/* ===== GRID PARA 2 PRODUTOS ===== */

.grid-products-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* CARD */

.product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
}

/* IMAGE */

.card-image {
  background: #eef1f4;
}

.card-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* BODY */

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.95rem;
  color: #5a6472;
  margin-bottom: 18px;
}

/* MOBILE */

@media (max-width: 1024px) {

  .grid-products-2 {
    grid-template-columns: 1fr;
  }

  .card-image img {
    height: 240px;
  }

}/* ===== GRID 2 PRODUTOS ===== */

.grid-products-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* CARD */

.product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
}

/* IMAGE */

.card-image {
  background: #eef1f4;
}

.card-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* BODY */

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.95rem;
  color: #5a6472;
  margin-bottom: 18px;
}

/* RESPONSIVO */

@media (max-width: 1024px) {

  .grid-products-2 {
    grid-template-columns: 1fr;
  }

  .card-image img {
    height: 240px;
  }
/* ===== GRID 2 PRODUTOS ===== */

.grid-products-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* CARD */

.product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
}

/* IMAGE */

.card-image {
  background: #eef1f4;
}

.card-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* BODY */

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.95rem;
  color: #5a6472;
  margin-bottom: 18px;
}

/* RESPONSIVO */

@media (max-width: 1024px) {

  .grid-products-2 {
    grid-template-columns: 1fr;
  }

  .card-image img {
    height: 240px;
  }
/* ===== CORREÇÃO FINAL DA SEÇÃO DE PRODUTOS ===== */

#products .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.grid-products-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 32px !important;
  align-items: stretch;
}

#products .product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e7ebf0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  min-height: 100%;
}

#products .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
}

#products .card-image {
  width: 100%;
  height: 320px;
  min-height: 320px;
  max-height: 320px;
  overflow: hidden;
  background: #f3f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

#products .card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

#products .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#products .card-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #1A2A4F;
}

#products .card-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #5a6472;
  margin-bottom: 20px;
}

#products .card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* tablet */
@media (max-width: 1024px) {
  .grid-products-2 {
    grid-template-columns: 1fr !important;
  }

  #products .card-image {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
  }
}

/* mobile */
@media (max-width: 767px) {
  #products .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  #products .card-image {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }

  #products .card-body {
    padding: 20px;
  }

  #products .card-title {
    font-size: 1.15rem;
  }

  #products .card-text {
    font-size: 0.92rem;
  }

  #products .card-body .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
}