/* 5 Element Energy — site styles. Content classes (x-*) come from the page editor. */
:root {
  --green: #1e9a45;
  --green-dark: #10301a;
  --green-mid: #46a64a;
  --green-text: #0c821e;
  --blue: #3560ac;
  --ink: #1d1f21;
  --text: #4b4f58;
  --muted: #6b7078;
  --line: #e2e4e7;
  --bg-soft: #f4f6f5;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--text); background: #fff; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
.col img, .x-row img { width: auto; }
a { color: var(--green-text); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.2rem; font-weight: 700; }
h5 { font-size: 1.1rem; font-weight: 700; }
h6 { font-size: 1rem; font-weight: 700; }
p, ul, ol, figure, table, blockquote { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; font-size: .95em; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
blockquote { border-left: 4px solid var(--green); padding: .2em 0 .2em 1em; color: var(--ink); font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

/* ---------- header ---------- */
.site-header { background: linear-gradient(130deg, var(--green-dark) 0%, var(--green-mid) 100%); color: #fff; position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 90px; max-width: 1420px; }
.brand img { display: block; width: 100px; height: auto; }
.site-nav { flex: 1; }
.site-nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 30px; margin: 0; padding: 0; }
.site-nav a { color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 15px; font-weight: 500; padding: 8px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: #fff; color: #fff; }
.header-phone { color: #fff; text-decoration: none; font-size: 14px; letter-spacing: 1px; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .7); white-space: nowrap; }
.header-phone:hover { color: #fff; text-decoration: underline; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 12px; cursor: pointer; color: #fff; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 26px; height: 2px; background: currentColor; position: relative; content: ""; transition: transform .2s; }
.nav-toggle-bars::before { position: absolute; top: -8px; }
.nav-toggle-bars::after { position: absolute; top: 8px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; min-height: 72px; }
  .brand img { width: 80px; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 12px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
}

/* ---------- sections ---------- */
.s { padding: clamp(48px, 7vw, 90px) 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.s + .s.s-light:not([style]) { padding-top: 0; }
.s-dark { color: rgba(255, 255, 255, .92); background-color: var(--green-dark); }
.s-dark :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
.s-dark a:not(.x-button) { color: #fff; }
.s-fixed { background-attachment: fixed; }
@media (max-width: 1024px), (hover: none) { .s-fixed { background-attachment: scroll; } }
.s-hero { min-height: 72vh; display: flex; align-items: center; }
.s-hero > .wrap { width: 100%; }
.s-hero :is(h1, h2, h3, h4) { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; }
.s-hero p { font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.45; }
.s-banner { padding: clamp(56px, 9vw, 120px) 0; min-height: clamp(260px, 38vh, 420px); display: flex; align-items: center; }
.s-banner > .wrap { width: 100%; }
.s-banner h1 { margin: 0; }
.s-image:not(.s-hero) { text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

.cols { display: flex; flex-direction: column; gap: 32px; }
.cols-multi { flex-direction: row; flex-wrap: wrap; }
.cols-multi > .col { flex: 1 1 calc(var(--w, 50%) - 32px); min-width: min(100%, 260px); }
.col > :last-child { margin-bottom: 0; }
.col-narrow { width: 100%; max-width: max(var(--w, 100%), 560px); margin: 0 auto; }
.col-bg { padding: clamp(20px, 3vw, 40px); border-radius: var(--radius); background-size: cover; background-position: center; }
.col-dark { color: rgba(255, 255, 255, .92); }
.col-dark :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
.col-dark a:not(.x-button) { color: #fff; }

.x-row { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 1.2em; }
.x-row > div { flex: 1 1 240px; min-width: 0; }
.x-row > div > :last-child { margin-bottom: 0; }

/* ---------- content elements ---------- */
.x-center { text-align: center; }
.x-right { text-align: right; }
.x-lead { font-size: 1.25rem; color: var(--ink); }
.s-dark .x-lead { color: #fff; }
.x-img { margin: 0 0 1.2em; }
.x-img img { border-radius: 4px; }
.x-img.x-center img { margin: 0 auto; display: block; }
.x-img.x-right img { margin-left: auto; display: block; }
.x-list { list-style: none; padding: 0; }
.x-list li { padding: 4px 0; }
.x-list:not(.x-inline):not(.x-center) li { position: relative; padding-left: 22px; }
.x-list:not(.x-inline):not(.x-center) li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 9px; height: 9px; border: 2px solid var(--green); border-radius: 50%; }
.x-list.x-inline { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.x-list.x-center { justify-content: center; }
.x-rule { width: 35%; border-top: 3px solid var(--green); margin: 1.2em 0; }
.x-rule.x-center { margin-left: auto; margin-right: auto; }
.s-dark .x-rule, .col-dark .x-rule { border-top-color: #fff; }
.x-box { margin-bottom: 1.5em; }
.x-box img { display: block; margin: 0 0 .8em; max-width: 160px; }
.x-box.x-center img { margin-left: auto; margin-right: auto; }
.x-box .x-rule { width: 35%; }
.x-box.x-center .x-rule { margin-left: auto; margin-right: auto; }
.x-button { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 15px; padding: 12px 26px; border-radius: 4px; border: 0; cursor: pointer; transition: background .15s; line-height: 1.3; }
.x-button:hover { background: var(--green-dark); color: #fff; }
.s-dark .x-button:hover, .col-dark .x-button:hover { background: #fff; color: var(--green-dark); }
.x-button-alt { background: transparent; color: var(--green-text); box-shadow: inset 0 0 0 2px var(--green); }
.x-button-alt:hover { background: var(--green); color: #fff; }
.x-more { font-weight: 700; text-decoration: none; }
.x-more::after { content: " →"; }
.x-stat { text-align: center; margin-bottom: 1em; }
.x-stat-num { font-family: var(--font-body); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 600; line-height: 1.1; color: #bfbfbf; margin: 0; }
.x-stat-label { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.x-video { margin: 0 0 1.2em; }
.x-video video { width: 100%; display: block; background: #000; border-radius: 4px; }
.x-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }
.x-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 1.2em; align-items: center; }
audio { width: 100%; margin-bottom: 1em; }
img.emoji { display: inline; width: 1em !important; height: 1em; vertical-align: -0.12em; margin: 0 .1em; border-radius: 0; }

/* ---------- tabs (progressively enhanced by site.js) ---------- */
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 32px; }
.tabs [role="tab"] { font: 600 1rem var(--font-head); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 12px 20px; color: var(--muted); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { color: var(--green-text); border-bottom-color: var(--green); }
.tabs.is-enhanced .tab-heading { display: none; }
.tab-panel + .tab-panel { margin-top: 48px; }
/* banner tabs (About page): buttons in a full-width bar, then a full-width banner per tab */
.s-tabs-banners { padding: 0; }
.s:has(+ .s-tabs-banners) { padding-bottom: 8px; }
.s-dark:has(+ .s-tabs-banners) h1, .s-dark:has(+ .s-tabs-banners) h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
.tabs-bar { background: var(--bar, #10301a); padding: 8px 0 28px; }
.s-tabs-banners .tabs-bar [role="tablist"] { justify-content: center; gap: 10px; border: 0; margin: 0; }
.s-tabs-banners .tabs-bar [role="tab"] { background: #fff; color: #3d4459; border: 0; margin: 0; border-radius: 0; padding: 10px 22px; font: 400 13px var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.s-tabs-banners .tabs-bar [role="tab"][aria-selected="true"] { background: var(--green); color: #fff; }
.tab-banner { background-size: cover; background-position: center; min-height: clamp(220px, 32vh, 360px); display: flex; align-items: center; text-align: center; padding: 48px 0; }
.tab-banner .wrap { width: 100%; }
.tab-banner h2 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.tab-body { padding: clamp(40px, 6vw, 72px) 0; }
.tab-body .wrap > :last-child { margin-bottom: 0; }
.s-tabs-banners .tab-panel + .tab-panel { margin-top: 0; }
.s-tabs-banners .tabs.is-enhanced .tab-heading { display: none; }
.tabs.is-enhanced .tab-panel + .tab-panel { margin-top: 0; }

/* ---------- newsroom ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); display: flex; flex-direction: column; }
.card-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 22px 24px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body > :last-child { margin-top: auto; margin-bottom: 0; }
.card-date { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .4em; }
.card-title { font-size: 1.25rem; margin-bottom: .5em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green-text); }
.card-excerpt { font-size: 15px; }
.s-post-head { background: linear-gradient(130deg, var(--green-dark) 0%, var(--green-mid) 100%); }
.s-post-head h1 { max-width: 900px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: .6em; }
.post-date { margin: 0; opacity: .85; }
.prose { max-width: 800px; }
.prose img { border-radius: 4px; }
.post-image { margin: 0 0 2em; }
.post-image img { width: 100%; }
.post-nav { padding-top: 0; }
.post-nav .wrap { max-width: 800px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; border-top: 1px solid var(--line); padding-top: 24px; }
.post-nav a { text-decoration: none; font-weight: 700; }
.post-nav span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 400; }
.post-nav-next { text-align: right; }
.post-nav-all { align-self: center; }
@media (max-width: 640px) { .post-nav .wrap { grid-template-columns: 1fr; } .post-nav-next { text-align: left; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; max-width: 640px; padding: 24px; border-radius: 8px; background: #fff; color: #121212; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.form .form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form .form-row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 700; color: var(--ink); }
.form label > span { display: inline; }
.form label:has(> span) { grid-template-columns: max-content 1fr; }
.form label:has(> span) > :is(input, select, textarea) { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #c8ccd4; border-radius: var(--radius); width: 100%; background: #fff; color: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.form .form-error-field { border-color: #c81e1e; outline: 1px solid #c81e1e; }
.form button { justify-self: start; }
.form button[disabled] { opacity: .6; cursor: default; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-error { color: #c81e1e; margin: 0; }
.signin { margin: 1.5em 0; }
.signed-in-bar { background: #eef4f0; border-bottom: 1px solid var(--line); font-size: 14px; padding: 8px 0; color: var(--text); }
.signed-in-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.signout-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--green-text); text-decoration: underline; cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { background: linear-gradient(180deg, #fff 10%, #e0e0e0 100%); text-align: center; padding: 72px 0 40px; border-top: 1px solid var(--line); }
.footer-title { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; color: #000; line-height: 1.3; margin-bottom: .3em; }
.footer-sub { font-size: 19px; font-weight: 300; color: rgba(0, 0, 0, .55); max-width: 640px; margin: 0 auto 1.6em; }
.footer-nav, .footer-contact { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 0 0 1.2em; }
.footer-nav a { color: var(--green-text); text-decoration: none; font-weight: 700; }
.footer-contact li + li { border-left: 2px solid #7a7a7a; padding-left: 26px; }
.footer-contact a { color: rgba(0, 0, 0, .79); text-decoration: none; }
.footer-legal { font-size: 13px; color: rgba(0, 0, 0, .5); margin: 2em 0 0; }
.footer-legal a { color: inherit; }
@media (max-width: 560px) { .footer-contact { flex-direction: column; } .footer-contact li + li { border: 0; padding: 0; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .post-nav { display: none; } .s { padding: 16px 0; } .s-dark { color: #000; background: none !important; } .s-dark :is(h1, h2, h3, h4) { color: #000; } }
