:root {
  --primary-color: #284389;
  --secondary-color: #ed8b00;
  --grey-100: #e5eaf2;
  --grey-50: #f3f6f9;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: "Vazirmatn", sans-serif;
  color: #32373c;
  background: #fff;
}

img {
  max-width: 100%;
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

iframe {
  background-color: transparent;
  border: 0;
}

/* ========================================================= */
/* Common */
/* ========================================================= */

.grid-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 72px;
  padding-right: 72px;
}

.section {
  padding: 24px 72px;
}

.section-title {
  margin: 0;
  padding: 16px 0;
  text-align: center;
  color: var(--primary-color);
  font-size: 2.125rem;
  line-height: 1.2;
  font-weight: 700;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--secondary-color);
  margin: 20px auto;
  border-radius: 5px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

p {
  line-height: 1.9;
  text-align: justify;
}

/* ========================================================= */
/* Header */
/* ========================================================= */

header.website {
  position: sticky;
  top: 0;
  z-index: 1100;
  margin-bottom: -70px;

  transition: top 300ms cubic-bezier(0.4, 0, 0.2, 1);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: inset 0 -1px 1px var(--grey-100);

  background-color: rgba(255, 255, 255, 0.8);
}

.header-container {
  min-height: 70px;

  display: flex;
  align-items: center;

  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  display: block;
}

.main-navigation {
  flex-grow: 1;
}

.desktop-menu {
  display: flex;

  align-items: center;

  padding: 0;
  margin: 0;

  list-style: none;

  gap: 16px;
}

.desktop-menu li {
  margin: 0;
  padding: 0;
}

.desktop-menu a {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 6px 8px;

  font-size: 1rem;
  font-weight: 500;

  border-radius: 12px;

  border: 1px solid transparent;

  transition: 0.2s;
}

.desktop-menu a:hover {
  border-color: var(--grey-100);
  background-color: rgba(63, 66, 70, 0.04);
}

/* ========================================================= */
/* Header Phone */
/* ========================================================= */

.header-phone {
  display: flex;

  flex-direction: row-reverse;

  align-items: center;

  gap: 8px;

  flex-shrink: 0;

  font-size: 1.25rem;
  font-weight: bold;

  color: var(--primary-color);
}

.header-phone svg {
  width: 24px;
  height: 24px;
}

/* ========================================================= */
/* Mobile Menu */
/* ========================================================= */

.mobile-menu-container {
  display: none;

  position: relative;
}

.mobile-menu-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 6px;

  min-height: 34px;

  padding: 5px 12px;

  background: transparent;

  color: #32373c;

  border: 1px solid var(--grey-100);

  border-radius: 16px;

  font-family: inherit;

  font-size: 0.9rem;

  cursor: pointer;
}

.mobile-menu-button:hover {
  background-color: rgba(63, 66, 70, 0.04);
}

.mobile-menu-button .menu-icon {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  position: absolute;

  top: calc(100% + 8px);

  right: 0;

  z-index: 1200;

  width: 190px;

  padding: 8px;

  background: white;

  border: 1px solid var(--grey-100);

  border-radius: 8px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.mobile-menu a {
  display: block;

  padding: 10px 12px;

  border-radius: 6px;

  font-size: 0.95rem;

  transition: background-color 0.2s;
}

.mobile-menu a:hover {
  background-color: var(--grey-50);
}

/* ========================================================= */
/* Hero */
/* ========================================================= */

.hero {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: visible;
}

.hero-image {
  display: block;

  width: 100%;
  height: auto;
}

.banner-text {
  position: absolute;

  width: 100%;

  top: 270px;

  right: 0;
}

.banner-text h1 {
  color: var(--primary-color);

  font-size: 2.5rem;

  font-weight: 500;

  line-height: 1.3;

  margin: 0;
}

.banner-text h4 {
  padding-top: 20px;

  margin: 0;

  font-size: 1.5rem;
  font-weight: 400;

  line-height: 1.235;
}

/* ========================================================= */
/* Main */
/* ========================================================= */

main.website {
  margin-top: 60px;
}

main.website h2 {
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
}

/* ========================================================= */
/* Services */
/* ========================================================= */

.services-section {
  width: 100%;
}

.services {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 32px;

  padding-top: 24px;
}

.service-column {
  min-width: 0;
}

.service-item {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  min-height: 200px;

  padding: 12px 20px;

  border-radius: 16px;

  box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.2);

  transition: 0.35s;

  border-top: 4px solid var(--primary-color);

  background: #fff;
}

