/* ARCUBED — site styles
   Colours taken from the original Rocketspark theme. */
:root {
  --green: #11ae68;
  --green-dark: #00904a;
  --green-deep: #0a5927;
  --mint: #e9fff0;
  --text: #333333;
  --muted: #5b6460;
  --white: #ffffff;
  --radius: 10px;
  --max: 1160px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 2px; }

h1, h2, h3 { color: var(--green); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
li::marker { color: var(--green); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-deep); color: #fff; padding: .6em 1em;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Header ---------- */
.site-header { background: var(--green); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand img { width: 48px; height: 47px; }
.brand span { font-weight: 600; font-size: 1.35rem; letter-spacing: .14em; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.7); color: #fff;
  border-radius: 6px; padding: .4rem .7rem; font: inherit; font-size: .95rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 6px;
}
.site-nav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(0,0,0,.14); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--green); padding: .5rem 16px 1rem; box-shadow: 0 8px 14px rgba(0,0,0,.12); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .75rem .8rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  font-weight: 600; padding: .8rem 1.8rem; border-radius: 999px; border: 2px solid var(--green-deep);
  transition: background .2s, border-color .2s; cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn:hover { background: var(--green-dark); border-color: #003b09; color: #fff; }
.btn-light { background: #fff; color: var(--green-deep); border-color: #fff; }
.btn-light:hover { background: var(--mint); color: var(--green-deep); border-color: var(--mint); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-mint { background: var(--mint); }
.section-green { background: var(--green); color: #fff; }
.section-green h1, .section-green h2, .section-green h3 { color: #fff; }
.section-deep { background: var(--green-deep); color: #fff; }
.section-deep h1, .section-deep h2 { color: #fff; }
.center { text-align: center; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; }

/* Angled divider like the original theme */
.slant-top { clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%); padding-top: calc(clamp(3rem, 7vw, 5.5rem) + 3.5vw); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 55%, var(--green-deep) 100%);
  color: #fff; padding: clamp(4rem, 11vw, 8rem) 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 380px; height: 372px;
  background: url("../img/logo-mark.png") no-repeat center / contain; opacity: .12; pointer-events: none;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 16ch; }
.hero p { font-size: 1.15rem; max-width: 46ch; opacity: .95; }
.hero .btn { margin-top: .8rem; }

.page-hero { background: var(--mint); padding: clamp(3rem, 7vw, 5rem) 0; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img, .rounded { border-radius: var(--radius); }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 4px 18px rgba(10, 89, 39, .08); }
.card h2, .card h3 { margin-top: .2em; }

.pillars .pillar { text-align: center; }
.pillars .pillar h2 { color: #fff; font-size: 1.6rem; }

.fact { text-align: center; }
.fact img { width: 110px; margin: 0 auto 1rem; }

.feature img.icon { width: 76px; margin-bottom: .8rem; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3.2rem; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 600;
  display: grid; place-items: center;
}

.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; align-items: start; text-align: center; }
.logo-row img { max-height: 90px; width: auto; margin: 0 auto 1rem; }
.logo-row p { font-size: .95rem; }
.media-row a { display: block; padding: 1rem; border-radius: var(--radius); background: #fff; transition: box-shadow .2s; }
.media-row a:hover { box-shadow: 0 4px 18px rgba(10, 89, 39, .15); }
.media-row img { margin: 0 auto; max-height: 70px; width: auto; }
@media (max-width: 800px) { .logo-row { grid-template-columns: repeat(2, 1fr); } }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2.2rem; }
.member img { border-radius: 50%; width: 180px; height: 180px; object-fit: cover; margin-bottom: 1rem; border: 4px solid var(--mint); }
.member h2 { font-size: 1.3rem; margin-bottom: .1em; }
.member .quals { color: var(--muted); font-size: .9rem; margin-bottom: .6em; }
.member .role { font-weight: 500; }
.member blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--green); font-style: italic; color: var(--muted); }

/* CTA band */
.cta { text-align: center; }
.cta p { max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.1rem; }
.form label { display: block; font-weight: 500; margin-bottom: .3rem; }
.form input, .form textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid #c7d6cd; border-radius: 8px; background: #fff; color: var(--text);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(17,174,104,.2); }
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: var(--green-deep); }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #e2f3e8; padding: 3rem 0 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-grid img { width: 64px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-nav li { margin: 0; }
.copyright { margin-top: 2rem; font-size: .85rem; opacity: .8; }
@media (min-width: 561px) { .card.wide { grid-column: span 2; } }
