/* || GENERAL */
html {
  margin: 0;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;

  --logoGreen: #32979c;
  --logoDkBlue: #153D60;
  --logoLtblue: #00afef;

  --navBarColor: #3D4E60;
  --bodyColor: #758bac;
  --box-shadow: 1px 2px 4px black;

  --logo-height: 140px;
  --logo-height-sm: 100px;
  --logo-height-lg: 160px;
}

body {
  min-height: 100vh;
  background-color: var(--bodyColor);
  margin: 0;
  padding: 0;
}

/* Body / section links */
a {
  color: var(--logoDkBlue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(21, 61, 96, 0.45);
}

a:hover,
a:focus-visible {
  color: #0a2438;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

.row1 a,
.row2 a {
  color: var(--logoDkBlue);
  text-decoration-color: rgba(21, 61, 96, 0.5);
}

h1 {
  margin-top: 1rem;
}

/* || NAV (single block) */
.topnav {
  background-color: var(--navBarColor);
  overflow: hidden;
  width: 100%;
  margin: 0;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.topnav a:hover,
.topnav a:focus-visible {
  background-color: var(--bodyColor);
  color: #fff;
  font-weight: 600;
}

.topnav a.active {
  background-color: var(--bodyColor);
  color: #fff;
}

.topnav .icon {
  display: none;
}

/* || HEADER / FOOTER COLUMNS */
.columns {
  color: white;
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #3D4E60;
  padding: 1rem;
  margin: 0;
  width: 100%;
}

footer {
  position: static;
  width: 100%;
  margin: 0;
  font-size: 1rem;
}

footer .columns {
  padding: 0.65rem 1rem;
}

footer .column2 img {
  height: var(--logo-height-lg);
  width: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

footer .column3 img.dh {
  height: 40px;
  width: auto;
}

.copywright {
  background-color: var(--navBarColor);
  font-size: 0.9rem;
  padding: 0.5rem;
  text-align: center;
  color: var(--logoLtblue);
  box-shadow: 1px 2px 4px black;
  border-top: 1px solid black;
  font-weight: 500;
  margin: 0;
  width: 100%;
}

/* Header + footer links on dark background */
#top a,
footer a,
.columns a {
  color: var(--logoLtblue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 175, 239, 0.5);
  text-underline-offset: 2px;
}

#top a:hover,
#top a:focus-visible,
footer a:hover,
footer a:focus-visible,
.columns a:hover,
.columns a:focus-visible {
  color: #7ecfff;
  text-decoration-color: currentColor;
}

/* Nav must win over .columns a */
.topnav a {
  color: #f2f2f2;
  text-decoration: none;
}

.topnav a:hover,
.topnav a:focus-visible {
  background-color: var(--bodyColor);
  color: #fff;
  text-decoration: none;
}

/* || LISTS */
ul {
  list-style-type: none;
}

li {
  margin: 0.35rem 0;
}

.row1 .right li,
.row2 .right li {
  margin: 0.35rem 0;
}

.row1 .right li a,
.row2 .right li a {
  padding: 0.1rem 0;
  line-height: 1.35;
  display: inline;
}

.row1 .right br {
  line-height: 1.2;
}

.bullet {
  color: var(--logoLtblue);
}

/* || SECTIONS */
.row1,
.row2 {
  background-color: var(--logoGreen);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  border: 2px solid black;
  border-radius: 2px;
  margin: 0.5rem;
  padding: 0.75rem;
  box-sizing: border-box;
}

.row1 .left,
.row1 .right,
.row2 .left,
.row2 .right {
  flex: 0 0 calc(50% - 0.5rem);
  max-width: calc(50% - 0.5rem);
  width: calc(50% - 0.5rem);
  min-width: 0;
  box-sizing: border-box;
}

.row1 .left,
.row2 .left {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.row1 .right,
.row2 .right {
  text-align: left;
  padding-left: 0.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Logos */
.row1 .left img,
.row2 .left img {
  display: block;
  height: var(--logo-height);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.row1 .left img.logo-sm,
.row2 .left img.logo-sm {
  height: var(--logo-height-sm);
}

.row1 .left img.logo-lg,
.row2 .left img.logo-lg {
  height: var(--logo-height-lg);
}

/* Photos (cycling / about) */
.row1 .left img.photo,
.row1 .left img.photo-about,
.row2 .left img.photo,
.row2 .left img.photo-about {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Optional framed logos */
.row1 .left img.framed,
.row2 .left img.framed {
  border-radius: 20%;
  box-shadow: 0 2px 4px black;
}

/* Video / iframe */
.row1 .left iframe,
.row2 .left iframe,
.row1 .left video,
.row2 .left video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* || RESPONSIVE */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
    padding: 14px 16px;
    color: #f2f2f2;
  }

  .topnav a.icon:hover {
    background-color: var(--bodyColor);
    color: #fff;
  }

  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  footer .columns {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }

  footer .column2 {
    display: none;
  }

  footer .column1,
  footer .column3 {
    width: 100%;
    margin: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  footer .column1 {
    order: 1;
  }

  footer .column3 {
    order: 2;
  }

  footer .column3 img.dh {
    max-height: 40px;
    width: auto;
  }

  footer .copywright {
    text-align: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

@media screen and (max-width: 700px) {
  .row1 {
    flex-direction: column;
  }

  .row2 {
    flex-direction: column-reverse;
  }

  .row1 .left,
  .row1 .right,
  .row2 .left,
  .row2 .right {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }
}