.service-item:hover {
  transform: translateY(-3px);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.service-icon {
  width: 64px;
  height: 64px;

  color: var(--primary-color);

  flex-shrink: 0;
}

.service-item p {
  padding-top: 20px;

  margin-bottom: 0;

  font-size: 1.2rem;

  line-height: 1.8;

  text-align: center;
}

/* ========================================================= */
/* Customer App */
/* ========================================================= */

.app-section {
  margin-top: 96px;

  background-color: #e8f0fe;

  padding-bottom: 20px;
}

.app {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 32px;

  align-items: center;
}

.app-content h4 {
  margin: 0;

  font-size: 1.5rem;

  line-height: 1.5;

  font-weight: 500;
}

.app-content p {
  margin: 16px 0 0;

  text-align: justify;

  font-size: 1rem;

  line-height: 2;
}

.app-content p:first-of-type {
  margin-top: 32px;
}

.download-container {
  display: flex;

  flex-direction: row;

  gap: 16px;

  margin-top: 40px;
}

.download-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  min-width: 180px;

  padding: 16px 24px;

  color: #fff !important;

  background-color: #2e7d32;

  border-radius: 4px;

  font-family: inherit;

  font-size: 1rem;

  font-weight: 500;

  transition: background-color 0.2s;
}

.download-button:hover {
  background-color: #256b29;
}

.download-button svg {
  width: 24px;
  height: 24px;
}

.app-image-container {
  position: relative;

  text-align: center;

  min-height: 550px;

  display: flex;

  justify-content: center;

  align-items: center;
}

.app-img-shadow {
  position: absolute;

  left: 50%;

  border-radius: 24px;

  transform: translate(-90%, -10%);

  width: 280px;
  height: 530px;

  background: #dee1ff;
}

.app-img {
  position: relative;

  display: block;

  width: 246px;
  height: 520px;

  margin-right: 32px;

  object-fit: contain;
}

/* ========================================================= */
/* About */
/* ========================================================= */

.about-section {
  margin-top: 48px;
}

.about-content {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 32px;

  align-items: start;
}

.about-image img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 32px;
}

.about-text p {
  margin: 0;

  text-align: justify;

  font-size: 1rem;

  line-height: 2;
}

.about-text p + p {
  margin-top: 16px;
}

/* ========================================================= */
/* Certificates */
/* ========================================================= */

.certificates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
  align-items: center;
}

.certificate {
  width: 100%;
}

.certificate a {
  display: block;

  width: 100%;
}

.certificate img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.3);
}

.certificate img:hover {
  transform: scale(1.01);
}

@media (max-width: 768px) {
  .certificates {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }
}

/* ========================================================= */
/* Contact */
/* ========================================================= */

.contact-section {
  margin-top: 64px;

  padding-bottom: 96px;

  background-color: #fafbff;
}

.contact-content {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 32px;

  align-items: start;
}

.contact-text h4 {
  margin: 0;

  font-size: 1.5rem;

  line-height: 1.5;

  font-weight: 500;
}

.contact-text > p {
  margin: 32px 0 0;

  text-align: justify;

  font-size: 1rem;

  line-height: 2;
}

.contact-text > p + p {
  margin-top: 16px;
}

.contact-row {
  display: flex;

  align-items: flex-start;

  gap: 8px;

  margin-top: 14px;

  font-size: 1.15rem;

  line-height: 1.8;

  color: #32373c;
}

.contact-row svg {
  width: 24px;
  height: 24px;

  margin-top: 5px;

  flex-shrink: 0;

  color: var(--secondary-color);
}

.contact-row a {
  color: inherit;
}

.map-container {
  width: 100%;

  text-align: center;
}

#map {
  width: 100%;
  height: 350px;

  border-radius: 8px;

  overflow: hidden;
}

/* ========================================================= */
/* Footer */
/* ========================================================= */

