/* Fluxiovate — website UI preview. Brand: Fluxiovate Brand Identity Manual v1.0 */
:root {
  --green: #7AA32A;      /* Water */
  --blue: #4285D8;       /* Data centres */
  --orange: #D95B1A;     /* Energy */
  --ink: #111827;        /* Executive black — advisory, logistics */
  --grey: #F4F5F7;       /* Light background grey */
  --slate: #4B5563;
  --rule: #E3E6EB;
  --white: #fff;
  --sector: var(--ink);
  --head: "Montserrat", "Aptos", "Calibri", sans-serif;
  --body: "Open Sans", "Aptos", "Calibri", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--slate); max-width: 60ch; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand img { width: 180px; height: auto; }   /* brand minimum digital width */
.nav { display: flex; align-items: center; gap: 4px; font-family: var(--head); font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 6px; color: var(--ink); }
.nav a:hover { background: var(--grey); }
.nav a[aria-current="page"], .nav .has-sub > button.is-current { box-shadow: inset 0 -3px 0 var(--sector); border-radius: 0; }
.nav .has-sub { position: relative; }
.nav .has-sub > button { font: inherit; background: none; border: 0; padding: 10px 12px; cursor: pointer; color: var(--ink); border-radius: 6px; }
.nav .has-sub > button:hover { background: var(--grey); }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 8px; min-width: 250px; box-shadow: 0 18px 40px -18px rgba(17,24,39,.35); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub, .nav .has-sub.open .sub { display: block; }
.nav .sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.nav .sub a::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--c); }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 15px; text-decoration: none; padding: 14px 22px; border-radius: 8px; background: var(--ink); color: #fff; border: 2px solid var(--ink); cursor: pointer; }
.btn:hover { background: #1f2937; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.nav .btn { margin-left: 10px; padding: 11px 18px; color: #fff; }
.menu-toggle { display: none; font: 700 15px var(--head); background: none; border: 2px solid var(--ink); border-radius: 8px; padding: 8px 14px; cursor: pointer; }

/* Hero (home) */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.flux { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flux svg { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: min(72vw, 980px); height: auto; }
.flux path { fill: none; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .flux .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s cubic-bezier(.65,0,.25,1) forwards; }
  .flux .draw:nth-child(2) { animation-delay: .15s; } .flux .draw:nth-child(3) { animation-delay: .3s; } .flux .draw:nth-child(4) { animation-delay: .45s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
.hero-legend { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 56px; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--slate); }
.hero-legend span { display: inline-flex; align-items: center; gap: 10px; }
.hero-legend span::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--c); }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.alt { background: var(--grey); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: end; margin-bottom: 56px; }
.section-head p { margin: 0; color: var(--slate); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Sector index rows (home) */
.sectors { border-top: 1px solid var(--rule); }
.sector-row { display: grid; grid-template-columns: 28px minmax(0, 3fr) minmax(0, 4fr) auto; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.sector-row .bar { width: 6px; height: 56px; border-radius: 3px; background: var(--c); justify-self: start; transition: height .25s ease; }
.sector-row h3 { font-size: clamp(24px, 2.6vw, 34px); }
.sector-row .tag { font-family: var(--head); font-weight: 600; color: var(--c); font-size: 15px; margin-top: 6px; }
.sector-row p { margin: 0; color: var(--slate); font-size: 16px; }
.sector-row .go { font-family: var(--head); font-weight: 700; font-size: 15px; white-space: nowrap; border-bottom: 2px solid var(--c); padding-bottom: 2px; }
.sector-row:hover .bar { height: 76px; }
@media (max-width: 860px) { .sector-row { grid-template-columns: 6px 1fr; } .sector-row p, .sector-row .go { grid-column: 2; } }

/* Promise statement */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 4px solid var(--ink); }
.promise div { padding: 28px 28px 8px 0; }
.promise div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.promise h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
.promise p { color: var(--slate); font-size: 16px; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } .promise div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* Lifecycle — a real sequence, so it is numbered */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: stage; position: relative; }
.lifecycle::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: linear-gradient(90deg, var(--green), var(--blue), var(--orange), var(--ink)); }
.lifecycle li { counter-increment: stage; padding-right: 18px; position: relative; }
.lifecycle li::before { content: counter(stage); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); font: 700 15px var(--head); margin-bottom: 18px; position: relative; }
.lifecycle h4 { margin-bottom: 6px; }
.lifecycle p { font-size: 15px; color: var(--slate); margin: 0; }
@media (max-width: 960px) { .lifecycle { grid-template-columns: 1fr 1fr; gap: 32px 0; } .lifecycle::before { display: none; } }
@media (max-width: 560px) { .lifecycle { grid-template-columns: 1fr; } }

