@import './includes/footer.css';
@import './includes/top-menu.css';
@import './upplev.css';

:root {
    --ff-primary: 'Montserrat', sans-serif;
    --clr-accent: hsl(207, 84%, 27%);
    --clr-steel: #BDD2DC;
    --clr-cerulean: #9bb7d4;
    --clr-french-blue: #0072b5;
    --clr-ultimate-grey: #666666;
    --clr-inkwell: #363945; /*RGB 54 57 69*/
    --clr-primary-text: var(--clr-inkwell);
    --clr-hover-grey: #f5f5f5;
    font-size: 16px;
    --mob-side-margin: 0.5rem;
    --mob-top-margin: 2rem;
    --mob-bot-margin: 2rem;
    --desk-top-margin: 5rem;
    --desk-bot-margin: 5rem;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

p {
    font-size: 1.125rem;
    max-width: 70ch;
    line-height: 1.6;
}

img,
picture {
  max-width: 100%;
  display: block;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

input[type=checkbox] {
    accent-color: var(--clr-inkwell);
	margin-left: 10px
}

body {
    color: var(--clr-inkwell);
    background: white;
    font-family: var(--ff-primary);
    font-size: 1rem;
}

a {
  color: var(--clr-primary-text);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat';
}

h1 {
    font-size: 1.625rem;
    margin-bottom: 1em;
}

h2 {
    font-size: 1.5rem;
}

h2, h3 {
  margin-bottom: .5em;
}

.bolder {
    font-weight: bolder;
}


.block-text table {
    max-width: 70ch;
    width: auto !important;
    height: auto !important;
    font-size: .8rem;
    overflow-x: hidden;
}

.block-text p,
.block-text div {
    font-size: 1.125rem !important;
    font-family: 'Montserrat' !important;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 70ch;
}

.container {
    margin-left: auto;
    margin-right: auto;
}

.emphasis {
    font-weight: 500;
}
   
.card-grid-container {
  margin: 3rem 0;
  display: grid;
}

.card-grid-title {
    display: flex;
    font-weight: 600;
    background: var(--clr-inkwell);
    padding: 1rem;
    margin-bottom: .5rem;
}

.card-grid-title p {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 auto;
    letter-spacing: 1px;
    color: white;
}

.card-grid-footer {
    display:grid;
    column-gap: 3rem;
    row-gap: 1.5rem;
    align-items: center;
    justify-items: center;
    background: var(--clr-inkwell);
    padding: 1rem;
    margin-top: 3rem;
    color: white;
}
.card-grid-footer h2,
.card-grid-footer a {
    color: white;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.card-grid-footer a:hover {
    transform: scale(1.05);
}

.card-grid-footer h2 {
    font-weight: 600;
}
    .card-grid {
        margin-top: 0;
        display: grid;
        column-gap: 3rem;
        row-gap: 4rem;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

.card {
    background: white;
    margin-left: .5rem;
    margin-right: .5rem;
    border-radius: .25rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.1);
}

.card__img__container {
  position: relative;
  overflow: hidden;
}

.card__img {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    transition: .25s ease;
}

.card:hover .card__img {
  transform: scale(1.025);
  transition: .25s ease;
}

.card__img__text {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: inherit;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.card__content * {
    font-family: 'Montserrat' !important;
}

.card__content *:not(h2) {
    font-size: 1.125rem !important;
}

.card__title {
    font-weight: 600;    
}

.card-text-wrapper {
    padding: 1rem;
}

.menu-placeholder {
  height: 55px;
}

.header {
    margin-top: var(--mob-top-margin);
    margin-left: var(--mob-side-margin);
    margin-right: var(--mob-side-margin);
    word-break: break-word;
}

.center-header {
    display: grid;
    justify-items: center;
}

.contact-form-wrapper {
    margin-top: 4rem;
}

.contact-form {
    margin-top: 1rem;
    display: grid;
}

.koll {
    display: none;
}

label {
    margin-left: 2px;
    font-size: .875rem;
}

* + label {
    margin-top: 1rem;
}

input {
    margin-top: 0.125rem;
    padding: 0 1rem;
    min-height: 2.75rem;
    font-family: 'Montserrat';
    font-size: .8rem;
}

.validated:invalid {
    border: 1px solid red;
}

textarea {
    margin-top: 0.125rem;
    padding: 1rem;
    font-family: 'Montserrat';
    font-size: .8rem;
    resize: none;
}

.submit-btn {
    margin-top: 1rem;
    height: auto;
    min-height: 52px;
    position: relative;
    padding: .8rem 3rem;
    color:white;
    background: var(--clr-accent);
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: .5rem;
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    text-decoration: none;
    margin-left: auto;
    font-family: 'Open Sans', sans-serif;
    border: 0px solid transparent;
}

.submit-btn:hover {
    background: #09406d;
}

a.decorated-link, .decorated-link a {
    text-decoration: underline;
}

a.decorated-link_hover, .decorated-link a:hover {
    color: var(--clr-cerulean);
}
/*honeypot*/
.hp-field {
    position: fixed;
    z-index: -1;
    right: -100%;
}


@media only screen and (max-width: 40em) {
  .on-mobile {
  }

  .on-desktop {
    display: none !important;
  }
}

@media only screen and (min-width: 40em) {
    h1 {
        font-size: 2.5rem;
        margin-bottom: .5em;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {        
        max-width: 75%;
    }

    .card-grid-container {
        margin: 4rem 0;
        display: grid;
    }

    .card-grid {
        margin-top: 3rem;
    }

    .card {
      margin: 0;
      box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.1);
      transition: .25s ease;
    }

    .card-text-wrapper {
        padding: 1.5rem;
    }

    .card:hover {
      box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.3);
      transition: .25s ease;
    }


      .on-mobile {
        display: none;
      }

      .on-desktop {
      }

      .menu-placeholder {
        height: 80px;
      }

    .card-grid-title {
        justify-self: center; 
        padding: 1em;
        width: 100%;
    }

    .card-grid-title p {
        font-size: 1.75rem;
        font-weight: 500;
        margin: 0 auto;
    }

    .card-grid-footer {
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: repeat(7, minmax(min-content, auto));
        column-gap: 2rem;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1rem;
        margin-top: 3rem;
    }

    .card-grid-footer h2 {
        margin: 0 auto;
        grid-row: 1;
        grid-column: 1 / -1;
    }

    .card-grid-footer a {
        width: fit-content;
        grid-row: 2;
    }


    .short-text {
        text-align: center;
        font-size: 1.25rem;
        font-weight: 300;
        padding: 0;
    }

    .short-text p {
        text-align: center;
        font-size: 1.25rem;
        font-weight: 300;
    }

    .header {
        margin: 0;
        margin-top: 5rem;

    }

    .modal-content {
        padding: 4rem 8rem;
    }

    .close-icon {
        top: 2rem;
        right: 2rem;
        color: white;
        font-size: 3rem;
        left:unset;
        bottom: unset;
        margin: 0;
    }
}




