/* Metra Energy — site styles (v2). Built on Bootstrap 5.3. */
:root {
  --ink: #0b2239;          /* navy: headings, dark sections */
  --ink-2: #163a5c;
  --text: #34495e;
  --muted: #6b7f93;
  --brand: #14a37f;        /* energy green */
  --brand-dark: #0d7d61;
  --brand-soft: #e6f6f1;
  --accent: #f5a623;       /* used sparingly */
  --bg-alt: #f4f7fa;
  --line: #e1e8ef;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 34, 57, .08);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  font-size: 1.02rem;
  line-height: 1.65;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); font-weight: 600; line-height: 1.25; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .navbar-brand {
  font-family: var(--font-head); font-weight: 700; color: var(--ink); letter-spacing: -.01em;
  display: flex; align-items: center; gap: .5rem;
}
.site-nav .navbar-brand img { width: 30px; height: 30px; }
.site-nav .nav-link { color: var(--ink-2); font-weight: 500; padding: .5rem .9rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand-dark); }
.site-nav .lang { font-size: .85rem; font-weight: 600; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; padding: .7rem 1.4rem; border-radius: 10px; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { border: 1.5px solid currentColor; color: #fff; font-weight: 600; padding: .65rem 1.35rem; border-radius: 10px; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline-ink { border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; padding: .65rem 1.35rem; border-radius: 10px; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #c9d6e3; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-dark); margin-bottom: .75rem;
}
.section-dark .eyebrow, .hero .eyebrow { color: #5fe0bd; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .8rem; }
.lead-muted { color: var(--muted); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(20, 163, 127, .25), transparent 60%),
    linear-gradient(160deg, #0b2239 0%, #0f2f4d 60%, #123b5f 100%);
  color: #c9d6e3;
  padding: 140px 0 96px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.2rem; color: #d6e2ee; max-width: 560px; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.page-hero { padding: 132px 0 64px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }

/* Flow card stack in hero */
.flow-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; gap: 1rem; align-items: flex-start;
}
.flow-card .bi { font-size: 1.5rem; color: #5fe0bd; line-height: 1; margin-top: .15rem; }
.flow-card h3 { font-size: 1rem; color: #fff; margin: 0 0 .2rem; }
.flow-card p { font-size: .9rem; margin: 0; color: #b5c6d6; }
.flow-link { text-align: center; color: #5fe0bd; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .35rem 0; }
.flow-link .bi { display: block; font-size: 1.1rem; }

/* ---------- Cards ---------- */
.card-feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  height: 100%; transition: box-shadow .2s, transform .2s;
}
.card-feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-feature h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.card-feature p:last-child, .card-feature ul:last-child { margin-bottom: 0; }
.card-feature ul { padding-left: 1.1rem; }
.card-feature li { margin-bottom: .25rem; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem;
}
a.card-link-wrap { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-more { font-weight: 600; color: var(--brand-dark); font-size: .95rem; }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .55rem; border-radius: 6px; background: #fff4e0; color: #9a6200; vertical-align: middle; margin-left: .35rem; }

/* ---------- Chips (protocols / integrations) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-block; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: .88rem; font-weight: 500; color: var(--ink-2);
}
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.section-dark .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #e3ecf4; }

/* ---------- Architecture flow (platform page) ---------- */
.arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.arch-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; position: relative; }
.arch-step h3 { font-size: 1rem; margin-bottom: .5rem; }
.arch-step ul { padding-left: 1rem; margin: 0; font-size: .92rem; }
.arch-step .step-no { font-family: var(--font-head); font-weight: 700; color: var(--brand); font-size: .85rem; letter-spacing: .08em; }
.arch-step:not(:last-child)::after {
  content: "\F138"; font-family: "bootstrap-icons"; position: absolute; right: -0.95rem; top: 50%;
  transform: translateY(-50%); color: var(--brand); font-size: 1.1rem; z-index: 2; background: var(--bg-alt); border-radius: 50%;
}
.arch-proto { font-size: .78rem; color: var(--muted); margin-top: .6rem; }
@media (max-width: 991.98px) {
  .arch { grid-template-columns: 1fr; }
  .arch-step:not(:last-child)::after { content: "\F128"; right: 50%; top: auto; bottom: -1rem; transform: translateX(50%); }
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.75rem; position: relative; margin-bottom: .55rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--brand); font-size: 1.1rem; }

/* ---------- Solutions ---------- */
.solution { padding: 2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.solution:first-of-type { border-top: 0; }
.solution h2 { font-size: 1.5rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #eafaf5; padding: 64px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band .btn-light { font-weight: 600; padding: .7rem 1.4rem; border-radius: 10px; color: var(--brand-dark); }

/* ---------- Contact ---------- */
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-box .form-control { border-radius: 10px; padding: .7rem .9rem; border-color: var(--line); }
.contact-box .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(20,163,127,.15); }
.form-status { display: none; border-radius: 10px; padding: .75rem 1rem; margin-top: 1rem; font-weight: 500; }
.form-status.ok { display: block; background: var(--brand-soft); color: var(--brand-dark); }
.form-status.err { display: block; background: #fdecec; color: #a12a2a; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-info li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-info .bi { color: var(--brand); font-size: 1.25rem; }

/* ---------- Legal pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.25rem; margin-top: 2.2rem; margin-bottom: .7rem; }
.prose table { width: 100%; font-size: .95rem; margin: 1rem 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .55rem .5rem; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.prose th { color: var(--ink); width: 34%; font-weight: 600; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.form-legal { font-size: .82rem; color: var(--muted); margin-top: 1rem; line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer { background: #081a2c; color: #94a8bc; padding: 56px 0 28px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { color: #c4d3e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }

@media (max-width: 767.98px) {
  section { padding: 64px 0; }
  .hero { padding: 112px 0 64px; }
  .page-hero { padding: 108px 0 48px; }
}

/* ---------- Illustrations ---------- */
.illus { display: block; width: 100%; height: auto; max-width: 520px; margin-inline: auto; }
.illus-sol { max-width: 340px; margin: 1.5rem 0 0; }
.hero-illus { max-width: 440px; }
@media (max-width: 991.98px) { .illus-sol { max-width: 300px; } }
