@import url("reset.css");

@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap");

/* ************COMMON************ */

.logo {
  font-weight: 700;
  font-size: 2.25rem;
}

.header__logo span {
  font-weight: 300;
  font-size: 1.5rem;
}

body {
  font-family: "Source Serif 4", serif;
  font-size: 1.1rem;
  color: #1f2a24;
  background-color: #f7f6f2;
}

[class*="__container"] {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #1f2a24;
  background-color: #f5e4dc;
  border: 1px solid #1f2a24;
}

.title {
  font-size: 3.5rem;
  font-weight: 600;
}

.wrapper {
  min-height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

/* ************HEADER************ */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #f7f6f2;
  z-index: 1000;
  border-bottom: 1px solid #1f2a24;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.75rem;
  flex-wrap: wrap;
  max-width: 74.624rem;
}

.header__logo {
  position: relative;
  z-index: 2;
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.menu__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu__link {
  font-weight: 600;
  position: relative;
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 0.624rem;
}

.icon-menu {
  display: none;
}

.actions-header__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #1f2a24;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 2;
  background-color: #f5e4dc;
  color: #1f2a24;
}

.button:hover,
.item-pricing__button:hover,
.gallery_active:hover,
.resources__button:hover,
.actions-header__button:hover,
.main__button:hover {
  background-color: #ead3c8;
}

/* ****************PAGES**************** */
.page__main {
  padding-bottom: 160px;
}

/* *****************HOME**************** */

/* Home hero only (inner pages use .main_pages and set their own hero BG) */
.main:not(.main_pages) {
  background: url("../images/Home/Home-Hero.jpg") center / cover no-repeat;
  min-height: 80vh;
  height: 90vh;
}

.main:not(.main_pages) .main__title {
  color: #1f2a24;
}

.main:not(.main_pages) .main__text {
  color: #1f2a24;
}

.main__container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 8rem;
}

