@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("legals-mentions.css");

:root {
  --primary-color: #001e45;
  --secondary-color: #fee3db;
  --text-dark-background: #f7f6f2;
  --text-light-background: #000c1c;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

/* header */

#info-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--text-dark-background);
  z-index: 1001;
  overflow: hidden;
  height: 40px;
  line-height: 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-content {
  display: flex;
  flex-shrink: 0;
}
.slider-item {
  padding: 0 100vw 0 20px;
  display: inline-block;
  white-space: nowrap;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-item img {
  height: 20px;
  width: auto;
  margin-right: 10px;
}

.slider-item a {
  text-decoration: none;
  color: inherit;
}

#slider-track {
  display: flex;
  height: 100%;
  animation: scroll-left 25s linear infinite;
}

#logo-section {
  padding-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--text-dark-background);
}

.logo-container img {
  width: 300px;
  height: auto;
  display: block;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-975%);
  }
}

@media (min-width: 359px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-925%);
    }
  }
}

@media (min-width: 374px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-910%);
    }
  }

  .logo-container img {
    width: 350px;
  }
}

@media (min-width: 389px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-895%);
    }
  }
}

@media (min-width: 411px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-875%);
    }
  }

  .logo-container img {
    width: 400px;
  }
}

@media (min-width: 429px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-860%);
    }
  }
}

@media (min-width: 479px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-820%);
    }
  }
}

@media (min-width: 599px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-765%);
    }
  }
}

@media (min-width: 767px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-710%);
    }
  }
}

@media (min-width: 819px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-700%);
    }
  }

  .logo-container img {
    width: 450px;
  }
}

@media (min-width: 991px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-670%);
    }
  }
}

@media (min-width: 1023px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-660%);
    }
  }

  .logo-container img {
    width: 500px;
  }
}

@media (min-width: 1079px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-650%);
    }
  }
}

@media (min-width: 1199px) {
  #slider-track {
    animation: scroll-left 35s linear infinite;
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-630%);
    }
  }

  .logo-container img {
    width: 550px;
  }
}

@media (min-width: 1279px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-620%);
    }
  }
}

@media (min-width: 1366px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-615%);
    }
  }

  .logo-container img {
    width: 600px;
  }
}

@media (min-width: 1439px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-610%);
    }
  }
}

@media (min-width: 1599px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-600%);
    }
  }

  .logo-container img {
    width: 650px;
  }
}

@media (min-width: 1919px) {
  #slider-track {
    animation: scroll-left 40s linear infinite;
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-590%);
    }
  }

  .logo-container img {
    width: 700px;
  }
}

@media (min-width: 2559px) {
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-580%);
    }
  }
}

/* main */
/* FIRST SECTION */

#first-section {
  background: var(--text-dark-background);
  margin-bottom: 0;
  padding-top: 1em;
}

#first-section h1 {
  color: var(--primary-color);
  font-size: 2.5em;
  text-align: center;
}

.first-section-text-container p {
  padding: 0 1.5em 1em 1.5em;
  color: var(--primary-color);
  font-size: 1em;
  line-height: 1.5em;
  text-align: center;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 599px) {
  .image-container img {
    width: 85%;
    margin: 0 auto 2em auto;
    border-radius: 8px;
  }
}

@media (min-width: 767px) {
  #first-section {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
  }

  .first-section-text-container {
    width: 50%;
  }
  .image-container {
    width: 50%;
  }

  .image-container img {
    width: 90%;
    padding-bottom: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

@media (min-width: 991px) {
  #first-section h1 {
    font-size: 4em;
    margin-top: 0;
  }

  .first-section-text-container {
    width: 55%;
  }

  .first-section-text-container p {
    font-size: 1.1em;
  }

  .image-container {
    width: 45%;
  }

  .image-container img {
    width: 100%;
    margin: 0;
    border-radius: 0 8px 8px 0;
  }
}

@media (min-width: 1079px) {
  .image-container img {
    border-radius: 0 8px 0 0;
  }
}

@media (min-width: 1279px) {
  #first-section h1 {
    font-size: 4.5em;
  }
}

@media (min-width: 1439px) {
  #first-section h1 {
    font-size: 5em;
  }
}

@media (min-width: 1599px) {
  #first-section h1 {
    font-size: 5.5em;
  }
  .first-section-text-container p {
    font-size: 1.2em;
  }
}

