/* ============================================================
   CalcNetra – styles.css
   Updated to match new site design
   ============================================================ */

/* ── Base ───────────────────────────────────────────────── */
body {
  background: #f4f6f9;
  font-family: Arial, sans-serif;
  color: #222;
}

/* ── Legacy .app-shell (keep for any old pages still using it) */
.app-shell {
  max-width: 1100px;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.navbar-brand {
  color: #1a3a5c !important;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}
.nav-link {
  color: #444 !important;
  font-size: 0.92rem;
  padding: 6px 12px !important;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-link:hover,
.nav-link.active {
  background: #eef5fc;
  color: #1a3a5c !important;
}

/* ── Cards ──────────────────────────────────────────────── */
.calc-card {
  border: 1px solid #e0e7ef !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(26,58,92,.07);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.calc-card:hover {
  box-shadow: 0 6px 20px rgba(26,58,92,.13);
  transform: translateY(-2px);
}
a.calc-card {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
a.calc-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a3a5c;
  margin: 0 0 4px 0;
}
a.calc-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* ── Calculator page cards ──────────────────────────────── */
.page-card {
  border: 1px solid #e0e7ef !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(26,58,92,.07);
}
.page-card .card-body {
  padding: 24px;
}

/* ── Hero sections ──────────────────────────────────────── */
.page-hero {
  background: #1a3a5c;
  color: #fff;
  padding: 44px 0 32px;
}
.page-hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
}
.page-hero p {
  color: #b8cfe8;
}

/* ── Category badges ────────────────────────────────────── */
.category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-energy  { background: #fff3cd; color: #856404; }
.badge-water   { background: #d1ecf1; color: #0c5460; }
.badge-mfg     { background: #d4edda; color: #155724; }
.badge-maint   { background: #f8d7da; color: #721c24; }
.badge-lean    { background: #d4edda; color: #155724; }

/* Bootstrap badge-soft (used by JS-rendered calculators) */
.badge-soft {
  background: rgba(13,110,253,.1);
  color: #0d6efd;
  border: 1px solid rgba(13,110,253,.18);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── Result box (calculator output) ─────────────────────── */
.result-box {
  background: #0b1220;
  color: #eaf2ff;
  border-radius: 12px;
  padding: 14px 16px;
}
.result-box .label {
  opacity: .75;
  font-size: .9rem;
}
.result-box .value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .2px;
}

/* ── AdSense slots ──────────────────────────────────────── */
.ad-slot {
  margin: 24px 0;
  text-align: center;
  min-height: 90px;
  /* Remove old dashed border placeholder — real ads show now */
}

/* ── Article / guide pages ──────────────────────────────── */
.article-card {
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s;
  background: #fff;
}
.article-card:hover {
  box-shadow: 0 4px 16px rgba(26,58,92,.10);
  color: #1a3a5c;
}
.article-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 4px 0;
  color: #1a3a5c;
}
.article-card p {
  font-size: 0.82rem;
  color: #777;
  margin: 0;
}

/* ── Typography helpers ─────────────────────────────────── */
.small-muted {
  font-size: .93rem;
  color: #5b6472;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
}
.link-soft {
  text-decoration: none;
  color: #1a6db5;
}
.link-soft:hover {
  text-decoration: underline;
}

/* ── Section titles (homepage) ──────────────────────────── */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 4px;
}
.section-sub {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: #fff;
  border-top: 1px solid #e0e7ef;
}
.footer-links a {
  text-decoration: none;
  color: #888;
}
.footer-links a:hover {
  text-decoration: underline;
  color: #1a3a5c;
}

/* ── Static pages (About / Privacy / Terms / Contact) ───── */
.content-card {
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 20px;
}
.content-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 28px 0 10px 0;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}
.content-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.content-card p,
.content-card li {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.75;
}
.page-toc {
  background: #eef5fc;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.page-toc a {
  text-decoration: none;
  color: #1a6db5;
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}
.page-toc a:hover {
  text-decoration: underline;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  background: transparent;
  font-size: 0.85rem;
}
.breadcrumb-item a {
  color: #1a6db5;
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* ── FAQ accordion ──────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  background: #eef5fc;
  color: #1a3a5c;
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
}

/* ── Stat boxes (About page) ────────────────────────────── */
.stat-box {
  background: #eef5fc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.stat-box .num {
  font-size: 2rem;
  font-weight: 800;
  color: #1a3a5c;
}
.stat-box .label {
  font-size: 0.82rem;
  color: #666;
  margin-top: 4px;
}

/* ── Contact form ───────────────────────────────────────── */
.btn-send {
  background: #1a3a5c;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  width: 100%;
  cursor: pointer;
}
.btn-send:hover {
  background: #152e4a;
  color: white;
}

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 767px) {
  .page-hero h1 { font-size: 1.4rem; }
  .section-title { font-size: 1.1rem; }
  .content-card { padding: 20px 18px; }
  .result-box .value { font-size: 1.1rem; }
  a.calc-card { margin-bottom: 4px; }
}
@media (max-width: 575px) {
  .compare-grid {
    grid-template-columns: 1fr !important;
  }
}
