


:root {
  /* Colours */
  --bg:           #0b160e;   /* page background */
  --bg-card:      #101c13;   /* elevated surfaces */
  --bg-subtle:    #141f17;   /* very subtle lift */

  --gold:         #c9a232;
  --gold-border:  rgba(201,162,50,.35);
  --gold-dim:     rgba(201,162,50,.08);
  --forest:       #3d8a5a;
  --forest-border:rgba(61,138,90,.3);
  --forest-dim:   rgba(61,138,90,.08);

  --text:         #e4e0d4;   /* primary text */
  --text-muted:   #9a9a8a;   /* secondary text */
  --text-faint:   #5a6055;   /* tertiary / disabled */

  --border:       rgba(255,255,255,.07);
  --border-gold:  rgba(201,162,50,.25);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  /* Layout */
  --max-w:    1200px;
  --radius:   12px;

  /* Spacing */
  --section-pad: 6rem 2rem;
}


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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }


/* Fonts loaded via Google Fonts in each page <head> */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

/* Gold italic accent used throughout for emphasis words */
em {
  font-style: italic;
  color: var(--gold);
  font-family: var(--font-display);
}

p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--text); }

/* Small display label above headings */
.label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}


.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
}

section { overflow: hidden; }

/* Thin gold-tinted dividing line between sections */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}


#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(11,22,14,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-gold);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gold-dim);
}
.nav-logo-mark svg { width: 14px; height: 14px; }

/* Desktop links */
.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: .45rem .75rem;
  border-radius: 7px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--gold); }

/* Language toggle button */
#lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .3rem .7rem;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
#lang-toggle:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--gold-dim);
}

/* Contact CTA in nav */
.nav-cta {
  background: var(--gold);
  color: #0b160e !important;
  padding: .4rem 1rem;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .88; }


.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: border-color .3s, background .3s;
}
.nav-hamburger:hover { border-color: var(--gold-border); background: var(--gold-dim); }

.nav-hamburger span {
  display: block;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform .38s cubic-bezier(.34,1.4,.64,1), opacity .25s, width .3s, background .3s;
  transform-origin: center;
}
.nav-hamburger span:nth-child(1) { width: 20px; height: 2px; }
.nav-hamburger span:nth-child(2) { width: 13px; height: 2px; align-self: flex-start; margin-left: 12px; }
.nav-hamburger span:nth-child(3) { width: 20px; height: 2px; }

/* Hamburger open state → X with spring */
.nav-hamburger.is-open { border-color: var(--gold-border); background: var(--gold-dim); }
.nav-hamburger.is-open span { background: var(--gold); }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-right { display: flex; align-items: center; gap: .25rem; }


.mobile-menu {
  position: fixed;
  top: 60px; right: 0;
  width: min(300px, 88vw);
  bottom: 0;
  background: var(--bg-card);
  border-left: 1px solid rgba(201,162,50,.15);
  z-index: 850;
  transform: translateX(110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-overlay {
  position: fixed;
  inset: 60px 0 0 0;
  background: rgba(0,0,0,.55);
  z-index: 840;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav-links { list-style: none; }
.mobile-nav-links li { border-bottom: 1px solid var(--border); }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 1rem .25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  gap: 0;
  transition: color .2s, gap .25s;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--gold); gap: .75rem; }
.mobile-nav-links a::before {
  content: '';
  display: block;
  width: 0; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  transition: width .25s cubic-bezier(.34,1.4,.64,1);
}
.mobile-nav-links a:hover::before, .mobile-nav-links a.active::before { width: 16px; }

/* Stagger slide-in animation for drawer items */
.mobile-menu.is-open .mobile-nav-links li {
  animation: slideInRight .35s cubic-bezier(.22,1,.36,1) both;
}
.mobile-menu.is-open .mobile-nav-links li:nth-child(1) { animation-delay: .04s }
.mobile-menu.is-open .mobile-nav-links li:nth-child(2) { animation-delay: .09s }
.mobile-menu.is-open .mobile-nav-links li:nth-child(3) { animation-delay: .14s }
.mobile-menu.is-open .mobile-nav-links li:nth-child(4) { animation-delay: .19s }
.mobile-menu.is-open .mobile-nav-links li:nth-child(5) { animation-delay: .24s }
@keyframes slideInRight {
  from { opacity:0; transform:translateX(20px); }
  to   { opacity:1; transform:none; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: #0b160e;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .88; }


.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--gold);
  padding: .72rem 1.7rem;
  border-radius: 8px;
  border: 1px solid var(--gold-border);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: var(--gold-dim); border-color: var(--gold); }


.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .2s, gap .2s;
}
.btn-ghost:hover { color: var(--text); gap: .65rem; }


/* Used for certifications, tech tags */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 100px;
}
.badge-gold   { background: var(--gold-dim);   border: 1px solid var(--gold-border);   color: var(--gold);   }
.badge-forest { background: var(--forest-dim); border: 1px solid var(--forest-border); color: var(--forest); }
.badge-muted  { background: rgba(255,255,255,.04); border: 1px solid var(--border);    color: var(--text-faint); }

/* Smaller inline tech pill */
.pill {
  display: inline-block;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-faint);
  padding: .22rem .65rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pill-gold { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold); }


/* Generic card container */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.card:hover { border-color: var(--border-gold); transform: translateY(-2px); }


/* Elements with .reveal start hidden; .visible class added by IntersectionObserver */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.visible, .fade-up.visible { opacity: 1; transform: none; }


.d1 { transition-delay: .05s }
.d2 { transition-delay: .15s }
.d3 { transition-delay: .25s }
.d4 { transition-delay: .35s }
.d5 { transition-delay: .45s }


footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 4rem 2rem 2rem; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: .5rem;
}
.footer-logo span { color: var(--gold); }
.footer-brand p { font-size: .85rem; color: var(--text-faint); margin-top: .4rem; }

.footer-nav h5 {
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .85rem;
  color: var(--text-faint);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: .8rem; color: var(--text-faint); font-family: var(--font-display); }
.footer-sub-links { list-style: none; display: flex; gap: 1.5rem; }
.footer-sub-links a { font-size: .8rem; color: var(--text-faint); text-decoration: none; font-family: var(--font-display); transition: color .2s; }
.footer-sub-links a:hover { color: var(--gold); }


.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s, background .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold-border);
  background: rgba(201,162,50,.03);
}
.form-group textarea { resize: vertical; min-height: 140px; }


@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* Hide desktop nav, show hamburger */
  .nav-links  { display: none; }
  .nav-right  { display: none; }
  .nav-hamburger { display: flex; }

  section { padding: 4rem 1.25rem; }
  .container { padding: 4rem 1.25rem; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
}


/* Used in blog articles to link technical terms to glossar.html */
.glossar-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dashed var(--gold-border);
  transition: border-color .2s, color .2s;
  cursor: help;
}
.glossar-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
