/* ==========================================================================
   Clarion Shipping West Africa — site styles
   Brand: yellow #F7D359, ink #0c0c0c, white #ffffff
   ========================================================================== */

:root {
  --yellow: #f7d359;
  --yellow-dark: #e7be33;
  --ink: #0c0c0c;
  --ink-soft: #2b2b2b;
  --muted: #5f6368;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-dark: #111418;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.14);
  --container: 1200px;
  --header-h: 76px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.7rem); }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section-head--left { margin-inline: 0; text-align: left; }
.section-head .eyebrow { margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.75); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--yellow); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--dark .btn--ghost,
.hero .btn--ghost,
.page-banner .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-banner .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand img { height: 40px; width: auto; }
.nav { margin-left: auto; }
.nav ul {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); }
.header-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  position: relative;
  color: #fff;
  min-height: clamp(480px, 78vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 680px; }
.hero__inner .eyebrow { background: var(--yellow); }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); margin-bottom: 2rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* page banner (interior pages) */
.page-banner {
  position: relative;
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background-size: cover;
  background-position: center;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.45));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: 0.5rem; }
.page-banner p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; margin-bottom: 0; max-width: 620px; }
.breadcrumb { font-size: 0.85rem; color: var(--yellow); margin-bottom: 0.75rem; font-weight: 600; }
.breadcrumb a { color: rgba(255, 255, 255, 0.8); }

/* ----- Grids & cards ----- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 1.2rem; }
.card__body p { color: var(--muted); font-size: 0.95rem; }
.card__meta { font-size: 0.8rem; color: var(--yellow-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.card__link { margin-top: auto; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 0.4rem; }
.card__link:hover { color: var(--yellow-dark); }

/* feature (icon) cards */
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--yellow);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ----- Logo strip ----- */
.logos { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.logos__title { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.logos__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.logos__track img {
  height: 38px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logos__track img:hover { filter: grayscale(0); opacity: 1; }

/* ----- Split / media+text ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split--reverse .split__media { order: 2; }

.tick-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.tick-list li { position: relative; padding-left: 1.85rem; color: var(--ink-soft); }
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ----- Tables ----- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}
table.data th,
table.data td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--ink); color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.data tbody tr:nth-child(even) { background: var(--bg-alt); }
table.data tbody tr:hover { background: #fdf6dd; }
.badge { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 0.8rem; padding: 0.15rem 0.6rem; border-radius: 999px; }

/* ----- Pricing ----- */
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.15rem; }
.price-card .price-list { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; text-align: left; }
.price-card .price-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--line); }
.price-card .price-list strong { color: var(--ink); }

/* ----- Ports ----- */
.port-card { text-align: center; }
.port-card img { border-radius: var(--radius); margin-bottom: 1rem; aspect-ratio: 1; object-fit: cover; }
.port-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.port-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0; }

/* ----- CTA band ----- */
.cta-band { background: var(--yellow); color: var(--ink); text-align: center; }
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { font-size: 1.1rem; margin-bottom: 1.75rem; max-width: 640px; margin-inline: auto; }

/* ----- FAQ ----- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 1.35rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--yellow-dark); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.info-block { margin-bottom: 1.75rem; }
.info-block h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.info-block p { color: var(--muted); margin-bottom: 0; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }

.location-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  background: #fff;
}
.location-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.location-card .tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow-dark); }
.location-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ----- Article ----- */
.article { max-width: 760px; margin: 0 auto; }
.article__hero { border-radius: var(--radius); margin-bottom: 2rem; box-shadow: var(--shadow); }
.article p { font-size: 1.08rem; color: var(--ink-soft); }
.article h2, .article h3 { margin-top: 2rem; }
.article figure { margin: 2rem 0; }
.article figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.article figcaption { margin-top: 0.65rem; font-size: 0.9rem; color: var(--muted); text-align: center; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 2rem 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----- Footer ----- */
.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, 0.78); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer h4 { color: var(--yellow); font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--yellow); }
.footer-brand img { height: 42px; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.95rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-list .label { color: #fff; font-weight: 700; display: block; margin-top: 0.5rem; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}
.socials a:hover { background: var(--yellow); color: var(--ink); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

/* ----- WhatsApp float ----- */
.wa-float {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ----- Back to top ----- */
.to-top {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ----- Utilities ----- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.stack-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.is-open { max-height: 70vh; }
  .nav ul { flex-direction: column; padding: 0.75rem 1.25rem; gap: 0; }
  .nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: block; }
  .header-cta .btn--ghost { display: none; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta-band .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}

/* ----- 404 / Error page ----- */
.error-page { text-align: center; }
.error-page .error-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
}
.error-page .error-icon img,
.error-page .error-icon svg { width: 100%; height: 100%; display: block; }
.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.error-page h2 { margin-top: 0.5rem; }
.error-page .error-lead {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.quick-nav__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  flex: 1 1 250px;
  max-width: 300px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.quick-nav__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}
.quick-nav__icon svg { width: 24px; height: 24px; }
.quick-nav__icon--routes { background: #fff8cc; color: #b86e00; }
.quick-nav__icon--services { background: #d9fde7; color: #1fa750; }
.quick-nav__icon--contact { background: #f2efff; color: #9c40f7; }
