/* =========================================================================
   VoltOs Energy Group — Website Design System
   Built from the VoltOs Corporate Identity Guidelines v1.0
   Colour ref: Page 18-19  |  Type ref: Page 21-23  |  Digital ref: Page 37-38
   ========================================================================= */

:root{
  /* ---- Colour palette (Page 18) ---- */
  --navy:        #0A1B2E;
  --navy-soft:   #12233A;
  --navy-line:   #1E3350;
  --graphite:    #424A51;
  --graphite-75: #75797E;
  --graphite-50: #A3A6A9;
  --graphite-25: #D1D3D4;
  --graphite-10: #EFF0F0;
  --teal:        #00BFA5;
  --teal-dark:   #00A891;
  --blue:        #00D2FF;
  --green:       #32C76C;
  --white:       #FFFFFF;
  --off-white:   #FAFBFB;
  --panel:       #F4F6F7;
  --line:        #E3E6E8;

  /* ---- Type (Page 21-23) ---- */
  --f-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --f-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --container: 1200px;
}

/* ---------------------------------- Reset ---------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--f-body);
  color: var(--graphite);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--f-head); color: var(--navy); margin: 0; line-height: 1.15; }
p{ margin: 0; }
button{ font-family: var(--f-body); cursor: pointer; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------- Type scale (Page 23) ---------------------------------- */
.h1{ font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -0.01em; }
.h2{ font-size: 32px; line-height: 40px; font-weight: 700; }
.h3{ font-size: 22px; line-height: 30px; font-weight: 600; }
.eyebrow{
  font-family: var(--f-body); font-weight: 700; font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal);
}
.lede{ font-size: 18px; line-height: 30px; color: var(--graphite-75); }
.caption{ font-size: 13px; line-height: 18px; color: var(--graphite-50); }

@media (max-width: 768px){
  .h1{ font-size: 36px; line-height: 42px; }
  .h2{ font-size: 27px; line-height: 34px; }
}
@media (max-width: 480px){
  .h1{ font-size: 30px; line-height: 37px; }
  .h2{ font-size: 24px; line-height: 31px; }
}

/* ---------------------------------- Buttons ---------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: 14px; letter-spacing: .02em;
  padding: 14px 26px; border-radius: 6px; border: 1.5px solid transparent;
  min-height: 44px; transition: all .15s ease; white-space: nowrap;
}
.btn-primary{ background: var(--teal); color: var(--navy); }
.btn-primary:hover{ background: var(--teal-dark); }
.btn-outline-light{ border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline-light:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-dark{ border-color: var(--graphite-25); color: var(--navy); }
.btn-outline-dark:hover{ border-color: var(--navy); }
.btn-block{ width: 100%; }

/* ---------------------------------- Header / Nav ---------------------------------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.nav-row{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand img{ width: 34px; height: auto; }
.brand-word{ font-family: var(--f-head); font-weight: 700; font-size: 19px; color: var(--white); line-height: 1; }
.brand-word span{ color: var(--graphite-50); font-weight: 700; }
.brand-desc{
  font-family: var(--f-body); font-weight: 700; font-size: 9px; letter-spacing: .16em;
  color: var(--teal); margin-top: 2px; text-transform: uppercase;
}

.nav-links{ display: flex; align-items: center; gap: 30px; }
.nav-links a{
  font-size: 14.5px; font-weight: 500; color: var(--graphite-25);
  padding: 8px 0; border-bottom: 2px solid transparent; transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--white); border-bottom-color: var(--teal); }

.nav-actions{ display: flex; align-items: center; gap: 18px; }
.nav-toggle{
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
}
.nav-toggle span{ width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

@media (max-width: 980px){
  .nav-links{
    position: absolute; top: 76px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    border-top: 1px solid var(--navy-line);
  }
  .nav-links.open{ max-height: 520px; }
  .nav-links a{ width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--navy-line); }
  .nav-links a:hover, .nav-links a.active{ background: var(--navy-soft); border-bottom-color: var(--navy-line); }
  .nav-actions .btn{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ---------------------------------- Hero ---------------------------------- */
.hero{
  position: relative; background: var(--navy); color: var(--white); overflow: hidden;
}
.hero-hex{
  position: absolute; border: 1.5px solid var(--navy-line); border-radius: 14%;
}
.hero-inner{ position: relative; z-index: 2; padding: 96px 0 84px; }
.hero-inner.small{ padding: 64px 0 56px; }
.hero .h1, .hero .h2{ color: var(--white); }
.hero .lede{ color: var(--graphite-25); max-width: 640px; }
.hero-actions{ display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.breadcrumb{ font-size: 13px; color: var(--graphite-50); margin-bottom: 18px; }
.breadcrumb a:hover{ color: var(--teal); }

/* ---------------------------------- Sections ---------------------------------- */
section{ padding: 84px 0; }
.section-tight{ padding: 56px 0; }
.section-navy{ background: var(--navy); color: var(--white); }
.section-navy .h2, .section-navy h3{ color: var(--white); }
.section-panel{ background: var(--panel); }
.section-header{ max-width: 680px; margin-bottom: 48px; }
.section-header.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------- Grid utilities ---------------------------------- */
.grid{ display: grid; gap: 28px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

/* ---------------------------------- Cards ---------------------------------- */
.card{
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 32px; height: 100%;
}
.card-icon{
  width: 52px; height: 52px; border-radius: 50%; background: var(--teal);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--navy); font-family: var(--f-head); font-weight: 700; font-size: 16px;
}
.card h3{ margin-bottom: 10px; font-size: 19px; }
.card p{ font-size: 15px; color: var(--graphite-75); }
.card-link{ display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--teal-dark); }
.card-link:hover{ color: var(--navy); }

