/*-------------------
Sample CSS overwriting main.css rules

[Table of contents]
    0 General layout
    1. Typography
    2. page-header / .page-header
    3 .sections / .section-register , .form-*
    4. Scrolling behavior
[Colors]
    Blue : #0094D8;
[Typography]
    font-family :
    - Serif : "Montserrat"
*/
/* 0 General layout */
a {
  color: #0094D8; }
  a:hover {
    color: rgba(0, 148, 216, 0.8); }

/* 1. Typography */
/* page header */
.page-header-alpha .navbar-mainmenu .nav-item {
  font-family: "Montserrat", "Open Sans", sans-serif;
  text-transform: none;
  letter-spacing: 0; }

.section-title .title {
  font-family: "Montserrat", "Open Sans", sans-serif;
  text-transform: none; }

/* title */
.display-title,
.section-home h1,
.section-home h2,
.media-service h4,
.section-content h2,
.section-content h3 {
  font-family: "Montserrat", "Open Sans", sans-serif; }

/* small text */
.page-header-alpha .navbar-topmenu .navbar-nav-menu .nav-item,
.scrolldown a,
.btn-outline-white,
.btn-outline-black,
.display-subtitle,
.display-condensed,
.btn-divided .b-title {
  font-family: "Montserrat", "Open Sans", sans-serif; }

/* 2. page-header / .page-header */
/* nav */
.page-header-alpha .navbar-mainmenu .nav-item a:hover {
  color: #0094D8; }

/* 3 .sections */
/* title */
.section.section-title-layout {
  background: #1d1d1d; }
  @media (min-width: 1024px) {
    .section.section-title-layout {
      background: rgba(255, 255, 255, 0.05); } }

.section-title.decor::after, .section-title.decor::before {
  display: none; }

/* subscription form */
.section-register {
  background: #1d1d1d; }
  @media (min-width: 1024px) {
    .section-register {
      background: rgba(255, 255, 255, 0.05); } }

.form-container-transparent.form-container-white .form-desc h4 {
  color: #ffffff; }

.form-container-transparent.form-container-white .form-input label {
  color: #ffffff; }

/* 4. Scrolling behavior */
.page-cover:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 1;
  transition: 0.3s; }

.page-cover.scrolled:after {
  background: rgba(0, 0, 0, 0.8); }
  
  /* ===== SERVICES ONLY - RESPONSIVE SAFE ===== */
.section[data-section="services-list"] .list-items > [class*="col-"] {
  margin-bottom: 30px;
}

.section[data-section="services-list"] .media-service {
  display: block;
  text-align: center;
  padding: 10px 22px 28px;
  height: 100%;
}

.section[data-section="services-list"] .media-service .img {
  margin-bottom: 18px;
}

.section[data-section="services-list"] .media-service .media-body {
  width: 100%;
}

.section[data-section="services-list"] .media-service h4 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 14px;
  word-break: normal;
  overflow-wrap: break-word;
}

.section[data-section="services-list"] .media-service p {
  font-size: 17px;
  line-height: 1.8;
  max-width: 420px;
  margin: 0 auto;
}

/* لپ‌تاپ و تبلت */
@media (max-width: 1199.98px) {
  .section[data-section="services-list"] .media-service h4 {
    font-size: 30px;
  }

  .section[data-section="services-list"] .media-service p {
    font-size: 16px;
    max-width: 360px;
  }
}

/* تبلت */
@media (max-width: 991.98px) {
  .section[data-section="services-list"] .media-service {
    padding: 8px 16px 24px;
  }

  .section[data-section="services-list"] .media-service h4 {
    font-size: 26px;
    line-height: 1.2;
  }

  .section[data-section="services-list"] .media-service p {
    font-size: 15px;
    line-height: 1.7;
    max-width: 100%;
  }
}

/* موبایل */
@media (max-width: 767.98px) {
  .section[data-section="services-list"] .list-items > [class*="col-"] {
    margin-bottom: 22px;
  }

  .section[data-section="services-list"] .media-service {
    padding: 4px 8px 18px;
  }

  .section[data-section="services-list"] .media-service .img {
    margin-bottom: 12px;
  }

  .section[data-section="services-list"] .media-service h4 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .section[data-section="services-list"] .media-service p {
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (max-width: 767px) {
  .page-cover {
    height: auto !important;
    min-height: 100vh !important;
    background-color: #000 !important;
  }

  .page-cover .cover-bg {
    background-image: url("../img/bg-home-mobile.jpg?v=4") !important;
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    background-color: #000 !important;
  }
}


@media (max-width: 767px) {
  .section[data-section="services-list"] .list-items > [class*="col-"] > * {
    transform: scale(1.04) !important;
    transform-origin: center center !important;
  }
}

@media (max-width: 767px) {
  .section[data-section="about-us"] {
    position: relative !important;
    background: #d9d9d9 !important;
    overflow: hidden !important;
  }

  .section[data-section="about-us"] .section-cover-full.bg-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: none !important;

    background-image: url("../img/bg-about-mobile.jpg?v=6") !important;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    background-color: #d9d9d9 !important;
  }

  .section[data-section="about-us"] .section-wrapper.with-margin {
    position: relative !important;
    z-index: 2 !important;
    padding-top: 300px !important;
    padding-bottom: 48px !important;
  }

  .section[data-section="about-us"] h2,
  .section[data-section="about-us"] p,
  .section[data-section="about-us"] .title-desc {
    color: #1d1d1d !important;
    text-shadow: none !important;
  }
}

/* ===== GLOBAL FONT: LIBRE FRANKLIN ===== */
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin/LibreFranklin-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin/LibreFranklin-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

html,
body {
  font-family: "Libre Franklin", Arial, sans-serif !important;
}

body,
p,
a,
li,
span,
div,
small,
label,
input,
textarea,
select,
button,
blockquote,
figcaption,
.table,
.form-control,
.btn,
.nav-link,
.nav-item,
.display-subtitle,
.display-condensed,
.btn-divided .b-title,
.section-title .title,
.section-content p,
.section-content li,
.section-content a,
.media-service p,
.media-service h4,
.page-header-alpha .navbar-mainmenu .nav-item,
.page-header-alpha .navbar-mainmenu .nav-link,
.page-header-alpha .navbar-topmenu .navbar-nav-menu .nav-item,
.section-home h1,
.section-home h2,
.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Libre Franklin", Arial, sans-serif !important;
}

body,
p,
li,
a,
span,
div,
label,
input,
textarea,
select,
button {
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-title,
.section-title .title,
.section-home h1,
.section-home h2,
.section-content h1,
.section-content h2,
.section-content h3,
.media-service h4,
.page-header-alpha .navbar-mainmenu .nav-link,
.btn,
.btn-divided .b-title {
  font-weight: 700;
}

/* lighter mask for project section */
.section[data-section="projects-page-1"] .section-cover.mask-black:before {
  background: rgba(0, 0, 0, 0.42) !important;
}