/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

Default: 400

--- 02 COLORS

https://yeun.github.io/open-color/ - Indigo 7
- Primary: #4263eb
- Tints: #edf2ff
- Shades: 
- Accents:
- Greys: #555, #444;

--- 05 SHADOWS

--- 06 BORDER-RADIUS

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128


*/

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

html {
  /* font-size: 10px; */
  /* 10px / 16px (default) = 0.625 = 62.5% */
  font-size: 62.5%;
  /* Does NOT work on old Safari*/
  /*scroll-behavior: smooth;*/
}

body {
  font-family: "Rubik", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #555;
}

.center-text {
  text-align: center;
}

.container {
  max-width: 120rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  column-gap: 6.4rem;
  row-gap: 9.6rem;
}

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

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.heading-primary {
  font-size: 5.2rem;
  line-height: 1.05;
  margin-bottom: 3.2rem;
  letter-spacing: -1px;
}

.heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 8rem;
}

.subheading {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: #4263eb;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.75px;
}

.btn {
  display: inline-block;

  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;

  /* Only necessary for .btn */
  border: none;
  cursor: pointer;
  font-family: inherit;

  /* Put transition on original "state" */
  /* transition: background-color 0.3s; */
  transition: all 0.3s;
}

.btn--full:link,
.btn--full:visited {
  background-color: #4263eb;
  color: #fff;
}

.btn--full:hover,
.btn--full:active {
  background-color: #4c6ef5;
}

.btn--card {
  font-size: 1.8rem;
  padding: 1.4rem 2.8rem;
  position: absolute;
  bottom: 3.6rem;
  margin-right: 3.6rem;
}

.btn--card:link,
.btn--card:visited {
  background-color: #4263eb;
  color: #fff;
}

.btn--card:hover,
.btn--card:active {
  background-color: #4c6ef5;
}

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

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #edf2ff;

  /* Because we want header to be sticky later */
  height: 9.6rem;
  padding: 0 3.2rem;
  position: relative;
}

.logo {
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.5s;
}

.logo span {
  display: inline-block;
  margin-top: 1px;
}

.logo:link,
.logo:visited {
  color: #555;
}

.logo:hover,
.logo:active {
  color: #4263eb;
}

.logo-img {
  height: 2rem;
  transition: all 0.5s;
}

/**************************/
/* NAVIGATION */
/**************************/

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4.8rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #4263eb;
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
  color: #fff;
  background-color: #4c6ef5;
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  background-color: #4c6ef5;
}

/* MOBILE */
.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;

  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #333;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

/* STICKY NAVIGATION */
.sticky .header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 4.8rem;
  padding-top: 0;
  padding-bottom: 0;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 5;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
}

.sticky .logo-img {
  height: 1.6rem;
}

.sticky .logo {
  font-size: 1.2rem;
}

.sticky .main-nav-list {
  gap: 3.2rem;
}

.sticky .main-nav-link {
  font-size: 1.5rem;
}

.sticky .main-nav-link.nav-cta {
  padding: 1rem 2rem;
}

.sticky .section-hero {
  margin-top: 9.6rem;
}

/**************************/
/* HERO */
/**************************/
.section-header-bottom {
  padding-top: 3.2rem;
  background-color: #edf2ff;
}

.section-hero {
  background-color: #edf2ff;
  padding: 0 0 9.6rem 0;
  margin-bottom: 9.6rem;
}

.hero {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 3.2rem;
  font-size: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8rem;
}

.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 4.8rem;
}

.hero-img {
  width: 100%;
}

/**************************/
/* FEATURES */
/**************************/
.feature-container {
  margin-bottom: 9.6rem;
}

.feature-icon {
  color: #4263eb;
  height: 3.2rem;
  width: 3.2rem;
  background-color: #edf2ff;
  margin-bottom: 3.2rem;
  padding: 1.6rem;
  border-radius: 50%;
  contain: inherit;
}

.feature-title {
  font-size: 2.4rem;
  color: #444;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.feature-text {
  font-size: 1.8rem;
  line-height: 1.8;
}

/**************************/
/* SERVICES SECTION */
/**************************/

.section-services {
  padding: 9.6rem 0 0 0;
}

.service {
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
  border-radius: 11px;
  overflow: hidden;
  transition: all 0.4s;
  position: relative;
  max-width: 40rem;
}

.service:hover {
  box-shadow: 0 3.2rem 6.4rem rgba(0, 0, 0, 0.15);
}

.service-content {
  padding: 2.4rem 2.4rem 3.6rem 3.6rem;
}

.service-tags {
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #333;
  border-radius: 100px;
  font-weight: 600;
}

.tag--ugyfelkapu {
  background-color: #228be6;
  color: #fff;
}
.tag--lekerdezes {
  background-color: #94d82d;
}
.tag--bejelentes {
  background-color: #ffd43b;
}

.service-title {
  font-size: 2.4rem;
  color: #444;
  font-weight: 600;
  margin-bottom: 3.2rem;
}

.service-attributes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 7.4rem;
}

.service-attribute {
  font-size: 1.8rem;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: center;
  gap: 1.6rem;
}

.service-attribute-icon {
  height: 2.4rem;
  width: 2.4rem;
  color: #4263eb;
}

.service-img {
  width: 100%;
}

/**************************/
/* TESTIMONIALS SECTION */
/**************************/

.section-gallery {
  background-color: #edf2ff;
  align-items: center;
  padding: 9.6rem 0 3.2rem 0;
}

