:root {
  /* thickness of the frame */
  --frame-top: 13vh;
  --frame-bottom: 13vh;
  --frame-side: 4vw;
}

/* --- Main Font: Thunder --- */
@font-face {
  font-family: 'Thunder';
  src: url('fonts/Thunder-BoldLC.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Subtext: Raleway Variable (Normal) --- */
@font-face {
  font-family: 'Raleway';
  src: url('fonts/Raleway-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* full variable range */
  font-style: normal;
  font-display: swap;
}

/* --- Subtext: Raleway Variable (Italic) --- */
@font-face {
  font-family: 'Raleway';
  src: url('fonts/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  background: #e8eaf6;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Thunder', sans-serif;
}

body, p, span, li {
  font-family: 'Raleway', sans-serif;
}

/* ==== LOGO IN HEADER === */

.logo-container {
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%); 
  z-index: 1200;
  pointer-events: auto;
}

.logo {
  height: calc(var(--frame-top) * 0.8);
  width: auto;
}

/* === LANGUAGE SWITCH IN TOP-RIGHT CORNER === */

.lang-switch {
  position: absolute;
  top: 50%;
  right: calc(var(--frame-side) + 1rem);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 900;
  pointer-events: auto;
}

.lang-link {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  color: #e8eaf6;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: color 0.25s ease;
}

.lang-link:hover {
  color: #f04f56;
}

.lang-separator {
  color: #102b4e;
  user-select: none;
}

.lang-link.active {
  color: #102b4e;
}

/* === FRAME BARS === */

.frame-bar {
  position: fixed;
  z-index: 900;
  background: transparent;
  
}

.frame-bar.top {
  top: 0;
  left: 0;
  right: 0;
  height: var(--frame-top);
  background: #a4d28a;
}

.frame-bar.bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--frame-bottom);
  background: #a4d28a;
  display: flex;
  align-items: center;
}

.frame-bar.left {
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--frame-side);
  background: #a4d28a;
}

.frame-bar.right {
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--frame-side);
  background: #a4d28a;
}

/* == ORNAMENTS == */


.ornament-layer {
  position: fixed;
  top: var(--frame-top);
  left: var(--frame-side);
  right: var(--frame-side);
  bottom: var(--frame-bottom);
  pointer-events: none;
  z-index: 950;
}

.corner {
  position: absolute;
  pointer-events: none;
  max-width: min(22vw, 260px);
  height: auto;
}


.corner.tl {
  top: -0vh;
  left: -0vw;
}

.corner.tr {
  top: -0vh;
  right: -0vw;
}

.corner.bl {
  bottom: -0vh;
  left: -0vw;
}

.corner.br {
  bottom: -0vh;
  right: -0vw;
}

/* ===PAGE CONTENT ===*/

.page {
  min-height: 100vh;
  background: #e8eaf6; 

  padding:
    calc(var(--frame-top) + 2rem)
    calc(var(--frame-side) + 2rem)
    calc(var(--frame-bottom) + 2rem)
    calc(var(--frame-side) + 2rem);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.heading-img {
  max-width: 500px;
  min-width: 250px;
  width: 20vw;
  height: auto;
  padding-bottom: 20px;
}

.lang-en .heading-img {
  width: 28vw;
  max-width: 650px;  
}

.page p {
  line-height: 1.6;
  font-size: 1vw;
  margin-bottom: 0.75rem;
}

.hero-details { /* detail drawing png */
  width: clamp(250px, 23vw, 400px);
  height: auto;
  margin-top: 1.5rem;
}

/* === FOOTER BUTTON === */

.footer-button-container {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: auto;
}

.footer-btn {
  transition: all 0.25s ease;
  height: calc(var(--frame-bottom) * 0.6);
  width: auto;
}

.footer-btn-link:hover .footer-btn {
  filter: drop-shadow(0px 1px 3px rgba(240, 79, 86, 0.5));
}

.footer-btn-link {
  cursor: pointer;
  user-select: none;
}

.footer-newsletter-link {
  font-size: 0.9rem;
  color: #102b4e;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: color 0.25s ease;
  letter-spacing: 0.9px;
  padding-left: 80px;
}

.footer-newsletter-link:hover {
  color: rgb(240, 79, 86);
}

/* === RESPONSIVE ADJUSTMENTS === */

@media (max-width: 1200px) {
  .page p {
    font-size: 2vw;
  }
}

@media (max-width: 768px) {
  :root {
    --frame-top: 15vh;
    --frame-bottom: 15vh;
    --frame-side: 5vw;
  }
  .frame-bar.bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .footer-newsletter-container {
    order: 2;
    padding-left: 0;
    padding-top: 32px; 
    margin-top: 1rem;
  }
  .footer-newsletter-link {
    padding-left: 20%;
  }

  .footer-button-container {
    order: 1;
    top: 10%;
    margin-bottom: 0.5rem;
  }

  .footer-btn {
    height: calc(var(--frame-bottom) * 0.6);
  }

  .corner.br, .corner.bl {
  position: absolute;
  pointer-events: none;
  max-width: min(42vw, 260px);
  height: auto;
}

  .page p {
    font-size: 3.5vw;
  }

  .hero-details {
    width: clamp(100px, 70vw, 200px);
  }

  .heading-img {
    width: 40vw;
  }

}

@media (max-width: 576px) {

  .logo-container {
    left: calc(var(--frame-side) + 1rem);
    transform: translateY(-50%);
  }

  .logo {
    height: calc(var(--frame-top) * 0.7);
  }

  .page p {
    font-size: 3.5vw;
  }

  .hero-details {
    width: clamp(100px, 70vw, 200px);
  }

  .heading-img {
  width: 40vw;
  
}
}