.main__caption {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.main__title {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Hero h1: same size on home, about, projects, contact */
.page__main .main__title {
  font-size: 3.5rem;
  font-weight: 600;
}

.main__text {
  margin-bottom: 3.5rem;
  max-width: 33.375rem;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  color: #1f2a24;
  background-color: #f5e4dc;
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  line-height: 110%;
  border: 1px solid #1f2a24;
}

.hero {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero__title {
  margin-top: 0;
}

.hero__content {
  max-width: 32rem;
  margin-top: 5rem;
}

.hero__image {
  flex: 1;
  max-width: 24rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 5rem;
}

.hero__image img {
  width: 100%;
  height: calc(0.75 * (80vh - 6rem));
  object-fit: cover;
  border-radius: 16px;
}

.outro_home {
  background: url("../images/Home/Home-Footer.jpg") center / cover no-repeat;
  min-height: 60vh;
}

/* ************ABOUT / PROJECTS / CONTACT HERO **************** */

.main_about,
.main_services,
.main_contact {
  background: #f5e4dc;
  height: 500px;
  min-height: 500px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 5.75rem 0.938rem 0;
}

.main_about,
.main_contact {
  justify-content: center;
  align-items: center;
}

.main_contact {
  height: 375px;
  min-height: 375px;
  max-height: 375px;
}

.main_pages .main__title,
.main_pages .main__text {
  color: #1f2a24;
}

.main_pages .main__container_pages {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding-top: 0;
  margin-top: 0;
}

/* About & Contact: center hero copy; override .main_pages flex:1 + .main__container padding */
.main_about.main_pages .main__container.main__container_pages,
.main_contact.main_pages .main__container.main__container_pages {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  gap: 0.75rem;
}

.main_about.main_pages .main__text,
.main_contact.main_pages .main__title {
  margin: 0;
  padding: 0;
}

.main_about.main_pages .main__title {
  margin: 0 0 2rem 0;
  padding: 0;
}

.main_services .main__text {
  margin-bottom: 0;
}

.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

/* Homepage My Approach: image full left half, full height, no left margin/padding */
.page__about:has(.approach) .about__container {
  max-width: none;
  width: 100%;
  padding: 0;
  align-items: stretch;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.page__about:has(.approach) .about__image {
  flex: 0 0 50%;
  max-width: 50%;
  min-height: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
}

.page__about:has(.approach) .about__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.page__about:has(.approach) .about__content {
  flex: 1 1 50%;
  padding: 8.75rem 0.938rem 8.75rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* About page: Blending UX section – image full left half */
.about_full-image .about__container {
  max-width: none;
  width: 100%;
  padding: 0;
  align-items: stretch;
  gap: 0;
}

.about_full-image .about__image {
  flex: 0 0 50%;
  max-width: 50%;
  min-height: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
}

.about_full-image .about__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.about_full-image .about__content {
  flex: 1 1 50%;
  padding: 8.75rem 0.938rem 8.75rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image on the right: content left, image right, matching left/right padding */
.about_image-right .about__content {
  padding: 8.75rem 3rem;
}

/* ************SKILLS SECTION (About page)************ */
.skills-section {
  background-color: #f5e4dc;
}

.skills-section__container {
  max-width: min(132rem, calc(100vw - 1.876rem));
  margin: 0 auto;
  padding: 5rem;
}

.skills-section__title {
  font-size: 3rem;
  font-weight: 600;
  color: #1f2a24;
  margin-bottom: 3rem;
}

.skills-section__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem;
}

.skills-section__category {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2a24;
  margin-bottom: 1.25rem;
}

@media (min-width: 90rem) {
  .skills-section__category {
    white-space: nowrap;
  }
}

.skills-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-section__list li {
  font-size: 1rem;
  color: #1f2a24;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.about__image {
  position: relative;
  max-width: 552px;
  height: 614px;
}

.about__image img {
  border-radius: 16px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__title {
  margin-bottom: 1.5rem;
}

.about_full-image .about__title {
  margin-top: 3rem;
}

.about__text {
  max-width: 38rem;
  letter-spacing: 0.02em;
  line-height: 150%;
  margin-bottom: 3.5rem;
}

.about__text p:not(:last-child) {
  margin-bottom: 2.5rem;
}

.approach {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2.5rem;
  margin-bottom: 0;
}

.approach__title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.metrics__item {
  text-align: center;
}

.metrics__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.metrics__icon img {
  width: 9rem;
  height: 9rem;
  object-fit: contain;
}

.metrics__value {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.metrics__label {
  font-size: 0.938rem;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.metrics-section {
  background-color: #f5e4dc;
}

.metrics__container {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 4rem 0.938rem;
}

.menu__link_active {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.outro_about {
  background: url("../images/About/CTA.jpg") center / cover no-repeat;
}

/* **************SERVICES**************** */

.page__main.main_services {
  padding-bottom: 0;
}

.services {
  background-color: #f7f6f2;
}

.services__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.services__title {
  text-align: center;
  margin-bottom: 5rem;
}

.services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item-services {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 100%;
}

/* Homepage: clickable project card with border and rounded corners */
.item-services_card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border: 1px solid #1f2a24;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.item-services_card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(31, 42, 36, 0);
  transition: background-color 0.2s ease;
  pointer-events: none;
}

.item-services_card:hover {
  box-shadow: 0 4px 12px rgba(31, 42, 36, 0.12);
}

.item-services_card:hover::after {
  background-color: rgba(31, 42, 36, 0.12);
}

.item-services_card .item-services__image {
  margin-bottom: 0;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.item-services_card .item-services__image img {
  border-radius: 16px 16px 0 0;
}

.item-services__card-body {
  padding: 1.5rem;
}

.item-services__card-body .item-services__title {
  margin-bottom: 0.5rem;
}

.item-services__card-body .item-services__text {
  margin-bottom: 0;
}

.item-services__image {
  margin-bottom: 2rem;
  width: 360px;
  height: 360px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.item-services__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.item-services__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.item-services__text {
  max-width: 21.5rem;
  line-height: 150%;
  margin-bottom: 2rem;
  flex-grow: 1;
  letter-spacing: 0.02em;
}

.item-services__button {
  background-color: inherit;
  border: 2px solid #1f2a24;
  color: #1f2a24;
}

.outro_services {
  background: url("../images/Projects/CTA.jpg") center / cover no-repeat;
}

/* ************TESTIMONIAL**************** */

.testimonial__container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  width: 100%;
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
  box-sizing: border-box;
}

.testimonial {
  background-color: #f5e4dc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testiomonial__caption {
  margin-bottom: 2.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.testimonial__title {
  margin-bottom: 1rem;
  font-size: 2rem;
  max-width: 40.75rem;
  line-height: 136%;
  font-weight: 500;
}

.testimonial__attribution {
  font-size: 1rem;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 0;
}

.item-testimonial__image {
  max-width: 64px;
  margin: 0 auto;
  margin-bottom: 1.063rem;
  height: 64px;
}

.item-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.item-testimonial__title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.item-testimonial__caption {
  font-size: 0.938rem;
}

/* ****************OUTRO**************** */

.outro__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.outro__title {
  margin-bottom: 1.25rem;
}

.outro__text {
  max-width: 33.625rem;
  line-height: 150%;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.outro__button {
  padding: 1.25rem 3rem;
}

/* ****************FOOTER**************** */

.footer {
  line-height: 150%;
  background-color: #f5e4dc;
}

.footer__container {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0;
}

.footer__policy {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: start;
}

.footer__logo {
  grid-column: 2;
  justify-self: center;
}

.footer__copyright {
  grid-column: 3;
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: end;
}

.page > section {
  border-top: 1px solid #1f2a24;
}

.page > section:last-of-type {
  border-bottom: 1px solid #1f2a24;
}
.logo img {
  max-height: 3.75rem;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* ****************ABOUT PAGE**************** */
.main__text_pages {
  max-width: 37.5rem;
}

.main__container_pages {
  padding-top: 180px;
  flex-direction: column;
  text-align: center;
}

.main__container_pages .main__title,
.main__container_pages .main__text {
  text-align: center;
}

/* ****************SERVICES PAGE**************** */
.services-page__container {
  padding-top: 0;
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.services-page__item {
  margin-bottom: 0;
}

.services-page__item:not(:last-child) {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(31, 42, 36, 0.4);
}

.services-page__column {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.services-page__title {
  margin-bottom: 0.75rem;
}

.services-page__subtitle {
  font-size: 0.95rem;
  color: #1f2a24;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.services-page__text {
  margin-bottom: 56px;
  max-width: 480px;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.services-page__text p:not(:last-child) {
  margin-bottom: 20px;
}

.services-page__tech {
  font-size: 0.95rem;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Project image: full width and height of half the section */
.services-page__img {
  flex: 0 0 50%;
  max-width: 50%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.services-page__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* New Information Architecture: shift image slightly right */
.services-page__item:has(#new-ia) .services-page__img img {
  object-position: 45% center;
}

.services-page__content {
  flex: 1 1 50%;
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-page__button {
  align-self: flex-start;
  width: auto;
}

/* ****************CONTACT PAGE****************/

.contact__container {
  display: flex;
  justify-content: space-between;
  gap: 109px;
  padding-top: 140px;
  padding-bottom: 140px;
}

.contact__title {
  margin-bottom: 48px;
  font-weight: 600;
  line-height: 110%;
  font-size: 40px;
}

.connect-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e1e4eb;
}

.connect-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.connect-contant__type {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 110%;
  text-transform: uppercase;
}

.connect-contact__label {
  font-size: 22px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__link_gh img {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
}

.contact__text {
  max-width: 545px;
  font-size: 18px;
  line-height: 150%;
}

.contact__text p:not(:last-child) {
  margin-bottom: 15px;
}

iframe {
  width: 100vw;
  height: 482px;
}

/* **************REVIEWS PAGE**************** */
.reviews__container {
  padding-top: 160px;
  padding-bottom: 160px;
}

.reviews__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
}

.reviews__column {
  border: 1px solid #e1e4eb;
  border-radius: 8px;
}

.reviews__item {
  padding-top: 48px;
  padding-bottom: 56px;
  padding-right: 32px;
  padding-left: 32px;
}

.item-reviews {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-reviews__img {
  max-width: 46px;
  height: 36px;
  margin: 0 auto;
  margin-bottom: 46px;
}

.item-reviews__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-reviews__text {
  margin-bottom: 40px;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 150%;
}

.item-reviews__author {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.item-reviews__geo {
  font-size: 14px;
  letter-spacing: 0.002em;
}

/* ******************PRICING PAGE******************** */
.pricing__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pricing__caption {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 4%;
}

.pricing__title {
  font-weight: 600;
  font-size: 72px;
  margin-bottom: 24px;
}

.pricing__text {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 88px;
}

.pricing__row {
  display: flex;
  align-items: start;
  gap: 24px;
}

.pricing__column {
  border: 2px solid #e1e4eb;
  border-radius: 8px;
}

.pricing__item {
  padding: 40px;
  padding-bottom: 48px;
}

.item-pricing__info {
  padding-bottom: 32px;
  border-bottom: 1px solid #e1e4eb;
  margin-bottom: 32px;
}

.item-pricing__label {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1%;
  margin-bottom: 16px;
}

.item-pricing__cost {
  font-size: 72px;
  font-weight: 600;
  margin-bottom: 16px;
}

.item-pricing__list {
  margin-bottom: 64px;
}

.item-pricing__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-pricing__item::before {
  content: "";
  background: url("../img/pricing/check.svg") 0 0 no-repeat;
  width: 16px;
  height: 18px;
}

.item-pricing__item:not(:last-child) {
  margin-bottom: 12px;
}

.item-pricing__button {
  display: inline-block;
  font-size: 22px;
  letter-spacing: 2%;
  font-weight: 600;
  color: #1f2a24;
  padding: 20px 82px;
  background-color: #f5e4dc;
  border-radius: 64px;
  transition: background-color 0.3s ease;
}

.team {
  background-color: #f5e4dc;
}

.team__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team__title {
  text-align: center;
  margin-bottom: 96px;
  max-width: 483px;
}

.team__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(3, 1fr);
}

.team__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-team__img {
  max-width: 360px;
  height: 363px;
  margin-bottom: 40px;
}

.item-team__img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.item-team__name {
  max-width: 186px;
  font-size: 32px;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
}

.item-team__role {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  letter-spacing: 2%;
}

.item-team__role span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-team__role span::after {
  content: "";
  background: url("../img/team/icons/star.svg") 0 0 no-repeat;
  width: 12px;
  height: 12px;
}

.item-team__text {
  font-size: 16px;
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
}

.item-team__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* *************FAQ PAGE************** */
.faqs__container {
  padding-top: 140px;
  padding-bottom: 140px;
}

.faqs__title {
  text-align: center;
  margin-bottom: 80px;
}

.spollers-faq__item {
  width: 100%;
}

.spollers-faq__item:not(:last-child) {
  margin-bottom: 24px;
}

.spollers-faq__button {
  display: inline-block;
  border: 2px solid #e1e4eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 8px;
}

.spollers-faq__button span {
  padding-left: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-weight: 600;
}

.spollers-faq__button img {
  padding-right: 34.5px;
}

.spollers-faq__text {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  display: block;
}

.spollers-faq__item.active .spollers-faq__text {
  max-height: 1000px;
  max-height: calc(1000px + 16px);
}

.spollers-faq__item.active .spollers-faq__button {
  border-bottom: none;
  border-radius: 8px 8px 0px 0px;
}

.spollers-faq__item.active .spollers-faq__button span {
  padding-bottom: 32px;
}

.spollers-faq__item.active .spollers-faq__button img {
  transform: translate(-34px, 0px) rotate(180deg);
}

.spollers-faq__inner {
  padding-top: 20px;
  padding-left: 40px;
  border: 2px solid #e1e4eb;
  border-radius: 0px 0px 8px 8px;
  line-height: 150%;
  padding-bottom: 20px;
  border-top: none;
  padding-right: 100px;
}

/* ****************TEAM PAGE**************** */
.director__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  align-items: center;
  gap: 96px;
}

.director__title {
  margin-bottom: 16px;
}

.director__role {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 40px;
}

.director__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 480px;
}

.director__text p:not(:last-child) {
  margin-bottom: 20px;
}

.director__img {
  max-width: 552px;
  height: 614px;
}

.director__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************GALLERY**************** */
.gallery__container {
  padding-bottom: 140px;
  padding-top: 140px;
}

.gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  margin-bottom: 96px;
  justify-items: center;
}

.gallery__item {
  max-width: 360px;
  height: 407px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.gallery__paggination {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.gallery__paggination button:first-child {
  transform: translate(0px, 5px);
}

.gallery__paggination button:last-child {
  transform: rotate(-180deg) translate(0px, 5px);
}

.gallery_active {
  color: #1f2a24;
  padding: 10px 15px;
  background-color: #f5e4dc;
  border-radius: 100px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

/* ****************RESOURCES**************** */
.resources__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  justify-items: center;
}

.resources__img {
  max-width: 360px;
  height: 330px;
  margin-bottom: 32px;
}

.resources__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.resources__title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.resources__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 243px;
  margin-bottom: 32px;
}

.resources__button {
  background-color: #f7f6f2;
  color: #1f2a24;
  font-weight: 600;
  letter-spacing: 2%;
  border: 2px solid #1f2a24;
  border-radius: 64px;
  transition: background-color 0.3s ease;
}

/* ****************ADAPTIVE**************** */

@media (max-width: 992px) {
  .services__row {
    grid-template-columns: 1fr;
    gap: 6rem;
    justify-items: stretch;
  }

  .item-services {
    text-align: center;
    align-items: center;
  }

  .item-services_card {
    width: 100%;
    max-width: none;
  }

  .item-services_card .item-services__image {
    width: 100%;
    max-width: none;
  }

  .page__main {
    padding-bottom: 80px;
  }

  .skills-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 47.999rem) {
  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 995px) {
  .item-pricing__button {
    font-size: 19px;
  }
}

@media (max-width: 62.6875rem) {
  .resources__container {
    padding-top: 70px;
    padding-bottom: 70px;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__paggination {
    gap: 27px;
  }

  .gallery__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .team__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .director__container {
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 70px;
    gap: 10px;
    text-align: center;
  }

  .item-pricing {
    padding: 20px;
    padding-bottom: 30px;
  }

  .pricing__title {
    font-size: 39px;
  }

  .pricing__text {
    margin-bottom: 25px;
  }

  .item-pricing__button {
    padding: 16px 42px;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .footer__policy,
  .footer__copyright {
    justify-self: center;
    text-align: center;
    margin: 0.5rem 0;
  }

  .footer__logo {
    margin-bottom: 1rem;
  }

  .services-page__column {
    gap: 30px;
    font-size: 15px;
  }

  .services-page__title {
    font-size: 29px;
  }

  .reviews__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
    column-gap: 10px;
  }

  .reviews__item {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
    display: inline-block;
  }

  .item-reviews__text {
    font-size: 16px;
  }

  .item-reviews__author {
    font-size: 16px;
  }
}

@media (max-width: 47.999rem) {
  .main:not(.main_pages) {
    height: auto;
    min-height: 0;
    padding-bottom: 2rem;
  }

  .spollers-faq__item.active .spollers-faq__button img {
    transform: translate(-10px, -10px) rotate(180deg);
  }

  .spollers-faq__button span {
    padding-top: 15px;
    padding-left: 10px;
    padding-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
  }

  .spollers-faq__button img {
    padding-right: 10px;
  }

  .spollers-faq__inner {
    font-size: 16px;
    padding-left: 10px;
    line-height: 130%;
  }

  .pricing__container {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .pricing__row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .item-pricing__button {
    font-size: 17px;
    padding: 15px 32px;
  }

  .reviews__container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .icon-menu {
    display: block;
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 1.875rem;
    flex: 0 0 1.875rem;
    width: 1.875rem;
    height: 1.125rem;
    cursor: pointer;
    z-index: 5;
  }

  .icon-menu span,
  .icon-menu::before,
  .icon-menu::after {
    content: "";
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    right: 0;
    position: absolute;
    width: 100%;
    height: 0.125rem;
    background-color: #1f2a24;
  }

  .icon-menu::before {
    top: 0;
  }

  .icon-menu::after {
    bottom: 0;
  }

  .contact__container {
    flex-direction: column;
    padding-top: 80px;
    gap: 50px;
    padding-bottom: 80px;
  }

  .connect-contant__type {
    font-size: 16px;
  }

  .connect-contact__label {
    font-size: 20px;
  }

  .icon-menu span {
    top: calc(50% - 0.0625rem);
  }

  .menu-open .icon-menu span {
    width: 0;
  }

  .menu-open .icon-menu::before {
    top: calc(50% - 0.0625rem);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .menu-open .icon-menu::after {
    bottom: calc(50% - 0.0625rem);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .menu__body {
    background-color: #f7f6f2;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    padding: 9.375rem 0.938rem 1.875rem 0.938rem;
    overflow: auto;
    flex-direction: column;
    row-gap: 5rem;
  }

  .menu__body::before {
    content: "";
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    min-height: 5.75rem;
    background-color: #f7f6f2;
    border-bottom: 1px solid #1f2a24;
    z-index: 2;
  }

  .menu-open .menu__body {
    left: 0;
  }

  .menu-open .menu__body::before {
    left: 0;
  }

  .menu__item {
    text-align: center;
  }

  .menu__item:not(:last-child) {
    margin-bottom: 1.563rem;
  }

  .menu__link {
    font-size: 2rem;
  }

  .actions-header__button {
    font-size: 2rem;
    padding: 0.75rem 1.5rem;
    line-height: 1.1;
    margin-top: 1rem;
  }

  .main__container {
    padding-top: 9.375rem;
    align-items: flex-start;
  }

  /* Homepage hero: title -> image -> text + CTA */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .hero__content {
    display: contents;
  }

  .hero__title {
    order: 1;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
  }

  .hero .main__text {
    order: 3;
    width: 100%;
    max-width: 33.375rem;
    margin-bottom: 0;
    text-align: left;
    padding-left: 1.876rem;
    padding-right: 1.876rem;
  }

  .hero .main__button {
    order: 4;
    margin-bottom: 1rem;
  }

  .hero__image {
    order: 2;
    flex: none;
    max-width: 100%;
    width: 100%;
    padding-top: 0;
  }

  .hero__image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
  }

  .main__container_pages {
    padding-top: 160px;
  }

  .main_about,
  .main_services,
  .main_contact {
    padding: 5.25rem 0.938rem 0;
    height: min(500px, 90vh);
    min-height: min(500px, 90vh);
    max-height: min(500px, 90vh);
  }

  .main_contact {
    height: min(375px, 67.5vh);
    min-height: min(375px, 67.5vh);
    max-height: min(375px, 67.5vh);
  }

  .main_pages .main__container_pages {
    padding-top: 0;
  }

  .main__title {
    font-size: 3rem;
  }

  .page__main .main__title {
    font-size: 3rem;
  }

  .title {
    font-size: 2rem;
  }

  .about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .about__container {
    flex-direction: column;
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
    gap: 4rem;
  }

  .page__about:has(.approach) .about__content {
    padding: 2rem 2.5rem;
    align-items: flex-start;
    text-align: left;
  }

  .page__about:has(.approach) .about__image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }

  .page__about:has(.approach) .about__title {
    margin-top: 2rem;
  }

  .page__about:has(.approach) .about__text {
    margin-left: auto;
    margin-right: auto;
  }

  .skills-section__grid {
    grid-template-columns: 1fr;
  }

  .skills-section__container {
    padding: 3rem;
  }

  .skills-section__title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  /* Blending / Outside work: image visible and responsive when stacked on mobile */
  .about_full-image .about__image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }

  .about_full-image .about__content {
    padding: 2rem 1.876rem 2rem;
    align-items: flex-start;
    text-align: left;
  }

  .services__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .services__item.item-services_card .item-services__card-body {
    width: 100%;
    text-align: left;
  }

  .services__item.item-services_card .item-services__title,
  .services__item.item-services_card .item-services__text {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .testimonial__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .testimonial__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .testiomonial__caption {
    margin-bottom: 2rem;
  }

  .outro__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .logo {
    font-size: 1rem;
  }

  .services-page__column {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    font-size: 20px;
    gap: 4rem;
  }

  /* Project images: visible when stacked on mobile */
  .services-page__img {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 16 / 10;
    order: 1;
  }

  .services-page__content {
    order: 2;
  }

  .services-page__content {
    padding: 2rem 1.876rem;
    text-align: left;
  }

  .services-page__button {
    align-self: center;
    margin-bottom: 2rem;
  }
}

@media (max-width: 61.936rem) {
  .footer__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 0.938rem;
  }

  .logo {
    font-size: 2rem;
  }
}

@media (max-width: 530px) {
  .reviews__row {
    grid-template-columns: 1fr;
  }

  .team__row {
    grid-template-columns: 1fr;
  }

  .gallery__row {
    grid-template-columns: 1fr;
  }

  .resources__container {
    grid-template-columns: 1fr;
  }
}