:root {
  --navy: #071820;
  --navy-2: #0d2a36;
  --blue: #1aa6d6;
  --blue-deep: #0277a3;
  --blue-soft: #e8f6fb;
  --green: #3d9b3d;
  --green-deep: #1f6b2a;
  --green-soft: #e9f6e8;
  --cream: #f6f2ea;
  --paper: #efe7d8;
  --white: #ffffff;
  --ink: #142026;
  --muted: #5b6b73;
  --line: rgba(20, 32, 38, 0.1);
  --shadow: 0 18px 50px rgba(7, 24, 32, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
html[lang="ar"] body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font-family: inherit; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 58px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 17px; color: #1c1c1c; }
.brand-name span { font-size: 13px; color: var(--blue); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin-inline-start: auto; order: 2; }
.nav-tools { order: 3; }
.brand { order: 1; }
.nav-links a {
  padding: 8px 12px; font-weight: 600; font-size: 15px; color: #24343b;
  border-radius: 999px;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-deep); background: var(--green-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px; font-weight: 700;
  padding: 12px 22px; transition: .25s ease;
}
.btn-primary { background: #f07a16; color: #fff; }
.btn-primary:hover { background: #d86b0e; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.menu-toggle { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; background: #f3f6f7;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 999px;
  color: #4a5a62;
}
.lang-switch button.active { background: var(--navy); color: #fff; }

/* Hero */
.hero {
  position: relative; min-height: 86vh;
  background: var(--navy) url("../images/port-hero.jpg") center/cover no-repeat;
  color: #fff; display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,24,32,.92) 0%, rgba(7,24,32,.82) 55%, rgba(7,24,32,.35) 100%);
}
html[dir="rtl"] .hero::before {
  background: linear-gradient(270deg, rgba(7,24,32,.35) 0%, rgba(7,24,32,.82) 55%, rgba(7,24,32,.92) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 0 110px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #9be08a; letter-spacing: .08em; font-weight: 700; font-size: 13px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: #9be08a; border-radius: 99px; }
.hero h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.25; margin-bottom: 18px; }
.hero p { font-size: 18px; color: #d7e4ea; max-width: 640px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.arcs {
  position: absolute; right: -40px; top: 80px; width: 340px; height: 340px; pointer-events: none;
}
html[dir="rtl"] .arcs { left: -40px; right: auto; }
.arcs span {
  position: absolute; inset: 0; border: 14px solid transparent; border-radius: 50%;
  border-left-color: currentColor; border-top-color: currentColor; opacity: .85;
}
.arcs span:nth-child(1) { color: #6fbf4b; transform: scale(1); }
.arcs span:nth-child(2) { color: #f07a16; transform: scale(.78); }
.arcs span:nth-child(3) { color: #3ec3e0; transform: scale(.56); }
.arcs span:nth-child(4) { color: #fff; transform: scale(.34); }

/* Stats */
.stats {
  background: #fff; margin-top: -42px; position: relative; z-index: 3;
  border-radius: 20px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:last-child { border-left: 0; }
.stat small { color: var(--green); font-weight: 800; letter-spacing: .06em; }
.stat p { font-weight: 700; color: #223; margin-top: 6px; }

/* Sections */
section { padding: 90px 0; }
.section-kicker { color: var(--green); font-weight: 800; letter-spacing: .08em; font-size: 13px; }
.section-title { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.3; margin: 8px 0 16px; }
.lead { color: var(--muted); font-size: 18px; max-width: 720px; }

.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card img { height: 230px; width: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card h3 { font-size: 24px; margin-bottom: 8px; }
.badge {
  display: inline-block; background: var(--blue-soft); color: var(--blue-deep);
  font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.badge.green { background: var(--green-soft); color: var(--green-deep); }

.cream { background: var(--cream); }
.navy { background: var(--navy); color: #fff; }
.navy .lead { color: #c5d5dd; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.step {
  background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--line);
}
.step b { display: block; color: var(--blue-deep); font-size: 28px; line-height: 1; margin-bottom: 8px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.product {
  background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--line);
}
.product h4 { margin-bottom: 6px; }
.product p { color: var(--muted); font-size: 15px; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.why article {
  background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--line);
}
.why h3 { margin-bottom: 8px; font-size: 20px; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.photo-frame { border-radius: 22px; overflow: hidden; min-height: 420px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.value { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); padding: 16px; border-radius: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact-card, form {
  background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
}
form { display: grid; gap: 12px; }
label { font-weight: 700; font-size: 14px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fbfbfb; font-size: 15px;
}
textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { color: var(--muted); font-size: 13px; }

/* Footer */
footer { background: #051219; color: #c9d6dc; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
footer h4 { color: #fff; margin-bottom: 12px; }
footer a { display: block; padding: 4px 0; color: #c9d6dc; }
footer a:hover { color: #fff; }
.footer-brand img { height: 64px; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 12px; }
.copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; font-size: 13px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--green-deep); color: #fff; padding: 12px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .3s ease; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1080px) {
  .nav-links a:not(.btn) { font-size: 13px; padding: 8px 7px; }
  .btn { padding: 10px 14px; }
}
@media (max-width: 960px) {
  .header .container.nav { position: relative; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 78px; inset-inline: 0;
    background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--line);
    margin: 0;
  }
  .nav-links.open { display: flex; }
  .stats, .card-grid, .process, .products, .why, .two-col, .split, .contact-grid, .footer-grid, .form-row, .values {
    grid-template-columns: 1fr;
  }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .hero { min-height: auto; }
  .arcs { display: none; }
}