/* Audience list */
.audience { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 40px; }
.audience div { padding: 22px 0; border-top: 1px solid var(--rule); }
.audience h4 { margin-bottom: 4px; }
.audience p { margin: 0; font-size: 15px; color: var(--slate); }

/* Offices bridge */
.offices { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 24px; }
.office h3 { font-size: 26px; margin: 6px 0 10px; }
.office .entity { font-family: var(--head); font-weight: 600; color: var(--slate); font-size: 15px; }
.office ul { padding-left: 18px; margin: 14px 0 0; color: var(--slate); font-size: 15px; }

.bridge svg { width: 100%; height: auto; }
@media (max-width: 860px) { .offices { grid-template-columns: 1fr; } .bridge { display: none; } }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: end; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-band p { color: #C9CED6; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .lines { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; display: grid; grid-template-columns: repeat(4, 1fr); }
.cta-band .lines i { background: var(--c); }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.page-hero .wrap { position: relative; z-index: 2; }
.crumbs { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--slate); margin-bottom: 22px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 72px); max-width: 14ch; }
.page-hero .tagline { font-family: var(--head); font-weight: 700; color: var(--sector); font-size: clamp(17px, 1.6vw, 20px); margin: 18px 0 22px; }
.page-hero .flux svg { width: min(58vw, 760px); right: -6%; }

