/**
 * RTL & custom overrides for معمار حديث الأمنية
 */

:root {
  --default-font: 'Tajawal', sans-serif;
  --heading-font: 'Tajawal', sans-serif;
  --nav-font: 'Tajawal', sans-serif;
}

body {
  font-family: 'Tajawal', sans-serif;
  text-align: right;
}

/* Arabic logo: avoid Latin-style letter-spacing/uppercase */
.header .logo h1,
.sitename {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.35;
}

.header .logo .site-logo-img {
  max-height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer .footer-logo,
.footer .site-logo-img {
  max-height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.scrolled .header .logo .site-logo-img {
  max-height: 42px;
}

.header .navmenu ul {
  padding-right: 0;
}

/* Header actions */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  margin: 0 12px 0 0;
  white-space: nowrap;
}

.btn-admin-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: 0.3s;
  flex-shrink: 0;
}

.scrolled .btn-admin-login {
  border-color: color-mix(in srgb, var(--accent-color), transparent 30%);
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.btn-admin-login:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

@media (max-width: 1199px) {
  .header .btn-getstarted {
    order: 2;
    margin: 0 10px 0 0;
    padding: 6px 14px;
  }

  .btn-admin-login {
    order: 2;
    margin-right: 0;
  }

  .header .navmenu {
    order: 3;
  }
}

@media (max-width: 768px) {
  .header .navmenu ul {
    padding-right: 20px;
  }
}

/* Hero */
.hero {
  min-height: 88vh;
}

.hero h1 {
  font-weight: 700;
}

.hero p {
  font-weight: 500;
  max-width: 34rem;
}

.hero .hero-cta {
  margin-top: 0.25rem;
}

.hero .btn-watch-video {
  margin-left: 0 !important;
}

.hero .btn-watch-video i {
  margin-left: 0;
  margin-right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem !important;
  color: #fff !important;
}

.hero .btn-watch-video:hover i {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  color: #fff !important;
}

.hero .hero-img img {
  max-height: 460px;
  width: auto;
}

@media (max-width: 991px) {
  .hero {
    min-height: auto;
    padding-top: 110px;
    text-align: center;
  }

  .hero p {
    margin-inline: auto;
  }

  .hero .hero-cta {
    justify-content: center;
  }
}

/* Partners / clients */
.partners.clients,
.clients.partners {
  padding: 28px 0;
}

.partners .swiper-slide img,
.clients .swiper-slide img {
  max-height: 64px;
  width: auto;
  margin-inline: auto;
  filter: grayscale(0.15);
  opacity: 0.9;
}

.partners .swiper-slide img:hover,
.clients .swiper-slide img:hover {
  filter: none;
  opacity: 1;
}

/* Services polish */
.services .service-item {
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services .service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(55, 81, 126, 0.1);
}

/* Portfolio filters RTL */
.portfolio .portfolio-filters {
  padding: 0;
}

.portfolio .portfolio-filters li {
  margin: 0 0 10px 8px;
}

/* Testimonials */
.testimonials .testimonial-item {
  border-radius: 14px;
}

.testimonials .quote-icon-left {
  margin-left: 6px;
  margin-right: 0;
}

.testimonials .quote-icon-right {
  margin-right: 6px;
  margin-left: 0;
}

/* FAQ RTL */
.faq-2 .faq-container .faq-item {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 4px 16px rgba(55, 81, 126, 0.04);
}

.faq-2 .faq-container .faq-item h3 {
  margin: 0 32px 0 36px;
}

.faq-2 .faq-container .faq-item .faq-icon {
  right: 20px;
  left: auto;
}

.faq-2 .faq-container .faq-item .faq-toggle {
  left: 20px;
  right: auto;
}

.faq-2 .faq-container .faq-active .faq-toggle {
  transform: rotate(-90deg);
}

/* Contact / consultation form — brand aligned */
.consult-form {
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(55, 81, 126, 0.08);
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.consult-form:hover {
  box-shadow: 0 14px 32px rgba(55, 81, 126, 0.12);
}

.consult-form h3 {
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.consult-form p {
  text-align: center;
  color: var(--default-color);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.consult-form .form-control {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 65%);
  padding: 12px 14px;
}

.consult-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 80%);
}

.consult-form button {
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.2s ease;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.consult-form button:hover {
  background: color-mix(in srgb, var(--accent-color), #000 12%);
  transform: translateY(-1px);
  color: #fff;
}

.contact .info-wrap {
  border-radius: 16px;
}

.contact .info-item a {
  color: inherit;
}

.contact-phones {
  line-height: 1.8;
  word-break: break-word;
}

/* Blog */
.recent-blog-posts .post-item {
  border-radius: 14px;
  overflow: hidden;
}

.recent-blog-posts .post-content .readmore i {
  margin-right: 0;
  margin-left: 6px;
}

/* Social links spacing RTL */
.social-links a {
  margin: 0;
}

.footer .social-links {
  gap: 8px;
}

.footer .social-links a {
  margin-right: 0;
}

.lang-switcher {
  margin-inline: 8px;
}

.lang-switch-btn {
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  min-width: 42px;
  height: 40px;
  font-weight: 700;
}

.scrolled .lang-switch-btn {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.lang-switch-btn:hover,
.lang-switch-btn:focus {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}


/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  left: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* Footer credits */
.footer .credits a {
  color: var(--accent-color);
}

/* Service details page */
.service-details-content .service-icon {
  font-size: 3rem;
  color: var(--accent-color);
}

.service-details-content ul {
  list-style: none;
  padding: 0;
}

.service-details-content ul li {
  padding: 8px 0;
  padding-right: 28px;
  position: relative;
}

.service-details-content ul li::before {
  content: "\f26e";
  font-family: bootstrap-icons;
  position: absolute;
  right: 0;
  color: var(--accent-color);
}

/* Section title Arabic weight */
.section-title h2 {
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .hero .animated {
    animation: none !important;
  }
}