@media (min-width: 1919px) {
  #first-section h1 {
    font-size: 5em;
    padding: 0 2em 0 2em;
  }

  .first-section-text-container {
    padding: 0 10em 0 0;
  }

  .first-section-text-container p {
    font-size: 1.3em;
  }

  .image-container img {
    height: 100vh;
    width: auto;
  }
}

@media (min-width: 2559px) {
  #first-section {
    padding: 0 15vh 0 15vh;
  }

  #first-section h1 {
    font-size: 7em;
  }
}

/* SECOND SECTION */

#second-section {
  background: var(--primary-color);
  padding: 1em 0 1em 0;
}

#second-section h2 {
  color: var(--text-dark-background);
  font-size: 2em;
  text-align: center;
}

#second-section h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  text-align: center;
}

.second-section-box-container {
  padding: 1em 1.5em 0 1.5em;
}

.box-container {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 1em 1.5em 1em 1.5em;
  margin-bottom: 1em;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, #ffc7b7 0px -10px 0px inset;
}

#juvenile-law {
  margin-bottom: 0;
}

.box-container p {
  text-align: center;
  margin-top: 0;
  font-style: italic;
  font-size: 0.8em;
}
.box-container ul {
  list-style: disc;
  text-align: left;
  font-size: 1em;
  padding: 0 0.5em 0 0.5em;
}

.box-container ul li {
  margin-bottom: 0.5em;
}

@media (min-width: 599px) {
  #second-section {
    padding: 1em 10vw 1em 10vw;
  }
  .box-container {
    padding: 1em 3em 1em 3em;
  }
}

@media (min-width: 767px) {
  #second-section {
    padding: 1em 5vw 1em 5vw;
  }

  .second-section-box-container {
    display: flex;
    flex-wrap: wrap;
    padding: 1em 0 1em 0;
    justify-content: space-evenly;
  }

  .box-container {
    width: 35vw;
    padding: 1em 1.5em 1em 1.5em;
  }
}

@media (min-width: 991px) {
  #second-section h2 {
    font-size: 3em;
  }
  #second-section h3 {
    font-size: 2em;
  }
  .box-container {
    width: 35vw;
    padding: 1em 3em 1em 2em;
  }
}

@media (min-width: 1599px) {
  .box-container {
    width: 30vw;
  }
}

@media (min-width: 1919px) {
  #second-section h2 {
    font-size: 3.5em;
  }
  #second-section h3 {
    font-size: 2.5em;
  }

  #second-section {
    padding: 1em 15vw 1em 15vw;
  }

  .box-container {
    width: 25vw;
    padding: 1em 5em 1em 5em;
  }

  .box-container ul {
    padding: 0 3em 0 3em;
    font-size: 1.1em;
  }
}

/* THIRD SECTION */

#third-section {
  background: var(--primary-color);
  padding: 1em 0 0.1em 0;
}

#third-section h2 {
  color: var(--text-dark-background);
  font-size: 2em;
  text-align: center;
  margin-bottom: 1em;
}

#third-section h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  text-align: center;
}

.third-section-box {
  border-bottom: 1px solid var(--secondary-color);
  width: 90%;
  margin: 0 auto 1em auto;
}

.third-section-box p {
  color: var(--text-dark-background);
  font-size: 1em;
  line-height: 1.5em;
  text-align: center;
  padding: 0 1.5em 1em 1.5em;
}

.third-section-box a {
  color: var(--secondary-color);
  text-decoration: underline;
}

@media (min-width: 991px) {
  #third-section h2 {
    font-size: 3em;
  }
  #third-section h3 {
    font-size: 2em;
  }
}

@media (min-width: 1279px) {
  .third-section-box-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0 10vw 0 10vw;
  }
  .third-section-box {
    width: 30vw;
    border-bottom: none;
  }
  .third-section-box a:hover {
    color: var(--text-dark-background);
    text-decoration: none;
  }
}

/* footer */

.floating-button-link {
  position: fixed;
  z-index: 1000;
  transition: all 0.2s ease-out;
  top: auto;
  left: 20px;
  bottom: 20px;
  transform: none;
}

.floating-button {
  display: inline-flex;
  align-items: center;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: padding 0.6s ease-out, font-size 0.6s ease-out;
}

