/* Napvera — site styles
   Palette: navy ink, white, cool mist, one orange accent. */

:root {
  --navy: #14284B;
  --navy-deep: #0E1D38;
  --ink: #1A2742;
  --slate: #4B5B78;
  --mist: #F2F5FA;
  --line: #D9E1EC;
  --orange: #EE7A22;
  --orange-ink: #A84C08;   /* orange for small text on light backgrounds */
  --on-navy: #C9D3E3;
  --white: #FFFFFF;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; color: var(--navy); font-stretch: 112%; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 4px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  background: var(--navy); color: var(--white);
  border: 2px solid var(--navy); border-radius: 4px;
  font-weight: 600; font-size: 1rem; font-stretch: 106%; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: .9688rem; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--orange); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(150px, 17vw, 250px); }
/* faint port scene along the bottom edge of the hero */
.hero-scene {
  position: absolute; left: 0; bottom: 0; z-index: 0;
  width: 100%; height: clamp(120px, 15vw, 220px); max-width: none;
  object-fit: cover; object-position: center bottom;
  pointer-events: none; user-select: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero h1 {
  font-size: clamp(2.375rem, 1.5rem + 3vw, 3.75rem);
  font-stretch: 116%;
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.012em;
  max-width: 16ch;
  text-wrap: balance;
}
.lead { margin-top: 28px; max-width: 34em; color: var(--slate); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.fact dt { font-size: clamp(3rem, 2.2rem + 2.6vw, 4.25rem); font-stretch: 125%; font-weight: 800; line-height: .95; color: var(--navy); letter-spacing: -0.02em; }
.fact .plus { color: var(--orange); }
.fact dd { margin: 10px 0 0; max-width: 28ch; color: var(--slate); font-size: .9688rem; line-height: 1.5; }

/* Route map */
.hero-map { margin: 0; }
.route-map { width: 100%; height: auto; overflow: visible; }
.route-map text { font-family: var(--font); }
.map-place { font-size: 21px; font-weight: 700; font-stretch: 112%; fill: var(--navy); }
.map-co { font-size: 16px; font-weight: 500; fill: var(--slate); }
.map-place, .map-co { paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 5px; stroke-linejoin: round; }
.route { fill: none; stroke-linecap: round; }
.route-past { stroke: var(--navy); stroke-width: 2.4; stroke-dasharray: 0.1 9; opacity: .6; }
.route-home {
  stroke: var(--orange); stroke-width: 4;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw-route 1.8s cubic-bezier(.6, .1, .3, 1) .5s forwards;
}
.map-ship path { fill: none; stroke: #B4C0D2; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.map-ship path:first-child { fill: var(--white); }
.pin { fill: var(--white); stroke: var(--navy); stroke-width: 3; }
.pin-home { fill: var(--orange); stroke: var(--white); stroke-width: 3.5; }
.pin-pulse {
  fill: none; stroke: var(--orange); stroke-width: 2.5; opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: pulse 1.6s ease-out 2.2s 2;
}

@keyframes draw-route { to { stroke-dashoffset: 0; } }
@keyframes pulse {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.8); }
}

/* ---------- Section heads ---------- */
.section-head h2,
.services-intro h2,
.contact h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-head { max-width: 40rem; }
.section-head h2 { max-width: 18ch; }
.section-head p { margin-top: 18px; color: var(--slate); font-size: 1.125rem; max-width: 52ch; }

/* ---------- Story / timeline ---------- */
.story { background: var(--mist); padding-block: var(--section); }

.timeline {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
}
.stop { position: relative; padding-top: 44px; }
/* connector to the next stop */
.stop::before {
  content: ""; position: absolute; top: 9px; left: 20px; right: -40px;
  border-top: 2px dotted rgba(20, 40, 75, .45);
}
/* the last leg — Europe back to Damascus — is the orange route home */
.stop:nth-child(3)::before { border-top: 3px solid var(--orange); top: 8px; }
.stop-home::before { display: none; }
/* marker */
.stop::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--navy);
}
.stop-home::after { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(238, 122, 34, .2); }

.when { display: block; font-size: .875rem; font-weight: 700; font-stretch: 118%; color: var(--orange-ink); letter-spacing: .01em; }
.stop h3 { margin-top: 8px; font-size: 1.375rem; font-weight: 700; }
.stop p { margin-top: 12px; color: var(--slate); font-size: 1rem; }

/* ---------- Services ---------- */
.services { padding-block: var(--section); }
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); }
.services-intro > p { margin-top: 18px; color: var(--slate); font-size: 1.125rem; max-width: 34ch; }
.carry-title { margin-top: 44px; font-size: 1rem; font-stretch: 110%; font-weight: 700; }
.carry { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.carry li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink); }

