:root {
  --navy: #0b2545;
  --navy-light: #123a6b;
  --blue: #1b6ca8;
  --blue-light: #4fc3f7;
  --gold: #c9a24b;
  --white: #ffffff;
  --off-white: #f4f7fa;
  --gray: #5b6b7c;
  --border: #dce4ec;
  --shadow: 0 8px 24px rgba(11, 37, 69, 0.08);
  --radius: 10px;
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body[dir="rtl"] { text-align: right; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 20px;
}

.logo img { height: 48px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  border-color: var(--blue-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--off-white);
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 160px;
  display: none;
  overflow: hidden;
  z-index: 1100;
}

body[dir="rtl"] .lang-menu { right: auto; left: 0; }

.lang-menu.open { display: block; }

.lang-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--navy);
}

body[dir="rtl"] .lang-menu button { text-align: right; }

.lang-menu button:hover { background: var(--off-white); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, var(--blue) 100%);
  color: var(--white);
  padding: 110px 0 130px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(79, 195, 247, 0.25), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--blue-light);
}

.hero-stat span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }

.hero-visual {
  position: relative;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-visual-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.hero-visual-badge img { width: 150px; height: auto; }
body[dir="rtl"] .hero-visual-badge { left: auto; right: 18px; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }

.section-alt { background: var(--off-white); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p { color: var(--gray); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p { color: var(--gray); margin-bottom: 16px; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.value-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.value-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--navy); }
.value-card p { font-size: 0.88rem; color: var(--gray); margin: 0; }

.about-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 40px;
}

.about-panel ul { display: flex; flex-direction: column; gap: 18px; }

.about-panel li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.about-panel li:last-child { border-bottom: none; padding-bottom: 0; }

.about-panel .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.service-card:hover { transform: translateY(-6px); }

.service-photo {
  display: block;
  width: calc(100% + 56px);
  height: 160px;
  object-fit: cover;
  margin: -32px -28px 20px -28px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 20px;
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.94rem; margin-bottom: 16px; }
.service-card ul { display: flex; flex-direction: column; gap: 6px; }
.service-card ul li {
  font-size: 0.85rem;
  color: var(--navy-light);
  padding-left: 18px;
  position: relative;
}
.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
body[dir="rtl"] .service-card ul li { padding-left: 0; padding-right: 18px; }
body[dir="rtl"] .service-card ul li::before { left: auto; right: 0; }

.service-link {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.service-link:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Products modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(11, 37, 69, 0.35);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--navy);
}
body[dir="rtl"] .modal-close { right: auto; left: 20px; }
.modal-close:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.modal-box h3 { font-size: 1.4rem; margin-bottom: 8px; padding-right: 90px; }
body[dir="rtl"] .modal-box h3 { padding-right: 0; padding-left: 90px; }
.modal-box > p { color: var(--gray); margin-bottom: 24px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.product-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.product-icon { font-size: 1.3rem; }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--white, #fff);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "▸ "; color: var(--blue); }
.faq-item[open] summary::before { content: "▾ "; }
.faq-item p { margin: 12px 0 0; color: var(--gray); font-size: 0.95rem; }

.impa-details {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.impa-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  list-style: none;
}
.impa-details summary::-webkit-details-marker { display: none; }
.impa-details summary::before { content: "▸ "; }
.impa-details[open] summary::before { content: "▾ "; }

.impa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin-top: 10px;
}
.impa-grid span {
  font-size: 0.82rem;
  color: var(--navy-light);
  padding: 6px 10px;
  background: var(--off-white);
  border-radius: 6px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.gallery-tile {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.gallery-tile svg, .gallery-tile img { width: 100%; height: 160px; object-fit: cover; display: block; }

.gallery-tile figcaption {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}

/* ---------- Ports / Presence ---------- */
.partners-map {
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}
.partners-map .leaflet-popup-content { font-family: 'Segoe UI', system-ui, Arial, sans-serif; font-size: 0.88rem; }

@media (max-width: 640px) {
  .partners-map { height: 320px; }
}

.ports-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.port-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.port-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ---------- Quote form ---------- */
.quote-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.quote-info { color: var(--gray); }
.quote-info h2 { color: var(--navy); }

.quote-info ul { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.quote-info li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.quote-info .num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--navy);
  background: var(--off-white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input[type="file"] {
  padding: 10px 14px;
  background: var(--off-white);
  cursor: pointer;
}

.form-note {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 6px;
}

.card-element-box {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--off-white);
}
.card-element-box.StripeElement--focus {
  border-color: var(--blue);
  background: var(--white);
}
.card-element-box.StripeElement--invalid { border-color: #c0392b; }

.form-success {
  display: none;
  background: #eaf7ee;
  border: 1px solid #b7e3c4;
  color: #1e7a3c;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ---------- Payment ---------- */
.payment-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.payment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px;
}

.invoice-mock {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--off-white);
}

.invoice-mock .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.invoice-mock .row:last-child { border-bottom: none; font-weight: 700; }

.qr-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.qr-box svg, .qr-box img { width: 88px; height: 88px; flex-shrink: 0; border-radius: 6px; }

.qr-box p { font-size: 0.85rem; color: var(--gray); margin: 0; }

.badge-soon {
  display: inline-block;
  background: rgba(201, 162, 75, 0.15);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.payment-steps { display: flex; flex-direction: column; gap: 18px; }
.payment-steps li { display: flex; gap: 14px; align-items: flex-start; }
.payment-steps .num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.payment-steps h4 { font-size: 0.98rem; margin-bottom: 4px; }
.payment-steps p { font-size: 0.88rem; color: var(--gray); margin: 0; }

.odoo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-light);
  margin-top: 22px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--off-white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0;
}
.contact-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

.legal-box {
  margin-top: 28px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}
.legal-box h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--navy); }
.legal-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.85rem; }
.legal-box dt { color: var(--gray); font-weight: 600; }
.legal-box dd { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); max-width: 280px; }

.footer-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--blue-light);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.footer-col a:hover { color: var(--white); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--blue); }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Utility / animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 260px; order: -1; }
  .about-grid, .quote-wrap, .payment-wrap, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ports-list { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .ports-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .modal-box { padding: 28px 20px; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.35);
  z-index: 1500;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
body[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }

/* Mobile nav drawer */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 14px;
  box-shadow: var(--shadow);
}
