/* ==========================================================
   Antaco one-pager: shared stylesheet for all four pages
   Colours and font are taken from the previous Antaco website.
   To change a colour, edit the values in the :root block below.
   ========================================================== */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/open-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/open-sans-latin-italic.woff2") format("woff2");
}

:root {
  --blue: #246cd3;      /* Antaco accent blue */
  --yellow: #ffd300;    /* Antaco flame yellow */
  --navy: #212944;      /* dark footer and header colour */
  --ink: #303133;       /* headings */
  --text: #55585c;      /* body text */
  --line: #e4e7ec;      /* thin borders */
  --soft: #f5f7fa;      /* light section background */
  --white: #ffffff;
  --max: 1120px;        /* maximum content width */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.1em;
}

sub {
  line-height: 0;
}

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

.narrow {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Short yellow line under section headings, as on the old site */
.rule {
  width: 90px;
  height: 2px;
  margin: 0 0 28px;
  border: 0;
  background: var(--yellow);
}

.center {
  text-align: center;
}

.center .rule {
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
}

.note {
  font-size: 0.9rem;
  color: #7a7e84;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.logo img {
  display: block;
  width: auto;
  height: 56px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.nav a {
  padding: 8px 0;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--white);
  border-bottom-color: var(--yellow);
}

/* Header variant for the legal pages: solid dark bar */
.site-header.solid {
  position: static;
  background: var(--navy);
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(86vh, 760px);
  padding: 150px 0 90px;
  color: var(--white);
  text-align: center;
  background-color: var(--navy);
  background-image:
    linear-gradient(to bottom, rgba(33, 41, 68, 0.72) 0%, rgba(33, 41, 68, 0.38) 45%, rgba(33, 41, 68, 0.62) 100%),
    url("img/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero h1 {
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(2.1rem, 1.2rem + 4.4vw, 4rem);
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 720px;
  margin: 0 auto 14px;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-block;
  padding: 13px 28px;
  border: 2px solid var(--yellow);
  border-radius: 3px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button:hover {
  background: transparent;
  color: var(--yellow);
}

.button.ghost {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

.button.ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.button.blue {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.button.blue:hover {
  background: transparent;
  color: var(--blue);
}

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

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section.soft {
  background: var(--soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 28px 26px 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: 3px;
  background: var(--white);
}

.card p {
  font-size: 0.98rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px 60px;
  align-items: start;
  margin-top: clamp(56px, 8vw, 90px);
}

/* ---------- Figures (blue band) ---------- */

.band {
  padding: clamp(56px, 8vw, 90px) 0;
  color: var(--white);
  text-align: center;
  background: var(--blue);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(3rem, 2rem + 4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
}

.stats span {
  display: block;
  max-width: 240px;
  margin: 8px auto 0;
  font-weight: 600;
  line-height: 1.4;
}

.band .note {
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Quote with background image ---------- */

.quote {
  padding: clamp(70px, 10vw, 130px) 0;
  color: var(--white);
  text-align: center;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(33, 41, 68, 0.74), rgba(33, 41, 68, 0.74)),
    url("img/biocoal-quote.jpg");
  background-size: cover;
  background-position: center;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

.quote cite {
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Video ---------- */

.video {
  max-width: 900px;
  margin: 44px auto 0;
}

.video video,
.video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 3px;
  background: var(--navy);
  box-shadow: 0 18px 50px rgba(33, 41, 68, 0.22);
}

.video .note {
  margin: 14px 0 0;
  text-align: center;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px 60px;
  align-items: center;
}

address {
  font-style: normal;
  line-height: 1.8;
}

.mail {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 600;
}

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

.site-footer {
  padding: 34px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 30px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: clamp(48px, 7vw, 84px) 0 clamp(64px, 9vw, 100px);
}

.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
}

.legal h2 {
  margin-top: 1.9em;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
}

.legal h1 + .rule {
  margin-bottom: 36px;
}

.back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 20px;
  }

  .site-header .wrap {
    justify-content: center;
  }

  .logo img {
    height: 48px;
  }

  .nav {
    justify-content: center;
    gap: 2px 20px;
  }

  .hero {
    min-height: 0;
    padding: 170px 0 70px;
  }

  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
