/* stylelint-disable selector-class-pattern */

/* Set the global variables for everything. Change these to use your own fonts/colours. */
:root {
  /* Set mono font */
  --mono-font: consolas, menlo, monaco, "Andale Mono", "Ubuntu Mono", monospace;

  /* Body font size. By default, effectively 18.4px, based on 16px as 'root em' */
  --base-fontsize: 1rem;

  /* Major third scale progression - see https://type-scale.com/ */
  --header-scale: 1.25;

  /* Line height is set to the "Golden ratio" for optimal legibility */
  --line-height: 1.618;

  /* Default (light) theme */
  --bg: #fff;
  --accent-bg: #220347;
  --accent-bg-stronger: #e8e8e8;
  --text: #212121;
  --text-light: #fff;
  --border: #d8dae1;
  --accent: #0d47a1;
  --accent-light: #90caf9;
  --code: #d81b60;
  --preformatted: #444;
  --marked: #fd3;
  --disabled: #efefef;
}

/* Dark theme */

/* @media (prefers-color-scheme: dark) {
  :root {
      --bg: #ffffff;
      --accent-bg: #2B2B2B;
      --accent-bg-stronger: #444;
      --text: #DCDCDC;
      --text-light: #ABABAB;
      --border: #666;
      --accent: #FFB300;
      --accent-light: #FFECB3;
      --code: #F06292;
      --preformatted: #CCC;
      --disabled: #111;
  } */

/* } */

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

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

/* Make the body a nice central block */
body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  font-family: var(--sans-font);
  font-size: var(--base-fontsize);
  line-height: var(--line-height);
  color: var(--text);
  background: var(--bg);
}

header,
footer {
  flex: none;
}

main {
  position: relative;
  flex: 1 0 auto;
  min-height: 1%;
}

.container {
  max-width: 1200px;
  padding: 0 1rem;
  margin: 0 auto;
}

aside {
  max-width: 45rem;
  padding: 0 0.5rem;
  margin: 1rem auto 0;
}

/* Header */
header {
  z-index: 1;
  min-height: 6.25rem;
  box-shadow: 0 0 3px 5px rgb(0 0 0 / 20%);
}

header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.header__contact {
  display: flex;
  flex: 1;
  flex-basis: 100%;
  font-size: 1rem;
  color: var(--accent-bg);
}

@media (min-width: 750px) {
  .header__contact {
    flex-basis: auto;
    justify-content: flex-end;
  }
}

.header__contact svg {
  fill: var(--accent-bg);
}

.header__phone,
.header__email {
  margin-right: 1rem !important;
}

.header__link {
  width: min-content;
  padding: 0.25rem 0.5rem;
  color: #fff !important;
  text-decoration: none;
  background: var(--accent-bg);
}

.header a,
.header a:visited,
.header a:active,
.header a:hover {
  color: var(--accent-bg);
}