/* Sector intro split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; }
.split .kicker h2 { position: sticky; top: 120px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { font-family: var(--head); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--rule); }
.section.alt .chips li { background: #fff; }
.callout { border-left: 6px solid var(--sector); padding: 6px 0 6px 24px; margin: 32px 0 0; font-family: var(--head); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; max-width: 30ch; }

/* Services accordion */
.services { border-top: 2px solid var(--ink); }
.service { border-bottom: 1px solid var(--rule); }
.service summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px 0; }
.service summary::-webkit-details-marker { display: none; }
.service summary h3 { font-size: clamp(20px, 2vw, 24px); }
.service summary .sub { font-size: 15px; color: var(--slate); margin-top: 4px; font-family: var(--body); font-weight: 400; }
.service summary .plus { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); position: relative; flex: none; }
.service summary .plus::before, .service summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s ease; }
.service summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.service[open] summary .plus { background: var(--sector); border-color: var(--sector); }
.service[open] summary .plus::before, .service[open] summary .plus::after { background: #fff; }
.service[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.service .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 48px; padding: 0 0 30px; }
.service .body p { grid-column: 1 / -1; color: var(--slate); }
.service .body h4 { font-size: 14px; color: var(--slate); margin-bottom: 8px; }
.service .body ul { margin: 0 0 12px; padding-left: 18px; font-size: 15.5px; }
.service .body li { margin-bottom: 4px; }
@media (max-width: 700px) { .service .body { grid-template-columns: 1fr; } }

/* Feature list (why) */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.why div { padding: 24px 0; border-top: 3px solid var(--sector); }
.why h4 { font-size: 19px; margin-bottom: 8px; }
.why p { font-size: 15.5px; color: var(--slate); margin: 0; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* Related sectors */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related a { display: block; text-decoration: none; padding: 26px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); border-top: 6px solid var(--c); }
.related a:hover { border-color: var(--c); }
.related h4 { font-size: 20px; } .related p { margin: 8px 0 0; font-size: 15px; color: var(--slate); }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* Values / vision */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.vm div h3 { margin-bottom: 14px; }
.vm div p { font-size: 19px; line-height: 1.55; }
@media (max-width: 860px) { .vm { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 32px; }
.values div { padding-top: 20px; border-top: 3px solid var(--ink); }
.values div:nth-child(1) { border-color: var(--green); } .values div:nth-child(2) { border-color: var(--blue); } .values div:nth-child(3) { border-color: var(--orange); } .values div:nth-child(4) { border-color: var(--green); }
.values p { font-size: 15px; color: var(--slate); }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; gap: 28px 32px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.contact-card { padding: 28px 0; border-top: 1px solid var(--rule); }
.contact-card h3 { font-size: 20px; margin-bottom: 4px; }
.contact-card .entity { font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--slate); }
.contact-card p { margin: 8px 0 0; }
form.enquiry { background: var(--grey); border-radius: 14px; padding: clamp(24px, 4vw, 44px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 16px var(--body); padding: 13px 14px; border: 1px solid #CBD2DB; border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-note { font-size: 14px; color: var(--slate); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: #fff; border-left: 4px solid var(--green); font-size: 15px; display: none; }
.form-status.err { border-left-color: #C2410C; }
.form-status.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 860px) { .contact-grid, .two { grid-template-columns: 1fr; } }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.socials a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #CBD2DB; background: #fff; text-decoration: none; }
.socials a:hover { border-color: var(--ink); }
.socials svg { width: 18px; height: 18px; fill: var(--ink); }

/* Footer */
.site-foot { background: var(--grey); padding: 72px 0 28px; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid h4 { font-size: 15px; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { text-decoration: none; color: var(--slate); } .foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand img { width: 180px; }
.foot-brand .promise-line { font-family: var(--head); font-weight: 700; margin: 18px 0 6px; max-width: 26ch; }
.foot-brand p { font-size: 15px; color: var(--slate); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid #DADDE3; font-size: 13.5px; color: var(--slate); }
.made-by { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.made-by img { height: 14px; width: auto; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Mobile nav */
@media (max-width: 1060px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -20px rgba(17,24,39,.4); }
  .nav.open { display: flex; }
  .nav .has-sub > button { display: none; }
  .nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sector); }
}
@media (max-width: 640px) { .flux { display: none; } }
@media (max-width: 1100px) and (min-width: 641px) { .hero .lede { max-width: 46ch; } .hero .flux svg { right: -24%; } .page-hero .flux svg { right: -28%; } }

/* ---- CMS additions ---- */
[hidden] { display: none !important; }
.muted { color: var(--slate); }
.lede.ink { color: var(--ink); }
.phone:empty { display: none; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.more { margin-top: 40px; }
.photo { margin: 0; overflow: hidden; border-radius: 14px; background: var(--grey); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.band { aspect-ratio: 21 / 8; margin: clamp(32px, 5vw, 56px) 0 0; }
.photo.side { aspect-ratio: 4 / 3; margin-top: 28px; }
@media (max-width: 700px) { .photo.band { aspect-ratio: 4 / 3; } }

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card { display: flex; flex-direction: column; text-decoration: none; border-top: 3px solid var(--ink); padding-top: 18px; }
.article-card .photo { aspect-ratio: 16 / 10; margin-bottom: 18px; border-radius: 10px; }
.article-card h3 { font-size: 22px; margin-bottom: 10px; }
.article-card p { color: var(--slate); font-size: 15.5px; margin: 0 0 12px; }
.article-card .date { font-family: var(--head); font-weight: 600; font-size: 13.5px; color: var(--slate); margin-top: auto; }
.article-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }
.wrap.narrow { max-width: 820px; }
.article-hero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 22ch; }
.article-meta { font-family: var(--head); font-weight: 600; color: var(--slate); margin-top: 18px; }
.prose { font-size: 18px; line-height: 1.75; padding: 40px 0 0; }
.prose h2 { font-size: 30px; margin: 1.6em 0 .5em; } .prose h3 { font-size: 23px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; max-width: none; }
.prose img { border-radius: 10px; margin: 1.4em 0; height: auto; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--green); font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.45; }
.prose a { color: var(--blue); }
