/* =============================================
   ARCONIX - Transport & Supply Website
   ============================================= */

:root {
  --primary: #FDB813;
  --primary-hover: #e5a610;
  --dark-navy: #0d1117;
  --dark-navy-light: #161b22;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --white: #ffffff;
  --section-bg: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container-fluid {
  width: 100%;
  max-width: 100%;
}

section,
.navbar,
.site-footer {
  max-width: 100%;
  overflow-x: clip;
}

/* ---- Buttons ---- */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--dark-navy);
  font-weight: 700;
  border-radius: 50px;
  padding: 0.6rem 1.8rem;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--dark-navy);
  box-shadow: 0 4px 15px rgba(253, 184, 19, 0.4);
}

.btn-outline-light {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.6rem 1.8rem;
  border-width: 2px;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--dark-navy);
}

.btn-dark-navy {
  background-color: var(--dark-navy);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  padding: 0.7rem 2rem;
  transition: all 0.3s ease;
}

.btn-dark-navy:hover {
  background-color: var(--dark-navy-light);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.text-primary-brand {
  color: var(--primary) !important;
}

/* ---- Navbar ---- */
#mainNavbar {
  padding: 0.8rem 0;
  transition: all 0.4s ease;
  background: transparent;
}

#mainNavbar.scrolled {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
}

.navbar-logo {
  height: 55px;
  width: auto;
  border-radius: 50%;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
}

.btn-cta-nav {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.navbar-actions {
  flex-shrink: 0;
}

/* ---- Language Switcher ---- */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--dark-navy);
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url('../assets/images/hero-bg.png') center/cover no-repeat;
  padding-top: 80px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.85) 0%, rgba(13, 17, 23, 0.5) 50%, rgba(13, 17, 23, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 8rem;
}

.hero-text-block {
  padding-inline: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), 12px);
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.8;
}

.hero-features {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(5px);
  padding: 1.5rem 0;
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  color: var(--white);
}

.hero-feature-item i {
  font-size: 1.8rem;
  color: var(--primary);
}

.hero-feature-item span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---- Sections General ---- */
.section-padding {
  padding: 5rem 0;
}

.bg-light-section {
  background-color: var(--section-bg);
}

.section-header {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.title-underline {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 500px;
}

/* ---- Service Cards ---- */
.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  position: relative;
  max-width: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: 12px 12px 0 0;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.08);
}

@media (max-width: 991.98px) {
  .service-card:hover .service-img-wrap img {
    transform: none;
  }
}

.service-icon {
  position: relative;
  z-index: 3;
  width: 58px;
  height: 58px;
  margin: -29px auto 0;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(253, 184, 19, 0.45);
}

.service-icon i {
  font-size: 1.35rem;
  color: var(--dark-navy);
  line-height: 1;
}

.service-body {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  background: var(--white);
  border-radius: 0 0 12px 12px;
}

.service-body h5 {
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.service-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.service-link:hover {
  color: var(--primary-hover);
}

.service-link i {
  font-size: 0.8rem;
  margin-right: 4px;
}

/* ---- Statistics ---- */
.stats-section {
  position: relative;
  padding: 5rem 0;
  background: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1920&h=600&fit=crop') center/cover no-repeat;
}

.stats-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.88);
}

.stat-item {
  position: relative;
  color: var(--white);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-item h3 {
  display: inline;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-plus {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item p {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- About ---- */
.about-image-wrap {
  position: relative;
  padding: 20px;
  overflow: hidden;
  max-width: 100%;
}

.about-img {
  width: 100%;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

.about-frame {
  position: absolute;
  border: 3px solid var(--primary);
  border-radius: 8px;
  z-index: 1;
}

.about-frame-1 {
  width: 60%;
  height: 60%;
  top: 0;
  right: 0;
}

.about-frame-2 {
  width: 60%;
  height: 60%;
  bottom: 0;
  left: 0;
  border-color: var(--dark-navy);
}

.about-text {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ---- Why Choose Us ---- */
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.why-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(253, 184, 19, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon i {
  font-size: 1.4rem;
  color: var(--primary);
}

.why-content h5 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.why-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}

/* ---- CTA Banner ---- */
.cta-section {
  position: relative;
  padding: 6rem 0;
  background: url('https://images.unsplash.com/photo-1553413077-190dd305871c?w=1920&h=600&fit=crop') center/cover no-repeat;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.85);
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-cta-large {
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark-navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}

.footer-logo {
  height: 70px;
  width: auto;
  border-radius: 50%;
  filter: brightness(1.1);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-heading {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s, padding-right 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
  padding-right: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--primary);
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--dark-navy);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  margin-top: 3rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(13, 17, 23, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.75rem;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .navbar-nav {
    width: 100%;
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 0.65rem 0.5rem !important;
  }

  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .navbar-actions {
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }

  .btn-cta-nav {
    flex: 1;
    min-width: 140px;
    text-align: center;
  }

  .hero-section {
    min-height: auto;
    display: block;
    padding-top: 85px;
  }

  .hero-content {
    padding: 2.5rem 0 1.5rem;
  }

  .hero-features {
    position: relative;
    margin-top: 0;
  }

  .hero-feature-item {
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem 0.5rem;
  }

  .hero-feature-item:nth-child(even) {
    border-inline-end: none !important;
  }

  .hero-feature-item:nth-last-child(-n+2) {
    border-bottom: none !important;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .about-image-wrap {
    padding: 12px;
    margin-bottom: 1rem;
  }

  .service-card:hover {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .navbar-logo {
    height: 45px;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.45;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .hero-feature-item i {
    font-size: 1.5rem;
  }

  .hero-feature-item span {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .stat-plus {
    font-size: 1.5rem;
  }

  .stat-item p {
    font-size: 0.85rem;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .cta-subtitle {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .btn-cta-large {
    width: 100%;
    max-width: 320px;
  }

  .about-frame-1,
  .about-frame-2 {
    width: 50%;
    height: 50%;
  }

  .footer-logo {
    height: 55px;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 3rem 0;
  }

  .hero-content {
    padding: 2rem 0 1rem;
  }

  .hero-features {
    padding: 1rem 0;
  }

  .hero-features .row {
    margin: 0;
  }

  .hero-features .row > [class*="col-"] {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .service-img-wrap {
    height: 180px;
  }

  .why-card {
    padding: 1.15rem;
  }

  .site-footer {
    padding-top: 3rem;
  }

  .footer-bottom {
    margin-top: 2rem;
  }
}

/* ---- LTR Overrides ---- */
[dir="ltr"] body {
  font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .hero-feature-item:last-child {
  border-inline-start: none;
}

@media (min-width: 992px) {
  [dir="ltr"] .hero-feature-item {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
  }

  [dir="ltr"] .hero-feature-item:last-child {
    border-inline-start: none;
  }

  [dir="rtl"] .hero-feature-item {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
  }
}

[dir="ltr"] .service-link i {
  margin-right: 0;
  margin-left: 4px;
}

[dir="ltr"] .footer-heading::after {
  right: auto;
  left: 0;
}

[dir="ltr"] .footer-links a:hover {
  padding-right: 0;
  padding-left: 5px;
}

[dir="ltr"] .about-frame-1 {
  right: auto;
  left: 0;
}

[dir="ltr"] .about-frame-2 {
  left: auto;
  right: 0;
}

[dir="ltr"] .navbar-nav .nav-link.active::after {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

