/* Resets */

html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}

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

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

ol, ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Variables */

:root {
  --footer-height-min: 20px;
  --footer-height: 50px;

  --main-column-width: 800px;

  --color-main-bg: white;
  --color-light: #FAF7F0;
  --color-accent-light: #D8D2C2;
  --color-accent-dark: #B17457;
  --color-dark: #4A4947;  
  --color-very-dark: #323232;  
  --color-vibrant: #33B3D7;
  --color-vibrant-dark: #15586A;

  --color-links-normal: black;
  --color-links-visited: black;

}

/* Styles */

body {
  background-color: var(--color-main-bg);
  display: flex;
  flex-direction: column;  
  min-height: 100vh;
}

main {
  height: 100%;
  padding-top: 80px;
  margin-top: 0;
  flex: 1;
}

.title-underline {
  border-bottom: 2px solid var(--color-accent-light);
}

h1, h2, h3, h4 {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

a {
  color: var(--color-links-normal);
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a.nav-link {
  padding: 2px 4px 2px 4px;
}

a.nav-link:hover {
  background-color: var(--color-vibrant);
  color: var(--color-light);
  text-decoration: none;
  border-radius: 2px;
}

a:visited {
  color: var(--color-links-visited);
}

a.bottom-link {
  color: var(--color-light);
}

a.home-link {
  text-decoration: none;
  color: black;
}

header {
  background: linear-gradient(to bottom, white 85%, rgba(255, 255, 255, 0) 100%);
  position: fixed;
  width: 100vw;
}

h2.header-title {
  font-size: 24pt;
  z-index: 2;
}

div#header-envelope {
  padding: 1rem 0 1rem 0;
  height: 100px;
  background-color: var(--color-accent-light);
  clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 0% 100%);
}

div.header-content {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-between;
}

nav {
  display: flexbox;
  gap: 0.5em;
}

footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    font-size: smaller;
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: var(--footer-height-min);
    width: 100%;
    height: var(--footer-height);
}

span.customer {
  font-weight: 700;
}

div.example {
  background-color: var(--color-light-bg);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 1rem;
  width: 80%;
}

h3.example-title {
  font-size: 18pt;
  color: var(--color-vibrant-dark);
  font-weight: bold;
}

span.theme-tag {
  padding: 2px;
  background-color: var(--color-light);
  color: var(--color-vibrant-dark);
  border-radius: 4px;
  font-style: italic;
  font-size: small;
}

p {
  margin-top: 0.5rem;
  margin-bottom: 0.125rem;
}

.about-box {
  display: flex;
  flex-direction: row;
  margin-bottom: 40px;
  margin-top: 20px;
}

.half-page {
    max-width: 60vw !important;
}

.space-on-left {
  margin-left: 20vw;
}


/* small width / mobile */
@media screen and (max-width: 900px) {

  .article-box {
    width: 80%;
  }  

  summary {
    font-size: 14pt;
    cursor: pointer;
  }

  p.in-summary {
      margin-left: 0.5rem;
  }

  .nav-link {
    margin-left: 0 !important;
    font-size: smaller;
  }

  div.example {
    width: 100%;

  }
  div.service {
    max-width: 100% !important;
  }

  .text-photo-split {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
  }
  .photo-split {
    width: 100% !important;
    text-align: center;
  }
  .text-split {
    width: 100% !important;
  }  

  h2.header-title {
    font-size: 18pt;
  }

  div.central-block {
    margin-top: 2vh!important;
    width: 100% !important;
  }
  div.main-block {
    margin-top: 2vh!important;
    width: 100% !important;
  }

  .grid-services {
    grid-template-columns: 1fr !important;
    row-gap: 0.75rem !important;
  }

  .main-column {
    margin-left: 10vw !important;
    margin-right: 10vw !important;
  }


}

/*  Home */

p.home-main {
  font-size: 14pt;
  color: var(--color-dark);
}

h2.home-section-title {
  text-align: center;
}

p.home-section {
  text-align: justify;
}

.text-photo-split {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.photo-split {
  min-width: 30%;
}
.text-split {
  width: 60%;
}

section.main-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

section.bg-dark {
  background-color: var(--color-accent-dark);
  color: var(--color-light);
}

section.bg-light {
  background-color: var(--color-light);
  color: var(--color-dark);
}

.main-column {
  max-width: var(--main-column-width);
  margin:auto;
}

img.img-rounded {
  border-radius: 4%;
}

a.button {
  background-color: var(--color-vibrant-dark);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  text-decoration: none;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-family: 'Courier New', Courier, monospace;
  border-radius: 2px;
}

a.button:hover {
  background-color: var(--color-vibrant);
}

.grid-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.5rem;
  row-gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

div.service {
  min-width: 200px;
  background-color: var(--color-accent-light);
  padding: 0.25rem 1rem 1rem 1rem;
  border-bottom: 2px solid var(--color-accent-dark);
}

h3.service-title {
  font-size: 18pt;
  color: var(--color-dark);
  font-weight: bold;
}

p.service-text {
  font-size: 14pt;
  color: var(--color-dark);
}

#home-main {
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 15%, white 45%), url("/assets/img/climb_bw.webp") no-repeat;
  background-position: top 30% right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

div.central-block {
  margin: auto;
  width: 60%;
}

div.main-block {
  margin-top: 5vh;
  margin-bottom: 5rem;
  width: 60%;
}


div.fill-height {
  min-height: 70vh;
  height: 100%;
}

div.fill-height-max {
  min-height: 85vh;
  height: 100%;
}

div.main-top {
  margin-top: 40px;
  padding-bottom: 20px;
  background-color: var(--color-main-bg);
}