/* ==========================================================================
   Hadstone Energy — design system
   Plain static CSS. No framework, no build step.
   Palette drawn from the Hadstone logo: amber-gold sun, charcoal wordmark.
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --gold:        #f2a01e;
  --gold-soft:   #ffcf6b;
  --gold-tint:   #fbf1dc;

  --ink:         #17181c;   /* headings / near-black */
  --ink-soft:    #33353c;
  --muted:       #6a6c73;   /* body-secondary */
  --body:        #40424a;   /* body text */

  --paper:       #ffffff;
  --paper-2:     #f7f5f0;   /* warm off-white sections */
  --paper-3:     #efece4;
  --line:        #e5e2d9;

  --deep:        #141519;   /* dark sections / footer */
  --deep-2:      #1d1f27;

  /* status colours carry meaning, used consistently across the site */
  --st-operational: #1f9d6b;
  --st-construction:#2b7bbf;
  --st-development: #d98829;
  --st-consented:   #7a6cc4;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,21,25,.04), 0 12px 32px -14px rgba(20,21,25,.20);
  --shadow-lg: 0 30px 70px -30px rgba(20,21,25,.45);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Code', Menlo, monospace;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- Accessibility -------------------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

/* ---- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand__country {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  padding-left: 14px; border-left: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  color: var(--ink-soft); position: relative; padding: 6px 0;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .22s ease;
}
.nav a:hover::after { width: 100%; }
.nav .btn { color: #fff; }
.nav .btn::after { display: none; }

.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--ink); cursor: pointer; transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #211a09; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,16,20,.72) 0%, rgba(15,16,20,.42) 40%, rgba(15,16,20,.72) 100%);
}
.hero__inner { padding: 128px 0 108px; max-width: 820px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-soft); margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content:''; width: 34px; height: 1px; background: var(--gold-soft); display:inline-block; }
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 600;
  letter-spacing: -0.02em; margin: 0 0 22px;
}
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e9e7e1; max-width: 640px; margin: 0 0 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Stat strip ----------------------------------------------------------- */
.facts { background: var(--deep); color: #efe9dc; }
.facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.08);
}
.fact { padding: 34px 28px; border-right: 1px solid rgba(255,255,255,.08); }
.fact:last-child { border-right: none; }
.fact__num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; color: #fff; line-height: 1; }
.fact__num span { color: var(--gold); }
.fact__label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: #b7b2a6; margin-top: 10px; }

/* ---- Section shell -------------------------------------------------------- */
.section { padding: 96px 0; }
.section--paper { background: var(--paper-2); }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.section__kicker::before { content:''; width: 30px; height: 1px; background: var(--gold); display:inline-block; }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 0 0 16px; }
.section__head p { font-size: 1.12rem; color: var(--muted); margin: 0; }

