@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&family=Roboto+Slab:wght@300;400;500;700&display=swap");

:root {
  --primary-color: #c3a254;
  /* --primary-color: #f0d188; */
  --secondary-color: #f8f4ea;
  --light-grey: #f6f6f6;
  --dark-grey: #858585;
  --white: #ffffff;
  --text: #262626;
  --redish: #c31319;
  --transition: 0.3s;
}

/*======== Reset style ========*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*======== General style ========*/
body {
  font-family: "Open sans", sans-serif;
  line-height: 1.6;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: var(--dark-grey);
}
a:hover {
  color: var(--text);
  transition: var(--transition);
}
img {
  width: 100%;
}

/*======== Utilities ========*/
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 10px;
}
.d-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn {
  display: block;
  background: var(--redish);
  color: var(--white);
  padding: 7px 30px;
  border-radius: 3px;
  font-size: 16px;
}
.btn:hover {
  background: var(--text);
  color: var(--white);
}
.bg-secondary {
  background: var(--secondary-color);
  color: var(--white);
}
.h2-title {
  position: relative;
  margin: 40px 0;
  font-family: "Roboto slab", sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;
}
.btn-outline-dark {
  display: inline-block;
  margin: 50px 0;
  padding: 10px 30px;
  border-radius: 5px;
  border: 1px solid var(--primary-color);
  color: var(--white);
}
.btn-outline-dark:hover {
  background: var(--primary-color);
}

/*======== Topbar Style ========*/
.topbar {
  background-color: var(--light-grey);
  padding: 30px 0;
  border-bottom: 1px solid #e2e2e2;
}
.topbar .left-side p {
  color: var(--dark-grey);
}
.topbar .left-side a i {
  margin: 0 10px;
}
.topbar .right-side li:not(:last-child) {
  margin-right: 20px;
}
.topbar .right-side li i {
  font-size: 18px;
}

/*======== Media Query Topbar ========*/
@media (max-width: 768px) {
  .topbar {
    padding: 20px 0;
  }
  .topbar-content {
    flex-direction: column;
  }
  .topbar-content .right-side {
    margin-top: 15px;
  }
}
@media (max-width: 360px) {
  .btn {
    display: none;
  }
}

/*======== Navigation & Logo Style ========*/

nav {
  margin: 20px 0;
}
.navigation li:not(:last-child) {
  margin-right: 20px;
}
.navigation li a {
  text-transform: uppercase;
  font-family: "Roboto slab", sans-serif;
  color: var(--text);
}
.navigation li a:hover {
  color: var(--primary-color);
}

/*======== Mobile navigation Style ========*/
.relative {
  position: relative;
}
.menu-btn {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 15px;
  z-index: 2;
  display: none;
}
.menu-btn:hover {
  opacity: 0.5;
}
@media (max-width: 992px) {
  nav img {
    margin-top: 10px;
  }
  .menu-btn {
    display: block;
  }
  .navigation {
    z-index: 2;
    display: block;
    position: absolute;
    top: -20px;
    left: 0;
    background: var(--light-grey);
    width: 50%;
    height: 100vh;
    border-right: 1px solid #e2e2e2;
    opacity: 0.9;
    padding: 20px 0 0 20px;
    transform: translateX(-500px);
    transition: transform 0.5s ease-in-out;
  }
  .navigation li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
  }
  .navigation li:last-child {
    border-bottom: 0;
  }
  .show {
    transform: translateX(0px);
  }
}

/*======== Slider ========*/
.slider-container {
  position: relative;
  height: 80vh;
  width: 100%;
}
.slider {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
.slide.current {
  opacity: 1;
}
.slide .content {
  position: absolute;
  bottom: 70px;
  right: -600px;
  opacity: 0;
  width: 600px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  padding: 35px;
}
.slide .content h1 {
  margin-bottom: 10px;
}
.slide.current .content {
  opacity: 1;
  transform: translateX(-600px);
  transition: all 0.7s ease-in-out 0.3s;
}
.buttons button#next {
  position: absolute;
  top: 50%;
  right: 15px;
}
.buttons button#prev {
  position: absolute;
  top: 50%;
  left: 15px;
}
.buttons button {
  border: 2px solid #fff;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  padding: 13px 15px;
  border-radius: 50%;
  outline: none;
}
.buttons button:hover {
  background-color: #fff;
  color: #333;
  transition: 0.3s;
}
@media (max-width: 500px) {
  .slide .content {
    bottom: -300px;
    left: 0;
    width: 100%;
  }
  .slide.current .content {
    transform: translateY(-300px);
  }
  .slider-container {
    height: 50vh;
  }
  .slide .content {
    padding: 10px;
  }
  .slide .content h1 {
    margin-bottom: 5px;
    font-size: 22px;
  }
  .buttons button#next,
  .buttons button#prev {
    top: 10%;
    right: 15px;
  }
}

