* {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.25px;
  color: var(--main-deep-dark-blue);
}

:root {
  --main-deep-dark-blue: #0c1231;
  --main-dark-blue: #1e2353;
  --main-blue: #4b4f75;
  --main-light-blue: #9698af;
  --main-very-light-blue: #d2d3dd;

  --main-dark-olive: #4e482e;
  --main-olive: #706b55;
  --main-light-olive: #d6d4cc;
  --main-olive-white: #f8f7f3;
  --main-olive-white-transparent: #f8f7f37c;

  --main-white: #fefefe;

  --main-green: #14661d;
  --main-red: #8b3725;
}

html {
  scroll-behavior: smooth;
}

img {
  border-radius: 5px;
  width: 100%;
  height: auto;
}

body {
  margin: 0;
  background-color: var(--main-olive-white);
  background-image: url("res/logo/PAJS\ background-frameless-cropped.svg");
  background-repeat: no-repeat;
  background-position: right;
  background-attachment: fixed;
  background-size: 50vh auto;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: var(--main-very-light-blue);
  border: 1px solid var(--main-olive-white);
}

body::-webkit-scrollbar-thumb {
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
  background-color: var(--main-light-blue);
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: var(--main-very-light-blue);
  border: 1px solid var(--main-olive-white);
}

*::-webkit-scrollbar-thumb {
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
  background-color: var(--main-light-blue);
}

.grid {
  display: grid;
}

.no-style-ref {
  text-decoration: none;
  color: var(--main-dark-blue);
}

nav {
  background-color: var(--main-olive-white) !important;
  grid-template-columns: 60% 40%;
  position: sticky;
  top: 0;
  background-color: white;
  padding: 1rem 3rem 1rem 3rem;
  z-index: 1000;
  margin-bottom: 5rem;
}

.navbar {
  font-size: 1.7rem;
  font-weight: bold;
  align-items: center;
  text-align: right;
}

a .menu-icon {
  display: none;
}

.pi {
  display: flex;
  font-size: 1.3rem;
  align-self: center;
}

.main-description p {
  font-size: 1.5rem;
  margin-top: 2rem;
}

h1 {
  font-size: 4rem;
  font-weight: normal;
  letter-spacing: -2px;
  margin: 3rem 0 3rem 0;
}

h6,
.color-blue {
  color: var(--main-blue);
}

img.logo {
  width: 25%;
}

.navbar {
  grid-template-columns: auto auto auto auto;
  gap: 10px;
}

.nav-contact {
  display: none;
}

.main-page {
  grid-template-rows: auto auto auto auto;
  margin: 3rem;
  justify-items: center;
}

.main-page-1 {
  grid-template-rows: auto auto;
  gap: 3rem;
}

.main-description {
  max-width: 50%;
}

.main-picture {
  max-height: 500px;
  grid-template-columns: 40% 60%;
}

img.lawyers {
  width: 50%;
  height: auto;
  box-shadow: 0px 20px 45px -1px rgba(66, 68, 90, 0.12);
  border: solid 1px rgba(66, 68, 90, 0.12);
}

.main-page-2 {
  padding-top: 3rem;
  grid-template-rows: auto auto;
  text-align: center;
}

