@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,300italic,400italic");
@import url("fontawesome-all.min.css");

html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  -webkit-text-size-adjust: none;
}

mark {
  background-color: transparent;
  color: inherit;
}

input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input, select, textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  appearance: none;
}

/* Basic */
html {
  box-sizing: border-box;
}

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

body {
  background-image: url("images/overlay.png"), url("images/bg.jpg");
  background-repeat: repeat, no-repeat;
  background-size: auto, 100% 100%;
  background-attachment: fixed;
  overflow-y: scroll;
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after {
  -moz-animation: none !important;
  -webkit-animation: none !important;
  -ms-animation: none !important;
  animation: none !important;
  -moz-transition: none !important;
  -webkit-transition: none !important;
  -ms-transition: none !important;
  transition: none !important;
}

body, input, textarea, select {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 300;
  color: #777777;
  font-size: 20pt;
  line-height: 1.75em;
}

@media screen and (max-width: 1680px) {
  body, input, textarea, select {
    font-size: 15pt;
  }
}

@media screen and (max-width: 1280px) {
  body, input, textarea, select {
    font-size: 14pt;
  }
}

@media screen and (max-width: 736px) {
  body, input, textarea, select {
    font-size: 12pt;
  }
}

@media screen and (max-width: 420px) {
  body, input, textarea, select {
    font-size: 11pt;
  }
}

strong, b, h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  color: #363636;
}

h1 {
  font-size: 2.4em;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 1.8em;
  letter-spacing: -0.015em;
}

h3, h4, h5, h6 {
  font-size: 1.25em;
  letter-spacing: -0.015em;
}

@media screen and (max-width: 736px) {
  h1 {
    font-size: 1.75em;
  }

  h2 {
    font-size: 1.375em;
  }

  h3, h4, h5, h6 {
    font-size: 1em;
  }
}

blockquote {
  border-left: solid 0.5em #ddd;
  padding: 1em 0 1em 2em;
  font-style: italic;
}

em, i {
  font-style: italic;
}

hr {
  border: 0;
  border-top: solid 1px #ddd;
  padding: 1.5em 0 0 0;
  margin: 1.75em 0 0 0;
}

sub {
  position: relative;
  top: 0.5em;
  font-size: 0.8em;
}

sup {
  position: relative;
  top: -0.5em;
  font-size: 0.8em;
}

br.clear {
  clear: both;
}

p, ul, ol, dl, table, blockquote, form {
  margin-bottom: 2em;
}

/* Section/Article */
section, article {
  margin-bottom: 3em;
}

section> :last-child, section:last-child, article> :last-child, article:last-child {
  margin-bottom: 0;
}

header {
  margin: 0 0 1.5em 0;
}

header>p {
  margin: 0.5em 0 0 0;
  color: #aaa;
}

@media screen and (max-width: 736px) {
  header {
    margin: 0 0 1em 0;
  }
}

/* Icons */
.icon {
  text-decoration: none;
  position: relative;
  text-decoration: none;
}

.icon:before {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  text-transform: none !important;
  font-family: 'Font Awesome 5 Free';
  font-weight: 400;
}

.icon.solid:before {
  font-weight: 900;
}

.icon.brands:before {
  font-family: 'Font Awesome 5 Brands';
}

.icon:before {
  line-height: inherit;
}

.icon>.label {
  display: none;
}

/*  Language Switcher */
#topnav {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px 0 0;
  font-size: 0.9em;
  transition: all 0.3s ease;
  pointer-events: auto;
}

/* Nav */
#nav {
  text-align: center;
  height: 4.25em;
  cursor: default;
}

#nav a {
  position: relative;
  display: inline-block;
  color: #ffffff;
  width: 1em;
  height: 1em;
  line-height: 0.9em;
  font-size: 2.5em;
  margin: 0 0.25em 0 0.25em;
  opacity: 0.35;
  outline: 0;
  -moz-transition: opacity .25s ease-in-out;
  -webkit-transition: opacity .25s ease-in-out;
  -ms-transition: opacity .25s ease-in-out;
  transition: opacity .25s ease-in-out;
}