.stat{ text-align: left; }
.stat .num{ font-family: var(--f-head); font-weight: 700; font-size: 40px; color: var(--white); }
.stat .lbl{ font-size: 13.5px; color: var(--graphite-25); margin-top: 6px; }
.stat.on-light .num{ color: var(--navy); }
.stat.on-light .lbl{ color: var(--graphite-75); }

.stat-strip{
  display: flex; border-top: 1px solid var(--navy-line); margin-top: 56px; padding-top: 40px;
  gap: 40px; flex-wrap: wrap;
}
.stat-strip .stat{ flex: 1 1 160px; }

/* ---------------------------------- Badges ---------------------------------- */
.badge{
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 20px;
}
.badge-operational{ background: rgba(50,199,108,.14); color: #1c8a4d; }
.badge-construction{ background: rgba(0,210,255,.14); color: #0088ad; }
.badge-contracted{ background: rgba(0,191,165,.14); color: var(--teal-dark); }

/* ---------------------------------- Photo panel ---------------------------------- */
.photo-panel{ border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-panel img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------- Two-col layout ---------------------------------- */
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; gap: 32px; } }

/* ---------------------------------- Tables ---------------------------------- */
.table-wrap{ overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
table{ width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); }
thead th{
  background: var(--navy); color: var(--white); text-align: left; font-size: 12.5px;
  letter-spacing: .06em; text-transform: uppercase; padding: 16px 20px; font-weight: 700;
}
tbody td{ padding: 16px 20px; font-size: 14.5px; border-top: 1px solid var(--line); }
tbody tr:nth-child(even){ background: var(--panel); }

/* ---------------------------------- Forms ---------------------------------- */
.field{ margin-bottom: 20px; }
.field label{ display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea{
  width: 100%; border: 1.5px solid var(--graphite-25); border-radius: 6px; padding: 13px 14px;
  font-family: var(--f-body); font-size: 14.5px; color: var(--graphite); background: var(--white);
  min-height: 44px;
}
.field textarea{ min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--teal); }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px){ .field-row{ grid-template-columns: 1fr; } }

/* ---------------------------------- CTA band ---------------------------------- */
.cta-band{
  background: var(--navy); color: var(--white); border-radius: 14px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h2{ color: var(--white); margin-bottom: 10px; }
.cta-band p{ color: var(--graphite-25); max-width: 480px; }

/* ---------------------------------- Hexagon pattern (Page 31, coded not raster) --------------- */
.hex-pattern{
  position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 84 96'%3E%3Cpolygon points='42,0 84,24 84,72 42,96 0,72 0,24' fill='none' stroke='%23FFFFFF' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 84px 96px;
}
.hex-pattern.dark-on-light{
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 84 96'%3E%3Cpolygon points='42,0 84,24 84,72 42,96 0,72 0,24' fill='none' stroke='%230A1B2E' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------------------------------- Footer ---------------------------------- */
.site-footer{ background: var(--navy); color: var(--graphite-25); padding: 64px 0 28px; }
.footer-top{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand{ margin-bottom: 14px; }
.footer-brand p{ font-size: 14px; color: var(--graphite-50); max-width: 260px; }
.footer-col h4{ color: var(--white); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li{ margin-bottom: 11px; }
.footer-col ul li a{ font-size: 14px; color: var(--graphite-25); }
.footer-col ul li a:hover{ color: var(--teal); }
.footer-bottom{
  border-top: 1px solid var(--navy-line); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--graphite-50);
}
@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-top{ grid-template-columns: 1fr; }
}

/* ---------------------------------- Utilities ---------------------------------- */
.mt-0{ margin-top: 0 !important; }
.center{ text-align: center; }
.tag-row{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tag{
  font-size: 12.5px; font-weight: 600; color: var(--navy); background: var(--graphite-10);
  padding: 6px 12px; border-radius: 20px;
}
.divider{ height: 1px; background: var(--line); border: none; margin: 0; }
.list-check{ display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.list-check li{ display: flex; gap: 12px; font-size: 15px; color: var(--graphite); align-items: flex-start; }
.list-check li::before{
  content: ''; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5L4.2 7.7L11 1' stroke='%230A1B2E' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