@media (min-width: 700px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

article {
  margin: 3rem 0;
}

article .image img {
  max-width: 100%;
}

article .image {
  margin-top: 3rem;
}

@media (min-width: 800px) {
  article {
    display: flex;
  }

  article .image {
    flex: 1 0 40%;
    padding-left: 2rem;
    margin-top: 1.5rem;
  }

  article .text {
    flex: 1 0 60%;
  }
}

footer {
  width: 100%;
  padding: 1.5rem;
  margin: 1rem auto 0;
  font-size: 1rem;
  color: var(--text-light);
  background: var(--accent-bg);
  border-top: 1px solid var(--border);
}

.footer__name {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.footer__logo {
  flex: 0 0 15%;
  width: 200px;
  opacity: 0.45;
}

.footer__container {
  display: flex;
}

.footer__contact {
  flex-basis: 85%;
}

.footer a,
.footer a:visited,
.footer a:active,
.footer a:hover {
  color: #fff;
}

.contact__info a,
.contact__info a:visited,
.contact__info a:active,
.contact__info a:hover {
  color: unset;
}

.footer p,
.footer a,
.header p,
.header a,
.contact__info a,
.contact__info p {
  display: flex;
  align-items: center;
  margin: 0.75rem 0;
}

.footer a,
.header a,
.contact__info a {
  width: min-content;
}

.footer .icon,
.header .icon {
  display: flex;
  align-items: center;
}

.footer .icon > svg {
  fill: #fff;
}

/* Format headers */
h1 {
  /* font-size: calc(var(--base-fontsize) * var(--header-scale) * var(--header-scale) * var(--header-scale) * var(--header-scale)); */
  margin-top: calc(var(--line-height) * 1.5rem);
}

h2 {
  margin-top: calc(var(--line-height) * 1.5rem);
  font-size: calc(var(--base-fontsize) * var(--header-scale) * var(--header-scale) * var(--header-scale));
}

h3 {
  margin-top: calc(var(--line-height) * 1.5rem);
  font-size: calc(var(--base-fontsize) * var(--header-scale) * var(--header-scale));
}

h4 {
  margin-top: calc(var(--line-height) * 1.5rem);
  font-size: calc(var(--base-fontsize) * var(--header-scale));
}

h5 {
  margin-top: calc(var(--line-height) * 1.5rem);
  font-size: var(--base-fontsize);
}

h6 {
  margin-top: calc(var(--line-height) * 1.5rem);
  font-size: calc(var(--base-fontsize) / var(--header-scale));
}

/* Format links & buttons */
a,
a:visited {
  color: var(--accent);
}

a:hover {
  text-decoration: none;
}

/* Add arrow to select
select {
  background-image:
    linear-gradient(45deg, transparent 49%, var(--text) 51%),
    linear-gradient(135deg, var(--text) 51%, transparent 49%);
  background-repeat: no-repeat;
  background-position:
    calc(100% - 20px),
    calc(100% - 15px);
  background-size:
    5px 5px,
    5px 5px;
}
 */

figure {
  margin: 0;
}

figure img {
  flex: 0;
}

figcaption {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.825rem;
  font-weight: 600;
}

/* Some tweaks to keep Symfony dumps in check */
.sf-dump {
  font-size: 1rem !important;
  line-height: 1.4rem !important;
}

/* ICONS */
.icon {
  display: flex;
  margin-right: 0.5rem;
  text-decoration: none;
}

.icon > svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--color-white);
}

/* SLIDESHOW */
.slideshow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60vw;
  color: #fff;
  border-bottom: 5px solid var(--color-dark-gray);
}

.slide {
  position: absolute;
  width: 100%;
  height: calc(60vw - 5px);
  filter: brightness(70%);
  opacity: 0;
  object-fit: cover;
  object-position: center;
}

.slideshow h1 {
  z-index: 2;
  margin: 0 1rem;
  font-weight: 500;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .slideshow h1 {
    font-size: 4rem;
  }

  .slideshow {
    height: 30vw;
  }

  .slide {
    height: calc(30vw - 5px);
  }
}

.slideshow--small {
  align-items: center;
  justify-content: center;
  height: 60vw;
}

.slide--small {
  flex-basis: 100%;
  height: calc(60vw - 5px);
  filter: brightness(40%);
  object-position: center center;
}

@media (min-width: 1024px) {
  .slideshow--small {
    height: 30vw;
  }

  .slide--small {
    height: calc(30vw - 5px);
  }
}

/* Fading animation */
.slide--active {
  animation-name: fade-in;
  animation-duration: 2s;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide--prev-active {
  animation-name: fade-out;
  animation-duration: 2s;
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* FORM */
.boltform {
  color: #000;
}

@media (min-width: 1024px) {
  .boltform {
    padding: 0;
  }
}

.boltform input,
.boltform textarea {
  width: 100%;
  padding: 0.25rem;
  color: #000;
  border: 1px solid #999;

  /* border-radius: 0.25rem; */
}

.boltform input:hover,
.boltform input:focus,
.boltform textarea:hover,
.boltform textarea:focus {
  background: rgb(255 255 255 / 20%);
}

.boltform input::placeholder,
.boltform textarea::placeholder {
  color: #000;
}

.boltform > form,
.boltforms-row {
  display: flex;
  flex-direction: column;
}

#contact > div {
  margin-top: 0.75rem;
}

#contact > div > div .required::after {
  color: #000;
}

.boltform label,
#contact_submit {
  font-size: 1rem;
  text-transform: uppercase;
}

#contact_submit {
  padding: 0.5rem;
  margin-top: 1rem;
  color: #fff;
  background: var(--accent-bg);
  border: 1px solid transparent;
}

.form__button {
  padding: 0.5rem;
  color: #fff;
  background: #000;
}

.footer #contact {
  padding: 0;
}

.footer #contact > div {
  margin-top: 0.25rem;
}

.footer #contact > div > div:last-child {
  display: none;
}

.contact__name {
  font-weight: 500;
}

@media (min-width: 800px) {
  .contact__contact {
    display: flex;
  }

  .contact__form {
    flex: 1 0 40%;
    padding-left: 2rem;
    margin-top: 1.5rem;
  }

  .contact__info {
    flex: 1 0 60%;
  }
}
