/* ============================================================
   Blue Energy Center – Port of Victoria (project page prototype)
   Design tokens + component patterns mirrored from blueenergy.co
   (Webflow: blue-energy-new.webflow.shared.css) for a 1:1 port.
   ============================================================ */

/* ABC Favorit (Dinamo Typefaces) — licensed WOFF2 builds, matching the files
   blueenergy.co now serves. The Webflow asset there is still labelled
   "Abcfavorit Trial", but the underlying files are the retail cut. */
@font-face {
  font-family: "ABC Favorit";
  src: url("../assets/fonts/ABCFavorit-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Favorit";
  src: url("../assets/fonts/ABCFavorit-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #fff;
  --navy: #0c1528;
  --blue: #0845ba;
  --mid-blue: #123964;
  --light-blue: #dbe5ef;
  --medium-blue: #b5d2f2;
  --main-font: "ABC Favorit", Arial, sans-serif;
  --max-width: 140em;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--mid-blue);
  background-color: var(--white);
  font-family: var(--main-font);
  /* Same responsive em-scale as blueenergy.co */
  font-size: clamp(.65rem, .7vw, 1rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 991px) { body { font-size: clamp(.55rem, .7vw, 1rem); } }
@media (max-width: 479px) { body { font-size: clamp(.54rem, .7vw, 1rem); } }

img { max-width: 100%; display: block; }
a { color: currentColor; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Type ---------- */

.h1 {
  margin: 0 0 .5em;
  font-size: 6.25em;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: -.01em;
}

.h2 {
  margin: 0 0 .4em;
  font-size: 5em;
  font-weight: 400;
  line-height: 104%;
  letter-spacing: -.01em;
}

.h3 {
  margin: 0 0 .4em;
  font-size: 1.75em;
  font-weight: 500;
  line-height: 130%;
}

.paragraph {
  margin: 0 0 1em;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 150%;
}

.paragraph.large { font-size: 1.8em; line-height: 145%; }
.paragraph.small { font-size: 1.25em; }
.paragraph:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  background-color: var(--blue);
  color: var(--white);
  margin: 0 0 1.6em;
  padding: .5em .5em .35em;
  font-size: 1.25em;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.eyebrow.on-blue { background-color: var(--medium-blue); color: var(--blue); }
.eyebrow.on-navy { background-color: var(--white); color: var(--blue); }

.measure { max-width: 62em; }

@media (max-width: 767px) {
  .h1 { font-size: 5.2em; }
  .h2 { font-size: 4em; }
  .paragraph { font-size: 1.7em; }
  .paragraph.large { font-size: 1.9em; }
  .eyebrow { font-size: 1.5em; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  background-color: var(--medium-blue);
  color: var(--blue);
  padding: 1.2em 1.6em;
  font-size: 1.25em;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.button:hover { background-color: #87a1be; }

.button.primary { background-color: var(--blue); color: var(--white); }
.button.primary:hover { background-color: #073896; }

.button.on-white { background-color: var(--blue); color: var(--white); }
.button.on-white:hover { background-color: #073896; }

.button.text-only {
  background-color: transparent;
  padding: 1.2em 0;
  text-decoration: none;
}
.button.text-only:hover { opacity: .75; }
.button .arrow { font-weight: 400; }

@media (max-width: 767px) { .button { font-size: 1.5em; } }

/* ---------- Sections ---------- */

.section {
  width: 100%;
  padding: 8em 2.5em;
  position: relative;
  color: var(--mid-blue);
  scroll-margin-top: 6em;
}
.section.on-blue { background-color: var(--blue); color: var(--white); }
.section.on-navy { background-color: var(--navy); color: var(--white); }
.section.on-light { background-color: var(--light-blue); }

@media (max-width: 991px) { .section { padding-left: 1.5em; padding-right: 1.5em; } }

.section-head { margin-bottom: 4em; }

/* ---------- Top nav ---------- */

.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--white);
  padding: 2em 2.5em;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
}
.nav-logo { width: 18em; color: var(--white); display: block; }
.nav-logo img { width: 100%; }
.nav-links { display: flex; align-items: center; gap: 2.5em; }
.nav-link {
  color: var(--white);
  font-size: 1.25em;
  line-height: 100%;
  text-decoration: none;
}
.nav-link:hover { opacity: .8; }

.nav-burger { display: none; }

@media (max-width: 991px) {
  .navbar { padding: 2em 1.5em; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--navy);
    padding: 1em 0 2em;
  }
  .nav-links .nav-link { font-size: 2em; padding: 1em 1.2em; width: 100%; }
  #nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: .5em;
    cursor: pointer;
    padding: .8em;
  }
  .nav-burger span {
    width: 3.2em; height: .3em;
    background-color: var(--white);
    display: block;
  }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 95vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 12em 2.5em 5em;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%; /* panoramic render: keep crane + turbines in frame */
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Ground-level construction render: light touch up top (nav legibility), clear through the crane and
     turbines, dark only behind the copy at the bottom. */
  background: linear-gradient(180deg, rgba(12, 21, 40, .45) 0%, rgba(12, 21, 40, 0) 22%, rgba(12, 21, 40, .1) 42%, rgba(12, 21, 40, .7) 66%, rgba(12, 21, 40, .9) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 78em; }
.hero .h1 { margin-bottom: .25em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 2.5em; align-items: center; margin-top: 3em; }
.hero-caption {
  position: absolute;
  right: 2.5em; bottom: 1.6em;
  z-index: 2;
  font-size: 1.1em;
  opacity: .7;
}
@media (max-width: 991px) { .hero { padding-left: 1.5em; padding-right: 1.5em; } }
@media (max-width: 767px) { .hero-bg { object-position: 44% 50%; } } /* phones: center on the crane lifting the Blue Block */

/* ---------- Sticky section nav ---------- */

.subnav {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--white);
  border-bottom: 1px solid rgba(8, 69, 186, .15);
}
.subnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  padding: 0 2.5em;
}
.subnav-links {
  display: flex;
  gap: 3em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.subnav-link {
  color: var(--mid-blue);
  font-size: 1.25em;
  font-weight: 500;
  line-height: 100%;
  text-decoration: none;
  padding: 1.6em 0 1.45em;
  border-bottom: .25em solid transparent;
  white-space: nowrap;
}
.subnav-link:hover { color: var(--blue); border-bottom-color: var(--medium-blue); }
.subnav-contact {
  color: var(--blue);
  font-size: 1.25em;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  padding: 1.6em 0 1.45em;
}
.subnav-contact:hover { opacity: .75; }
@media (max-width: 991px) {
  .subnav .container { padding: 0 1.5em; }
  .subnav-link, .subnav-contact { font-size: 1.6em; }
}

/* ---------- Stats ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22em, 1fr));
  gap: 3em;
  margin-top: 5em;
}
.stat-wrapper {
  border-left: 3px solid var(--blue);
  padding-left: 1.5em;
}
.on-blue .stat-wrapper { border-left-color: var(--medium-blue); }
.on-navy .stat-wrapper { border-left-color: var(--medium-blue); }
.stat-large {
  margin: 0 0 .25em;
  font-size: 3.4em;
  font-weight: 400;
  line-height: 1em;
}
.on-blue .stat-large, .on-navy .stat-large { color: var(--medium-blue); }
.stat-text {
  margin: 0;
  font-size: 1.3em;
  line-height: 1.35em;
}

/* ---------- Phase cards ---------- */

.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5em;
  margin-top: 4em;
}
@media (max-width: 767px) { .phase-grid { grid-template-columns: 1fr; } }
.phase-card {
  background-color: var(--light-blue);
  padding: 3em;
  display: flex;
  flex-direction: column;
  gap: .5em;
}
.phase-card .phase-label {
  color: var(--blue);
  font-size: 1.25em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1.2em;
}
.phase-card .h2 { font-size: 3.2em; margin-bottom: .3em; }

/* ---------- Figure ---------- */

.figure { margin: 5em 0 0; }
.figure img { width: 100%; height: auto; }
.figure figcaption { font-size: 1.2em; opacity: .7; margin-top: 1em; }

/* ---------- Location strip ---------- */

.location-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.5em 3em;
  margin-top: 5em;
  padding-top: 2.5em;
  border-top: 1px solid rgba(8, 69, 186, .2);
}
.location-strip .where {
  color: var(--blue);
  font-size: 1.25em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16em, 1fr));
  gap: 3em 2em;
  margin-top: 5em;
}
.milestone { border-top: 3px solid var(--blue); padding-top: 1.2em; }
.milestone-date {
  color: var(--blue);
  margin: 0 0 .3em;
  font-size: 2.2em;
  font-weight: 500;
  line-height: 1em;
}
.milestone-text { margin: 0; font-size: 1.3em; line-height: 1.35em; }
.timeline-note { margin-top: 4em; opacity: .8; }

