:root {
  --green-950: #063528;
  --green-900: #0f4d34;
  --green-800: #145c3f;
  --green-700: #1d6a45;
  --gold-500: #d4af37;
  --gold-400: #e0c35a;
  --gold-300: #e7d9a8;
  --paper: #f7f6f2;
  --white: #ffffff;
  --text: #1a2b22;
  --muted: #5d6e65;
  --border: rgba(15, 77, 52, 0.12);
  --shadow: 0 18px 40px rgba(6, 53, 40, 0.12);
  --radius: 14px;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

bdi,
.phone-ltr,
a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
}

.phone-ltr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========== Topbar ========== */
.topbar {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.topbar-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.topbar-contacts a:hover {
  color: var(--gold-400);
}

.topbar-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.topbar-icon svg {
  width: 100%;
  height: 100%;
}

.topbar-social {
  display: flex;
  gap: 8px;
}

.topbar-social a,
.footer-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topbar-social a svg,
.footer-social a svg {
  width: 15px;
  height: 15px;
  display: block;
}

.topbar-social a:hover,
.footer-social a:hover {
  background: var(--gold-500);
  color: var(--green-950);
  transform: translateY(-1px);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(6, 53, 40, 0.04);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  /* لوجو أفقي كامل بدون ضغط */
  width: clamp(220px, 26vw, 320px);
  height: auto;
  max-height: 78px;
  object-fit: contain;
  object-position: right center;
  background: transparent;
  display: block;
}

.footer-logo {
  width: min(300px, 100%);
  height: auto;
  max-height: 110px;
  object-fit: contain;
  background: #ffffff;
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: var(--muted);
}

.main-nav > a:not(.btn) {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.main-nav > a:not(.btn):hover,
.main-nav > a:not(.btn).is-active {
  color: var(--green-900);
}

.main-nav > a:not(.btn):hover::after,
.main-nav > a:not(.btn).is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-inline-start: 8px;
  min-height: 44px;
  padding-inline: 18px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--green-950);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--green-900);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(15, 77, 52, 0.25);
}

.btn-primary:hover {
  background: var(--green-800);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  isolation: isolate;
  padding: 110px 0 0;
  min-height: clamp(620px, 88vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("../assets/images/hero-ship.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 53, 40, 0.88) 0%, rgba(6, 53, 40, 0.62) 48%, rgba(6, 53, 40, 0.35) 100%),
    linear-gradient(180deg, rgba(6, 53, 40, 0.2) 0%, rgba(6, 53, 40, 0.75) 100%);
}

.hero-content {
  /* يبقى كـ container متمركز — بدون لصق على حافة الشاشة */
  margin-bottom: 48px;
  padding-inline: clamp(8px, 2vw, 24px);
  animation: rise-in 0.8s ease both;
}

.hero-content h1,
.hero-content > p,
.hero-actions {
  max-width: 640px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.2;
  font-weight: 800;
}

.hero-dots {
  color: rgba(255, 255, 255, 0.75);
}

.hero-accent {
  display: block;
  color: var(--gold-400);
}

.hero-content p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  transform: translateY(48%);
  position: relative;
  z-index: 2;
  animation: rise-in 1s ease 0.15s both;
}

.feature-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(6, 53, 40, 0.16);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 77, 52, 0.1);
  color: var(--green-900);
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ========== Sections ========== */
.section {
  padding: 100px 0;
}

.about {
  padding-top: 140px;
}

.section-kicker {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.85rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  color: var(--green-900);
}

.section-heading.light h2,
.section-heading.light p {
  color: var(--white);
}

.section-heading.light p {
  opacity: 0.82;
  margin: 0;
}

/* ========== About ========== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  height: min(520px, 70vw);
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 18px;
  background: var(--green-900);
  color: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  max-width: 180px;
  box-shadow: 0 12px 30px rgba(6, 53, 40, 0.35);
}

.about-badge strong {
  display: block;
  font-size: 1.6rem;
  color: var(--gold-400);
  line-height: 1.1;
}

.about-badge span {
  font-size: 0.85rem;
  font-weight: 600;
}

.about-copy h2 {
  margin: 14px 0 16px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--green-900);
  line-height: 1.35;
}

.about-copy > p {
  margin: 0 0 14px;
  color: var(--muted);
}

.about-points {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.about-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.point-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-500);
  font-weight: 800;
  flex-shrink: 0;
}

.about-points strong {
  display: block;
  color: var(--green-900);
  margin-bottom: 2px;
}

.about-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ========== Sectors ========== */
.sectors {
  background: linear-gradient(160deg, var(--green-950), var(--green-900) 55%, var(--green-800));
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sector-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 340px;
  isolation: isolate;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

.sector-card:hover {
  transform: translateY(-6px);
}

.sector-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.45s ease;
}

.sector-card:hover img {
  transform: scale(1.06);
}

.sector-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 53, 40, 0.15) 20%, rgba(6, 53, 40, 0.88) 100%);
}

.sector-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 18px;
  color: var(--white);
}

.sector-content h3 {
  margin: 0 0 8px;
  color: var(--gold-400);
  font-size: 1.3rem;
}

.sector-content p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ========== Quote / Form ========== */
.quote {
  background: var(--paper);
}

.quote-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.quote-info {
  background: linear-gradient(165deg, var(--green-900), var(--green-950));
  color: var(--white);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote-info h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
}

.quote-info > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.quote-meta {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.quote-meta li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.meta-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  color: var(--gold-400);
}

.meta-icon svg {
  width: 18px;
  height: 18px;
}

.quote-meta strong {
  display: block;
  color: var(--gold-400);
  font-size: 0.9rem;
}

.quote-meta span,
.quote-meta a {
  color: rgba(255, 255, 255, 0.9);
}

.quote-meta a {
  display: block;
}

.quote-brand {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold-300);
  font-weight: 700;
  font-family: "Montserrat", "Cairo", sans-serif;
  letter-spacing: 0.04em;
}

.quote-form {
  padding: 36px 32px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--green-900);
  font-size: 0.92rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfaf7;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(15, 77, 52, 0.12);
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-weight: 600;
  color: var(--green-700);
}

.form-status.is-error {
  color: #9b2c2c;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.84);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
}

.footer-brand p {
  margin: 14px 0 18px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--gold-400);
  font-size: 1.1rem;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact a,
.footer-contact li {
  color: rgba(255, 255, 255, 0.88);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold-400);
}

.reg-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 16px;
}

.reg-box span {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

.reg-box strong {
  display: block;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* ========== Motion ========== */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .topbar-social {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-cta {
    margin-inline-start: 0;
    width: 100%;
  }

  .about-grid,
  .quote-card {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    transform: translateY(28%);
  }

  .about {
    padding-top: 120px;
  }
}

@media (max-width: 700px) {
  .topbar-contacts a:nth-child(3),
  .topbar-contacts a:nth-child(4) {
    display: none;
  }

  .hero {
    padding-top: 72px;
    min-height: auto;
  }

  .hero-content {
    margin-bottom: 28px;
  }

  .feature-cards,
  .sectors-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    transform: none;
    margin-top: 28px;
    padding-bottom: 8px;
  }

  .about {
    padding-top: 72px;
  }

  .section {
    padding: 72px 0;
  }

  .quote-info,
  .quote-form {
    padding: 28px 20px;
  }

  .about-media img {
    height: 280px;
  }
}