/*======== Background Image ========*/
.slide:first-child {
  background: url("./img/Photo-1.jpg") no-repeat center center/cover;
}
.slide:nth-child(2) {
  background: url("./img/Photo-2.jpg") no-repeat center center/cover;
}
.slide:nth-child(3) {
  background: url("./img/Photo-3.jpg") no-repeat center center/cover;
}
/*======== Services ========*/
.services-1 {
  padding: 40px 0 20px 0px;
}
.services-2 {
  padding-bottom: 40px;
}
.services .service {
  margin: 20px 0;
  align-items: flex-start;
}
.services .service .content {
  margin: 0 30px;
}
.services .service .content h3 {
  margin-bottom: 10px;
  font-family: "Roboto slab", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: -8px;
}
.services .service i {
  border: 1px solid var(--primary-color);
  padding: 20px;
  border-radius: 5px;
  font-size: 25px;
  color: var(--primary-color);
}
.services .service i:hover {
  background-color: var(--primary-color);
  color: var(--light-grey);
  transition: var(--transition);
}
@media (max-width: 992px) {
  .services {
    flex-direction: column;
  }
}

/*======== Who We Are ========*/
.who .content {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.who .column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}
.who .column .column-left,
.who .column .column-right {
  height: 100%;
}
.who img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.who .column .column-right {
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 50px;
}
.who .column .column-right h2 {
  position: relative;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: "Roboto slab", sans-serif;
  font-weight: 400;
  font-size: 26px;
}
.who .column .column-right h2::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  bottom: 0px;
  left: 0;
  background: var(--primary-color);
}
.who .column .column-right p:nth-child(3) {
  margin: 40px 0;
}
.who .column .column-right .btn-outline-light {
  margin-top: 80px;
  border: 1px solid var(--primary-color);
  width: 160px;
  padding: 10px 20px;
  border-radius: 5px;
}
.who .column .column-right .btn-outline-light i {
  margin-right: 15px;
}
.who .column .column-right .btn-outline-light:hover {
  background: var(--primary-color);
  color: var(--white);
}

@media (max-width: 768px) {
  .who .content {
    flex-direction: column;
  }
  .who .column .column-right {
    padding: 40px 20px;
  }
  .who .column .column-right p:nth-child(3) {
    margin: 20px 0;
  }
  .who .column .column-right .btn-outline {
    margin-top: 50px;
  }
}

/*======== Swiper Slider ========*/
.swiper {
  width: 100%;
  height: 100%;
  margin-bottom: 40px;
  padding: 10px 20px 40px 20px;
}
.swiper-slide {
  text-align: left;
  background: var(--light-grey);

  /* Center slide text vertically */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Shadow generator */
  -webkit-box-shadow: 0px 0px 4px 0px #000000;
  box-shadow: 0px 0px 4px 0px #000000;
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-pagination-bullet-active {
  background: var(--primary-color);
}
.services .card-content {
  margin: 0 10px;
  padding-bottom: 20px;
}
.services h2 {
  position: relative;
}
.services h2:before,
.our-team h2:before {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-color);
}
.card-content h3 {
  font-weight: 400;
  text-transform: uppercase;
  margin: 10px 0;
}
.card-content p {
  font-size: 14px;
  margin-bottom: 25px;
}
.card-content .button {
  color: var(--primary-color);
}
.card-content .button i {
  margin-left: 10px;
}
.card-content .button:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .swiper-wrapper {
    flex-direction: row;
  }
}

/*======== Parallax ========*/
.break {
  background-image: url(img/Parallax.jpg);
  position: relative;
  height: 550px;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.break::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
}
.break * {
  z-index: 1;
}
.break .content {
  color: var(--white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 50%;
}
.break .content h2 {
  font-family: "Roboto slab", sans-serif;
  font-size: 46px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.break .content h4 {
  font-family: "Roboto slab", sans-serif;
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: var(--primary-color);
}
.break .content p {
  line-height: 1.8;
}
.break .content p span {
  color: var(--primary-color);
}

@media (max-width: 1400px) {
  .break .content {
    width: 70%;
  }
}
@media (max-width: 992px) {
  .break .content {
    width: 80%;
  }
}
@media (max-width: 580px) {
  .break .content {
    width: 90%;
  }
  .break .content h2 {
    margin-top: 40px;
  }
}

/*======== Our Team ========*/
.our-team {
  background: var(--secondary-color);
  margin-bottom: 500px;
  padding: 0 20px 50px 20px;
}
.our-team h2 {
  margin-top: 0;
  padding-top: 40px;
}
.lawyers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-content: center;
  gap: 30px;
}
.card-header {
  position: relative;
}
.card-header img {
  margin-bottom: -6px;
}
.card-body {
  background: var(--white);
  padding: 20px;
}
.social-icons ul {
  display: flex;
  background: var(--primary-color);
  position: absolute;
  top: 0;
  right: 0;
}
.social-icons i {
  color: var(--white);
  padding: 10px;
  transition: var(--transition);
}
.social-icons i:hover {
  color: var(--text);
}

@media (max-width: 992px) {
  .lawyers {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .lawyers {
    display: grid;
    grid-template-columns: 1fr;
  }
}
