/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --color-primary: #16253a;
  --color-primary-light: #184676;
  --color-secondary: #4178a7;
  --color-secondary-light: #83a8cd;
  --color-bg-main: #f5f7fa;
  --color-bg-soft: #e9eef3;
  --color-bg-accent: #768897;
  --color-text: #0f172a;
  --color-text-muted: #5e6d7e;
  --color-accent: #7a3b1a;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --radius-card: 0.625rem;
  --shadow-card: 0 0.0625rem 0.125rem rgba(15, 23, 42, 0.03),
    0 0.125rem 0.5rem rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 0.0625rem 0.25rem rgba(15, 23, 42, 0.04),
    0 0.375rem 1.125rem rgba(15, 23, 42, 0.07);
  --transition: 0.18s ease;
  --max-width: 70rem;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  background: var(--color-bg-soft);
  color: var(--color-text);
  line-height: 1.6;
}

/* ── Layout helper ───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition),
    box-shadow var(--transition);
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg-main);
  padding: 0.6rem 1.4rem;
}
.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: 0 0.125rem 0.625rem rgba(30, 58, 95, 0.12);
}
.btn-primary:active {
  background: var(--color-primary);
  box-shadow: none;
}
.btn-primary:focus-visible {
  outline: 0.125rem solid var(--color-primary);
  outline-offset: 0.1875rem;
}
.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* ── Header / Nav ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-main);
  border-bottom: 0.0625rem solid var(--color-bg-accent);
  box-shadow: 0 0.0625rem 0.375rem rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4rem;
  padding-block: 0.875rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.logo-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg-main);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.logo-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* Nav links */
.main-nav {
  flex: 1;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-link {
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 0.25rem;
  transition:
    color var(--transition),
    background var(--transition);
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-primary);
  background: rgba(30, 58, 95, 0.05);
}
.nav-link:focus-visible {
  outline: 0.125rem solid var(--color-primary);
  outline-offset: 0.125rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  opacity: 0.45;
  transition: opacity 0.2s;
}
a.lang-flag:hover {
  opacity: 1;
}
.lang-flag-active {
  opacity: 1;
  cursor: default;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary);
  color: rgba(245, 247, 250, 0.55);
  padding: 2rem 0;
  margin-top: 5.5rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-link {
  color: var(--color-secondary-light);
}
.footer-link:hover {
  text-decoration: underline;
}

/* ── Section typography ──────────────────────────────────────────────────── */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.section-heading {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

/* ── Accessibility ───────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: var(--color-bg-main);
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.375rem 0.375rem;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 0;
}

/* ── Footer (extended) ───────────────────────────────────────────────────── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-copy {
  font-size: 0.85rem;
}
.footer-credit {
  font-size: 0.8rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
}
.footer-nav-link {
  font-size: 0.85rem;
  color: rgba(245, 247, 250, 0.65);
  transition: color var(--transition);
}
.footer-nav-link:hover {
  color: var(--color-secondary-light);
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-socials-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 247, 250, 0.45);
}
.footer-social-icons {
  display: flex;
  gap: 0.6rem;
}

/* Override social-link colours in footer context */
.site-footer .social-link {
  border-color: rgba(245, 247, 250, 0.2);
  background: rgba(245, 247, 250, 0.05);
  color: rgba(245, 247, 250, 0.65);
}
.site-footer .social-link:hover {
  background: rgba(245, 247, 250, 0.12);
  color: var(--color-bg-main);
}

/* ── Contact CTA section (index page) ────────────────────────────────────── */
.contact-cta-section {
  background: var(--color-primary);
  color: var(--color-bg-main);
  padding: 5rem 0;
  margin-top: 4rem;
  text-align: center;
}

.contact-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-cta-section .section-eyebrow {
  color: var(--color-secondary-light);
}

.contact-cta-section .section-heading {
  color: var(--color-bg-main);
  margin-bottom: 0;
}

.contact-cta-copy {
  font-size: 1rem;
  color: rgba(245, 247, 250, 0.7);
  max-width: 28rem;
  line-height: 1.65;
}

.contact-cta-section .btn-primary {
  background: var(--color-secondary);
  color: var(--color-bg-main);
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
}
.contact-cta-section .btn-primary:hover {
  background: var(--color-secondary-light);
}
