@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;600;700&family=Red+Hat+Display:wght@400;500;700&display=swap');

/* --- Reset & base -------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #000000;
  --dark-green:  #42601e;
  --light-green: #71a340;
  --light-plum:  #a68ab9;
  --dark-plum:   #5c426e;
  --white:       #ffffff;
  --off-white:   #f5f4f2;
  --mid-gray:    #e0dedd;
  --text:        #1a1a1a;
  --text-muted:  #555555;

  --font-body:    'Red Hat Display', sans-serif;
  --font-heading: 'Oxanium', sans-serif;

  --max-width: 1100px;
  --nav-height: 64px;
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* --- Nav ----------------------------------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 2px solid var(--dark-plum);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
}

header .logo {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

header nav {
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

header nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

header nav li {
  padding: 0;
  margin: 0;
}

header nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-plum);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

header nav a:hover {
  background: var(--dark-plum);
  color: var(--white);
}

header nav a.active {
  background: var(--dark-plum);
  color: var(--light-plum);
}

/* Language switcher */
ul.lang-switcher {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0 0 0 1rem;
  border-left: 1px solid var(--mid-gray);
  padding-left: 1rem;
}

ul.lang-switcher a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}

ul.lang-switcher a:hover {
  background: var(--off-white);
  color: var(--dark-plum);
}

ul.lang-switcher a.active {
  background: var(--dark-plum);
  color: var(--white);
  font-weight: 700;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-plum);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile */
@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
  }

  header nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--dark-plum);
    padding: 1rem 2rem;
    margin: 0;
  }

  header nav.open {
    display: block;
  }

  header nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  header nav ul.lang-switcher {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--mid-gray);
    padding-left: 0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
  }
}

/* --- Main content -------------------------------------------------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* --- Typography ---------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark-plum);
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

h1 { font-size: 2.2rem; color: var(--dark-green); margin-top: 3.5rem; }
h2 { font-size: 1.6rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-top: 2rem; }
h4 { font-size: 1.05rem; margin-top: 1.5rem; }
main > h1:first-child,
main > *:first-child h1 { margin-top: 0; }

p { margin-bottom: 1.1rem; }

a { color: var(--dark-green); text-decoration: underline; }
a:hover { color: var(--light-green); }

strong { font-weight: 700; color: var(--dark-plum); }

/* --- Lists --------------------------------------------------------- */

ul, ol {
  margin: 0 0 1.1rem 1.5rem;
}

li { margin-bottom: 0.3rem; }

/* --- Tables -------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

th {
  font-family: var(--font-heading);
  font-weight: 600;
  background: var(--dark-plum);
  color: var(--light-plum);
  padding: 0.6rem 0.85rem;
  text-align: left;
}

td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--mid-gray);
}

tr:nth-child(even) td { background: var(--off-white); }

/* --- Images -------------------------------------------------------- */

main img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 1.5rem 0;
}

/* Tiled small images — stack horizontally, wrap if needed */
main img.tile {
  display: inline-block;
  width: 20%;
  margin: 0.5rem 1%;
  vertical-align: middle;
  border-radius: 4px;
}


main img.full-width {
  width: 100%;
  max-width: 100%;
}

/* Centred at natural size, no text wrap */
main img.centred {
  margin-left: auto;
  margin-right: auto;
}

/* Float right, text wraps around */
main img.float-right {
  float: right;
  width: 40%;
  margin: 0.25rem 0 1.5rem 2rem;
}

/* Float left, text wraps around */
main img.float-left {
  float: left;
  width: 40%;
  margin: 0.25rem 2rem 1.5rem 0;
}

/* Clearfix and spacers */
.clearfix::after { content: ""; display: table; clear: both; }
.spacer    { height: 2rem; }
.spacer-big { height: 4rem; }

a.img-link img {
  transition: opacity 0.15s;
}

a.img-link:hover img {
  opacity: 0.85;
}

/* --- Code ---------------------------------------------------------- */

code {
  font-size: 0.875rem;
  background: var(--off-white);
  border: 1px solid var(--mid-gray);
  border-radius: 3px;
  padding: 0.1em 0.4em;
}

pre {
  background: var(--off-white);
  border: 1px solid var(--mid-gray);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code { background: none; border: none; padding: 0; }

/* --- Definition list ----------------------------------------------- */

dl.deflist {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  margin: 1.5rem 0 2rem;
  border-radius: 4px;
  overflow: hidden;
}

dl.deflist dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  background: var(--dark-plum);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #7a5e8a;
  white-space: nowrap;
}

dl.deflist dd {
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  padding: 0.65rem 1rem;
  margin: 0;
  border-bottom: 1px solid var(--mid-gray);
}

dl.deflist dt:last-of-type,
dl.deflist dd:last-of-type {
  border-bottom: none;
}

/* --- Feature strip ------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
}

.feature {
  background: var(--off-white);
  border-top: 3px solid var(--dark-plum);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.feature .feature-icon-img {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 0.75rem;
  border-radius: 0;
}

.feature .feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature p {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-plum);
  margin: 0;
  line-height: 1.35;
}

.feature .feature-sub {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* --- Feature strip ------------------------------------------------- */

.hero {
  background: var(--dark-plum);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 3rem 3rem;
  margin: 2rem auto 2.5rem;
  border-radius: 6px;
  max-width: 80%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero p {
  margin: 0;
}

.hero em {
  color: var(--light-green);
  font-style: normal;
}

.hero strong {
  color: var(--light-plum);
  font-weight: 700;
}

/* --- Buttons / CTAs ------------------------------------------------ */

a.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  margin: 0.5rem 0.5rem 0.5rem 0;
  background: var(--dark-plum);
  color: var(--white);
}

a.btn:hover {
  background: var(--light-plum);
  color: var(--dark-plum);
}

a.btn-secondary {
  background: var(--off-white);
  color: var(--dark-plum);
  border: 2px solid var(--dark-plum);
}

a.btn-secondary:hover {
  background: var(--dark-plum);
  color: var(--white);
}

a.btn-green {
  background: var(--dark-green);
  color: var(--white);
}

a.btn-green:hover {
  background: var(--light-green);
  color: var(--black);
}



footer {
  background: var(--dark-plum);
  color: var(--light-plum);
  text-align: center;
  font-size: 0.85rem;
  padding: 1.25rem 2rem;
  font-family: var(--font-heading);
}