/* FreoReviews - Unified Styles (merged style.css + styles.css) */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Color Variables */
:root {
  /* Primary palette (home) */
  --primary: #16a34a;
  --primary-light: #22c55e;
  --primary-dark: #15803d;
  --secondary: #84cc16;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --background: #ffffff;
  --foreground: #1a1a1a;

  /* Aliases for review page (legacy names) */
  --primary-green: #22c55e;
  --secondary-green: #16a34a;
  --dark-green: #15803d;
  --light-green: #dcfce7;
  --accent-green: #4ade80;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --surface: #f9fafb;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Explicitly define heading sizes when nested in sectioning elements
   to avoid upcoming browser default changes (see MDN guidance). */
article h1, section h1, nav h1, aside h1 { font-size: 2.5rem; }
article h2, section h2, nav h2, aside h2 { font-size: 2rem; }
article h3, section h3, nav h3, aside h3 { font-size: 1.5rem; }
article h4, section h4, nav h4, aside h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.text-primary { color: var(--primary); }

/* ---------------- Home / Landing styles (from style.css) ---------------- */
/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header .container {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  position: relative;
  width: 2rem;
  height: 2rem;
}

.leaf-icon {
  width: 100%;
  height: 100%;
  color: var(--primary);
}

.logo-dot {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--secondary);
  border-radius: 50%;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 0 6rem;
  background: linear-gradient(to bottom, rgba(241, 245, 249, 0.5), var(--background));
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(22, 163, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.feature-card h3 {
  font-weight: 600;
  color: var(--foreground);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
  margin: 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

/* About Section */
.about { padding: 4rem 0 6rem; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.card {
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.card:hover { border-color: rgba(22, 163, 74, 0.2); }

.card-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(22, 163, 74, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.card p { color: var(--muted-foreground); margin: 0; }

/* Review Process */
.review-process {
  background-color: rgba(241, 245, 249, 0.5);
  border-radius: 1rem;
  padding: 2rem;
}

.review-process h3 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.process-column h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.process-column ul { list-style: none; }

.process-column li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.process-column li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Benefits Section */
.benefits { padding: 4rem 0 6rem; background-color: rgba(241, 245, 249, 0.3); }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.benefit-card {
  text-align: center;
  background-color: var(--background);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.benefit-card:hover { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }

.benefit-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(22, 163, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.benefit-icon svg { width: 2rem; height: 2rem; color: var(--primary); }

.benefit-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--foreground); }

.benefit-card p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }

/* Quality Matters */
.quality-matters {
  background-color: var(--background);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.quality-matters h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--foreground); }

.quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
}

.quality-column h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--primary); }
.quality-column p { color: var(--muted-foreground); margin-bottom: 1.5rem; }

/* Footer (light) */
.footer { background-color: rgba(241, 245, 249, 0.5); border-top: 1px solid var(--border); }

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand p { color: var(--muted-foreground); font-size: 0.875rem; max-width: 20rem; margin: 0; }

.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; }
.footer-links a { color: var(--muted-foreground); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }

/* Responsive Design (home) */
@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
  .hero-features { grid-template-columns: repeat(3, 1fr); }
  .about-cards { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { flex-direction: row; }
}

@media (min-width: 1024px) {
  .about-cards { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------- Review page styles (scoped) ---------------- */
.review h1,
.review h2,
.review h3,
.review h4,
.review h5,
.review h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

.review p { color: var(--text-secondary); }

.review .header { background: var(--background); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; transition: all 0.3s ease; }
.review .header.scrolled { box-shadow: 0 2px 10px var(--shadow); }
.review .header-content { display: flex; align-items: center; justify-content: center; padding: 1rem 0; }
.review .logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; color: var(--foreground); }
.review .logo svg { width: 32px; height: 32px; }

.review .hero { background: linear-gradient(135deg, var(--light-green) 0%, var(--background) 100%); padding: 6rem 0; text-align: center; }
.review .hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--primary-green), var(--dark-green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.review .hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem; color: var(--text-secondary); }

.review .content-section { padding: 4rem 0; }
.review .content-section:nth-child(even) { background: var(--surface); }

.review .section-title { text-align: center; margin-bottom: 3rem; }
.review .section-title h2 { color: var(--primary-dark); margin-bottom: 1rem; }
.review .section-title p { font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

.review .grid { display: grid; gap: 2rem; }
.review .grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.review .grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.review .card { background: var(--background); border-radius: 12px; padding: 2rem; box-shadow: 0 4px 6px var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.review .card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--shadow); }
.review .card h3 { color: var(--primary-green); margin-bottom: 1rem; }
.review .card-icon { width: 48px; height: 48px; margin-bottom: 1rem; color: var(--primary-green); }

.review .benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.review .benefit-item { text-align: center; padding: 2rem; }
.review .benefit-icon { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--primary-green); }

