/*=============== GOOGLE FONTS: loaded via <link> in index.html (removed render-blocking @import) ===============*/

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* Gblendx brand palette: #EB5E28 orange, #FFFCF2 cream,
     #CCC5B9 light grey, #403D39 dark grey, #252422 near-black */
  --first-color: #f99337;
  --first-color-alt: #f28320;
  --beige-color: #e4e0d8;
  --beige-color-light: #efece4;
  --beige-color-alt: #a29a8c;
  --brown-color: #ccc5b9;
  --title-color: #252422;
  --text-color: #5c5952;
  --white-color: #fffcf2;
  --body-color: #fffcf2;
  --container-color: #f5f2e9;
  --border-color: #d9d3c7;

  /*========== 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: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.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: 0.875rem;
    --smaller-font-size: 0.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: 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;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition:
    background-color 0.4s,
    box-shadow 0.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 0.4s;
}

.nav__toggle {
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.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%, 0.15);
    padding: 7rem 0 2rem 2rem;
    z-index: var(--z-fixed);
    transition: right 0.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 0.4s;
}

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

.nav__button {
  background-color: var(--first-color);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  display: inline-flex;
  transition: background-color 0.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: #e4e0d8;
  box-shadow: 0 8px 16px hsla(0, 0%, 0%, 0.15);
}

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

/* Active link */

/*=============== 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.6) 0%,
    hsla(0, 0%, 0%, 0.45) 40%,
    hsl(0, 0%, 0%) 100%
  );
}

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

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

.home__logo {
  width: 120px;
  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: 0.5rem;
  transition: background-color 0.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(--title-color);
}

.about__description {
  color: var(--text-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: 0.5rem;
}

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

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

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

.work__container {
  row-gap: 4rem;
}

.work__description {
  text-align: center;
}

.work__img,
.work__card {
  width: 250px;
  border-radius: 1.5rem;
}

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

.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: 0.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;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--beige-color-alt);
}

.service__plan:last-child {
  border-bottom: none;
}

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

.service__price {
  font: var(--font-medium) var(--h3-font-size) var(--second-font);
}

.service__swiper {
  background-color: var(--first-color);
  border-radius: 1.5rem;
  padding: 2rem 1rem;
}

.service__testimonial-description {
  margin-bottom: 6rem;
}

.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: 6rem;
  display: flex;
  justify-content: center;
  column-gap: 0.25rem;
}

.service .swiper-pagination-bullet {
  width: 24px;
  height: 3px;
  border-radius: 0.5rem;
  background-color: var(--title-color);
  transition:
    opacity 0.4s,
    width 0.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: 2rem;
  margin: initial;
}

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

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

/*=============== EXPERTS SECTION ===============*/
.expert__container {
  row-gap: 4rem;
}

.expert__description {
  text-align: center;
}

.expert__content {
  display: grid;
  justify-content: center;
  gap: 1.5rem;
}

.expert__img {
  width: 120px;
  transition: scale 0.4s;
  transform-origin: left bottom;
}

.expert__card {
  background-color: var(--beige-color-light);
  padding: 0.5rem 2rem 0 2rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.expert__data {
  display: grid;
  row-gap: 1.5rem;
}

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

.expert__profession {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
}

.expert__social {
  display: flex;
  column-gap: 0.5rem;
}

.expert__link {
  font-size: 1.25rem;
  color: var(--text-color);
  transition: color 0.4s;
}

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

.expert__card:hover .expert__img {
  scale: 1.1;
}

/*=============== 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;
}

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

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

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

.contact__info {
  display: grid;
  row-gap: 0.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 ===============*/

/*=============== SCROLL BAR ===============*/

/*=============== SCROLL UP ===============*/

/* Show Scroll Up */

/*=============== 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%;
  }
}

/* For medium devices <> */
@media (width >= 540px) {
  .home__container,
  .about__container,
  .service__container,
  .expert__container,
  .contact__container {
    grid-template-columns: 400px;
    justify-content: center;
  }

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

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

/* 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: 4rem;
  }

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

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

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

  .home {
    height: 870px;
  }

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

  .home__logo {
    width: 150px;
  }

  .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__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;
  }

  .service__testimonial-description {
    margin-bottom: 9rem;
  }

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

  .service .swiper-pagination-bullets {
    bottom: 10rem;
  }

  .service .swiper-button-prev {
    right: 5.5rem;
    bottom: 3rem;
  }

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

  .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;
    justify-self: flex-end;
  }

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

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

  .contact__description {
    margin-bottom: 7rem;
  }

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

/* For 2K resolutions <> */

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--brown-color);
  padding-block: 4rem 2rem;
}

