:root {
  --ink: #14233a;
  --ink-soft: #2b3d57;
  --sand: #f6f1e8;
  --sand-deep: #ece3d3;
  --purple: #6b1f4f;
  --purple-dark: #4f1339;
  --gold: #b8893b;
  --gold-light: #d9b36a;
  --text: #1c2533;
  --muted: #5b6474;
  --white: #ffffff;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 72px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.8em;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 60ch;
}

.accent { color: var(--purple); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--purple);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn-small { padding: 0.5em 1.1em; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-light { background: var(--sand); color: var(--ink); border-color: var(--sand); text-align: center; }
.btn-light:hover { background: var(--white); border-color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-deep);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.logo em { font-style: normal; color: var(--purple); }
.logo span { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a:not(.btn):hover { color: var(--purple); }

/* Language switcher (FR | EN) */
.lang-switch {
  display: flex;
  border: 1px solid var(--sand-deep);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-switch > * { padding: 0.35em 0.7em; }
.lang-switch [aria-current] { background: var(--ink); color: var(--white); }
.nav .lang-switch a { color: var(--muted); text-decoration: none; }
.nav .lang-switch a:hover { color: var(--purple); background: var(--sand); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(107, 31, 79, 0.10), transparent 45%),
    var(--sand);
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* stylised waves: a nod to Byblos the harbour city */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20'%3E%3Cpath d='M0 10 Q15 0 30 10 T60 10 T90 10 T120 10' fill='none' stroke='%2314233a' stroke-opacity='.12' stroke-width='2'/%3E%3C/svg%3E") repeat-x bottom / 120px 20px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-inner h1 { max-width: 20ch; }

/* Phoenician merchant ship */
.hero-ship { width: 100%; height: auto; max-width: 440px; justify-self: end; }
.ship-sun { fill: var(--gold); opacity: 0.14; }
.ship-line, .ship-rope, .ship-wave {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ship-rope { stroke-width: 1.5; opacity: 0.5; }
.ship-wave { stroke-width: 3; opacity: 0.25; }
.ship-sail { fill: var(--purple); }
.ship-stripes { stroke: var(--gold-light); stroke-width: 5; opacity: 0.85; }
.ship-hull { fill: var(--ink); }
.ship-shields circle { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--sand); }
.section-dark h2 { color: var(--white); }
.section-dark .lead { color: #c5cedb; }
.section-dark .eyebrow { color: var(--gold-light); }

.grid { display: grid; gap: 22px; margin-top: 44px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20, 35, 58, 0.08); }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sand);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: none;
}
.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.step-num .phoen { font-size: 2.4rem; color: var(--purple); line-height: 1; }

/* Phoenician script */
/* unicode-bidi: Phoenician is right-to-left; isolate it so it does not reorder the text around it */
.phoen { font-family: "Noto Sans Phoenician", serif; unicode-bidi: isolate; }

/* Why us */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding: 18px 0 18px 40px;
  border-bottom: 1px solid var(--sand-deep);
  color: var(--muted);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 20px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist strong { color: var(--ink); }

/* Heritage: Gubla + Phoenician trade route */
.heritage {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--sand-deep);
}
.heritage-name {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}
.heritage-name .phoen {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  color: var(--purple);
}
.heritage-name p { margin: 0; color: var(--muted); max-width: 38ch; }
.heritage-name strong { color: var(--ink); }

.route {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.route::before {
  /* dashed sea route linking the trading posts */
  content: "";
  position: absolute;
  left: 12.5%; right: 12.5%;
  top: 9px;
  border-top: 2px dashed var(--gold);
}
.route li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 32px;
}
.route li::before {
  content: "";
  position: absolute;
  top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
}
.route .route-home::before {
  top: -2px;
  width: 24px; height: 24px;
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 0 6px rgba(107, 31, 79, 0.15);
}
.route-city { font-family: "Fraunces", Georgia, serif; font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.route-home .route-city { color: var(--purple); }
.route-country { font-size: 0.85rem; color: var(--muted); }
.route-caption {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  max-width: 56ch;
  margin: 40px auto 0;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-card {
  background: var(--ink-soft);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-line {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  font-size: 1.08rem;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow-wrap: anywhere;
}
.contact-line:hover span:last-child { color: var(--gold-light); }
.contact-line .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9fb0c6;
}

/* Footer */
.site-footer {
  background: #0d1828;
  color: #9fb0c6;
  font-size: 0.9rem;
  padding: 26px 0;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-mark { color: var(--gold-light); font-size: 1.3rem; margin-right: 10px; vertical-align: -0.15em; }
.site-footer a { color: #c5cedb; }

/* Legal page */
.legal { padding: 70px 0 90px; }
.legal .container { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; max-width: none; }
.legal p { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact, .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-ship { justify-self: center; max-width: 340px; }
}
@media (max-width: 720px) {
  .nav > a:not(.btn) { display: none; }
  .nav { gap: 12px; }
  .section { padding: 70px 0; }

  /* Phones: ship on top, compact hero, so ship + text + CTA fit the first screen */
  .hero { padding: 12px 0 64px; }
  .hero-inner { gap: 8px; }
  .hero-ship { order: -1; max-width: 170px; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1rem; }
  .hero-actions { margin-top: 1.1em; }
}
@media (max-width: 520px) {
  .heritage-name { flex-direction: column; align-items: flex-start; gap: 12px; }
  .route-city { font-size: 0.95rem; }
  .route-country { font-size: 0.75rem; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .logo span { font-size: 1.05rem; }
  .nav .btn-small { display: none; }
  /* "How it works" is one scroll away; keep the first screen to one clear CTA */
  .hero-actions .btn-ghost { display: none; }
}