/* ---------- Feature cards (water / community) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26em, 1fr));
  gap: 2.5em;
  margin-top: 4em;
}
.card {
  background-color: var(--light-blue);
  padding: 3em;
}
.on-light .card { background-color: var(--white); }
.card .h3 { color: var(--blue); }
.card .paragraph { font-size: 1.35em; }

/* ---------- Split (two-column) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
  margin-top: 5em;
}
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Phase blocks (full-width, image-led) ---------- */

.phase-blocks {
  display: flex;
  flex-direction: column;
  gap: 2.5em;
  margin-top: 4em;
}
.phase-block { background-color: var(--light-blue); }
.phase-block-figure { margin: 0; }
.phase-block-figure img { width: 100%; height: auto; display: block; }
/* Image sits below the copy, flush to the block's bottom edge. */
.phase-block-body { padding: 3em 3em 2.5em; }
.phase-block-body .phase-label {
  color: var(--blue);
  font-size: 1.25em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1em;
}
.phase-block-body .h2 { font-size: 3.2em; margin-bottom: .3em; }
.phase-block-body .paragraph { max-width: 72em; }
@media (max-width: 767px) {
  .phase-block-body { padding: 2.4em 1.8em; }
}

/* ---------- Spec blocks (noise / light) ---------- */

.spec-list { margin-top: 4em; display: flex; flex-direction: column; gap: 0; }
.spec {
  border-top: 1px solid rgba(8, 69, 186, .2);
  padding: 2.4em 0;
}
.spec:last-child { border-bottom: 1px solid rgba(8, 69, 186, .2); }
.spec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5em 2em;
  margin-bottom: .8em;
}
.spec-head .h3 { margin: 0; }
.spec-range {
  color: var(--blue);
  font-size: 2.2em;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.spec .paragraph { font-size: 1.4em; max-width: 78em; }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 4em; border-top: 1px solid rgba(8, 69, 186, .2); }