.floating-button-link.is-anchored {
  position: absolute !important;

  top: auto !important;
  left: 20vw !important;
  bottom: auto !important;
  transform: none !important;
  width: auto;
  height: auto;
}

.floating-button-link.is-anchored-style {
  margin: 20px auto;
  text-align: center;
  transform: scale(1.2);
}
.floating-button-link.is-anchored-style .floating-button {
  padding: 15px 25px;
  font-size: 20px;
  margin: 0 auto;
}

.floating-button img {
  height: 20px;
  width: auto;
  margin-right: 8px;
  transition: height 0.4s ease-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--secondary-color);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.floating-button-link.animate-pulse .floating-button {
  animation: pulse 0.6s ease-out;
}

.floating-button-link:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-contact {
  background: var(--primary-color);
  color: var(--text-dark-background);
  text-align: center;
  padding: 3em 1.5em 1em 1.5em;
}

.footer-contact h2 {
  color: var(--text-dark-background);
  font-size: 2em;
  margin-top: 2em;
  margin-bottom: 1em;
}

.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-contact ul li {
  margin-bottom: 0.5em;
  padding-left: 1.5em;
  font-size: 0.9em;
}

.footer-contact ul li img {
  height: 16px;
  width: auto;
  margin-right: 10px;
}

.footer-contact-subway {
  display: flex;
  align-items: flex-start;
  margin-bottom: 5px;
}

.footer-contact-subway img {
  margin-top: 10px;
}

.footer-contact p {
  margin-top: 2em;
}

#contact-info a {
  text-decoration: none;
  color: inherit;
}

.mentions {
  background: var(--primary-color);
  color: var(--text-dark-background);
  text-align: center;
  padding: 1em 1.5em 0.1em 1.5em;
}

.mentions a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.8em;
}

.mentions p {
  font-size: 0.5em;
  margin: 0.2em 0 0.5em 0;
}

@media (min-width: 359px) {
  .floating-button-link.is-anchored {
    left: 23vw !important;
  }
}

@media (min-width: 374px) {
  .floating-button-link.is-anchored {
    left: 24vw !important;
  }
}

@media (min-width: 389px) {
  .floating-button-link.is-anchored {
    left: 25vw !important;
  }
}

@media (min-width: 411px) {
  .floating-button-link.is-anchored {
    left: 26vw !important;
  }
}

@media (min-width: 413px) {
  .floating-button-link.is-anchored {
    left: 26.5vw !important;
  }
}

@media (min-width: 429px) {
  .floating-button-link.is-anchored {
    left: 27vw !important;
  }
}

@media (min-width: 479px) {
  .floating-button-link.is-anchored {
    left: 29.5vw !important;
  }
}

@media (min-width: 599px) {
  .floating-button-link.is-anchored {
    left: 33vw !important;
  }
}

@media (min-width: 767px) {
  .footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .floating-button-link.is-anchored {
    left: 37vw !important;
  }

  .mentions a {
    font-size: 0.9em;
  }

  .mentions p {
    font-size: 0.8em;
  }
}

@media (min-width: 819px) {
  .floating-button-link.is-anchored {
    left: 38vw !important;
  }
}

@media (min-width: 991px) {
  .floating-button-link.is-anchored {
    left: 40vw !important;
  }

  .footer-contact ul li img {
    height: 18px;
    width: auto;
  }
}

@media (min-width: 1199px) {
  .floating-button-link.is-anchored {
    left: 41vw !important;
  }
}

@media (min-width: 1279px) {
  #contact-info a:hover {
    color: var(--secondary-color);
  }

  .mentions a:hover {
    color: var(--text-dark-background);
  }

  .floating-button {
    transition: all 0.3s ease-in-out;
  }

  .floating-button:hover {
    background: var(--text-dark-background);
    scale: 1.1;
  }
}

@media (min-width: 1365px) {
  .floating-button-link.is-anchored {
    left: 43vw !important;
  }
}

@media (min-width: 1599px) {
  .floating-button-link.is-anchored {
    left: 44vw !important;
  }

  .footer-contact h2 {
    font-size: 3em;
  }

  .footer-contact ul li {
    font-size: 1em;
  }
}

@media (min-width: 1919px) {
  .floating-button-link.is-anchored {
    left: 44.5vw !important;
  }
}
