
@font-face {
  font-family: "Montreal Serial";
  src: url("../static/montreal-serial-regular/montreal-serial-regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

h1,
h2,
h3 {
  text-align: center;
}

body {
  font-family: "Montreal Serial", "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}
header {
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  height: 80px;
}
footer {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}
.header-inner,
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 40px;
  flex: 1 0 auto;
}
body {
  background-size: cover;
  background-image: url("../images/background.png");
}
.hero,
.cards {
  width: calc(80% - 40px);
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

@media (max-width: 600px) {
  .header-inner,
  main {
    max-width: 90vw;
    padding: 1rem 0;
  }
  .hero,
  .cards {
    width: 90vw;
    padding: 0;
  }
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer {
  border-top: 1px solid #e5e5e5;
  background: #fafafa;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1000px;
  padding: 1rem 2rem 0;
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #222;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
}

.footer-meta {
  color: #666;
  margin-top: 4px;
}

.firstElement {
  margin-top: 100px;
  /* padding-top: clamp(50px, 10vw, 110px); */
}

/* --------------------
   Burger button
--------------------- */
.burger {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.burger svg line {
  stroke: #222;
  stroke-width: 8;
  stroke-linecap: round;
  transition: transform 0.3s ease, opacity 0.2s ease;

  transform-box: fill-box;
  transform-origin: center;
}

/* Animate burger → close */
.burger.open svg line:nth-child(1) {
  transform: translateY(20px) rotate(45deg);
}
.burger.open svg line:nth-child(2) {
  opacity: 0;
}
.burger.open svg line:nth-child(3) {
  transform: translateY(-20px) rotate(-45deg);
}

/* --------------------
   Mobile navigation
--------------------- */
@media (max-width: 600px) {
  .burger {
    display: block;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid #e5e5e5;
    pointer-events: none;
  }

  .header-nav.open {
    max-height: 400px;
    pointer-events: auto;
  }

  .header-nav a {
    padding: 1rem;
    border-top: 1px solid #eee;
  }
}

/* --------------------
   Scroll lock
--------------------- */
.no-scroll {
  overflow: hidden;
}

/* --------------------
   Reduced motion
--------------------- */
@media (prefers-reduced-motion: reduce) {
  .header-nav {
    transition: none;
  }
  .burger svg line {
    transition: none;
  }
}

.header-nav {
  display: flex;
  gap: 1rem;
  line-height: 1;
}

.header-nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  position: relative;
}
.header-nav a:not(.active):hover {
  text-decoration: underline;
}
.header-nav a.active {
  
  font-weight: 700;
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: black;
}


.text-image-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.text-block {
  flex: 1;
}

.profile-image {
  display: block;
  width: 150px;
  max-width: 40%;
  height: auto;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) {
  .text-image-row {
    flex-direction: column;
    align-items: center;
  }

  .profile-image {
    width: 80%;
    max-width: 80%;
  }
}