#nav a.icon:before {
  padding-right: 0;
}

#nav a:before {
  font-size: 0.8em;
}

#nav a:after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  bottom: -0.75em;
  margin-left: -0.5em;
  border-bottom: solid 0em #ffffff;
  border-left: solid 0.5em transparent;
  border-right: solid 0.5em transparent;
  -moz-transition: border-bottom-width .25s ease-in-out;
  -webkit-transition: border-bottom-width .25s ease-in-out;
  -ms-transition: border-bottom-width .25s ease-in-out;
  transition: border-bottom-width .25s ease-in-out;
}

#nav a span {
  display: block;
  position: absolute;
  background: #222222;
  color: #ffffff;
  top: -2.75em;
  font-size: 0.3em;
  height: 2.25em;
  line-height: 2.25em;
  left: 50%;
  opacity: 0;
  -moz-transition: opacity .25s ease-in-out;
  -webkit-transition: opacity .25s ease-in-out;
  -ms-transition: opacity .25s ease-in-out;
  transition: opacity .25s ease-in-out;
  width: 5.5em;
  margin-left: -2.75em;
}

#nav a span:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -0.4em;
  left: 50%;
  margin-left: -0.6em;
  border-top: solid 0.6em #222222;
  border-left: solid 0.6em transparent;
  border-right: solid 0.6em transparent;
}

#nav a:hover {
  opacity: 1.0;
}

#nav a:hover span {
  opacity: 1.0;
}

#nav a.active {
  opacity: 1.0;
}

#nav a.active:after {
  border-bottom-width: 0.5em;
}

@media screen and (max-width: 980px) {
  #nav a span {
    display: none;
  }
}

/* Wrapper */
#wrapper {
  width: 45em;
  margin: 0 auto;
  margin-top: 40px;
  min-height: 100vh;
  max-width: 100%;
  padding: 2em 0;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -moz-justify-content: top;
  -webkit-justify-content: top;
  -ms-justify-content: top;
  justify-content: top;
  -moz-transition: opacity 1s ease-in-out;
  -webkit-transition: opacity 1s ease-in-out;
  -ms-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
}

body.is-preload #wrapper {
  opacity: 0;
}

@media screen and (max-width: 1280px) {
  #wrapper {
    max-width: calc(100% - 6em);
  }
}

@media screen and (max-width: 980px) {
  #wrapper {
    max-width: calc(100% - 8em);
  }
}

@media screen and (max-width: 736px) {
  #wrapper {
    max-width: calc(100% - 2em);
  }
}

@media screen and (max-width: 360px) {
  #wrapper {
    max-width: 100%;
  }
}

/* Main */
#main {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #ffffff;
  box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.25);
  -moz-transition: min-height 0.5s ease-in-out, max-height 0.5s ease-in-out;
  -webkit-transition: min-height 0.5s ease-in-out, max-height 0.5s ease-in-out;
  -ms-transition: min-height 0.5s ease-in-out, max-height 0.5s ease-in-out;
  transition: min-height 0.5s ease-in-out, max-height 0.5s ease-in-out;
}

#main>.panel {
  -moz-transition: opacity 0.25s ease-in-out;
  -webkit-transition: opacity 0.25s ease-in-out;
  -ms-transition: opacity 0.25s ease-in-out;
  transition: opacity 0.25s ease-in-out;
  margin-bottom: 0;
  position: relative;
  padding: 3.5em 2.5em 2.5em 2.5em;
  width: 100%;
}

#main>.panel.inactive {
  opacity: 0;
}

@media screen and (max-width: 736px) {
  #main>.panel {
    padding: 2em 1.5em 1.5em 1.5em;
  }
}

