/* ====== Base & Variables ====== */
:root {
  --primary: #0076c8;
  --primary-dark: #005b96;
  --accent: #00b4ff;
  --bg: #f5f8fc;
  --text-dark: #122131;
  --text-muted: #5f6b7a;
  --white: #ffffff;
  --border-soft: rgba(0, 0, 0, 0.06);
  --radius-lg: 1.25rem;
  --radius-md: 0.85rem;
  --shadow-soft: 0 14px 40px rgba(4, 37, 74, 0.12);
  --transition-fast: 0.2s ease-out;
  --container-width: 1160px;
}

/* Smooth scrolling for internal links */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg);
  line-height: 1.6;
}

/* Arabic language base */
body.lang-ar {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  direction: rtl;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hide / show language blocks */
.lang-block {
  display: none;
}

body.lang-en .lang-en,
body.lang-ar .lang-ar {
  display: block;
}

/* ====== Header ====== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(
    90deg,
    rgba(0, 118, 200, 0.98),
    rgba(0, 180, 255, 0.98)
  );
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-img {
  height: clamp(44px, 4.6vw, 64px);
  object-fit: contain;
}

/* هذا الفلتر يحوّل الشعار الأسود إلى أبيض */
.logo-white-filter {
  filter: brightness(0) invert(1);
}


/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width var(--transition-fast);
}

body.lang-ar .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover::after {
  width: 100%;
}

.lang-toggle,
.menu-toggle {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.lang-toggle:hover,
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

/* RTL header layout */
body.lang-ar .header-inner {
  flex-direction: row-reverse;
}
body.lang-ar .nav-links {
  flex-direction: row-reverse;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 78vh;
  padding-top: 70px; /* header height */
  display: flex;
  align-items: stretch;
  background: radial-gradient(circle at top left, #00b4ff 0, #005b96 45%, #00264d 100%);
  color: #fff;
  overflow: hidden;
}

/* خلفية تقريبية - غيّر الصورة لو أحببت */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://hongocean.com/wp-content/uploads/2024/12/container-ship.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  mix-blend-mode: screen;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 60, 120, 0.9),
    rgba(0, 180, 255, 0.6)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 78vh;
}

.hero-text {
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2rem, 3vw + 1.5rem, 3.1rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.lang-ar .hero-title {
  letter-spacing: 0;
}

.hero-title span {
  font-weight: 400;
  font-size: 0.72em;
  display: block;
  opacity: 0.9;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  background: var(--primary-dark);
  color: #fff;
}

.btn-primary.full-width {
  width: 100%;
  justify-content: center;
}

/* ====== Sections ====== */
.section {
  padding: 4.5rem 0;
}

.alt-bg {
  background-color: #ffffff;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-header {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-header.small {
  gap: 0.4rem;
}

body.lang-ar .section-header {
  text-align: right;
}

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 118, 200, 0.08);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.section-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.lang-ar .section-title {
  text-transform: none;
  letter-spacing: 0;
}

.section-body {
  color: var(--text-muted);
}

/* List styling */
.styled-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
}

body.lang-ar .styled-list li {
  padding-left: 0;
  padding-right: 1.5rem;
}

.styled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

body.lang-ar .styled-list li::before {
  left: auto;
  right: 0;
}

/* Layout helpers */
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.column {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

/* Cards & grids */
.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card.wide {
  grid-column: 1 / -1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 118, 200, 0.08);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
}

.card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card-body {
  color: var(--text-muted);
}

.mission-vision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.summary {
  margin-top: 0.6rem;
  font-weight: 500;
}

/* ====== Contact ====== */
.contact-section {
  background: linear-gradient(180deg, #f5f8fc 0, #e9f1fb 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-info {
  color: var(--text-muted);
}

.contact-intro {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.contact-list li {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 8px 20px rgba(9, 30, 66, 0.09);
}

.contact-list h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-list p {
  margin: 0;
  font-size: 0.9rem;
}

/* Form */
.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
textarea {
  border-radius: 0.75rem;
  border: 1px solid var(--border-soft);
  padding: 0.55rem 0.75rem;
  font: inherit;
  resize: vertical;
  transition: border var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
  background-color: #fdfdff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 180, 255, 0.55);
  background-color: #ffffff;
}

/* ====== Footer ====== */
.main-footer {
  background-color: #0a2342;
  color: rgba(255, 255, 255, 0.82);
  padding: 1rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

.back-to-top {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* ====== Responsive ====== */
@media (max-width: 960px) {
  .hero {
    min-height: 70vh;
  }

  .two-columns,
  .mission-vision,
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card.wide {
    grid-column: auto;
  }
}

@media (max-width: 800px) {
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 70px;
    background: linear-gradient(
      180deg,
      rgba(0, 118, 200, 0.98),
      rgba(0, 118, 200, 0.96)
    );
    flex-direction: column;
    padding: 0.8rem 1.6rem 1.1rem;
    gap: 0.7rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .nav-links.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    height: 64px;
  }

  .hero-content {
    align-items: flex-start;
    padding-top: 2rem;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 68vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 3.3rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  body.lang-ar .footer-inner {
    align-items: flex-end;
  }
}
@media (max-width: 800px) {
  .logo-img {
    height: 40px;
  }
}