.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 48px; align-content: start; }
.service { padding-top: 22px; border-top: 2px solid var(--navy); }
.service-icon {
  display: block; width: 48px; height: 48px; margin-bottom: 18px;
  fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service-icon .accent { stroke: var(--orange); }
.service h3 { font-size: 1.375rem; font-weight: 700; }
.service p { margin-top: 12px; color: var(--slate); }

/* ---------- Sister companies ---------- */
.group { background: var(--mist); padding-block: var(--section); }
.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.company {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: border-color .2s ease;
}
.company-logo { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 40px; border-bottom: 1px solid var(--line); }
.company-logo img { width: auto; max-width: 260px; max-height: 72px; }
.wordmark-placeholder { font-size: 2.75rem; font-weight: 700; font-stretch: 100%; letter-spacing: .01em; color: #222; }
.company-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 28px; }
.company-meta h3 { font-size: 1.25rem; font-weight: 700; }
.company-meta p { color: var(--slate); display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; justify-content: flex-end; }
.visit { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; }
.company-link:hover { border-color: var(--navy); }
.company-link:hover .visit { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--white); padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { color: var(--white); }
.contact-main > p { margin-top: 18px; color: var(--on-navy); font-size: 1.125rem; max-width: 36ch; }
.email {
  display: inline-block; margin-top: 32px;
  font-size: clamp(1.625rem, 1rem + 2.2vw, 2.5rem); font-weight: 700; font-stretch: 112%;
  color: var(--white); text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 3px; text-underline-offset: 9px;
  overflow-wrap: anywhere; transition: color .2s ease;
}
.email:hover { color: var(--orange); }
.address { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); max-width: 24rem; }
.address h3 { color: var(--white); font-size: 1.0625rem; font-stretch: 108%; font-weight: 700; }
.address address { margin-top: 6px; font-style: normal; color: var(--on-navy); }

/* Contact form */
.contact-form {
  background: var(--white); color: var(--ink);
  border-radius: 10px; padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 48px -24px rgba(5, 12, 28, .5);
}
.form-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field { margin-top: 18px; min-width: 0; }
.field > label, .choice legend { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; color: var(--navy); }
.optional { font-weight: 400; color: var(--slate); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: var(--white); border: 1px solid #7F8CA3; border-radius: 4px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(238, 122, 34, .45);
}
.choice { border: 0; padding: 0; margin-inline: 0; }
.choice legend { padding: 0; }
.choice-options { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-options label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-size: .9375rem; color: var(--ink); transition: border-color .15s ease, background-color .15s ease;
}
.choice-options input { accent-color: var(--navy); width: 16px; height: 16px; margin: 0; }
.choice-options label:hover { border-color: #7F8CA3; }
.choice-options label:has(input:checked) { border-color: var(--navy); background: var(--mist); }
.choice-options label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }

/* errors appear only after the visitor has interacted, or after a submit attempt */
.field-error { display: none; margin-top: 6px; font-size: .875rem; color: #B3261E; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: #B3261E; color: var(--white); font-size: .6875rem; font-weight: 700; vertical-align: 1px; }
.contact-form :is(input, textarea):user-invalid,
.contact-form.was-submitted :is(input, textarea):invalid { border-color: #B3261E; box-shadow: inset 0 0 0 1px #B3261E; }
.contact-form :is(input, textarea):user-invalid ~ .field-error,
.contact-form.was-submitted :is(input, textarea):invalid ~ .field-error { display: block; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.btn-accent { background: var(--orange); border-color: var(--orange); color: var(--navy-deep); }
.btn-accent:hover { background: #D9661A; border-color: #D9661A; color: var(--navy-deep); }
.btn[disabled] { opacity: .65; cursor: progress; }
.form-status { flex: 1 1 14rem; font-size: .9375rem; color: var(--slate); }
.form-status:empty { display: none; }
.form-status[data-state="success"] { color: #1E6B3A; font-weight: 600; }
.form-status[data-state="error"] { color: #B3261E; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9FB0CA; font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 28px; }
.footer-inner img { width: 112px; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .stop:nth-child(2)::before { right: 0; }
}

@media (max-width: 900px) {
  .hero-grid, .services-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-map { max-width: 560px; margin-inline: auto; width: 100%; }
  .site-nav a:not(.btn) { display: none; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 64px; }
  .brand img { width: 124px; }
  .facts { gap: 20px; margin-top: 44px; }
  .map-place { font-size: 27px; }
  .map-co { font-size: 20px; }

  .timeline { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 44px; }
  .stop { padding-top: 0; padding-left: 40px; }
  .stop::before, .stop:nth-child(2)::before { top: 24px; bottom: -36px; left: 9px; right: auto; border-top: 0; border-left: 2px dotted rgba(20, 40, 75, .45); }
  .stop:nth-child(3)::before { top: 24px; border-top: 0; border-left: 3px solid var(--orange); left: 8.5px; }

  .service-list, .group-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .group-grid { gap: 16px; }
  .company-logo { min-height: 150px; padding: 28px; }
  .company-meta { padding: 18px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-home { animation: none; stroke-dashoffset: 0; }
  .pin-pulse { animation: none; }
  * { transition: none !important; }
}
