@font-face {
  font-family: 'Routed Gothic';
  src: url('../fonts/RoutedGothic.woff2') format('woff2'),
  url('../fonts/RoutedGothic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Routed Gothic';
  src: url('../fonts/RoutedGothic-Half-Italic.woff2') format('woff2'),
  url('../fonts/RoutedGothic-Half-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}


/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #F04800; /* Primary color for links and buttons */
  --secondary-color: var(--primary-color); /* Secondary color for accents */
  --background-color: #FFE0E0; /* Background color */

  --spacing-sm: 0.5rem; /* Small spacing */
  --spacing-md: 1rem; /* Medium spacing */
  --spacing-lg: 2rem; /* Large spacing */
}

html {
  scroll-behavior: smooth;
  font-size: 160%;
  color: var(--primary-color);
  background-color: var(--background-color);

  @media (max-width: 1000px) {
    font-size: 120%;
  }
}


body {
  font-family: 'Routed Gothic', sans-serif !important;
  line-height: 1.3;
  letter-spacing: -0.03em;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  background-color: var(--background-color);

  &.loaded {
    opacity: 1;
    transition: opacity 0.2s ease-out;
  }
}

p, h1, h2, h3, h4, h5, h6, button {
  font-size: 1rem !important;
}

button {
  all: unset;
}

p {
  margin-bottom: .5rem;
}

a {
  color: var(--secondary-color);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 6%;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  text-decoration-style: solid;
}

hr {
  margin: 1rem 0;
  border: none;
  border-top: 2px dashed var(--primary-color);
  max-width: 20rem;
}

/* Fixed left header layout */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 40vw;
  height: 100vh;
  z-index: 1000;
  overflow-y: auto;
  color: var(--primary-color);
}

.header-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100%;
}

.header-logo img {
  max-width: 200px;
  height: auto;
}

.header-title h1 {
  font-size: 2rem;
  margin: 0;
}

.header-title a {
  text-decoration: none;
  color: var(--primary-color);
}

.bottom {
  justify-self: end;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  max-width: 20rem;
}

.header-address {
  margin-top: var(--spacing-md);
}

.header-nav a, .mobile-nav a {
  text-decoration: none;

  &:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
  }

  &[aria-current] {
    text-decoration: underline;
    text-decoration-style: solid;
  }
}

.header-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Language switcher styles */
.language-switcher,
.mobile-language-switcher {
  /* Same styling as nav items */
}

.language-link.current-lang,
.mobile-language-link.current-lang {
  text-decoration: underline;
  text-decoration-style: solid;
}

/* Main content area */
.main-content {
  margin-left: 40vw;
  padding: var(--spacing-md);
  min-height: 100vh;
}

.main-content li {
  margin-left: 1.5rem;
}

.page-title {
  display: none;
}

/* Home page specific styles */
.home-content, .page-content {
  max-width: 800px;
}

.home-content ul, .home-content ol,
.page-content ul, .page-content ol {
  margin: .5rem 0;
  padding-left: 1.5rem;
}

/* Ensure ordered lists show numbers */
.main-content ol,
.page-content ol,
.home-content ol {
  list-style-type: decimal;
}

/* Ensure unordered lists show bullets */
.main-content ul,
.page-content ul,
.home-content ul {
  list-style-type: disc;
}

/* Reset margin for list items to avoid double spacing */
.main-content ol li,
.main-content ul li,
.page-content ol li,
.page-content ul li,
.home-content ol li,
.home-content ul li {
  margin-left: 0;
  margin-bottom: 0.5rem;
}

.home-content li {
  margin-bottom: 0.5rem;
}

.content-blocks {
  * {
    font-size: .8rem !important;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem;

    * {
      font-size: 1rem !important;
    }
  }
}

/* Mobile burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: 0.3s;
}

.mobile-logo {
  display: none;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--background-color);
  z-index: 2000;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu-content {
  background-color: var(--primary-color);
  color: var(--background-color);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100%;

  a {
    color: var(--background-color);
  }

}

.close-menu {
  color: var(--background-color);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-bottom {
  justify-self: end;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.mobile-header-logo img {
  max-width: 120px;
  height: auto;
}

.mobile-header-address {
  margin-top: var(--spacing-md);
}

/* Responsive design */
@media (max-width: 1000px) {
  .site-header {
    width: 100vw;
    height: auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .burger-menu {
    display: flex;
  }

  .mobile-logo {
    display: block;
  }

  .mobile-logo img {
    max-height: 40px;
  }

  .header-nav,
  .bottom {
    display: none;
  }

  .main-content {
    margin-left: 0;
    min-height: auto;
  }

  .page-title {
    display: block;
    margin-bottom: 1.5rem;
  }

  .header-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
