
/* =========================================
   BEOTOP INNOVATION AB
   SHARED WEBSITE DESIGN
   ========================================= */

/* COLORS */

:root {
  --navy: #071321;
  --blue: #1F4E79;
  --red: #C00000;
  --white: #f4f7fc;
  --muted: #c4d0df;
  --subtitle: #92bce3;
}

/* GENERAL */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      ellipse at 75% 45%,
      #102b4b 0%,
      transparent 65%
    ),
    var(--navy);

  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

/* =========================================
   PAGE CONTAINER
   ========================================= */

.page {
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 5% 10px;

  display: flex;
  flex-direction: column;
}

/* =========================================
   HEADER - SAME ON ALL PAGES
   ========================================= */

.site-header {
  height: 52px;
  flex: 0 0 52px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* LOGO PLACEHOLDER */

.logo {
  display: block;
  width: 180px;
  height: 45px;
  flex: 0 0 180px;

  border-left: 2px solid var(--red);
  text-decoration: none;
}

.logo {
  border-left: none;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* NAVIGATION */

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.site-nav a {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}


/* Default: light grey */
.site-nav a {
  color: #b8c2cf;
}

/* Hover: white */
.site-nav a:hover {
  color: #ffffff;
}

/* Active page: red, even on hover */
.site-nav a[aria-current="page"],
.site-nav a[aria-current="page"]:hover {
  color: #ff858d;
}


/* =========================================
   INTRO - FIXED TEXT POSITIONS
   ========================================= */

.site-intro {
  position: relative;
  height: 230px;
  flex: 0 0 230px;
  padding: 0;
}

.site-intro h1 {
  position: absolute;
  top: 45px;
  left: 0;

  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0;
}

.site-subtitle {
  position: absolute;
  top: 118px;
  left: 0;

  font-size: clamp(17px, 2vw, 28px);
  line-height: 1.3;
  color: var(--subtitle);
  margin: 0;
}

.site-motto {
  position: absolute;
  bottom: 0px;
  left: 3%;

  font-size: clamp(11px, 1vw, 14px);
  font-style: italic;
  color: #ffffff;
  margin: 0;
}

/* =========================================
   LASER - SAME ON ALL PAGES
   ========================================= */

.site-laser {
  position: relative;

  width: 94%;
  height: 3px;
  flex: 0 0 3px;

  margin: 10px auto 20px;

  background: #ff5266;

  box-shadow:
    0 0 8px 2px #ff3045,
    0 0 22px 5px rgba(255,0,35,.65);
}

.site-laser::after {
  content: "";
  position: absolute;

  left: 85%;
  top: 50%;

  width: 5px;
  height: 5px;
  border-radius: 50%;

  transform: translate(-50%, -50%);

  background: #ffe8eb;

  box-shadow:
    0 0 10px 5px rgba(255,150,160,.6),
    0 0 28px 12px rgba(255,20,45,.45),
    0 0 55px 24px rgba(220,0,30,.18);
}

/* =========================================
   MAIN CONTENT - SHARED
   ========================================= */

.site-main {
  flex: 1;
  min-width: 0;
}

/* =========================================
   FOOTER - SAME ON ALL PAGES
   ========================================= */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;

  margin-top: 16px;
  padding: 10px 0 4px;

  border-top: 1px solid #233950;

  color: #aab9cb;
  font-size: 12px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* SHORT DESKTOP WINDOWS */

@media (min-width: 701px) and (max-height: 690px) {

  .site-intro {
    height: 205px;
    flex-basis: 205px;
  }

  .site-intro h1 {
    top: 24px;
  }

  .site-subtitle {
    top: 94px;
  }

  .site-laser {
    margin-bottom: 12px;
  }

  .site-footer {
    margin-top: 10px;
  }

}

/* MOBILE AND NARROW WINDOWS */

@media (max-width: 700px) {

  .page {
    padding: 18px 6%;
  }

  .site-header {
    height: auto;
    flex-basis: auto;

    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    height: 42px;
    flex: 0 0 42px;
  }
 
  .site-nav {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .site-nav a {
    font-size: 13px;
  }

.site-intro {
  position: static;
  height: auto;
  min-height: 0;
  flex-basis: auto;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;

  padding: 30px 0 0;
}

  .site-intro h1,
  .site-subtitle,
  .site-motto {
    position: static;
    margin: 0;
  }

  .site-intro h1 {
    font-size: clamp(28px, 7vw, 42px);
  }

  .site-motto {
    margin-top: 12px;
    margin-left: 3%;
    font-size: 12px;
  }

  .site-laser {
    margin-top: 9px;
  }

  .site-footer {
    flex-direction: column;
    gap: 5px;
  }

}