#main>.panel.intro {
  padding: 0;
  height: 20em;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-direction: row;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  text-align: center;
}

#main>.panel.intro .pic {
  text-decoration: none;
  position: relative;
  -moz-flex-grow: 0;
  -webkit-flex-grow: 0;
  -ms-flex-grow: 0;
  flex-grow: 0;
  -moz-flex-shrink: 0;
  -webkit-flex-shrink: 0;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
  width: 17em;
  height: 100%;
}

#main>.panel.intro .pic:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background: url("images/overlay.png");
  width: 100%;
  height: 100%;
  z-index: 1;
}

#main>.panel.intro .pic img {
  position: relative;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -moz-object-fit: cover;
  -webkit-object-fit: cover;
  -ms-object-fit: cover;
  object-fit: cover;
  -moz-object-position: center;
  -webkit-object-position: center;
  -ms-object-position: center;
  object-position: center;
}

#main>.panel.intro .pic .arrow {
  display: block;
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -1.375em;
  width: 2.75em;
  height: 2.75em;
  background: #000;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  text-align: center;
  line-height: 2.75em;
  font-size: 1.5em;
  z-index: 1;
  -moz-transition: width .15s ease-in-out, padding-right .15s ease-in-out;
  -webkit-transition: width .15s ease-in-out, padding-right .15s ease-in-out;
  -ms-transition: width .15s ease-in-out, padding-right .15s ease-in-out;
  transition: width .15s ease-in-out, padding-right .15s ease-in-out;
}

#main>.panel.intro .pic .arrow:before {
  position: relative;
  padding-right: 0;
  top: 0.125em;
}

#main>.panel.intro .pic .arrow span {
  display: block;
  text-indent: -9999px;
}

#main>.panel.intro .pic:hover .arrow {
  width: 3em;
  padding-right: 0.25em;
}

#main>.panel.intro header {
  -moz-flex-grow: 1;
  -webkit-flex-grow: 1;
  -ms-flex-grow: 1;
  flex-grow: 1;
  -moz-flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -ms-flex-shrink: 1;
  flex-shrink: 1;
  padding: 3.5em 2.5em;
  margin-bottom: 0;
  width: 100%;
}

#main>.panel.intro header h1 {
  line-height: 1.25em;
  margin-bottom: 0;
}

#main>.panel.intro header p {
  letter-spacing: -0.015em;
  font-size: 1.25em;
  margin: 0.25em 0 0 0;
}

@media screen and (max-width: 980px) {
  #main>.panel.intro {
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    height: auto;
  }

  #main>.panel.intro .pic {
    height: 25em;
    width: 100%;
  }

  #main>.panel.intro header {
    padding: 4em;
  }
}

@media screen and (max-width: 736px) {
  #main>.panel.intro .pic {
    height: 20em;
  }

  #main>.panel.intro header {
    padding: 2.75em 2em 2.5em 2em;
  }

  #main>.panel.intro header p {
    font-size: 1em;
    margin: 0.25em 0 0 0;
  }
}

/* Footer */
#footer {
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 2em 0 0 0;
  font-size: 0.75em;
}

#footer a {
  color: #ddd;
  color: rgba(255, 255, 255, 0.65);
  -moz-transition: color .25s ease-in-out;
  -webkit-transition: color .25s ease-in-out;
  -ms-transition: color .25s ease-in-out;
  transition: color .25s ease-in-out;
}

#footer a:hover {
  color: white;
}

#footer .copyright {
  list-style: none;
  padding-left: 0;
}

#footer .copyright li {
  display: inline-block;
  padding-left: 1em;
  margin-left: 1em;
  border-left: solid 1px rgba(255, 255, 255, 0.25);
  line-height: 1;
}

#footer .copyright li:first-child {
  padding-left: 0;
  margin-left: 0;
  border-left: 0;
}

