/*=====================================================
Site stylesheet — شرکت کاسپین کلید پارسه
Loaded after style.css and rtl.css.
Holds the brand lockup and the small RTL/typography fixes
that are specific to this project rather than mirrored CSS.
=======================================================*/

/*-----------------------------------------------------
1. Brand lockup (KP mark + Persian wordmark)
-----------------------------------------------------*/

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px 0;
  max-width: 100%;
}

.brand-lockup img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  display: block;
}

.brand-lockup .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.45;
  direction: rtl;
  text-align: right;
}

.brand-lockup .brand-text strong {
  font-family: var(--heading-font);
  font-size: 21px;
  font-weight: 800;
  color: var(--color-dark);
  white-space: nowrap;
}

.brand-lockup .brand-text small {
  font-family: var(--body-font);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--body-text-color);
  white-space: nowrap;
}

/* footer / dark background variant */
.brand-lockup-light {
  display: inline-flex;
  margin-bottom: 18px;
}

.brand-lockup-light .brand-text strong {
  color: var(--color-white);
}

.brand-lockup-light .brand-text small {
  color: #A8B6D2;
}

@media all and (max-width: 1199px) {
  .brand-lockup img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 12px;
  }

  .brand-lockup .brand-text strong {
    font-size: 18px;
  }

  .brand-lockup .brand-text small {
    font-size: 10.5px;
  }
}

@media all and (max-width: 575px) {
  .brand-lockup {
    gap: 9px;
  }

  .brand-lockup img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
  }

  .brand-lockup .brand-text strong {
    font-size: 15.5px;
  }

  .brand-lockup .brand-text small {
    display: none;
  }
}

/* the footer lockup should not be squeezed by the template's nav rules */
.footer-area .navbar-brand,
.footer-area .brand-lockup {
  margin: 0;
  padding: 0;
}

/*-----------------------------------------------------
2. Header top bar
-----------------------------------------------------*/

.header-top-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 14px;
  white-space: nowrap;
}

.header-top-hours i {
  color: var(--color-white);
}

.header-top-hours span {
  direction: rtl;
}

@media all and (max-width: 1199px) {
  .header-top-hours {
    font-size: 12.5px;
    gap: 6px;
  }
}

@media all and (max-width: 991px) {
  .header-top-right {
    display: none;
  }
}

/*-----------------------------------------------------
3. Persian typography refinements
-----------------------------------------------------*/

body,
p,
li,
a,
span,
div,
input,
textarea,
select,
button {
  font-family: var(--body-font);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.hero-title,
.breadcrumb-title,
.footer-widget-title,
.feature-title,
.service-title,
.blog-title,
.portfolio-title,
.accordion-button,
.team-content h5 {
  font-family: var(--heading-font);
  font-weight: 700;
}

/* the template uppercases a lot of latin copy — meaningless for Persian */
[dir="rtl"] .site-title-tagline,
[dir="rtl"] .hero-sub-title,
[dir="rtl"] .breadcrumb-title,
[dir="rtl"] .theme-btn,
[dir="rtl"] .footer-widget-title,
[dir="rtl"] .portfolio-subtitle,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  text-transform: none;
  letter-spacing: 0;
}

/* keep the gregorian year and latin figures tidy inside RTL copy */
.copyright-year {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

body {
  font-size: 16px;
  line-height: 1.9;
}

p {
  line-height: 1.95;
}

.hero-single .hero-content .hero-title {
  font-size: 58px;
  line-height: 1.45;
}

@media all and (max-width: 1199px) {
  .hero-single .hero-content .hero-title {
    font-size: 40px;
  }
}

@media all and (max-width: 767px) {
  .hero-single .hero-content .hero-title {
    font-size: 30px;
  }

  body {
    font-size: 15px;
  }
}

.site-title {
  font-size: 40px;
  line-height: 1.6;
}

@media all and (max-width: 991px) {
  .site-title {
    font-size: 30px;
  }
}

/* latin/technical fragments stay LTR */
[dir="rtl"] .num,
[dir="rtl"] .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/*-----------------------------------------------------
4. Component touches
-----------------------------------------------------*/

/* Featured-product cards.
   The template keeps `.portfolio-info` hidden until hover, which means the
   product name is invisible on touch devices and in print. On the product
   grids the caption bar is therefore always shown; the red hover overlay and
   the zoom button still only appear on hover. */
.product-grid .portfolio-info {
  opacity: 1;
  visibility: visible;
}

.product-grid .portfolio-link {
  font-size: 34px;
}

@media all and (max-width: 767px) {
  .product-grid .portfolio-info {
    padding: 14px;
    right: 12px;
    left: 12px;
  }

  .product-grid .portfolio-info .portfolio-subtitle {
    display: none;
  }
}

/* the caption bar must not sit on top of a very short image */
.product-grid .portfolio-img img {
  min-height: 230px;
  object-fit: cover;
}

/* breadcrumb numbers and separators sit correctly in RTL */
.site-breadcrumb .breadcrumb-menu li::before {
  content: "\f104";
  font-family: "Font Awesome 6 Pro";
}

/* forward-pointing arrows must point left in RTL */
[dir="rtl"] .portfolio-btn i,
[dir="rtl"] .service-arrow a i,
[dir="rtl"] .blog-item .theme-btn i,
[dir="rtl"] .quote-content .theme-btn i,
[dir="rtl"] a i.far.fa-arrow-right,
[dir="rtl"] a i.fas.fa-arrow-right-long,
[dir="rtl"] a i.far.fa-arrow-right-long {
  transform: scaleX(-1);
  display: inline-block;
}

/* buttons keep the icon on the trailing side */
[dir="rtl"] .theme-btn i {
  margin-right: 6px;
  margin-left: 0;
}

/* product / activity cards get a comfortable amount of breathing room */
.service-single p,
.choose-content p,
.feature-item p {
  line-height: 1.95;
}
