@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Merriweather:wght@400;700&display=swap');

/* Global font family */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* EcoHome Intelligence Shared Theme v2
   Extracted from new homepage design
   Apply to all non-index pages */

:root {
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #4aa883;
  --emerald-400: #4aa883;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --emerald-950: #022c22;
  --teal-500: #14b8a6;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --ink: #0f172a;
  --ink-soft: #475569;
  --forest: #4aa883;
  --forest-strong: #2e8067;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --warm-bg: #faf8f5;
  --leaf: var(--emerald-400);
  --leaf-bright: var(--emerald-300);
  --amber-deep: var(--amber-600);
  --amber: var(--amber-500);
}


/* Shared Navbar v2 — glassmorphism */
.nav-glass-v2 {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0;
}
.nav-glass-v2.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  box-shadow: none;
  border-bottom: 0;
}
.nav-glass-v2 .nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4aa883;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-glass-v2 .nav-link:hover {
  color: #3c8e74;
  background: var(--emerald-50);
}
.nav-glass-v2 .nav-cta {
  background: #4aa883;
  color: white;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(74,168,131,0.3);
}
.nav-glass-v2 .nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(74,168,131,0.4);
}

/* Logo v2 */
.logo-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-v2 .logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--forest);
}
.logo-v2 .logo-icon svg, .logo-v2 .logo-icon img {
  width: 20px; height: 20px;
  color: white;
}
.logo-v2 .logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--emerald-900);
}
.logo-v2 .logo-text-light {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--emerald-600);
}

/* Footer v2 */

/* Footer Grid Fix: Optimized for 4 columns */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-v2 {
  background: var(--slate-900);
  color: var(--slate-400);
  position: relative;
  overflow: hidden;
}
.footer-v2 .top-line {
  height: 0;
  display: none;
}
.footer-v2 a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-v2 a:hover {
  color: var(--emerald-400);
}
.footer-v2 h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-v2 .bottom-bar {
  border-top: 0;
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-v2 .bottom-bar {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Blog card v2 style for article pages */
.blog-card-v2 {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s;
  text-decoration: none;
  color: inherit;
}
.blog-card-v2:hover {
  border-color: var(--emerald-200);
  box-shadow: 0 20px 40px rgba(16,185,129,0.1);
  transform: translateY(-4px);
}
.blog-card-v2 img {
  transition: transform 0.7s;
}
.blog-card-v2:hover img {
  transform: scale(1.05);
}

/* Trust bar for article headers */
.trust-bar-v2 {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--slate-600);
  font-weight: 500;
}
.trust-bar-v2 .trust-icon {
  width: 20px; height: 20px;
  color: var(--forest);
  flex-shrink: 0;
}

/* Enhanced article styling */
article.content-v2 h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}
article.content-v2 h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--slate-800);
}
article.content-v2 h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--slate-700);
}
article.content-v2 p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--slate-600);
}
article.content-v2 img {
  border-radius: 12px;
  width: 100%;
  margin: 2rem 0;
}
article.content-v2 blockquote {
  border-left: 4px solid var(--emerald-200);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--slate-500);
  font-style: italic;
}

/* Brevo form v2 */
.brevo-form-v2 {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--slate-200);
}
.brevo-form-v2 h3 {
  color: var(--slate-900);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.brevo-form-v2 .input {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.brevo-form-v2 .input:focus {
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.brevo-form-v2 button {
  width: 100%;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.brevo-form-v2 button:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(5,150,105,0.3);
}

@media (max-width: 768px) {
  .desktop-nav-v2 { display: none !important; }
  .mobile-nav-btn-v2 { display: block; }
  article.content-v2 h1 { font-size: 1.875rem; }
}
@media (min-width: 769px) {
  .mobile-nav-btn-v2 { display: none; }
  .mobile-nav-menu-v2 { display: none !important; }
}

/* Visual consistency sweep: shared shell hardening */
body,
main,
article,
section,
main p,
main li,
article p,
article li,
.prose p,
.prose li {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.nav-spacer-v2 {
  height: 72px;
}
.nav-glass-v2 > div {
  min-height: 72px;
  box-sizing: border-box;
}
.nav-glass-v2 .mobile-nav-btn-v2 {
  background: transparent;
  border: 0;
}
.mobile-nav-menu-v2.show {
  display: block !important;
  max-height: 420px !important;
  opacity: 1 !important;
}
.ehi-icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  color: var(--forest);
}
.ehi-icon-inline svg {
  width: 1em;
  height: 1em;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE / BLOG CONTENT STYLES
   Used by article*.html, blog/*.html, and content pages
   ═══════════════════════════════════════════════════════════════ */

/* Container */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}
main.container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Prose typography */
.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--slate-600);
}
.prose h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.prose h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-weight: 700;
}
.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.5rem;
  color: var(--slate-600);
}
.prose a {
  color: var(--emerald-600);
  text-decoration: underline;
}
.prose a:hover {
  color: var(--emerald-700);
}
.prose strong {
  color: var(--ink);
}

