:root {
  --ef-bg: #eef1f7;
  --ef-navy: #1d2855;
  --ef-navy-light: #34407a;
  --ef-red: #77161d;
  --ef-red-light: #9c2430;
  --ef-border: rgba(29, 40, 85, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--ef-bg);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(119, 22, 29, 0.1), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(29, 40, 85, 0.12), transparent 30%),
    radial-gradient(circle at 58% 45%, rgba(29, 40, 85, 0.06), transparent 36%),
    linear-gradient(160deg, #f3f5fa 0%, #eaedf5 42%, #e3e7f0 72%, #dde2ec 100%);
  background-attachment: fixed;
  color: var(--ef-navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.text-eyebrow {
  background: linear-gradient(90deg, #77161d, #9c2430, #1d2855);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.section-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ef-navy);
}

.section-text {
  color: #47517a;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 241, 247, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ef-border);
}

.brand-logo-img {
  height: 92px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .brand-logo-img {
    height: 68px;
  }
}

.nav-link-ef {
  color: #47517a;
  font-size: 0.95rem;
}
.nav-link-ef:hover {
  color: var(--ef-navy);
}

.lang-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #d5dae8;
  background: #f3f5fa;
  padding: 4px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: #47517a;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  transition: all 0.2s ease;
}

.lang-toggle button.active {
  background: linear-gradient(90deg, #77161d, #9c2430);
  color: #fff;
}

/* Buttons */
.btn-ef-primary {
  border-radius: 999px;
  background: linear-gradient(90deg, #5c1016, #77161d, #9c2430);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border: none;
  box-shadow: 0 8px 25px rgba(119, 22, 29, 0.3);
  transition: all 0.3s ease;
}
.btn-ef-primary:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(119, 22, 29, 0.38);
}

.btn-ef-secondary {
  border-radius: 999px;
  background: #f3f5fa;
  color: var(--ef-navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #d5dae8;
  transition: all 0.3s ease;
}
.btn-ef-secondary:hover {
  color: var(--ef-navy);
  border-color: rgba(29, 40, 85, 0.5);
  background: #e7eaf4;
}

.product-tier-label {
  color: var(--ef-navy);
  letter-spacing: 0.2em;
}

.about-trade-note {
  display: inline-block;
  border-radius: 1rem;
  border: 1px solid rgba(119, 22, 29, 0.25);
  background: rgba(119, 22, 29, 0.06);
  color: var(--ef-navy);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
}

/* Hero */
.hero-tag {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(119, 22, 29, 0.3);
  background: rgba(119, 22, 29, 0.08);
  color: #77161d;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.hero-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ef-navy);
  font-size: 2.5rem;
}
@media (min-width: 992px) {
  .hero-title {
    font-size: 4.2rem;
  }
}

.hero-stat {
  border-radius: 1.5rem;
  border: 1px solid #d5dae8;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.25rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px rgba(16, 22, 43, 0.06);
}
.hero-stat dt {
  color: #5b638a;
  font-size: 0.9rem;
}
.hero-stat dd {
  color: var(--ef-navy);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* Hero card */
.hero-card {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  border-radius: 1.6rem;
  border: 1px solid #d5dae8;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 20px 45px rgba(16, 22, 43, 0.1);
  transition: all 0.3s ease;
}
.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(119, 22, 29, 0.4);
}

.hero-card-img-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 28rem;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 1.3rem;
  border: 1px solid #d5dae8;
  background: linear-gradient(to bottom right, #d5dae8, #eef1f7);
  padding: 0;
}
.hero-card-img-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}
.hero-card-img-btn:hover img {
  transform: scale(1.05);
}

.badge-original {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  border-radius: 999px;
  border: 1px solid #d5dae8;
  background: rgba(255, 255, 255, 0.88);
  color: #1d2855;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.25rem 0.65rem;
}

.zoom-icon-btn {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d5dae8;
  background: rgba(255, 255, 255, 0.92);
  color: #34407a;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-card-img-btn:hover .zoom-icon-btn,
.gallery-img-btn:hover .zoom-icon-btn {
  opacity: 1;
}

.hero-card-body h3 {
  color: var(--ef-navy);
  font-weight: 600;
  margin-top: 1.25rem;
}
.hero-card-body .subtitle {
  color: #1d2855;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}
.hero-card-body p {
  color: #47517a;
  font-size: 0.9rem;
}
.hero-card-body a {
  color: #77161d;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.hero-card-body a:hover {
  color: #5c1016;
}

/* Panels / cards */
.ef-panel {
  border-radius: 1.75rem;
  border: 1px solid #d5dae8;
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 18px 50px rgba(16, 22, 43, 0.08);
}

.ef-feature {
  border-radius: 1rem;
  border: 1px solid #d5dae8;
  background: #f3f5fa;
  padding: 1.25rem;
  color: #1c2340;
  font-size: 0.9rem;
  font-weight: 500;
  height: 100%;
}

.ef-section-alt {
  border-top: 1px solid #d5dae8;
  border-bottom: 1px solid #d5dae8;
  background: linear-gradient(90deg, #f6f7fb, #eaedf5, #f6f7fb);
}

.reason-card {
  border-radius: 1.75rem;
  border: 1px solid #d5dae8;
  background: linear-gradient(to bottom right, #ffffff, #f3f5fa);
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(16, 22, 43, 0.07);
  transition: border-color 0.3s ease;
  height: 100%;
}
.reason-card:hover {
  border-color: rgba(29, 40, 85, 0.45);
}
.reason-card .num {
  color: #1d2855;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.reason-card h3 {
  color: var(--ef-navy);
  font-weight: 600;
  margin-top: 0.75rem;
}
.reason-card p {
  color: #47517a;
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* Gallery */
.gallery-figure {
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid #d5dae8;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(16, 22, 43, 0.09);
  transition: border-color 0.3s ease;
  height: 100%;
}
.gallery-figure:hover {
  border-color: rgba(119, 22, 29, 0.4);
}
.gallery-img-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 20rem;
  cursor: zoom-in;
  overflow: hidden;
  border: none;
  padding: 0;
}
.gallery-img-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-img-btn:hover img {
  transform: scale(1.05);
}
.gallery-figure figcaption {
  border-top: 1px solid #d5dae8;
  padding: 1.25rem;
}
.gallery-figure figcaption .cap-title {
  color: var(--ef-navy);
  font-weight: 600;
  font-size: 1.1rem;
}
.gallery-figure figcaption .cap-label {
  color: #1d2855;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

/* Clients */
.country-panel {
  border-radius: 1.75rem;
  border: 1px solid #d5dae8;
  background: linear-gradient(to bottom right, #ffffff, #f3f5fa);
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(16, 22, 43, 0.07);
}
.country-pin {
  display: inline-flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(119, 22, 29, 0.25);
  background: rgba(119, 22, 29, 0.08);
  color: #77161d;
}
.country-panel h3 {
  color: var(--ef-navy);
  font-weight: 600;
  margin-bottom: 0;
}
.brand-logo-box {
  display: flex;
  height: 64px;
  width: 112px;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid #d5dae8;
  background: #fff;
  padding: 0.6rem;
  box-shadow: 0 8px 18px rgba(16, 22, 43, 0.07);
  transition: all 0.3s ease;
}
.brand-logo-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 22, 43, 0.12);
}
.brand-logo-box img {
  max-height: 40px;
  max-width: 100%;
  object-fit: contain;
}

/* Contact */
.contact-meta {
  border-radius: 1.75rem;
  border: 1px solid #d5dae8;
  background: #ffffff;
  padding: 1.5rem;
  color: #47517a;
  box-shadow: 0 12px 30px rgba(16, 22, 43, 0.07);
}

.contact-form-panel {
  border-radius: 2rem;
  border: 1px solid #d5dae8;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(16, 22, 43, 0.1);
}

.form-label-ef {
  color: #47517a;
  font-size: 0.9rem;
}

.form-control-ef,
.form-select-ef {
  border-radius: 1rem;
  border: 1px solid #d5dae8;
  background: #f3f5fa;
  color: var(--ef-navy);
  padding: 0.75rem 1rem;
}
.form-control-ef::placeholder {
  color: #8891b3;
}
.form-control-ef:focus,
.form-select-ef:focus {
  border-color: #1d2855;
  box-shadow: none;
  background: #ffffff;
  color: var(--ef-navy);
}

/* Lightbox */
.ef-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 22, 43, 0.88);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}
.ef-lightbox.show {
  display: flex;
}
.ef-lightbox img {
  max-height: 78vh;
  width: auto;
  border-radius: 1rem;
  border: 1px solid #34407a;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}
.ef-lightbox figcaption {
  margin-top: 1rem;
  text-align: center;
}
.ef-lightbox .cap-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}
.ef-lightbox .cap-label {
  color: #9aa6d6;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  transition: all 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: rgba(156, 36, 48, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.lightbox-close {
  right: 1.25rem;
  top: 1.25rem;
}
.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* RTL support */
[dir="rtl"] .lightbox-prev {
  left: auto;
  right: 1rem;
  transform: translateY(-50%) rotate(180deg);
}
[dir="rtl"] .lightbox-next {
  right: auto;
  left: 1rem;
  transform: translateY(-50%) rotate(180deg);
}

/* Arabic letters must stay connected — wide letter-spacing (designed for
   uppercase Latin eyebrow/label text) breaks ligatures and looks broken. */
[dir="rtl"] .text-eyebrow,
[dir="rtl"] .badge-original,
[dir="rtl"] .hero-card-body .subtitle,
[dir="rtl"] .hero-card-body a,
[dir="rtl"] .reason-card .num,
[dir="rtl"] .gallery-figure figcaption .cap-label,
[dir="rtl"] .ef-lightbox .cap-label,
[dir="rtl"] .product-tier-label {
  letter-spacing: normal;
}