.footer__container {
  display: grid;
  justify-items: center;
  row-gap: 1rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #b3ab9d;
  text-align: center;
}

.footer__description {
  color: var(--text-color);
  font-size: var(--small-font-size);
}

.footer__link {
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-style: normal;
  transition: color 0.4s;
}

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

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

/*=============== GBLENDS LOGO ===============*/
.nav__logo-img {
  width: 130px;
  display: block;
}

.nav__logo-img-dark {
  display: none;
}

.scroll-header .nav__logo-img-white {
  display: none;
}

.scroll-header .nav__logo-img-dark {
  display: block;
}

.footer__logo-img {
  width: 200px;
  display: block;
}

@media screen and (min-width: 1150px) {
  .nav__logo-img {
    width: 150px;
  }

  .footer__logo-img {
    width: 230px;
  }
}

.home__logo {
  width: 230px;
}

@media screen and (min-width: 1150px) {
  .home__logo {
    width: 300px;
  }
}

/*=============== SERVICE NOTE ===============*/
.service__note {
  display: block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-regular);
  color: var(--text-color);
}

/*=============== SIGNATURE BADGE ===============*/
.service__badge {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--title-color);
  font-family: var(--body-font);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

/*=============== FOOTER SOCIAL ===============*/
.footer__social {
  display: inline-flex;
  align-items: center;
  column-gap: 0.4rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
  transition: color 0.4s;
}

.footer__social i {
  font-size: 1.25rem;
}

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

/*=============== SINGLE BARBER CARD ===============*/
.expert__content {
  grid-template-columns: max-content;
  justify-content: center;
}

@media (width >= 1150px) {
  .expert__card {
    width: 300px;
  }
}

/*=============== BARBER PHOTO CARD (Gulraiz Khan) ===============*/
.expert__card {
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.75rem;
  max-width: 320px;
  overflow: hidden;
}

.expert__img {
  order: 0;
  width: 100%;
  border-radius: 1rem;
  transform-origin: center;
}

.expert__card:hover .expert__img {
  scale: 1.03;
}

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

.expert__social {
  flex-direction: row;
  justify-self: flex-end;
}

/*=============== BOOKING MODAL ===============*/
.booking {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.booking--open {
  display: block;
}

.booking__overlay {
  position: absolute;
  inset: 0;
  background-color: hsla(0, 0%, 0%, 0.65);
}

.booking__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--body-color);
  border-radius: 1.5rem;
  padding: 2.5rem 1.75rem 2rem;
  text-align: center;
}

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

.booking__step {
  display: none;
}

.booking__step--active {
  display: block;
}

.booking__title {
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

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

.booking__chosen {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.booking__options {
  display: grid;
  row-gap: 0.75rem;
}

.booking__option {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  background-color: var(--container-color);
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  font-size: var(--normal-font-size);
  color: var(--title-color);
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

.booking__option i {
  color: var(--first-color);
  font-size: 1.25rem;
}

.booking__option:hover {
  border-color: var(--first-color);
  background-color: var(--beige-color-light);
}

.booking__back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  cursor: pointer;
}

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

.booking__form {
  display: grid;
  row-gap: 0.75rem;
}

.booking__hp {
  position: absolute;
  left: -5000px;
  opacity: 0;
  pointer-events: none;
}

.booking__input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  background-color: var(--container-color);
  color: var(--title-color);
  font-size: var(--normal-font-size);
  transition: border-color 0.3s;
}

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

.booking__input:focus {
  border-color: var(--first-color);
}

.booking__note {
  color: var(--text-color);
  font-size: var(--smaller-font-size);
  line-height: 1.5;
}

.booking__error {
  color: #c0392b;
  font-size: var(--smaller-font-size);
  min-height: 1em;
}

.booking__submit {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

.booking__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.booking__success-icon {
  font-size: 3rem;
  color: var(--first-color);
  display: block;
  margin-bottom: 0.5rem;
}

.booking__ref {
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  font-size: var(--h2-font-size);
  color: var(--first-color);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/*=============== BOOKING OPTION ICONS ===============*/
.booking__icon {
  width: 34px;
  height: 34px;
  color: var(--first-color);
  flex-shrink: 0;
}