/* Lead paragraph */
.lead {
  font-size: 1.15rem;
  color: var(--slate-500);
  margin-bottom: 32px;
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
}
.product-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.product-card h3, .product-card h4 {
  margin-top: 0;
}
.device-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--slate-200);
}

/* Step components */
.step {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.step-num {
  display: inline-block;
  background: var(--forest);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 8px;
}
.step-number {
  display: inline-block;
  background: var(--forest);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 12px;
}

/* TOC */
.toc {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 2rem;
  border: 1px solid var(--slate-100);
}
.toc a {
  color: var(--slate-500);
  text-decoration: none;
  font-size: 0.95rem;
}
.toc a:hover {
  color: var(--emerald-600);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--forest);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--emerald-700);
  transform: translateY(-1px);
}

/* Inline CTA */
.inline-cta {
  background: var(--amber-100);
  border-radius: 12px;
  padding: 24px;
  margin: 2rem 0;
  border-left: 4px solid var(--amber-500);
}
.inline-cta h3, .inline-cta h4 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* CTA Box */
.cta-box {
  background: white;
  border: 2px solid var(--emerald-200);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}

/* Tables */
.compare-table, .comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.compare-table th, .comparison-table th {
  background: var(--forest);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 700;
}
.compare-table td, .comparison-table td {
  padding: 12px;
  border-bottom: 1px solid var(--slate-200);
}
.compare-table tr:nth-child(even),
.comparison-table tr:nth-child(even) {
  background: var(--slate-50);
}

/* Calculator */
.calculator {
  background: var(--forest);
  color: white;
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
}
.calculator h3 {
  color: white;
  margin-bottom: 16px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-grid input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
  margin-top: 4px;
}
.calc-grid label {
  font-size: 0.85rem;
}
.calc-result {
  background: rgba(255,255,255,0.15);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
}
.calc-result .big {
  font-size: 1.8rem;
  font-weight: 800;
}

/* Cost box */
.cost-box {
  background: var(--forest);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  text-align: center;
}
.cost-box .big {
  font-size: 1.8rem;
  font-weight: 800;
}

/* Warning */
.warning {
  background: #fef2f2;
  border-radius: 8px;
  padding: 16px;
  margin: 1.5rem 0;
  border-left: 4px solid var(--error);
}
.warning strong {
  color: var(--error);
}
.warning-box {
  background: var(--amber-100);
  border-left: 4px solid var(--amber-500);
  padding: 16px 20px;
  margin: 20px 0;
}
.warning-box h4 {
  margin: 0 0 8px;
  color: var(--amber-700);
}

/* Highlight */
.highlight {
  background: var(--emerald-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--slate-100);
  color: var(--slate-600);
}

/* Accent borders */
.winner {
  background: var(--emerald-100);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border-left: 4px solid var(--forest);
}
.budget {
  border-left: 4px solid var(--emerald-500);
}
.performance {
  border-left: 4px solid var(--sky-400);
}
.eco-premium {
  border-left: 4px solid var(--accent);
}

/* Article specific overrides */
article.content-v2 {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}


.text-center {
  text-align: center !important;
}
.mb-8 {
  margin-bottom: 2rem !important;
}

/* No decorative global page dividers. */
.nav-glass-v2,
.nav-glass-v2.scrolled,
.nav-glass,
nav[style],
#mobile-nav,
.mobile-nav-menu-v2 {
  border-bottom: 0 !important;
  box-shadow: none !important;
}
#mobile-nav a,
.mobile-nav-menu-v2 a { border-bottom: 0 !important; }
.footer-v2 .top-line,
.footer-topline { display: none !important; height: 0 !important; background: transparent !important; }
.footer-v2 .bottom-bar,
.footer-note { border-top: 0 !important; }


/* Global no-divider visual policy: remove decorative horizontal rules site-wide. */
hr,
.border-b,
.border-t,
.border-b-2,
.border-t-2,
.border-b-4,
.border-t-4 {
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  border-top-color: transparent !important;
  border-bottom-color: transparent !important;
}
hr { display: none !important; height: 0 !important; margin: 0 !important; }
#ecohome-cookie-banner { border-top: 0 !important; box-shadow: none !important; }
