@import 'patterns.css';
@import 'helpers.css';
@import 'divorce.css';
@import 'form.css';
@import 'query.css';
@import 'finish.css';

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  color: #0c0c0c;
}

body {
  background: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(218, 226, 228, 1) 100%
  );
}
h1,
p {
  margin: 0;
}
p,
span,
a {
  font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3 {
  font-family: 'Rubik', sans-serif;
}
p {
  font-weight: 300;
  font-size: 18px;
}

a {
  text-decoration: none;
  color: #0c0c0c;
}

.container {
  width: 1360px;
  margin: 0 auto;
}

.hero {
  display: flex;
}
.hero h1 {
  font-size: 80px;
  font-weight: 500;
  margin: 0 auto;
  margin-bottom: 50px;
}

.hero h2 {
  font-size: 20px;
  font-weight: 500;
}
.hero p {
  font-weight: 300;
}

.image--gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 187px;
  gap: 20px;
  width: fit-content;
  margin: 40px 0 40px 50px;
  width: 100%;
}

.image--container {
  min-width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image--container div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*////////////////////////////////// The big green box //////////////////////////////////*/

.info {
  width: 100%;
  border-radius: 30px;
  background-color: #27474e;
  padding: 80px;
  color: white;
  margin: 50px 0 0 0;
}
.info--header {
  width: 50%;
}
.info--text {
  width: 50%;
}

.info--header h1 {
  font-size: 48px;
}
.info--text p {
  font-size: 18px;
  font-weight: 300;
}

.points {
  display: flex;
  gap: 20px;
  justify-content: space-evenly;
  align-items: center;
  margin: 90px 0 0 0;
}
.illus__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.illus {
  height: 143px;
  object-fit: contain;
  margin: 30px 0 0 0;
}

.text--container {
  display: flex;
  margin: 0 0 50px 0;
}
/*////////////////////////////////// The project about section //////////////////////////////////*/

.project--about {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
}
.project--about div {
  margin: 20px 0;
}

.project--text {
  width: 50%;
}

.project--text h1 {
  font-size: 48px;
  font-weight: 500;
}
.project--text p {
  font-size: 18px;
  margin: 30px 0;
}

.project--img img {
  border-radius: 30px;
  width: 576px;
}

.project--photo {
  width: 576px;
}
.project--list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-height: 250px;
  max-width: 700px;
}
.project--list span {
}
.check {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: normal; /* ensures text is allowed to wrap */
  word-wrap: break-word; /* ensures long words break too */
  width: 300px;
  font-weight: 500;
}

.list--number {
  background-color: #d0f600;
  border-radius: 100px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 34px;
  min-height: 34px;
}

*,
::after,
::before {
  box-sizing: border-box;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
canvas,
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}
#__next,
#root {
  isolation: isolate;
}

/** Mobile + Table + Style fixes **/
.container {
  width: 100% !important;
  max-width: 1360px !important;
  padding: 0 14px;
}
.header {
  width: 100% !important;
  max-width: 1360px !important;
  padding: 0 14px;
}

body {
  overflow-x: hidden;
  min-width: 320px;
}

.project--list {
  max-height: unset;
}

@media screen and (max-width: 1000px) {
  /* .header {
    width: 100%;
  } */

  /* HomePage */
  .hero {
    flex-direction: column;
  }

  .hero .image--gallery {
    order: 12;
    margin: 18px 0 0 0;
  }

  .project--about {
    flex-direction: column;
  }
  .project--text {
    width: 100%;
    order: 12;
  }
  .project--img img {
    margin: 0 auto;
  }

  .text--container {
    flex-direction: column;
  }

  .text--container .info--header {
    width: 100%;
  }
  .text--container .info--text {
    width: auto;
    margin-top: 18px;
  }

  /* DivorcePage */
  .divorce--section {
    flex-direction: column !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
  }
  .divorce--section .divorce--text {
    order: 12;
    max-width: 100% !important;
  }
  .divorce--section .divorce--img-wrapper {
    margin-bottom: 14px;
  }
  .divorce--section.row-reverse .divorce--text {
    order: 1;
  }
  .divorce--section .divorce--img-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  /** QueryPage */
  .query--container {
    flex-direction: column !important;
  }

  .query--container .query--header {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }

  .query--container .stats {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .query--container .buttons--container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .query--container .buttons--container button {
    flex: 0 0 48%;
    box-sizing: border-box;
  }
}

a.button__main {
  display: inline-flex !important;
}

.stepper li {
  pointer-events: none;
}

.logo img {
  height: 55px;
}

@media screen and (max-width: 769px) {
  .header .links {
    flex-direction: column;
    gap: 4px;
  }
  .header .links a:first-child {
    order: 12;
  }
}
