:root {
  --green: #2e483e;
  --black: #212322;
  --beige: #bfb8af;
  --olive-gray: #bfbb98;
  --blue-gray: #d9e1e2;
  --gold: #8a7b19;
}

a {
  text-decoration: none;
  color: inherit;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* HEADER */
header {
  display: flex;
  justify-content: center;
  background-color: var(--green);
  width: 100%;
  border-bottom: 5px solid var(--gold);
}

.header__container {
  width: 80%;
  max-width: 1920px;
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.header__logo {
  width: 8rem;
}

.header__menu-toggle {
  align-self: center;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.header__dropdown {
  display: none;
  top: 100%;
  background-color: var(--green);
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.header__dropdown.show {
  z-index: 1;
  display: block;
  opacity: 1;
  animation: dropdown-show 0.5s ease-out;
  border-bottom: 5px solid var(--gold);
}

@keyframes dropdown-show {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navigation__list {
  list-style: none;
  align-items: center;
}

.navigation__list li {
  color: var(--blue-gray);
  display: flex;
  justify-content: center;
  cursor: pointer;
  font-family: "Lato", sans-serif;
}

li > a {
  text-decoration: none;
  color: var(--blue-gray);
}

li > a:active {
  color: var(--blue-gray);
}

.header__contacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}

.header__social-links {
  display: flex;
  align-items: center;
}

.header__social-links > a {
  display: flex;
  align-items: center;
}

.section__description {
  font-family: "Poppins", sans-serif;
}

.header__social-links img {
  margin: 0 5px;
  width: 2rem;
}

.header__menu-arrow {
  transition: transform 0.3s ease;
}

.rotated {
  transform: rotate(180deg);
}

/* HERO */
.hero {
  width: 100%;
  min-height: 20rem;
  background-color: var(--beige);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
}

.hero__logo {
  width: 30em;
  height: 7rem;
}

.hero__cta-button {
  width: 15rem;
  height: 3rem;
  font-size: 1.2rem;
  background-color: var(--green);
  color: var(--beige);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__cta-button:hover {
  background-color: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* SECTIONS */
section {
  background-color: var(--green);
  width: 100%;
  display: flex;
  justify-content: center;
}

#about-us {
  background-color: white;
}

.about-office > p {
  color: var(--green);
}

.section__container {
  width: 80%;
  max-width: 1920px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem;
  gap: 3rem;
}

.section__text {
  width: 65%;
  color: var(--beige);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: justify;
  line-height: 1.7;
  font-size: 1.1rem;
}

.section__highlight-text {
  font-size: 1.5rem;
  font-family: "Lato", sans-serif;
  font-weight: bold;
  color: var(--olive-gray);
  margin-bottom: 1rem;
  text-align: start;
}

.section__image {
  width: 40%;
  height: 20rem;
  border-radius: 1rem;
}

.lawyer-info {
  align-self: self-start;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.lawyer__name {
  font-size: 1.8rem;
  color: var(--olive-gray);
  margin-bottom: 0.8rem;
  font-family: "Lato", sans-serif;
}

.lawyer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: end;
}

.contact__item-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.contact__item > img {
  width: 1.7rem;
}
.contact__item-inline img {
  width: 1rem;
}

.lawyer-photo {
  width: 20rem;
  height: 25rem;
}

h2 {
  font-size: 2rem;
}

/* AREAS */
#section-areas {
  background-color: var(--beige);
  padding: 2rem 0;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.areas__row {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.areas__title {
  color: var(--green);
  font-family: "Lato", sans-serif;
}

.areas__item {
  background-color: var(--green);
  color: var(--beige);
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  max-width: 15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.areas__item__title {
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}

/* ANIMATIONS */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* BOOK SECTION */
#book {
  background-color: var(--black);
}

.book-showcase {
  background-color: var(--black);
  width: 80%;
}

.book__image {
  width: 30%;
  height: 27rem;
}

.book-info {
  width: 60%;
  color: var(--olive-gray);
}

.book__purchase-link {
  align-self: center;
  margin-top: 2rem;
}

.book__purchase-button {
  width: 15rem;
  height: 3rem;
  font-size: 1.2rem;
  background-color: var(--olive-gray);
  color: var(--black);
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.book__purchase-button:hover {
  background-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.book__title {
  letter-spacing: 2px;
  font-size: 2.2rem;
  font-family: "Lato", sans-serif;
}

/* CONTACT SECTION */
#contacts {
  background-color: var(--blue-gray);
  color: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0px;
  font-size: 0.8rem;
}

.contact-section {
  width: 80%;
  color: var(--green);
  padding: 0px;
}

.contact__item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--green);
  gap: 4px;
}

.contact__title {
  color: var(--green);
  border-bottom: 4px solid var(--gold);
  width: fit-content;
  margin-bottom: 0.5rem;
  font-family: "Lato", sans-serif;
}

.contact__title h3 {
  font-size: 1rem;
}

.contact__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact__whatsapp-link button {
  background-color: var(--green);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact__whatsapp-link button:hover {
  background-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
  background-color: var(--green);
  color: white;
  text-align: center;
  padding: 10px;
  font-family: "Lato", sans-serif;
}

@media (max-width: 767px) and (min-width: 450px) {
  .lawyer-photo {
    width: 10rem !important;
  }
}
@media only screen and (max-width: 767px) and (min-width: 320px) {
  /* HEADER */
  header {
    position: relative;
    height: auto;
    transition: height 0.5s ease-in-out;
  }

  .header__container {
    width: 90%;
    justify-content: space-between;
  }

  .header__dropdown {
    position: absolute;
    top: 99%;
    left: 0;
    width: 100%;
    display: block;
    overflow: hidden;
  }

  .navigation__list {
    padding: 0.5rem 0;
  }

  .navigation__list li {
    font-size: 16px;
    padding: 0.5rem 0;
  }

  .header__dropdown.show {
    max-height: 300px;
  }

  .header__contacts {
    border-top: 1px solid #ddd;
  }

  .header__dropdown:not(.show) {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
  }

  /* HERO */
  .hero {
    width: 100%;
    min-height: 15rem;
  }

  .hero__logo {
    width: 18em;
    height: 5rem;
  }

  .hero__cta-button {
    width: 10rem;
    height: 2rem;
    font-size: 0.8rem;
  }

  .section__text {
    width: 80%;
  }

  .lawyer-photo {
    width: 13rem !important;
    height: 20rem !important;
  }

  .section__container {
    flex-direction: column-reverse;
    width: 100%;
    align-items: center;
    padding: 2rem 0px;
    gap: 1rem;
  }

  .section__image {
    width: 80%;
    height: 15rem;
  }

  .section__highlight-text {
    text-align: center;
  }

  .about-lawyer {
    flex-direction: column;
    align-items: center;
  }

  .lawyer-info {
    align-self: center;
  }

  .areas__container {
    width: 90%;
  }

  .areas__row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .areas__item {
    text-align: center;
  }

  .book-showcase {
    background-color: var(--black);
    width: 90%;
  }

  .book__image {
    width: 50%;
    height: 15rem;
  }

  .book-info {
    width: 90%;
    gap: 1rem;
  }

  .book__purchase-button {
    width: 10rem;
    height: 2rem;
    font-size: 0.8rem;
  }

  .contact-section {
    flex-direction: column;
    padding: 0px !important;
    width: 80%;
  }

  .contact__title > h3 {
    font-size: 0.9rem;
  }

  .contact__item {
    font-size: 0.8rem;
  }

  .contact__item > img {
    width: 1.3rem;
  }

  .book__title {
    text-align: center;
  }

  iframe {
    width: 100%;
    height: 200px;
  }
}

@media only screen and (max-width: 1023px) and (min-width: 768px) {
  /* HEADER */
  .header__logo {
    width: 7rem;
    height: 3rem;
  }

  .header__container {
    display: flex;
    align-items: center;
    width: 90%;
    gap: 1rem;
    margin: 0 auto;
  }

  .navigation__list {
    text-align: center;
    margin: 0;
    display: flex;
    gap: 1rem;
    font-size: var(--font-tablet);
    font-weight: 500;
    padding: 0;
  }

  .navigation__list li:hover {
    border-bottom: solid 3px var(--blue);
  }

  .header__social-links img:hover {
    border-bottom: solid 3px var(--blue);
  }

  .header__contacts {
    justify-content: flex-end;
  }

  .header__menu-toggle {
    display: none;
  }

  .header__dropdown {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  /* HERO */
  .hero {
    width: 100%;
    min-height: 15rem;
  }

  .hero__logo {
    width: 22em;
  }

  .hero__cta-button {
    width: 12rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .section__container {
    flex-direction: column-reverse;
    width: 100%;
    align-items: center;
    padding: 2rem 0px;
    gap: 1rem;
  }

  .section__image {
    width: 50%;
    height: 17rem;
  }

  .lawyer-photo {
    width: 13rem;
    height: 20rem;
  }

  .section__highlight-text {
    text-align: center;
  }
  .about-lawyer {
    flex-direction: column;
    align-items: center;
  }

  .lawyer-info {
    align-self: center;
  }

  .book-showcase {
    background-color: var(--black);
    width: 90%;
  }

  .book__image {
    width: 30%;
    height: 20rem;
  }

  .book-info {
    width: 90%;
    gap: 1rem;
  }

  .book__purchase-button {
    width: 12rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .book__title {
    text-align: center;
  }

  .contact-section {
    flex-direction: row;
    width: 80%;
  }

  .areas__row {
    gap: 1rem;
  }

  .contact__title > h3 {
    font-size: 1rem;
  }
}

@media only screen and (min-width: 1024px) {
  .desktop-background {
    display: block;
  }

  .navigation__list li {
    font-size: 1.1rem;
  }

  .navigation__list li:hover {
    border-bottom: solid 3px var(--olive-gray);
    color: var(--olive-gray);
  }

  .header__social-links img:hover {
    border-bottom: solid 3px var(--blue);
  }

  .header__logo {
    width: 12rem;
    height: 3.5rem;
  }

  .header__container {
    display: flex;
    align-items: center;
    width: 80%;
    margin: 0 auto;
  }

  .navigation__list {
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    font-size: var(--font-desktop);
    font-weight: 500;
    padding: 0;
  }

  .header__contacts {
    justify-content: flex-end;
  }

  .header__menu-toggle {
    display: none;
  }

  .header__dropdown {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .navigation__divider {
    height: 1.5rem;
    border-left: 3px solid var(--blue-gray);
  }

  .lawyer-photo {
    width: 16rem;
  }
}
