/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(28, 95%, 60%);
  --first-color-alt: hsl(28, 95%, 56%);
  --beige-color: hsl(40, 45%, 86%);
  --beige-color-light: hsl(40, 45%, 94%);
  --beige-color-alt: hsl(40, 35%, 72%);
  --brown-color: hsl(18, 15%, 24%);
  --title-color: hsl(0, 0%, 6%);
  --text-color: hsl(0, 0%, 40%);
  --white-color: hsl(0, 0%, 98%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 0%, 96%);
  --border-color: hsl(0, 0%, 85%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Chakra Petch", sans-serif;
  --biggest-font-size: 1.875rem;
  --big-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (width >=1150px) {
  :root {
    --biggest-font-size: 4rem;
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--title-color);
}

input,
button {
  background: none;
  border: none;
  outline: none;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  line-height: 120%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--big-font-size);
  margin-bottom: 1.5rem;
}

.main {
  overflow: hidden;
}

/*=============== TICKER ===============*/
.ticker {
  background-color: var(--brown-color);
  padding: 1.35rem 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid hsla(40, 45%, 72%, .15);
  border-bottom: 1px solid hsla(40, 45%, 72%, .15);
}

.ticker__fade-left,
.ticker__fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker__fade-left {
  left: 0;
  background: linear-gradient(to right, var(--brown-color) 0%, transparent 100%);
}

.ticker__fade-right {
  right: 0;
  background: linear-gradient(to left, var(--brown-color) 0%, transparent 100%);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}

.ticker__track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  white-space: nowrap;
  font-family: var(--second-font);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-bold);
  letter-spacing: .12rem;
  text-transform: uppercase;
  color: var(--beige-color);
  cursor: default;
  transition: color .25s;
}

.ticker__item:hover {
  color: var(--first-color);
}

.ticker__sep {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--first-color);
  opacity: .7;
  flex-shrink: 0;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: background-color .4s, box-shadow .4s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--white-color);
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  transition: color .4s;
}

.nav__toggle {
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color .4s;
}

