/* ===== SmartOps Homepage (public-home.css) ===== */

body { font-family: 'Nunito', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.hp-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
/* Bulma's .navbar is display:flex — the child container must be explicitly full-width */
.hp-navbar > .hp-container { flex: 1; min-width: 0; }

/* ---- Navbar ---- */
.hp-navbar { background: rgba(255,255,255,0.95) !important; backdrop-filter: blur(10px); border-bottom: 1px solid #f3f4f6; transition: box-shadow 0.3s ease; }
.hp-navbar.hp-scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

.hp-nav-inner { display: flex; align-items: center; height: 5rem; justify-content: space-between; }
.hp-nav-logo { height: 40px; }

/* Desktop nav — plain links, no Bulma navbar-item padding/hover-bg */
.hp-nav-desktop { display: flex; align-items: center; gap: 2rem; }
.hp-nav-link { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #4b5563; text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.hp-nav-link:hover { color: #16a34a; }

/* Login pill — inherits body size (16px) same as Tailwind design (no text-size class) */
.hp-login-btn { padding: 0.625rem 1.25rem; border-radius: 999px; background: #16a34a; color: white !important; font-weight: 600; font-size: 1rem; text-decoration: none; box-shadow: 0 4px 14px rgba(22,163,74,0.3); transition: all 0.2s; display: inline-block; white-space: nowrap; }
.hp-login-btn:hover { background: #15803d !important; transform: translateY(-1px); color: white; }

/* Burger button — plain, no Bulma spans */
.hp-nav-burger { background: none; border: none; cursor: pointer; color: #4b5563; display: none; padding: 0; line-height: 1; }
.hp-nav-burger:hover { color: #16a34a; }

/* Mobile menu — absolute drop-down, matching design's absolute w-full shadow-xl */
.hp-mobile-menu { display: none; position: absolute; width: 100%; background: white; border-top: 1px solid #f3f4f6; box-shadow: 0 10px 40px rgba(0,0,0,0.1); padding: 0.5rem 1.5rem 1.5rem; text-align: center; z-index: 10; }
.hp-mobile-menu a { display: block; padding: 0.75rem; font-size: 16px; font-weight: 700; text-transform: uppercase; color: #374151; text-decoration: none; }
.hp-mobile-menu a:hover { color: #16a34a; }
.hp-mobile-menu .hp-login-btn { display: block; margin-top: 1rem; text-align: center; border-radius: 0.5rem; }

/* Responsive: desktop nav at 768px (md), burger below — matches Tailwind md: breakpoint */
@media (max-width: 767px) {
    .hp-nav-desktop { display: none !important; }
    .hp-nav-burger { display: flex !important; align-items: center; }
}

/* ---- Hero ---- */
.hp-hero { position: relative; padding: 12rem 1.5rem 8rem; background: url('/img-public/hero-bg.png') center/cover no-repeat fixed; color: white; }
@media (max-width: 1023px) { .hp-hero { padding: 8rem 1.5rem 5rem; background-attachment: scroll; } }
.hp-hero-overlay { position: absolute; inset: 0; background: rgba(17,24,39,0.72); }
.hp-hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 6rem; background: linear-gradient(to top, #f9fafb, transparent); z-index: 1; }
.hp-hero-body { position: relative; z-index: 2; text-align: center; max-width: 52rem; margin: 0 auto; }

/* Badge: text-sm = 14px in design; backdrop-blur matches Tailwind's backdrop-blur-sm */
.hp-hero-tag { display: inline-flex; align-items: center; padding: 5px 16px; border-radius: 999px; background: rgba(34,197,94,0.2); border: 1px solid rgba(134,239,172,0.45); color: #dcfce7; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); outline: none; box-shadow: none; }

/* h1: lg:text-7xl = 4.5rem, text-4xl mobile = 2.25rem */
.hp-hero h1 { font-size: 4.5rem; font-weight: 800; color: white; line-height: 1.05; letter-spacing: -2px; margin: 0 0 1rem; }
.hp-hero h1 .accent { color: #86efac; }
@media (max-width: 767px) { .hp-hero h1 { font-size: 2.25rem; letter-spacing: -1px; } }

/* Subtext: text-lg md:text-xl = 1.125/1.25rem; leading-relaxed = 1.625 */
.hp-hero-sub { color: #e5e7eb; font-size: 1.25rem; line-height: 1.625; max-width: 34rem; margin: 0 auto 2rem; }
@media (max-width: 767px) { .hp-hero-sub { font-size: 1.125rem; } }

.hp-hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Buttons: text-lg = 1.125rem in design */
.hp-btn-primary { padding: 1rem 2rem; border-radius: 0.5rem; background: #16a34a; color: white !important; font-weight: 700; font-size: 1.125rem; text-decoration: none; display: inline-block; box-shadow: 0 4px 20px rgba(22,163,74,0.3); transition: all 0.25s; }
.hp-btn-primary:hover { background: #15803d; transform: translateY(-2px); color: white; }
.hp-btn-ghost { padding: 1rem 2rem; border-radius: 0.5rem; color: white !important; font-weight: 700; font-size: 1.125rem; text-decoration: none; display: inline-block; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3); transition: all 0.25s; }
.hp-btn-ghost:hover { background: rgba(255,255,255,0.2); color: white; }

/* ---- Section base ---- */
.hp-section { padding: 5rem 0; }
.hp-section-white { background: white; border-top: 1px solid #f3f4f6; }
.hp-section-gray { background: #f9fafb; border-top: 1px solid #f3f4f6; }

/* Eyebrow: design h4 has no size class → inherits body 16px (1rem) */
.hp-eyebrow { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #16a34a; margin-bottom: 0.5rem; }

/* Section h2: text-3xl = 1.875rem base, lg:text-4xl = 2.25rem at ≥1024px */
.hp-section h2 { font-size: 1.875rem; font-weight: 800; color: #111827; letter-spacing: -0.5px; margin-top: 0; line-height: 1.2; }
@media (min-width: 1024px) { .hp-section h2 { font-size: 2.25rem; } }

.hp-section-intro { color: #6b7280; max-width: 36rem; margin: 0 auto 3rem; font-size: 1rem; }

/* Body text: text-lg = 1.125rem in design; leading-relaxed = 1.625 */
.hp-body-text { color: #4b5563; font-size: 1.125rem; line-height: 1.625; }

/* ---- Problem cards ---- */
.hp-problem-card { padding: 2rem; border-radius: 1rem; background: #f9fafb; border: 1px solid #f0f0f0; transition: box-shadow 0.3s; height: 100%; }
.hp-problem-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.hp-icon-box { width: 4rem; height: 4rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; transition: transform 0.3s; }
.hp-problem-card:hover .hp-icon-box { transform: scale(1.1); }
/* h5: text-xl = 1.25rem in design */
.hp-problem-card h5 { font-size: 1.25rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; line-height: 1.3; }
.hp-problem-card p { font-size: 1rem; color: #4b5563; line-height: 1.6; margin: 0; }

/* ---- Mock panels ---- */
.hp-mock-panel { background: #f9fafb; border-radius: 1.5rem; padding: 2rem 2.5rem; position: relative; overflow: hidden; }
.hp-mock-panel-alt { background: #f3f4f6; border-radius: 1.5rem; padding: 2rem 2.5rem; position: relative; overflow: hidden; }
.hp-mock-panel-white { background: white; border-radius: 1.5rem; padding: 2rem 2.5rem; position: relative; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); border: 1px solid #f0f0f0; }
.hp-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.hp-panel-label { font-size: 14px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.1em; }
.hp-dots { display: flex; gap: 4px; }
.hp-dot-sm { width: 8px; height: 8px; border-radius: 50%; }

/* ---- Stat cards ---- */
.hp-stat-card { background: white; border-radius: 0.75rem; padding: 0.875rem 1rem; border: 1px solid #f0f0f0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; transition: transform 0.3s; }
.hp-stat-card:hover { transform: scale(1.02); }
.hp-stat-label { font-size: 12px; font-weight: 700; color: #9ca3af; text-transform: uppercase; display: block; margin-bottom: 2px; }
/* Stat value: text-lg = 1.125rem */
.hp-stat-value { font-size: 1.125rem; font-weight: 700; color: #1f2937; }
.hp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.hp-pill-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
@keyframes hp-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hp-pulse { animation: hp-pulse 2s infinite; }

/* ---- Highlight box ---- */
.hp-highlight { display: flex; align-items: flex-start; gap: 1rem; background: rgba(240,253,244,0.6); padding: 1.5rem; border-radius: 1rem; border: 1px solid rgba(220,252,231,0.6); margin-top: 1.5rem; }
.hp-highlight-icon { background: white; padding: 0.625rem; border-radius: 0.5rem; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.08); color: #16a34a; }
.hp-highlight p { font-size: 1rem; color: #374151; line-height: 1.6; margin: 0; }

/* ---- Feature list ---- */
.hp-feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.hp-feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.125rem; color: #4b5563; margin-bottom: 1rem; line-height: 1.625; }

/* ---- Nav cards (Feedstock mock) ---- */
.hp-nav-card { background: white; border-radius: 0.75rem; padding: 1.125rem 1.25rem; border: 1px solid #f0f0f0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; align-items: center; margin-bottom: 0.75rem; transition: transform 0.3s; }
.hp-nav-card:hover { transform: scale(1.02); }
.hp-nav-card-icon { width: 3rem; height: 3rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; margin-right: 1rem; flex-shrink: 0; }
/* Card title: text-lg = 1.125rem in design */
.hp-nav-card strong { font-size: 1.125rem; color: #1f2937; display: block; }
.hp-nav-card > span { font-size: 14px; color: #6b7280; }
.hp-nav-card-chevron { margin-left: auto; color: #d1d5db; transition: color 0.2s; }
.hp-nav-card:hover .hp-nav-card-chevron { color: #16a34a; }

/* ---- Task cards ---- */
.hp-task-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.hp-task-header h5 { font-size: 1.125rem; font-weight: 700; color: #1f2937; margin: 0; }
.hp-task-badge { background: #e5e7eb; color: #374151; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.hp-task-card { background: white; border-radius: 0.75rem; padding: 1rem; border: 1px solid #f0f0f0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; transition: box-shadow 0.3s; }
.hp-task-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.hp-task-card.is-urgent { background: #fff7ed; border-color: #fed7aa; position: relative; overflow: hidden; }
.hp-task-card.is-urgent::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #f97316; }
.hp-task-left { display: flex; align-items: center; }
.hp-task-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 0.875rem; }
/* Task name: text-sm = 14px in design */
.hp-task-name { font-size: 14px; font-weight: 700; color: #111827; }
/* Task desc: text-xs = 12px in design */
.hp-task-desc { font-size: 12px; color: #6b7280; }
.hp-task-desc.is-urgent { color: #c2410c; font-weight: 700; }
.hp-indicator { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ---- Feature items (Reporting section) ---- */
.hp-feature-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.hp-feature-icon { padding: 0.75rem; border-radius: 0.75rem; flex-shrink: 0; }
/* h5: text-xl = 1.25rem in design */
.hp-feature-item h5 { font-size: 1.25rem; font-weight: 700; color: #111827; margin: 0 0 0.25rem; line-height: 1.3; }
.hp-feature-item p { font-size: 1rem; color: #4b5563; margin: 0; line-height: 1.6; }

/* ---- KPI / chart mock ---- */
.hp-kpi-mock { background: white; border-radius: 0.75rem; padding: 1.25rem; border: 1px solid #f0f0f0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 1rem; }
.hp-kpi-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.hp-kpi-title { font-weight: 700; color: #1f2937; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.hp-kpi-live { font-size: 12px; font-weight: 700; background: #eef2ff; color: #4f46e5; padding: 2px 8px; border-radius: 4px; border: 1px solid #e0e7ff; }
.hp-bar-chart { display: flex; gap: 0.75rem; }
.hp-bar-col { flex: 1; background: #eef2ff; border-radius: 0.5rem; height: 4rem; display: flex; align-items: flex-end; padding: 0.5rem; }
.hp-bar { width: 100%; border-radius: 2px; }

/* ---- Report row ---- */
.hp-report-mock { background: white; border-radius: 0.75rem; padding: 1.125rem 1.25rem; border: 1px solid #f0f0f0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 1rem; display: flex; align-items: center; transition: box-shadow 0.3s; }
.hp-report-mock:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.hp-report-icon { background: #ecfdf5; padding: 0.5rem; border-radius: 0.5rem; margin-right: 0.75rem; flex-shrink: 0; }
.hp-report-name { font-weight: 700; color: #1f2937; font-size: 1.125rem; flex: 1; }
.hp-report-dl { font-size: 14px; font-weight: 700; color: #059669; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ---- Email mock ---- */
.hp-email-mock { background: white; border-radius: 0.75rem; padding: 1.125rem 1.25rem; border: 1px solid #f0f0f0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: relative; overflow: hidden; display: flex; align-items: flex-start; }
.hp-email-mock::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #a855f7; }
.hp-email-icon { background: #faf5ff; padding: 0.5rem; border-radius: 50%; margin-right: 1rem; flex-shrink: 0; margin-top: 2px; }
.hp-email-title { font-size: 1rem; font-weight: 700; color: #111827; }
.hp-email-to { font-size: 12px; color: #9ca3af; margin-bottom: 0.5rem; }
.hp-email-alert { background: #faf5ff; border: 1px solid #f3e8ff; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 14px; font-weight: 600; color: #6b21a8; display: flex; align-items: center; gap: 6px; }
.hp-email-time { font-size: 12px; color: #9ca3af; margin-left: auto; white-space: nowrap; }

/* Biogas h2 — same responsive scale as hp-section h2 */
.hp-biogas-section h2 { font-size: 1.875rem; font-weight: 800; color: #111827; letter-spacing: -0.5px; margin-top: 0; line-height: 1.2; }
@media (min-width: 1024px) { .hp-biogas-section h2 { font-size: 2.25rem; } }

/* ---- Biogas section ---- */
.hp-biogas-section { background: #f0fdf4; padding: 5rem 0; position: relative; overflow: hidden; }
.hp-biogas-card { background: white; border-radius: 1.5rem; padding: 3.5rem; border: 1px solid #dcfce7; box-shadow: 0 20px 60px rgba(22,163,74,0.1); text-align: center; max-width: 56rem; margin: 0 auto; }
@media (max-width: 767px) { .hp-biogas-card { padding: 2rem; } }
.hp-biogas-icon { width: 5rem; height: 5rem; border-radius: 50%; background: #f0fdf4; display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; }
/* Quote: text-xl md:text-2xl = 1.25/1.5rem — using 1.5rem */
.hp-biogas-quote { font-size: 1.5rem; font-weight: 700; color: #111827; line-height: 1.6; margin-bottom: 2rem; }
.hp-biogas-quote .accent { color: #16a34a; }
.hp-biogas-divider { width: 6rem; height: 4px; border-radius: 999px; background: linear-gradient(to right, #bbf7d0, #16a34a, #bbf7d0); margin: 0 auto 2rem; }
/* Body: text-lg = 1.125rem */
.hp-biogas-text { font-size: 1.125rem; color: #4b5563; line-height: 1.625; max-width: 40rem; margin: 0 auto; }

/* ---- CTA ---- */
.hp-cta-section { padding: 4rem 0; }
.hp-cta-wrap { background: #111827; border-radius: 1.5rem; overflow: hidden; position: relative; }
.hp-cta-bg { position: absolute; inset: 0; opacity: 0.2; background: url('/img-public/cta-bg.png') center/cover no-repeat; }
.hp-cta-body { position: relative; z-index: 1; padding: 4rem 5rem; }
@media (max-width: 767px) { .hp-cta-body { padding: 2.5rem; } }
.hp-cta-eyebrow { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #4ade80; margin-bottom: 0.5rem; }
/* CTA h2: text-3xl = 1.875rem base, lg:text-4xl = 2.25rem at ≥1024px */
.hp-cta-wrap h2 { color: white; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 1rem; line-height: 1.2; }
@media (min-width: 1024px) { .hp-cta-wrap h2 { font-size: 2.25rem; } }
/* CTA p: text-lg = 1.125rem */
.hp-cta-wrap p { color: #d1d5db; font-size: 1.125rem; margin-bottom: 2rem; }

/* ---- Footer ---- */
.hp-footer { background: #111827; color: white; padding: 3.5rem 1.5rem; border-top: 1px solid #1f2937; text-align: center; }
.hp-footer-logo { height: 40px; filter: brightness(0) invert(1); margin-bottom: 1.5rem; }
/* Email: text-lg = 1.125rem */
.hp-footer-email { color: #4ade80; font-size: 1.125rem; text-decoration: none; display: block; margin-bottom: 2rem; transition: color 0.2s; }
.hp-footer-email:hover { color: #86efac; }
.hp-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; margin-bottom: 2rem; }
/* Nav links: text-sm = 14px in design */
.hp-footer-nav a { color: #6b7280; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; transition: color 0.2s; }
.hp-footer-nav a:hover { color: white; }
.hp-footer-copy { color: #374151; font-size: 14px; }