.faq-item { border-bottom: 1px solid rgba(8, 69, 186, .2); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
  padding: 1.9em 0;
  font-size: 1.75em;
  font-weight: 500;
  line-height: 130%;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.4em;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--blue); }
.faq-answer { padding: 0 0 2.5em; max-width: 70em; }
.faq-answer a { color: var(--blue); }

/* ---------- CTA band ---------- */

.cta-band { text-align: left; }
.cta-band .h2 { margin-bottom: .3em; }
.cta-band .button { margin-top: 2.5em; }

/* ---------- News ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26em, 1fr));
  gap: 2.5em;
  margin-top: 4em;
}
.news-card {
  background-color: var(--white);
  color: var(--mid-blue);
  padding: 3em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2em;
  justify-content: space-between;
  min-height: 24em;
  transition: transform .2s;
}
.news-card:hover { transform: translateY(-.4em); }
.news-card .news-tag {
  color: var(--blue);
  font-size: 1.15em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.news-card .news-title { margin: 0; font-size: 1.9em; font-weight: 400; line-height: 135%; }
.news-card .news-more { color: var(--blue); font-size: 1.25em; font-weight: 500; }
.news-actions { margin-top: 4em; }

/* ---------- Resources ---------- */

.resource-list {
  margin-top: 4em;
  border-top: 1px solid rgba(255, 255, 255, .25);
}
.resource-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2em;
  padding: 1.8em 0;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  text-decoration: none;
  color: var(--white);
}
.resource-link:hover .resource-name { color: var(--medium-blue); }
.resource-name { font-size: 1.9em; line-height: 130%; }
.resource-source { font-size: 1.25em; opacity: .6; white-space: nowrap; }

/* ---------- Footer ---------- */

.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 6em 2.5em 2.5em;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4em;
  padding-bottom: 6em;
}
.footer .h2 { max-width: 8ch; }
.footer-links-col { display: flex; flex-direction: column; gap: .9em; }
.footer-col-label { font-size: 1.15em; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; opacity: .5; margin-bottom: .8em; }
.footer-link { color: var(--white); font-size: 1.4em; text-decoration: none; }
.footer-link:hover { color: var(--medium-blue); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
  padding-top: 2.5em;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.footer-logo { width: 22em; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 2.5em; }
.footer-legal a, .footer-legal span { color: var(--white); font-size: 1.15em; text-decoration: none; opacity: .6; }
.footer-legal a:hover { opacity: 1; }

.milestone-link {
  display: block;
  margin-top: .5em;
  font-size: .85em;
  color: var(--blue);
  text-decoration: none;
}
.milestone-link:hover { text-decoration: underline; }

/* Noise & light: five good-neighbor steps sit in one row on desktop rather than wrapping 4 + 1 */
@media (min-width: 1200px) { .card-grid.five-up { grid-template-columns: repeat(5, 1fr); gap: 2em; } }