/* ---- Featured projects ---------------------------------------------------- */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; box-shadow: var(--shadow); isolation: isolate;
  border: 1px solid rgba(255,255,255,.06);
}
.feature__bg { position: absolute; inset: 0; z-index: -2; }
.feature__bg img { width: 100%; height: 100%; object-fit: cover; }
.feature::after {
  content:''; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(10,11,15,.15) 0%, rgba(10,11,15,.55) 55%, rgba(10,11,15,.9) 100%);
}
/* designed panels for projects awaiting photography */
.panel-bess {
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(242,160,30,.55) 0%, rgba(242,160,30,0) 42%),
    linear-gradient(160deg, #24304a 0%, #16202f 55%, #0f1622 100%);
}
.panel-solar {
  background:
    radial-gradient(120% 90% at 80% 16%, rgba(255,207,107,.5) 0%, rgba(255,207,107,0) 44%),
    linear-gradient(160deg, #2a3a2f 0%, #16241c 55%, #0f1712 100%);
}
.feature__motif { position:absolute; inset:0; z-index:-1; opacity:.5; mix-blend-mode: soft-light; }
.feature__inner { padding: 34px; position: relative; }
.feature__flag {
  display:inline-flex; align-items:center; gap:8px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing:.1em; text-transform:uppercase; color:#fff;
  background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.feature h3 { color:#fff; font-size: 1.9rem; margin: 0 0 6px; }
.feature__loc { font-family: var(--font-mono); font-size: 13px; color:#d9d5cb; margin: 0 0 18px; }
.feature__stats { display:flex; gap: 26px; margin: 0 0 22px; flex-wrap: wrap; }
.feature__stat .n { font-family: var(--font-display); font-size: 1.5rem; font-weight:600; color:#fff; line-height:1; }
.feature__stat .l { font-family: var(--font-mono); font-size: 11.5px; color: var(--gold-soft); margin-top:6px; letter-spacing:.03em; }
.feature__link { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-display); font-weight:500; color:#fff; }
.feature__link .arw { transition: transform .2s ease; }
.feature:hover .feature__link .arw { transform: translateX(5px); }
.feature:hover .feature__bg img { transform: scale(1.04); }
.feature__bg img { transition: transform .6s ease; }
a.feature::before { content:''; position:absolute; inset:0; z-index:1; } /* full-card click */

/* ---- Project grid --------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--paper-3); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-3); }
.card__media img { width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px 22px 22px; display:flex; flex-direction:column; gap: 10px; flex: 1; }
.card__title { display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; }
.card h3 { font-size: 1.22rem; }
.card__loc { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.card__cap { font-family: var(--font-mono); font-size: 14px; color: var(--ink); font-weight:500; }
.card__cap span { color: var(--muted); }
a.card::before { content:''; position:absolute; inset:0; z-index:1; }

/* ---- Status chips --------------------------------------------------------- */
.chip {
  display:inline-flex; align-items:center; gap:7px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing:.06em; text-transform:uppercase; font-weight:500;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--paper-2); color: var(--ink-soft); border:1px solid var(--line);
}
.chip::before { content:''; width:7px; height:7px; border-radius:50%; background: currentColor; }
.chip--operational { color: var(--st-operational); background:#eaf7f1; border-color:#cdeadd; }
.chip--construction { color: var(--st-construction); background:#eaf2fa; border-color:#cfe1f2; }
.chip--development  { color: var(--st-development);  background:#fbf1e2; border-color:#f2ddbf; }
.chip--consented    { color: var(--st-consented);   background:#f0edfa; border-color:#ddd6f2; }
.chip--dark { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.2); }

/* ---- Split intro ---------------------------------------------------------- */
.split { display:grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items:center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { margin-bottom: 20px; }
.split p { color: var(--body); font-size: 1.08rem; }
.split .lede { font-size: 1.2rem; color: var(--ink-soft); }

/* ---- Project detail page -------------------------------------------------- */
.p-hero { position: relative; color:#fff; isolation:isolate; }
.p-hero__media { position:absolute; inset:0; z-index:-2; overflow:hidden; }
.p-hero__media img { width:100%; height:100%; object-fit:cover; }
.p-hero::after { content:''; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(15,16,20,.55) 0%, rgba(15,16,20,.35) 45%, rgba(15,16,20,.8) 100%); }
.p-hero__inner { padding: 92px 0 60px; }
.crumb { font-family: var(--font-mono); font-size: 12.5px; letter-spacing:.04em; color:#d7d3c9; margin-bottom: 22px; }
.crumb a { color:#d7d3c9; } .crumb a:hover { color:#fff; }
.p-hero h1 { color:#fff; font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 0 0 14px; }
.p-hero__meta { display:flex; gap:14px; flex-wrap:wrap; align-items:center; margin-top: 6px; }
.p-hero__loc { font-family: var(--font-mono); font-size: 14px; color:#e9e6de; }

/* panel hero (project awaiting photography) — gradient instead of photo */
.p-hero--panel { min-height: 380px; display:flex; align-items:flex-end; }
.p-hero--panel::after { background: linear-gradient(180deg, rgba(10,11,15,.12) 0%, rgba(10,11,15,.30) 60%, rgba(10,11,15,.5) 100%); }
.p-hero--panel .p-hero__inner { padding-top: 120px; }

.p-body { padding: 72px 0 96px; }
.p-layout { display:grid; grid-template-columns: 1fr 340px; gap: 56px; align-items:start; }
.prose { font-size: 1.12rem; color: var(--body); max-width: 62ch; }
.prose > p:first-of-type { font-size: 1.28rem; color: var(--ink-soft); line-height:1.55; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.prose a { color: #b4770f; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }

.pullquote {
  margin: 40px 0; padding: 26px 30px; border-left: 3px solid var(--gold);
  background: var(--paper-2); border-radius: 0 10px 10px 0;
  font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); line-height:1.4; font-weight:500;
}
.pullquote cite { display:block; margin-top: 14px; font-family: var(--font-mono);
  font-size: 13px; font-style: normal; color: var(--muted); font-weight:400; }

/* data panel */
.data-panel { position: sticky; top: 100px; background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 20px; box-shadow: var(--shadow); }
.data-panel h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing:.16em; text-transform:uppercase; color: var(--muted); font-weight:500; padding: 20px 0 6px; }
.data-row { display:flex; justify-content:space-between; gap:16px; padding: 15px 0; border-top: 1px solid var(--line); }
.data-row dt { font-family: var(--font-body); font-size: 14px; color: var(--muted); margin:0; }
.data-row dd { margin:0; font-family: var(--font-mono); font-size: 14px; color: var(--ink); text-align:right; font-weight:500; }
.data-panel .btn { width:100%; justify-content:center; margin-top: 20px; }
.placeholder-note {
  font-family: var(--font-mono); font-size: 12px; color: var(--st-development);
  background: var(--gold-tint); border:1px dashed #e6c98f; border-radius:8px;
  padding: 10px 12px; margin-top: 16px; line-height:1.5;
}

/* ---- CTA band ------------------------------------------------------------- */
.cta {
  background: var(--deep); color:#fff; border-radius: var(--radius);
  padding: 60px; display:flex; align-items:center; justify-content:space-between; gap: 32px; flex-wrap:wrap;
  position: relative; overflow:hidden;
}
.cta::before { content:''; position:absolute; right:-80px; top:-80px; width:340px; height:340px;
  background: radial-gradient(circle, rgba(242,160,30,.45) 0%, rgba(242,160,30,0) 70%); }
.cta h2 { color:#fff; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 620px; position:relative; }
.cta p { color:#c9c4b8; margin: 12px 0 0; position:relative; }

/* ---- Footer --------------------------------------------------------------- */
.footer { background: var(--deep); color:#b7b2a6; padding: 66px 0 30px; border-top:1px solid rgba(255,255,255,.06); }
.footer__top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom:1px solid rgba(255,255,255,.08); }
.footer__brand img { height: 46px; margin-bottom: 18px; }
.footer__brand p { max-width: 320px; font-size: 15px; color:#9a968c; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing:.14em; text-transform:uppercase; color:#efe9dc; font-weight:500; margin-bottom: 16px; }
.footer__links a { display:block; padding: 6px 0; color:#b7b2a6; font-size:15px; }
.footer__links a:hover { color:#fff; }
.footer__bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding-top: 24px; font-size: 13px; color:#7f7c73; font-family: var(--font-mono); }
.footer__email { color: var(--gold-soft); }

/* ---- Reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .p-layout { grid-template-columns: 1fr; }
  .data-panel { position: static; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .25s ease; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display:none; }
  .nav .btn { margin-top: 14px; justify-content:center; }
  .nav-toggle { display:inline-flex; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; }
  .nav-toggle span { width:24px; height:2px; background: var(--ink); display:block; transition: .2s; }
  .featured { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .fact:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero__inner { padding: 92px 0 76px; }
  .cta { padding: 40px 28px; }
  .footer__top { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity:1 !important; transform:none !important; transition:none !important; }
  .feature__bg img, .card__media img { transition: none !important; }
}