@media screen and (max-width: 736px) {
  #footer .copyright li {
    padding-left: 0.5em;
    margin-left: 0.5em;
  }
}

/* Hover effect */
#topnav:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

/* Language select inside topnav */
#topnav select#language-select {
  width: 140px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  color: #333;
  font-size: 0.9em;
  cursor: pointer;
  outline: none;
  border: 1px solid #ccc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#topnav select#language-select:hover,
#topnav select#language-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Responsive: Smaller padding on mobile */
@media (max-width: 480px) {
  #topnav {
    top: 8px;
    right: 8px;
    min-width: 140px;
  }

  #topnav select#language-select {
    width: 120px;
    font-size: 0.85em;
    padding: 6px 8px;
  }
}

:root{
  --menu-right: 16px;
  --menu-top: 12px;
  --icon-size: 48px;
  --bar-thickness: 3px;
  --icon-gap: 7px;
  --stagger-step: 0.04s;
}

/* container for hamburger + icons */
#menu-ui{
  position: fixed;
  top: var(--menu-top);
  right: var(--menu-right);
  z-index: 3002;              /* above overlay */
  display: flex;
  flex-direction: column;
  align-items: center;        /* critical: centers centers of hamburger + icons on same vertical axis */
  gap: 8px;
  pointer-events: none;       /* disable unless open or on hamburger/icons */
}

/* hamburger button */
#hamburger {
  width: var(--icon-size);
  height: var(--icon-size);
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

#hamburger span {
  position: absolute;
  left: 50%;
  width: 65%;
  height: var(--bar-thickness);
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);       
  transition: transform .25s ease, opacity .25s ease;
}

/* position three bars: top, middle, bottom */
#hamburger span:nth-child(1) { top: 30%; }
#hamburger span:nth-child(2) { top: 50%; }
#hamburger span:nth-child(3) { top: 70%; }

/* animate into X */
#hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}
#hamburger.active span:nth-child(2) {
  opacity: 0;
}
#hamburger.active span:nth-child(3) {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}



/* fullscreen overlay with blur/darken */
#menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 2500;             /* below menu-ui so icons/hamburger stay interactive above blur */
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;      /* only when open does it capture clicks */
}
#menu-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* icon column (directly under hamburger) */
#mobile-icons{
  pointer-events: none;      /* allow clicks only on child controls when open */
  display: flex;
  flex-direction: column;
  align-items: center;       /* ensures all icon centers lie on same vertical line */
  gap: var(--icon-gap);
  margin-top: 6px;           /* small gap beneath hamburger */
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
  z-index: 3003;
}

/* show when open */
#menu-ui.open #mobile-icons{
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}

/* menu items = same size as hamburger */
.menu-item,
.globe-wrapper{
  width: var(--icon-size);
  height: var(--icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
}

/* when menu open icons animate into place; stagger delay applied inline by JS */
#menu-ui.open .menu-item{
  opacity: 1;
  transform: translateY(0);
}

/* remove any text label that might remain */
.menu-item span { display: none !important; }

/* globe wrapper that shows an icon but places a native select above it (transparent) */

.globe-icon{
  pointer-events: none; /* the native select sits on top and receives clicks */
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #fff;
  font-size: var(--icon-font-size);
}

/* globe wrapper: svg visible, select overlay invisible */
.globe-wrapper svg{
  width: 70%;
  height: 70%;
  fill: #fff;
  pointer-events: none;
}
.mobile-select{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* small visual focus for keyboard users (optional) */
.menu-item:focus, .mobile-select:focus{
  outline: 2px solid rgba(255,255,255,0.14);
  outline-offset: 2px;
}

/* responsive: show hamburger only on <= 980px */
@media screen and (max-width: 980px) {
  #nav, #topnav { display: none; }
  #menu-ui { display: flex; }
}

/* hide on larger screens */
@media screen and (min-width: 981px) {
  #menu-ui { display: none; }
}