/* Navigation for mobile devices <> */
@media (width <=1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -120%;
    background-color: var(--body-color);
    width: 300px;
    height: 100%;
    box-shadow: -8px 0 16px hsla(0, 0%, 0%, .15);
    padding: 7rem 0 2rem 2rem;
    z-index: var(--z-fixed);
    transition: right .4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__button {
  background-color: var(--first-color);
  padding: 1rem 2rem;
  border-radius: .5rem;
  display: inline-flex;
  transition: background-color .4s;
}

.nav__button:hover {
  background-color: var(--first-color-alt);
  color: var(--title-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Change header styles */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 8px 16px hsla(0, 0%, 0%, .15);
}

.scroll-header :is(.nav__logo, .nav__toggle) {
  color: var(--title-color);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

.active-link.nav__button {
  color: var(--title-color);
}

/*=============== HOME SECTION ===============*/
.home {
  position: relative;
  height: 800px;
  overflow: hidden;
}

.home__bg,
.home__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.home__bg {
  object-fit: cover;
  object-position: center;
}

.home__shadow {
  background: linear-gradient(180deg,
      hsla(0, 0%, 0%, 0) 20%,
      hsl(0, 0%, 0%) 100%);
}

.home__container {
  height: 100%;
  place-items: center;
}

.home__data {
  z-index: 10;
  text-align: center;
}

.home__logo {
  width: 150px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.home__title {
  color: var(--white-color);
  font-size: var(--biggest-font-size);
}

.home__description {
  color: var(--white-color);
  margin-block: 1rem 3rem;
}


/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  background-color: var(--first-color);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  border-radius: .5rem;
  transition: background-color .4s;
}

.button:hover {
  background-color: var(--first-color-alt);

}

/*=============== ABOUT SECTION ===============*/
.about {
  background-color: var(--brown-color);
}

.about__container {
  row-gap: 4rem;
  padding-bottom: 2.5rem;
}

.about .section__title {
  color: var(--white-color);
}

.about__description {
  color: var(--white-color);
  text-align: center;
  margin-bottom: 3rem;
}

.about__info {
  display: flex;
  justify-content: center;
  column-gap: 4.5rem;
}

.about__number {
  color: var(--first-color);
  font: var(--font-bold) var(--h1-font-size) var(--second-font);
  margin-bottom: .5rem;
}

.about__subtitle {
  font-size: var(--small-font-size);
  color: var(--white-color);
}

.about__img {
  width: 320px;
  border-radius: 1.5rem;
  justify-self: center;
}


/*=============== FOUNDER SECTION ===============*/
.founder {
  background-color: var(--beige-color-light);
}

.founder__container {
  grid-template-columns: 1fr;
  row-gap: 3rem;
  padding-bottom: 2.5rem;
}

/* --- Visual card (left column on desktop) --- */
.founder__visual {
  background-color: var(--beige-color);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px hsla(18, 15%, 24%, .12);
}

/* Row that holds both portrait cards side by side */
.founder__portraits-row {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 1.25rem;
}

/* Individual person card inside the row */
.founder__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.founder__portrait-wrap {
  width: 130px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 4px solid var(--first-color);
  background-color: var(--beige-color-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s;
}

.founder__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s;
}

/* Manager portrait: push image down so there is a visible gap between head and the top of the portrait circle */
.founder__portrait-wrap--manager .founder__photo {
  object-position: center top;
  transform: translateY(20px);
}

.founder__portrait-wrap:hover {
  transform: scale(1.05);
}

.founder__portrait-wrap:hover .founder__photo {
  transform: scale(1.1);
}

/* Preserve the downward offset on manager photo during hover */
.founder__portrait-wrap--manager:hover .founder__photo {
  transform: translateY(20px) scale(1.1);
}

.founder__initials {
  font-family: var(--second-font);
  font-size: 2.2rem;
  font-weight: var(--font-bold);
  color: var(--white-color);
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: var(--brown-color);
}

.founder__name {
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: .25rem;
}

.founder__role {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.founder__values {
  text-align: left;
}

.founder__values li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .55rem 0;
  font-size: var(--small-font-size);
  color: var(--title-color);
  border-bottom: 1px solid var(--beige-color-alt);
}

.founder__values li:last-child {
  border-bottom: none;
}

.founder__dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background-color: var(--first-color);
  border-radius: 50%;
  margin-top: 5px;
}

/* --- Text block (right column on desktop) --- */
.founder__tag {
  display: inline-block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  letter-spacing: .08rem;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.founder__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.founder__text p {
  color: var(--text-color);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.founder__cta {
  margin-top: .5rem;
}

/* Responsive: two-column side-by-side on large screens */
@media (width >=768px) {
  .founder__container {
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
    align-items: center;
  }
}

/*=============== WORKS SECTION ===============*/
.work {
  background-color: var(--beige-color);
}

.work__container {
  row-gap: 4rem;
}

/* Small orange tag above the title */
.work__tag {
  display: inline-block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  letter-spacing: .08rem;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

/* Block that holds the dynamic label + description */
/* Fixed height + overflow hidden = text changes NEVER shift the layout */
.work__service-block {
  height: 7rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

/* Bold service name (e.g. "Personal Care & Hygiene") */
.work__service-label {
  text-align: center;
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: .4rem;
  transition: opacity .22s ease, transform .22s ease;
}

.work__description {
  text-align: center;
  transition: opacity .22s ease, transform .22s ease;
}

/* Fade state applied by JS during slide change */
.work__text--fade {
  opacity: 0;
  transform: translateY(6px);
}

/* Swiper class */
.work__swiper {
  width: 100%;
  border-radius: 1.5rem;
}

.work__card {
  width: 250px;
  border-radius: 1.5rem;
  overflow: hidden;
  /* ensures the scaled image doesn't overflow the rounded corners */
}

.work__img {
  width: 250px;
  border-radius: 1.5rem;
  transition: transform .4s;
}

.work__card:hover .work__img {
  transform: scale(1.05);
}

.work__data {
  padding-bottom: 7rem;
}

.work .swiper-pagination-fraction {
  font-weight: var(--font-semi-bold);
  bottom: 3rem;
}

.work .swiper-navigation-icon {
  display: none;
}

.work :is(.swiper-button-prev, .swiper-button-next) {
  top: initial;
  left: initial;
  bottom: .5rem;
  width: initial;
  height: initial;
  margin: initial;
  color: var(--title-color);
  font-size: 1.5rem;
}

.work .swiper-button-prev {
  left: calc(50% - 3rem);
}

.work .swiper-button-next {
  right: calc(50% - 3rem);
}

/*=============== SERVICES SECTION ===============*/
.service {
  background-color: var(--beige-color);
}

.service__container {
  row-gap: 4rem;
  padding-bottom: 2.5rem;
}

.service .section__title {
  margin-bottom: 3rem;
}

.service__prices {
  display: grid;
  row-gap: 1rem;
}

.service__plan {
  display: flex;
  flex-direction: column;
  padding-bottom: .75rem;
}

.service__plan+.service__plan {
  border-top: 1px solid var(--beige-color-alt);
  padding-top: .75rem;
}

.service__name {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

/* Toggle button row — keeps same look as old name+price row */
.service__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  padding-bottom: .25rem;
}

.service__toggle-icon {
  font-size: 1.1rem;
  color: var(--first-color);
  transition: transform .3s;
  flex-shrink: 0;
  margin-left: .5rem;
}

.service__plan--open .service__toggle-icon {
  transform: rotate(45deg);
}

/* Hidden dropdown answer */
.service__dropdown {
  max-height: 0;
  overflow: hidden;
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.65;
  transition: max-height .35s ease, padding .35s ease;
}

.service__plan--open .service__dropdown {
  max-height: 6rem;
  padding-top: .4rem;
  padding-bottom: .25rem;
}

.service__swiper {
  background-color: var(--first-color);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem 8rem;
  /* 8rem bottom reserved for bullets + arrows */
}

.service__testimonial-description {
  margin-bottom: 1.5rem;
  /* gap between description and name */
}

/* Star rating — left-aligned, orange, simple */
.service__stars {
  color: var(--title-color);
  font-size: 1rem;
  letter-spacing: .1rem;
  margin-bottom: .6rem;
  text-align: left;
}

.service__testimonial-name {
  font-size: var(--normal-font-size);
}

/* Swiper class */
.service__swiper {
  width: 100%;
}

.service .swiper-pagination-bullets {
  position: absolute;
  top: initial;
  left: 0;
  right: 0;
  bottom: 5rem;
  /* sits in the 8rem reserved zone, above the arrows */
  display: flex;
  justify-content: center;
  column-gap: .25rem;
}

.service .swiper-pagination-bullet {
  width: 24px;
  height: 3px;
  border-radius: .5rem;
  background-color: var(--title-color);
  transition: opacity .4s, width .4s;
}

.service .swiper-pagination-bullet-active {
  width: 32px;
}

.service .swiper-navigation-icon {
  display: none;
}

.service :is(.swiper-button-prev, .swiper-button-next) {
  width: 24px;
  height: 24px;
  border: 2px solid var(--title-color);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 1rem;
  top: initial;
  left: initial;
  bottom: 2.5rem;
  /* sits at the bottom of the reserved zone */
  margin: initial;
}

.service .swiper-button-prev {
  right: 3.5rem;
}

.service .swiper-button-next {
  right: 1rem;
}

/*=============== EXPERTS SECTION ===============*/

.faq {
  background-color: var(--body-color);
  /* To add your image: 
     1. Place your image in assets/img/ 
     2. Rename it to faq-bg.jpg or update the path below 
     3. Adjust the 0.96 opacity (closer to 1 = more white) */
  background: linear-gradient(hsla(0, 0%, 100%, 0.96), hsla(0, 0%, 100%, 0.96)),
    url('../img/faq-bg.jpg') no-repeat center / cover;
}

.faq__container {
  padding-bottom: 3rem;
}

.faq__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.faq__tag {
  display: inline-block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  font-style: italic;
  letter-spacing: .04rem;
  margin-bottom: .5rem;
}

.faq__title {
  font-size: var(--big-font-size);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.faq__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.75;
  max-width: 560px;
  margin-inline: auto;
}

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

.faq__card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.faq__icon {
  font-size: 2.5rem;
  color: var(--first-color);
  line-height: 1;
  transition: transform .4s;
}

.faq__name {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  transition: transform .4s;
}

.faq__card:hover .faq__icon,
.faq__card:hover .faq__name {
  transform: scale(1.1);
}

.faq__desc {
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.75;
  max-width: 240px;
}

/* Medium devices */
@media (width >=540px) {
  .faq__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices */
@media (width >=1150px) {
  .faq__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem 2rem;
  }

  .faq__desc {
    max-width: 220px;
  }

  .faq__icon {
    font-size: 3rem;
  }
}


/*=============== CONTACT SECTION ===============*/
.contact__container {
  row-gap: 4rem;
  padding-bottom: 3rem;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
}

.contact__map {
  width: 320px;
  height: 445px;
  justify-self: center;
  border-radius: 1.5rem;
  overflow: hidden;
}

.contact__data {
  text-align: center;
}

.contact__description {
  margin-bottom: 2.5rem;
}

.contact__content {
  display: grid;
  row-gap: 3rem;
  width: 320px;
  margin-inline: auto;
}

.contact__card {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.contact__card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact__icon {
  width: 64px;
  height: 64px;
  background-color: var(--title-color);
  border-radius: .75rem;
  color: var(--white-color);
  font-size: 2.5rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.contact__info {
  display: grid;
  row-gap: .5rem;
}

.contact__title {
  font-size: var(--h2-font-size);
}

.contact__address {
  font-style: initial;
}

.contact__address :is(span, a) {
  display: block;
  color: var(--title-color);
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: 2rem;
}

.footer__container {
  row-gap: 4rem;
}

.footer__logo {
  font: var(--font-bold) var(--h2-font-size) var(--second-font);
  color: var(--title-color);
}

.footer__description {
  margin-block: 1rem .5rem;
}

.footer__email {
  font-style: initial;
}

.footer__email a {
  color: var(--title-color);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 2.5rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.footer__links {
  display: grid;
  row-gap: .5rem;
}

.footer__link {
  color: var(--text-color);
  transition: color .4s;
}

.footer__link:hover {
  color: var(--title-color);
}

.footer__social {
  display: flex;
  column-gap: .75rem;
}

.footer__social-link {
  font-size: 1.5rem;
  color: var(--title-color);
  transition: color .4s;
}

.footer__social-link:hover {
  color: var(--text-color);
}

.footer__copy {
  display: block;
  margin-top: 6rem;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background-color: hsl(0, 0%, 20%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 60%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 70%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, .15);
  color: var(--title-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: .25rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}

.scrollup:hover {
  transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices <> */
@media (width <=350px) {
  .expert__card {
    flex-direction: column;
    padding: 1rem 3rem 0 3rem;
  }

  .expert__img {
    order: 1;
  }

  .expert__info {
    text-align: center;
  }

  .expert__social {
    justify-content: center;
  }

  .contact__map {
    width: 100%;
  }

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

/* For medium devices <> */
@media (width >=540px) {

  .home__container,
  .about__container,
  .service__container,
  .expert__container,
  .contact__container {
    grid-template-columns: 400px;
    justify-content: center;
  }

  /* Widen contact map + cards to fill the 400px column */
  .contact__map,
  .contact__content {
    width: 400px;
  }

  .work__data {
    width: 400px;
    margin-inline: auto;
  }
}

@media (width >=788px) {
  .expert__content {
    grid-template-columns: repeat(2, max-content);
  }

  .footer__content {
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
  }
}

/* For large devices <> */
@media (width >=1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 5rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 2.5rem;
  }

  .nav__link {
    white-space: nowrap;
  }

  .nav__link {
    color: var(--white-color);
  }

  .nav__button {
    color: var(--title-color);
  }

  /* Active link */
  .active-link {
    color: var(--first-color);
  }

  /* Change header styles*/
  .scroll-header .nav__link,
  .scroll-header .active-link.nav__button {
    color: var(--title-color);
  }

  .scroll-header .active-link,
  .scroll-header .nav__link:hover {
    color: var(--first-color);
  }

  .scroll-header .nav__button:hover {
    color: var(--title-color);
  }

  .home {
    height: 870px;
  }

  .home__container {
    grid-template-columns: 665px;
  }

  .home__logo {
    width: 180px;
  }

  .home__description {
    margin-bottom: 4rem;
  }

  .about__container {
    grid-template-columns: 500px 480px;
    align-items: center;
    column-gap: 8rem;
    padding-block: 3rem;
  }

  .about__img {
    width: 500px;
    order: -1;
  }

  .about__data .section__title {
    text-align: initial;
  }

  .about__description {
    margin-bottom: 4rem;
    text-align: initial;
  }

  .about__info {
    justify-content: initial;
  }

  .about__number {
    font-size: var(--big-font-size);
    margin-bottom: 1rem;
  }

  .about__subtitle {
    font-size: var(--h3-font-size);
  }

  .work {
    padding-bottom: 2rem;
  }

  .work__container {
    grid-template-columns: 300px 740px;
    column-gap: 5rem;
    padding-top: 4rem;
  }

  .work__service-label {
    text-align: left;
  }

  .work__data {
    width: initial;
    padding-bottom: 12rem;
  }

  .work__data .section__title,
  .work__description,
  .work .swiper-pagination {
    text-align: initial;
  }

  .work .swiper-button-prev {
    left: 0;
  }

  .work .swiper-button-next {
    left: 4.5rem;
    right: initial;
  }

  .work__img,
  .work__card {
    width: 320px;
  }

  .service__container {
    grid-template-columns: repeat(2, 450px);
    align-items: center;
    column-gap: 12rem;
    padding-top: 4rem;
  }

  .service__swiper {
    order: -1;
    padding: 3rem 3rem 10rem;
    /* 10rem bottom reserved on desktop */
  }

  .service__testimonial-description {
    margin-bottom: 1.5rem;
    /* gap between description and name on desktop */
  }

  .service__testimonial-name {
    font-size: var(--h3-font-size);
  }

  .service .swiper-pagination-bullets {
    bottom: 7rem;
    /* bullets row, well inside the 10rem reserved zone */
  }

  .service .swiper-button-prev {
    right: 5.5rem;
    bottom: 3.5rem;
    /* arrows row, below bullets */
  }

  .service .swiper-button-next {
    right: 3rem;
    bottom: 3.5rem;
  }

  .service__data .section__title {
    text-align: initial;
  }

  .service__prices {
    row-gap: 1.5rem;
  }

  .expert {
    padding-bottom: 2rem;
  }

  .expert__container {
    grid-template-columns: initial;
    row-gap: 5rem;
  }

  .expert__description {
    width: 550px;
    margin-inline: auto;
  }

  .expert__content {
    grid-template-columns: repeat(4, 262px);
  }

  .expert__card {
    padding: 1.5rem 1.5rem 0;
    flex-direction: column;
  }

  .expert__img {
    order: 1;
    width: 200px;
  }

  .expert__data {
    width: 100%;
    grid-template-columns: 1fr max-content;
    column-gap: 1rem;
  }

  .expert__name {
    font-size: var(--h3-font-size);
  }

  .expert__social {
    flex-direction: column;

  }

  .contact__container {
    grid-template-columns: 355px 320px 355px;
    column-gap: 2.5rem;
    align-items: center;
    padding-top: 4rem;
  }

  /* Reset to auto so map and cards fill their grid columns naturally */
  .contact__map,
  .contact__content {
    width: auto;
  }

  .contact__data,
  .contact__data .section__title {
    text-align: initial;
  }

  .contact__description {
    margin-bottom: 7rem;
  }

  .contact__title {
    font-size: var(--h3-font-size);
  }

  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .footer__logo {
    font-size: var(--h3-font-size);
  }

  .footer__description {
    margin-top: 1.5rem;
  }

  .footer__content {
    column-gap: 10rem;
  }

  .footer__title {
    margin-bottom: 1.5rem;
  }

  .scrollup {
    right: 3rem;
  }
}

/*=============== CONTACT FORM SECTION ===============*/
.cform {
   background-color: var(--body-color);
}

.cform__container {
   grid-template-columns: 1fr;
   row-gap: 3.5rem;
   padding-bottom: 3rem;
}

/* --- Left: form side --- */
.cform__tag {
   display: inline-block;
   font-size: var(--smaller-font-size);
   font-weight: var(--font-semi-bold);
   color: var(--first-color);
   font-style: italic;
   margin-bottom: .5rem;
}

.cform__title {
   font-size: var(--h1-font-size);
   color: var(--title-color);
   margin-bottom: 2rem;
}

.cform__form {
   display: flex;
   flex-direction: column;
   gap: 1.25rem;
}

.cform__row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1.25rem;
}

.cform__field {
   display: flex;
   flex-direction: column;
   gap: .4rem;
}

.cform__label {
   font-size: var(--small-font-size);
   font-weight: var(--font-medium);
   color: var(--title-color);
}

.cform__input {
   background-color: var(--container-color);
   border: 1px solid var(--border-color);
   border-radius: .5rem;
   padding: .85rem 1rem;
   font-family: var(--body-font);
   font-size: var(--small-font-size);
   color: var(--title-color);
   width: 100%;
   transition: border-color .3s;
}

.cform__input::placeholder {
   color: var(--text-color);
}

.cform__input:focus {
   border-color: var(--first-color);
   outline: none;
}

.cform__select {
   appearance: none;
   cursor: pointer;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 1rem center;
   background-size: 1.1rem;
   padding-right: 2.5rem;
}

.cform__textarea {
   resize: vertical;
   min-height: 130px;
}

.cform__submit {
   align-self: flex-start;
   font-family: var(--second-font);
   letter-spacing: .06rem;
}

/* --- Right: image + floating card --- */
.cform__right {
   position: relative;
}

.cform__img-wrapper {
   overflow: hidden;
   border-radius: 1.5rem;
}

.cform__photo {
   width: 100%;
   height: 480px;
   object-fit: cover;
   object-position: center top;
   display: block;
   animation: zoom-effect 12s ease-in-out infinite;
}

@keyframes zoom-effect {
   0% {
      transform: scale(1);
   }
   50% {
      transform: scale(1.1);
   }
   100% {
      transform: scale(1);
   }
}

.cform__card {
   background-color: var(--body-color);
   border-radius: 1.25rem;
   padding: 1.75rem;
   margin-top: 1.5rem;
   box-shadow: 0 8px 32px hsla(0, 0%, 0%, .08);
}

.cform__card-tag {
   display: inline-block;
   font-size: var(--smaller-font-size);
   font-weight: var(--font-semi-bold);
   color: var(--first-color);
   font-style: italic;
   margin-bottom: .5rem;
}

.cform__card-title {
   font-size: var(--h2-font-size);
   color: var(--title-color);
   margin-bottom: .6rem;
   line-height: 1.3;
}

.cform__card-sub {
   font-size: var(--small-font-size);
   color: var(--text-color);
   margin-bottom: 1.5rem;
   line-height: 1.65;
}

.cform__info-list {
   display: flex;
   flex-direction: column;
   gap: 1.1rem;
}

.cform__info-item {
   display: flex;
   align-items: flex-start;
   gap: 1rem;
}

.cform__info-icon {
   width: 44px;
   height: 44px;
   min-width: 44px;
   background-color: var(--first-color);
   border-radius: 50%;
   color: var(--white-color);
   font-size: 1.2rem;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
}

.cform__info-body {
   display: flex;
   flex-direction: column;
   gap: .2rem;
}

.cform__info-title {
   font-size: var(--normal-font-size);
   font-family: var(--second-font);
   color: var(--title-color);
}

.cform__info-text,
.cform__info-text a {
   font-size: var(--small-font-size);
   color: var(--text-color);
   line-height: 1.55;
}

.cform__info-text a:hover {
   color: var(--first-color);
}

/* Desktop: two-column side by side */
@media (width >= 1150px) {
   .cform__container {
      grid-template-columns: 1fr 1fr;
      column-gap: 5rem;
      align-items: start;
      padding-top: 2rem;
   }

   .cform__photo {
      height: 640px;
   }

   .cform__left {
      min-height: 640px;
      display: flex;
      flex-direction: column;
      justify-content: center;
   }

   /* Card overlaps the image on large screens */
   .cform__card {
      position: absolute;
      bottom: 5rem;
      right: -7.5rem;
      width: 360px;
      margin-top: 0;
      box-shadow: 0 16px 48px hsla(0, 0%, 0%, .14);
   }
}

/* Tablet */
@media (width >= 540px) and (width < 1150px) {
   .cform__container {
      grid-template-columns: 1fr;
      max-width: 560px;
      margin-inline: auto;
   }
}


/* For 2K resolutions <> */
@media (width >=2048px) {
  body {
    zoom: 1.2;
  }
}