body {
  background-color: #FFF9EF;
}

* {
  font-family: "Archivo", sans-serif;
  scroll-behavior: smooth;
}

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

.margin-bottom-4 {
  margin-bottom: 4px;
}

.home {
  height: 684px; 
  background-image: url(./assets/holding-glass.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.home div{
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(684px - 55px);
  font-size: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header {
  height: 55px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 12px;
  box-sizing: border-box;
  position: fixed;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.25);
}

header .cta {
  color: black;
  background-color: white;
  border-radius: 50px;
  padding: 8px 12px;
  box-sizing: border-box;
  border: none;
  font-size: 14px;
}

header .cta:hover {
  background-color: #E6F0E6;
}

header p {
  font-size: 16px;
}

header nav ul li {
  font-size: 14px;
}

.project {
  position: relative;
}

.project .project-title {
  top: 20px;
  left: 20px;
  right: 20px;
  position: absolute;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  height: fit-content;
}

.project button {
  position: absolute;
  bottom: 20px;
  left: 20px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  max-height: 45px;
  padding: 14px 24px;
  box-sizing: border-box;
  border: none;
  font-size: 14px;
  background-color: rgb(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(5px);
  color: white;
  transition: all 0.4s ease-in-out;
}

.project:hover {
  cursor: pointer;
}

.project:hover button {
  background-color: white;
  color: black;
  cursor: pointer;
}

.services {
  display: flex;
}

.services>div {
  flex: 1;
  aspect-ratio: 1/1;
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  background-color: #FFF9EF;
  width: 100%;
}

.services-list h1 {
  font-size: 48px;
  font-weight: normal;
  padding: 24px 0;
  border-bottom: 1px solid #ccc;
}

.services div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-c-description {
  width: 390px;
  max-width: 390px;
}

.studio-c-description h1 {
  font-size: 48px;
  font-weight: normal;
}

.studio-c-description p {
  font-size: 14px;
  margin-top: 20px;
  line-height: 1.2;
}

.book-call {
  height: 450px; 
  background: url(./assets/book-a-call.jpg);
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.2;
  color: #fff;
}

.book-call h1 {
  font-size: 64px;
  font-weight: normal;
  margin-bottom: 10px;
}

.book-call div {
  width: 374px;
  align-items: center;
  display: flex;
  flex-direction: column;
}

footer .book-call-button{
  background-color: #25341A;
  color: white;
}

footer .book-call-button:hover {
  background-color: #2F4422;
}

footer .book-call-button:active {
  transform: scale(0.97);
  background-color: #2F4422; /* or your chosen hover/active color */
  transition: transform 0.2s ease, background-color 0.5s ease;
}


.book-call-button {
  background-color: white;
  font-size: 16px;
  border-radius: 20px;
  padding: 10px 16px;
  border: none;
  display: flex;
  gap: 8px;
  margin-top: 32px;
  cursor: pointer;
}

.book-call-button:hover {
  background-color: #E6F0E6;
}

.book-call-button:active {
  transform: scale(0.97);
  background-color: #E6F0E6; /* or your chosen hover/active color */
  transition: transform 0.2s ease, background-color 0.5s ease;
}

.press {
  background-color: rgba(27, 62, 0, 0.2);
  padding-bottom: 10px;
}

.press-title {
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrows {
  display: flex;
  gap: 32px;
}

.arrows button {
  border: none;
  background-color: transparent;
  cursor: pointer
}

.press h1{
  font-size: 48px;
  font-weight: normal;
  margin-bottom: 10px;
}

.press p {
  font-size: 16px;
}

.press-grid-wrapper {
  overflow: hidden;
  width: 100%;
}

.press-grid {
  display: flex;
  transition: transform 0.6s ease;
}

.press-grid > div {
  min-width: calc(33.33% - 2.66px);
  flex-shrink: 0;
  height: 478px;
  position: relative;
}

.press-grid > div {
  margin-right: 4px;
}

.press-grid div {
  height: 478px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.press-grid .bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease;
}

.press-grid .default-bg {
  z-index: 1;
  cursor: pointer;
}

.press-grid .hover-bg {
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}

.press-grid .item-1 .default-bg {
  background-image: url("./assets/1.png");
}

.press-grid .item-1 .hover-bg {
  background-image: url("./assets/blockchain.png");
}

.press-grid .item-2 .default-bg {
  background-image: url("./assets/2.png");
}

.press-grid .item-2 .hover-bg {
  background-image: url("./assets/british-red-cross.png");
}

.press-grid .item-3 .default-bg {
  background-image: url("./assets/3.png");
}

.press-grid .item-3 .hover-bg {
  background-image: url("./assets/fundraising.png");
}

.press-grid .item-4 .default-bg {
  background-image: url("./assets/4.png");
}

.press-grid .item-4 .hover-bg {
  background-image: url("./assets/santiago-brands.png");
}

.press-grid .item-1:hover .hover-bg,
.press-grid .item-2:hover .hover-bg,
.press-grid .item-3:hover .hover-bg,
.press-grid .item-4:hover .hover-bg {
  opacity: 1;
}

p.text {
  position: absolute;
  color: white;
  font-size: 32px;
  top: 50%;
  transform: translate(0, -50%);
  padding: 0 45px;
  z-index: 3;
  transition: opacity 0.4s ease;
  text-align: center;
}

.press-grid div:hover .text {
  opacity: 0;
}


.feedbacks {
  height: 513px;
  padding: 180px 60px;
  box-sizing: border-box;
  background-color: #FFF9EF;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.feedbacks .feedback-button-web {
  border: none;
  background-color: transparent;
  cursor: pointer;
  z-index: 2;
}

.feedback-buttons-mobile {
  display: none;
  margin-top: 40px;
}

.feedback-button-mobile {
  border: none;
  background-color: transparent;
  cursor: pointer;
  z-index: 2;
}

.feedback-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.feedback-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.feedback-slide {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.feedback {
  font-size: 40px;
  font-weight: normal;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.feedback-author {
  margin-top: 32px;
  font-size: 16px;
}


.all-projects {
  background-color: rgba(149, 104, 36, 0.1);
  padding-top: 80px;
}

.all-projects-title {
  padding: 0 20px 40px 20px;
}

.all-projects-title h1 {
  font-size: 46px;
  font-weight: normal;
}

.all-projects-title p {
  font-size: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px 0;
}

.projects-grid div {
  height: 478px;
  background-color: brown;
}

.projects-grid div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  height: 329px;
  padding: 80px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  background-color: #FFF9EF;
}

footer h1{
  font-size: 128px;
  font-weight: normal;
  margin-top: 40px;
}

footer h3 {
  font-size: 64px;
  font-weight: normal;
}

.get-in-touch {
  width: 460px;
}


/* collapsible */
.collapsible {
  border-bottom: 1px solid #ccc;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 32px;
  margin: 25px 0;
  line-height: 1;
}

.icon {
  margin-left: 10px;
}

.icon img {
  width: 20px;
  height: 20px;
  display: none;
}

.icon .icon-up {
  display: inline;
}

.collapsible.open .icon .icon-up {
  display: none;
}

.collapsible.open .icon .icon-down {
  display: inline;
}

.collapsible-content {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease, padding 0.3s ease;
}

.collapsible-content-inner {
  display: flex;
  flex-direction: column;
}

/* carousel */
.carousel-container {
  overflow: hidden;
  margin: 40px auto;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 100%;
  padding: 20px;
  box-sizing: border-box;
  background: #f1f1f1;
  text-align: center;
  border: 1px solid #ccc;
}

.carousel-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-buttons button {
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

/* Toaster */

#toast-container {
  visibility: hidden; /* Hidden by default */
  min-width: 180px;
  background-color: rgba(37, 52, 26, 0.9);
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  z-index: 100000;
  right: 30px;
  bottom: 30px;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
  display: flex;
  gap: 10px;
  align-items: center;
}

#toast-container img {
  width: 18px;
  height: 18px;
}

#toast-container.show {
    visibility: visible;
    opacity: 1;
}


/* MEDIA QUERIES */

/* 1024px */
@media (max-width: 700px) {
  header nav {
    display: none;
  }

  .home {
    height: 560px;
    overflow: hidden;
  }

  .home div {
    height: 560px;
    width: 140px;
    margin: auto;
  }

  .project button {
    left: 15px;
    bottom: 15px;
    padding: 12px 20px;
  }

  .projects-grid {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    margin: 2px 0;
    padding: 0;
  }

  .projects-grid div {
    aspect-ratio: 1/1;
    width: 320px;
    height: 320px;
  }

  .all-projects .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .all-projects .projects-grid div {
    aspect-ratio: 1/1;
    overflow: hidden;
    height: auto;
    width: 100%;
  }

  .all-projects .projects-grid .project button {
    padding: 8px 12px;
    font-size: 12px;
  }

  .projects-grid .project .project-title {
    box-sizing: border-box;
  }

  .projects-grid .project .project-title span:nth-of-type(2) {
    display: none;
  }

  .services {
    flex-direction: column;
  }

  .services-image {
    display: none !important;
  }

  .services-list {
    padding: 20px 12px;
  }

  .services>div.celia-image {
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    overflow: hidden;
  }

  .studio-c-description-container {
    order: 2;
    padding: 20px;
  }

  .press-grid > div {
    height: 310px;
    margin-right: 4px;
    aspect-ratio: 1/1;
  }

  .press-grid-wrapper {
    overflow-x: scroll;
  }

  .press-title .arrows {
    display: none;
  }

  .feedbacks {
    height: 730px;
    position: relative;
  }

  .feedback {
    font-size: 24px;
  }

  .feedback-button-web {
    display: none;
  }

  .feedback-buttons-mobile {
    display: flex;
    gap: 32px;
    justify-content: center;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
  }

  .project .project-title {
    top: 15px;
    left: 15px;
    right: 15px;
    width: calc(100% - 30px);
    align-items: flex-start;
  }

  footer h1 {
    display: none;
  }

  footer .get-in-touch h3 {
    margin-bottom: 15px;
  }
}