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

@font-face {
    font-family: "PlayfairDisplay";
    src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf");
    font-family: "SourceSans3";
    src: url("fonts/SourceSans3-VariableFont_wght.ttf");
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: url('img/backgroundimagecolored.jpg') no-repeat center center fixed;
  background-size: cover;
  z-index: -1;
  filter: brightness(1.0);
}

header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.logo-box {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  
}
.logo-box img {
  width: 20rem;
  max-width: 100%;
  height: auto;
  display: block;
}


main {
  width: 100%;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

h1, .subtitle {
  max-width: 80vw;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}


h1 {
  font-size: 8rem;
  font-family: "PlayfairDisplay";
  font-weight: normal;
  letter-spacing: 0.01em;
  margin-left: 10vw;
  margin-right: 10vw;
  margin-bottom: 1vh;
  /*line-height: 1.1;*/
}

.subtitle {
  margin-top: 0;
  font-size: 2rem;
  color: #BD9D4F;
  font-family: "SourceSans3";
  font-weight: 400;
  margin-left: 10vw;
  margin-right: 10vw;
}

footer {
  font-family: "SourceSans3";
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  text-align: center;
  padding: 1vw 0 1vw 0;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  background: transparent;
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  margin: 0 0.2em;
}
footer a:hover {
  color: #BD9D4F;
}


.modal {
  display: none; 
  position: fixed; z-index: 1001;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  color: #222;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 80vh;
  width: 800px;
  padding: 2em 1.5em 1.5em 1.5em;
  position: relative;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  overflow-y: auto;
}

.modal h2 {
  font-family: "SourceSans3";
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.6em;
}

.modal-body {
  font-family: "SourceSans3";
  font-size: 1em;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 1em; right: 1em;
  background: none; border: none;
  font-family: "SourceSans3";
  font-size: 2em;
  color: #c4a23e;
  cursor: pointer;
}


@media (max-width: 600px), (orientation: portrait) {
  .logo-box {
    padding: 1.2rem 1.875rem 1.5rem 1.875rem;
    border-radius: 0 0 0.4rem 0.4rem;
  }
  .logo-box img {
    width: 15rem;
    max-width: 100%;
  }
  main {
    top: 52%;
  }
  
  h1 {
    font-size: 4.5rem;
    line-height: 1.1;
  }
  
  .subtitle {
    font-size: 1.75rem;
    margin-top: 5vw;
    line-height: 1.25;
  }
  
  footer {
    font-size: 1.25rem;
  }
  
  .modal-content {
    width: 96vw;
    max-height: 80vh;
    padding: 1.2em 0.7em 1em 0.7em;
  }
}


/* Hide scrollbars on mobile (optional) */
body::-webkit-scrollbar { display: none; }