.gallery-heading {
  padding: 0 6.4rem 0 6.4rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding-bottom: 1.6rem;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  transition: all 0.4s;
  cursor: pointer;
}

.gallery-item img:hover {
  transform: scale(1.1);
}

/***************************/
/* MESSAGE - Üzenet küldés */
/***************************/

.section-message {
  padding: 9.6rem 0 12.8rem;
}

.message {
  display: grid;
  grid-template-columns: 2fr 1fr;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.03);
  border-radius: 11px;
  /* background-image: linear-gradient(to right bottom, #edf2ff, #dbe4ff); */
  border: 0.2rem solid #edf2ff;
  overflow: hidden;
}

.message-text-box {
  padding: 4.8rem 4.8rem 4.8rem 4.8rem;
  color: #202f77;
}

.message-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 4.8rem;
}

.message-img-box {
  background-image: linear-gradient(
      to right bottom,
      rgba(237, 242, 255, 0.35),
      rgba(219, 228, 255, 0.35)
    ),
    url("img/message.png");
  /* background-image: url("img/message.png"); */
  background-size: cover;
  background-position: center;
}

textarea {
  resize: none;
}

.message-form {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3.2rem;
  row-gap: 2.4rem;
}

.message-form label {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.8rem;
  font-family: inherit;
  color: inherit;
  border: none;
  background-color: #edf2ff;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: #aaa;
}

.btn--form {
  background-color: #4263eb;
  color: #fff;
  padding: 1.2rem 2.4rem;
}

.btn--form:hover {
  background-color: #4c6ef5;
  color: #fff;
}

.message *:focus {
  outline: none;
  box-shadow: 0 0 0.5rem 0.5rem rgba(145, 167, 255, 0.5);
}

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

.footer {
  padding: 4.8rem 0 4.8rem 0;
  /* background-color: #eee; */
  border-top: 1px solid #eee;
}

.footer-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #767676;
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  color: #767676;
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: #555;
}

/**************************/
/* IMAGE MODAL */
/**************************/

.img-modal {
  padding: 2.4rem;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  transition: all 0.5s;
  z-index: 10;

  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.img-modal-open .img-modal {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.img-modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
}

.img-modal-content img {
  z-index: 20;
  max-width: 100%;
  max-height: 100%;
}

.img-modal-next,
.img-modal-prev,
.img-modal-close {
  position: absolute;
  color: #aaa;
  font-size: 20px;
  font-weight: bold;
  z-index: 20;
}

.img-modal-next ion-icon,
.img-modal-prev ion-icon,
.img-modal-close ion-icon {
  pointer-events: none;
}

.img-modal-close {
  top: 0;
  right: 0;
}

.img-modal-next {
  right: -2rem;
}

.img-modal-prev {
  left: -2rem;
}
.img-modal-next:hover,
.img-modal-prev:hover,
.img-modal-close:hover {
  color: #000;
  cursor: pointer;
}

.no-next-img .img-modal-next {
  display: none;
}

.no-prev-img .img-modal-prev {
  display: none;
}

.img-modal-closeoverlay {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  display: block;
  z-index: 10;
  position: fixed;
}

/**************************/
/* MEDIA QUERIES */
/**************************/

/* 77em = 1232 px */
@media (max-width: 77em) {
  .grid--3-cols {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    column-gap: 3.2rem;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 70em = 1120 px */
@media (max-width: 70em) {
  .heading-primary {
    font-size: 4.4rem;
  }
  .hero-description {
    font-size: 1.8rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 6.4rem;
  }
  .hero-img-box {
    grid-row: 1;
    margin: 0 auto;
    max-width: 58rem;
  }

  .message {
    /* 3/5 = 60% + 2/5 = 40% */
    grid-template-columns: 3fr 2fr;
  }
}

/* 49em = 784 px */
@media (max-width: 49em) {
  .grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-img-box {
    max-width: 40rem;
  }
  .service-content {
    padding: 2.4rem 2.4rem 3.6rem 2.4rem;
  }
  .btn--card {
    font-size: 1.6rem;
  }
  .message {
    grid-template-columns: 1fr;
  }
  .message-img-box {
    height: 32rem;
    grid-row: 1;
  }

  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 5;
  }
  .main-nav {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    /* Hide navigation */
    /* Allows NO transitions at all */
    /* display: none; */

    /* 1) Hide it visually */
    opacity: 0;

    /* 2) Make it unaccessible to mouse and keyboard */
    pointer-events: none;

    /* 3) Hide it from screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }
}

/* 45em = 720 px */
@media (max-width: 45em) {
  .grid--3-cols {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }

  .btn--card {
    font-size: 1.8rem;
  }
}

/* 30em = 480 px */
@media (max-width: 30em) {
  .grid--4-cols {
    grid-template-columns: 1fr;
  }
  .btn--card {
    margin-right: 2.4rem;
    padding: 1.4rem 2.8rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .no-flexbox-gap .footer-content :not(:last-child) {
    margin-bottom: 0.5rem;
  }
  .gallery-heading {
    padding: 0 3.2rem 0 3.2rem;
  }
}

/* 24.3em = 388,8 px */
@media (max-width: 24.3em) {
  .btn--card {
    font-size: 1.6rem;
  }
}

.no-flexbox-gap .service-attribute:not(:last-child) {
  margin-bottom: 2rem;
}

.no-flexbox-gap .service-icon {
  margin-right: 1.6rem;
}

.no-flexbox-gap .tag:not(:last-child) {
  margin-right: 0.4rem;
}

.no-flexbox-gap .footer-content :not(:last-child) {
  margin-right: 3rem;
}