.services-boxes {
  max-width: 100rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 2rem;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

.services-boxes-sub .box {
  margin-bottom: 1.5rem;
}

.services-details {
  text-align: left;
  font-size: 1.2rem;
}

.services-details__title {
  justify-content: center;
  display: flex;
  gap: 3rem;
  text-align: left;
  font-size: 1.2rem;
  margin-left: 2rem;
  margin-right: 2rem;
  margin-top: 0;
}

.services-details__subtitle h5 {
  margin: 0;
  margin-top: 2rem;
  font-size: 1.4rem;
}

.align-center .services-details__subtitle p {
  margin-left: 1rem;
  text-align: left;
  font-size: 1.1rem;
}

.services-details__title i {
  font-size: 3.5rem;
  margin-top: 0.5rem;
}

.align-center .services-details__title h4 {
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 2.5rem;
}

.box p {
  padding: 0 1rem 0 1rem;
}

p {
  font-size: 1.6rem;
}

.box {
  background-color: var(--main-olive-white);
  height: fit-content;
  box-shadow: 0px 20px 45px -1px rgba(66, 68, 90, 0.12);
  border: solid 1px rgba(66, 68, 90, 0.12);
  padding: 1rem;
}

.align-center h4,
.align-center p {
  text-align: center;
  justify-content: center;
}

.main-page-3 {
  justify-content: center;
  padding-top: 6rem;
  width: 85%;
  grid-template-rows: auto auto;
}

.about {
  max-width: 70vw;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.about.grid p {
  font-size: 1.4rem;
}

.about.grid {
  margin-bottom: 5rem;
}

.about-left {
  grid-template-columns: auto auto auto auto;
}

.about-left h4,
.about-right h4 {
  font-size: 2.5rem;
  margin: 0;
}

.about-left h6,
.about-right h6 {
  font-size: 1.4rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.about-right img {
  margin-bottom: 2rem;
}

.about-right {
  grid-template-columns: auto auto auto auto;
}

.main-page-4 {
  padding-top: 6rem;
  gap: 2rem;
  width: 90%;
  grid-template-columns: 1fr 1fr;
}

input {
  box-sizing: border-box;
  background-color: var(--main-olive-white-transparent);
  width: 100%;
  font-size: 1.8rem;
  border: none;
  border-bottom: 1px solid var(--main-dark-blue);
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  padding: 1rem;
  padding-right: 3rem;
}

textarea {
  max-height: 25rem;
  box-sizing: border-box;
  background-color: var(--main-olive-white-transparent);
  font-size: 1.8rem;
  border: none;
  border-bottom: 1px solid var(--main-dark-blue);
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  padding: 1rem;
  padding-right: 3rem;
}

#content {
  width: 100%;
  resize: none; /* Prevent manual resizing */
}

input::placeholder {
  color: var(--main-light-blue);
}

textarea::placeholder {
  color: var(--main-light-blue);
}

button.disabled {
  color: var(--main-very-light-blue);
}

button.disabled i {
  color: var(--main-very-light-blue);
}

.contact-left {
  margin-left: 25%;
  grid-template-rows: 12rem auto auto auto auto auto;
}

.contact-right {
  margin-left: 15%;
  grid-template-rows: 12rem auto auto auto;
}

.contact-right div p {
  margin: 0.7rem 0 0.7rem 0;
}

.contact-right div h4 {
  font-size: 2rem;
  margin: 0.7rem 0 0.7rem 0;
}

a.color-blue {
  font-size: 1.5rem;
}

.label {
  font-weight: bold;
  font-size: 1rem;
  margin: 0;
}

label.error {
  color: var(--main-red);
  display: flex;
  width: 100%;
  visibility: hidden;
  margin-bottom: 2rem;
}

form {
  position: relative;
}

.form-icon {
  position: absolute;
  top: 2rem;
  right: 1.25rem;
  visibility: hidden;
}

input.error ~ .form-icon {
  color: var(--main-red);
  visibility: visible;
}

input.valid ~ .form-icon {
  color: var(--main-green);
  visibility: visible;
}

.form-validate {
  position: relative;
}

label.error.show {
  visibility: visible;
}

input.validate {
  margin-bottom: 1rem;
}

input.validate.valid {
  border-bottom: solid 2px var(--main-green);
}

input.error {
  border-bottom: solid 2px var(--main-red);
}

.button {
  font-size: 1.6rem;
  cursor: pointer;
}

.contact-left button {
  background-color: inherit;
  border: none;
  margin-top: 5rem;
}

footer {
  display: flex;
  justify-content: center;
  grid-template-columns: 2fr 1fr;
  justify-items: baseline;
  padding: 3rem;
  font-size: 1.5rem;
}

.footer-left {
  display: flex;
  flex-wrap: nowrap;
}

.footer-left .small-text {
  color: var(--main-light-blue);
  margin-left: 1.5rem;
  text-decoration: underline;
  font-size: 1rem;
  align-self: center;
}

.external-links {
  text-align: right;
}

.external-links a:nth-child(1) {
  text-align: right;
  margin-right: 1.5rem;
}

.external-links a:nth-child(2) {
  text-align: right;
  margin-left: 1.5rem;
}

#links {
  display: grid;
}

@keyframes rollText {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes rollShadowText {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes rollArrow {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes rollShadowArrow {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

.animation {
  margin: 0;
}

p.animation {
  color: var(--main-blue);
  margin: 0;
  display: flex;
  width: auto;
}

.button.animated {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
}

.button.animated.animate .arrow-animation {
  animation: rollArrow 0.4s ease forwards;
}

.button.animated.animate .animation {
  animation: rollText 0.4s ease forwards;
}

.button.animated .pi {
  color: var(--main-blue);
  margin-left: 10px;
}

.shadow {
  display: none !important;
}

.button.animated.animate .animation.shadow {
  animation: rollShadowText 0.5s ease forwards;
  left: 0;
  position: absolute;
  display: block !important;
}

.button.animated.animate .arrow-animation.shadow {
  animation: rollShadowArrow 0.5s ease forwards;
  display: block !important;
  position: relative;
}

.button.animated.animate .arrow-wrapper.shadow {
  display: flex !important;
  left: -1.9rem;
  position: relative;
}

.arrow-wrapper {
  display: flex;
  overflow: hidden;
}

@keyframes scaleLogo {
  0% {
    scale: 1.5;
    transform: translateY(1rem);
  }

  80% {
    scale: 1.5;
    transform: translateY(1rem);
  }

  100% {
    scale: 1;
    transform: translateY(0);
  }
}

.logo {
  transform-origin: 0 0;
  animation: scaleLogo 1s ease-in-out;
}

.slideshow-container {
  transform: translateY(-40%);
  text-align: right;
  max-width: 1000px;
  max-height: 600px;
  position: relative;
  margin: 0;
  padding: 0;
  padding-right: 5rem;
}

.mySlides {
  display: none;
}

.fade {
  animation-name: fade;
  animation-duration: 7.25s;
}

@keyframes fade {
  0% {
    opacity: 0.83;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0.83;
  }
}

.toast {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #009c27ee;
  color: #d6d6d6;
  padding: 10px;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}

.error-toast {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #ac0000d8;
  color: #d6d6d6;
  padding: 10px;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}

.show-toast {
  z-index: 1000 !important;
  opacity: 1;
}

@media only screen and (max-width: 1250px) {
  h1 {
    font-size: 3rem;
  }

  body {
    text-align: center;
    background-size: 80%;
  }

  nav.grid {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    height: 4rem;
    margin-bottom: 1rem;
  }

  nav.grid img.logo {
    width: fit-content;
  }

  nav.grid a.icon {
    display: flex;
    margin-right: 1rem;
  }

  nav.grid a.icon i {
	height: 30px;
    font-size: 2rem;
    overflow: hidden;
  }

  .grid {
    display: inline;
  }

  .about.grid {
    display: grid;
    max-width: 100%;
  }

  .main-picture .slideshow-container {
    transform: translateY(0);
    text-align: center;
    margin: 0;
    padding: 0;
  }

  p {
    font-size: 1.2rem;
  }

  .main-page {
    width: 90%;
    margin: 0;
    text-align: left;
    display: inline-block;
    margin-bottom: 5rem;
  }

  .main-description {
    width: 100%;
    max-width: 100%;
  }

  .main-description p {
    font-size: 1.2rem;
    margin-bottom: 4rem;
  }

  img.lawyers {
    max-width: 450px;
    margin-top: 2rem;
    width: 90%;
    margin-bottom: 4rem;
  }

  .main-page-2 h1 {
    margin-top: 10rem;
  }

  .main-page-2 .box {
    margin-bottom: 1rem;
  }

  .main-page-3 h1 {
    margin-top: 8rem;
  }

  .contact-left h1 {
    margin-top: 5rem;
  }

  .contact-right div h4 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  a.color-blue {
    font-size: 1.2rem;
  }

  .contact-right div {
    margin-bottom: 3rem;
  }

  footer {
    position: relative;
    padding: 0 1rem 1rem 1rem;
    flex-wrap: wrap;
    font-size: 1.2rem;
    bottom: 2rem;
  }

  footer .external-links {
    width: 100%;
    order: 1;
    align-self: flex-end;
  }

  footer .footer-left {
    display: flex;
    flex-wrap: wrap;
    order: 2;
  }

  footer .footer-left div {
    padding-bottom: 0.5rem;
    padding-top: 1rem;
  }

  footer .footer-left a.small-text {
    margin: 0;
  }

  #links {
    display: none;
  }

  .nav-contact {
    display: block;
  }

  a .menu-icon {
    display: block;
  }

  #links {
    background-color: var(--main-olive-white);
    top: 6rem;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: start;
    position: fixed;
    flex-wrap: wrap;
  }

  #links a {
    margin-bottom: 1rem;
    width: 100%;
  }

  #links {
    display: flex;
    transform: translateY(-150%);
  }

  @keyframes showMenu {
    0% {
      transform: translateY(-150%);
    }

    100% {
      transform: translateY(0%);
    }
  }

  @keyframes hideMenu {
    0% {
      transform: translateY(0);
    }

    100% {
      transform: translateY(-150%);
    }
  }

  #links.show {
    box-sizing: border-box;
    padding-left: 1rem;
    animation: showMenu 0.5s ease-in-out;
    animation-fill-mode: forwards;
  }

  #links.hide {
    padding-left: 1rem;
    animation: hideMenu 0.5s ease-in-out;
    animation-fill-mode: forwards;
  }

  .services-details__title {
    flex-wrap: wrap;
    gap: 0;
  }

  .align-center .services-details__title h4 {
    width: 100%;
    text-align: center;
  }
}

@media only screen and (max-width: 700px) {
  .about.grid {
    display: inline;
  }
  
  
  .about-right {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: none;
  }

  .about-left h6 {
    font-size: 1rem;
  }

  .about-right h6 {
    font-size: 1rem;
  }

  .about-right img {
    order: 4;
  }

  .about-right h4 {
    order: 1;
  }

  .about-right h6 {
    order: 2;
  }

  .about-right p {
    order: 3;
  }

}