.review .footer { background: #0f172a; color: #ffffff; padding: 2rem 0 1rem; text-align: center; }
.review .footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.review .footer-logo { display: flex; align-items: center; gap: 0.5rem; color: var(--primary-green); font-weight: 600; }
.review .footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.review .footer-links a { color: #ffffff; opacity: 1; text-decoration: none; }
.review .footer-links a:hover { text-decoration: underline; }
.review .footer-bottom { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; color: #cbd5e1; opacity: 1; }

/* Improve footer text contrast on dark background */
.review .footer .logo-text { color: #ffffff; }
.review .footer p { color: #cbd5e1; }
.review .footer-brand p { color: #cbd5e1; }

/* Review specific blocks */
.review .review-container { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.review .review-header { text-align: center; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 2px solid var(--border); }
.review .product-title { font-size: 2.5rem; color: var(--primary-green); margin-bottom: 0.5rem; }
.review .review-meta { display: flex; justify-content: center; gap: 2rem; margin: 1rem 0; font-size: 0.875rem; color: var(--text-muted); }
.review .rating { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--primary-green); }
.review .stars { color: #fbbf24; }

.review .toc,
.review .table-of-contents { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin: 2rem 0; }
.review .toc h3,
.review .table-of-contents h2 { margin-bottom: 1rem; color: var(--text-primary); }
.review .toc ul,
.review .table-of-contents ol { list-style: none; padding-left: 0; }
.review .toc li,
.review .table-of-contents li { margin-bottom: 0.5rem; }
.review .toc a,
.review .table-of-contents a { color: #0f172a; text-decoration: none; transition: color 0.2s ease; }
.review .toc a:hover,
.review .table-of-contents a:hover { color: var(--primary-dark); }

.review .review-section { margin: 3rem 0; }
.review .review-section h2 { color: var(--primary-dark); border-bottom: 2px solid var(--light-green); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }

.review .pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; }
.review .pros,
.review .cons { background: var(--surface); border-radius: 8px; padding: 1.5rem; }
.review .pros h4 { color: var(--primary-green); margin-bottom: 1rem; }
.review .cons h4 { color: #ef4444; margin-bottom: 1rem; }
.review .pros ul,
.review .cons ul { list-style: none; }
.review .pros li,
.review .cons li { margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; }
.review .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-green); font-weight: bold; }
.review .cons li::before { content: "✗"; position: absolute; left: 0; color: #ef4444; font-weight: bold; }

.review .verdict { background: var(--light-green); border-left: 4px solid var(--primary-green); padding: 2rem; margin: 3rem 0; border-radius: 0 8px 8px 0; }
.review .verdict h3 { color: var(--dark-green); margin-bottom: 1rem; }

/* Animations */
.review .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }

/* Minimize layout shift by providing image/logo intrinsic sizes */
.logo-icon svg { width: 2rem; height: 2rem; }
.leaf-icon { width: 100%; height: 100%; }
.review .fade-in.visible { opacity: 1; transform: translateY(0); }

/* Additional review article structures */
.review .main-content { padding-top: 1rem; }
.review .review-article { max-width: 900px; margin: 0 auto; }
.review .article-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.review .article-meta { display: flex; align-items: center; gap: 0.75rem; color: #334155; font-size: 0.875rem; }
.review .separator { opacity: 0.5; }

/* Information and callout boxes */
.review .info-box,
.review .disclaimer-box,
.review .limitation-box { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary-green); padding: 1rem 1.25rem; border-radius: 8px; }
.review .warning-box { background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid #f97316; padding: 1rem 1.25rem; border-radius: 8px; }
.review .disclaimer { background: var(--surface); border: 1px solid var(--border); padding: 1rem 1.25rem; border-radius: 8px; }

/* Ingredients and claims grids */
.review .ingredients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.review .ingredient-category h4 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.review .claims-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.review .claim-item { background: var(--background); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }

/* Lists */
.review .feedback-list { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.review .regulatory-info ul,
.review .safety-warnings ul { padding-left: 1.25rem; }

/* Tables */
.review .summary-table table { width: 100%; border-collapse: collapse; }
.review .summary-table th,
.review .summary-table td { border: 1px solid var(--border); padding: 0.75rem; text-align: left; }
.review .summary-table thead th { background: var(--surface); }

/* Recommendations */
.review .final-recommendations { margin-top: 2rem; }
.review .recommendation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.review .recommendation-item { background: var(--background); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }

/* List normalization and spacing */
.review .content-section ul,
.review .content-section ol,
.review .info-box ul,
.review .warning-box ul,
.review .limitation-box ul,
.review .disclaimer-box ul,
.review .disclaimer ul { margin: 0 0 1rem 0; padding-left: 1.25rem; list-style-position: outside; }
.review .content-section li { margin: 0.35rem 0; }
.review .ingredients-grid ul { margin: 0; padding-left: 1.25rem; }
.review .ingredients-grid li { margin: 0.35rem 0; }
.review .feedback-list { margin: 0.5rem 0 1rem; padding-left: 1.25rem; }
.review .regulatory-info ul,
.review .safety-warnings ul { margin: 0.5rem 0 1rem; padding-left: 1.25rem; }
.review .table-of-contents ol { margin: 0; padding-left: 1.25rem; }
.review .table-of-contents li { margin: 0.4rem 0; }

/* Callout boxes vertical rhythm */
.review .info-box,
.review .warning-box,
.review .limitation-box,
.review .disclaimer-box { margin: 1rem 0; }

/* Responsive Design (review) */
@media (max-width: 768px) {
  .review .hero h1 { font-size: 2.5rem; color: var(--foreground); }
  .review .hero p { font-size: 1.125rem; color: var(--text-primary); }
  .review .grid-2,
  .review .grid-3 { grid-template-columns: 1fr; }
  .review .pros-cons { grid-template-columns: 1fr; }
  .review .footer-content { flex-direction: column; text-align: center; }
  .review .review-meta { flex-direction: column; gap: 0.5rem; }
  .review .container { padding: 0 0.5rem; }
  .review .article-meta { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .review .hero { padding: 4rem 0; }
  .review .hero h1 { font-size: 2rem; }
  .review .section { padding: 2rem 0; }
  .review .card { padding: 1.5rem; }
}

/* Print Styles */
@media print {
  .review .header,
  .review .footer { display: none; }
  .review .review-container { max-width: none; padding: 0; }
  .review .fade-in { opacity: 1; transform: none; }
}