.website-footer {
  height: 168px;
  background-color: #32373c;

  text-align: right;

  padding: 8px 0 12px;

  color: white;
}

.footer-container {
  min-height: 156px;

  display: flex;

  flex-direction: row;

  justify-content: space-between;

  align-items: center;

  gap: 24px;
}

.footer-info {
  color: white;

  text-align: center;
}

.footer-info p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: start;
}

.footer-info a {
  color: white;

  font-weight: 500;
}

.footer-copyright {
  margin-top: 8px !important;

  font-size: 0.875rem;
}

.enamad-container {
  text-align: right;

  flex-shrink: 0;
}

.enamad-container iframe {
  display: block;

  width: 140px;
  min-height: 120px;
}

.enamad {
  background-color: white;
  border-radius: 8px;
}
.enamad a {
  display: block;
  margin: 0 auto;
  width: 110px;
  height: 120px;
  background: center / contain no-repeat url("../images/enamad.png");
}
/* ========================================================= */
/* Responsive - Tablet */
/* ========================================================= */

@media (max-width: 1100px) {
  .grid-container {
    padding-left: 48px;
    padding-right: 48px;
  }

  .desktop-menu {
    gap: 8px;
  }

  .desktop-menu a {
    padding-left: 8px;
    padding-right: 8px;

    font-size: 0.95rem;
  }

  .banner-text {
    top: 200px;
  }

  .banner-text h1 {
    font-size: 2rem;
  }

  .banner-text h4 {
    font-size: 1.2rem;
  }
}

/* ========================================================= */
/* Responsive - Mobile */
/* ========================================================= */

@media (max-width: 900px) {
  .grid-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .desktop-menu {
    display: none;
  }

  .mobile-menu-container {
    display: block;
  }

  .header-phone {
    font-size: 1rem;
  }

  .banner-text {
    position: relative;

    width: 100%;

    top: auto;
    right: auto;

    margin-top: 24px;

    text-align: center;
  }

  .banner-text h1 {
    font-size: 2rem;
  }

  .banner-text h4 {
    padding-top: 12px;

    font-size: 1.1rem;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app {
    grid-template-columns: 1fr;
  }

  .app-image-container {
    min-height: 550px;
  }

  .app-img-shadow {
    display: none;
  }

  .app-img {
    margin-right: 0;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column-reverse;

    padding-top: 20px;
    padding-bottom: 20px;
  }

  .enamad-container {
    text-align: center;
  }

  .footer-info {
    width: 100%;
  }
}

/* ========================================================= */
/* Responsive - Small Mobile */
/* ========================================================= */

@media (max-width: 768px) {
  .grid-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  header.website img {
    width: 50px;
    height: 50px;
  }

  .header-container {
    min-height: 70px;

    gap: 12px;
  }

  .header-phone {
    gap: 5px;

    font-size: 1rem;
  }

  .header-phone svg {
    width: 20px;
    height: 20px;
  }

  .section {
    padding: 24px 8px 24px 40px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services {
    padding-left: 40px;
    padding-right: 8px;

    gap: 20px;
  }

  .service-item {
    min-height: 180px;

    padding-left: 12px;
    padding-right: 12px;
  }

  .service-item p {
    font-size: 1rem;
  }

  .app-content p,
  .about-text p,
  .contact-text > p {
    font-size: 0.95rem;
  }

  .certificate-small a {
    width: 80%;
  }

  #map {
    height: 350px;
  }
}

/* ========================================================= */
/* Very Small Mobile */
/* ========================================================= */

@media (max-width: 500px) {
  .grid-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-container {
    gap: 8px;
  }

  .header-phone a {
    font-size: 0.9rem;
  }

  .mobile-menu {
    width: 180px;
  }

  .services {
    grid-template-columns: 1fr;

    padding-left: 32px;
    padding-right: 8px;
  }

  .app-image-container {
    min-height: 540px;
  }

  .footer-info {
    font-size: 0.9rem;
  }
}

/* ========================================================= */
/* Leaflet */
/* ========================================================= */

.leaflet-container {
  direction: ltr;

  font-family: Arial, Tahoma, sans-serif;
}

.leaflet-control {
  direction: ltr;
}
