/* ==========================================================================
   Chomatas Transport — static one-page site
   ========================================================================== */

:root {
  --navy-950: #0b0f2e;
  --navy-900: #141a4d;
  --navy-800: #1f2766;
  --brand:    #2f3a8f;   /* logo blue */
  --brand-2:  #4453c4;
  --accent:   #ff6b2c;   /* marine safety orange */
  --accent-2: #ff8a52;

  --ink:      #0f1433;
  --ink-2:    #4a5070;
  --line:     #e3e6f0;
  --bg:       #ffffff;
  --bg-tint:  #f4f6fb;

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 1px 2px rgba(15,20,51,.06), 0 12px 32px -12px rgba(15,20,51,.18);
  --shadow-lg:0 30px 60px -20px rgba(11,15,46,.45);

  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Oswald", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

/* Icons */
.i, .card-icon svg, .c-icon svg, .fab svg, .map-pin {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.i { width: 18px; height: 18px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,107,44,.8); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 14px 30px -10px rgba(255,107,44,.9); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: #fff;
  transition: background .35s, box-shadow .35s, color .35s, height .35s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(15,20,51,.35);
  --header-h: 66px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 21px/1 var(--font-brand); letter-spacing: .02em; }
.brand-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-top: 5px; }

/* emblem colours */
.brand-mark { --m-bg: #fff; --m-fg: var(--brand); }
.scrolled .brand-mark, .brand-footer .brand-mark { --m-bg: var(--brand); --m-fg: #fff; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) {
  position: relative; padding: 10px 14px; font-weight: 600; font-size: 15px; text-decoration: none; opacity: .9;
  transition: opacity .2s;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:not(.btn):hover, .nav a.active { opacity: 1; }
.nav > a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; }

.lang-switch {
  display: inline-flex; margin-left: 8px; padding: 3px; border-radius: 999px;
  border: 1px solid rgba(127,127,127,.35);
}
.lang-switch a {
  padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .06em;
  text-decoration: none; opacity: .7; transition: opacity .2s, background .2s, color .2s;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a.is-current { opacity: 1; background: var(--accent); color: #fff; }

.menu-toggle { display: none; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 60px) 0 40px;
  color: #fff; background: var(--navy-950);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  animation: heroZoom 18s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, rgba(11,15,46,.94) 0%, rgba(11,15,46,.78) 38%, rgba(11,15,46,.25) 75%, rgba(11,15,46,.15) 100%),
    linear-gradient(0deg, rgba(11,15,46,.9) 0%, rgba(11,15,46,0) 45%);
}
.hero-content { max-width: var(--container); margin-bottom: auto; margin-top: auto; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  max-width: 13ch; margin-bottom: 24px; letter-spacing: -.035em;
}
.hl {
  background: linear-gradient(90deg, var(--accent), #ffb37a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: rgba(255,255,255,.82); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #3ee08f; }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ee08f;
  animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.stats {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  background: rgba(11,15,46,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.stats li { padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { border-left: 1px solid rgba(255,255,255,.12); }
.stats strong { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stats sup { font-size: .5em; vertical-align: super; }
.stats li > span { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.35; }

/* ------------------------------------------------------------------ Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-tint { background: var(--bg-tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow-light { color: #aab4ff; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.1rem; }
.section-head-row {
  max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
.section-head-row h2 { margin-bottom: 0; }
.section-head-row > p { margin: 0; color: var(--ink-2); font-size: 1.1rem; }

/* Company split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split-media { position: relative; padding: 0 12% 12% 0; }
.split-media figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.media-main img { aspect-ratio: 4/5; width: 100%; object-fit: cover; }
.media-float {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border: 6px solid #fff;
}
.media-float img { aspect-ratio: 3/4; width: 100%; object-fit: cover; }
.media-badge {
  position: absolute; left: -18px; top: 32px;
  background: var(--accent); color: #fff; padding: 16px 20px; border-radius: var(--radius-sm);
  box-shadow: 0 18px 36px -14px rgba(255,107,44,.75); max-width: 210px;
}
.media-badge strong { display: block; font-size: 1.25rem; letter-spacing: -.01em; }
.media-badge span { font-size: 13.5px; line-height: 1.35; display: block; opacity: .95; }

.split-text p { color: var(--ink-2); }
.split-text p strong { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 38px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Services cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--ink-2); margin: 0; font-size: 16px; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 10px 20px -10px rgba(47,58,143,.8);
}
.card-icon svg { width: 26px; height: 26px; }

.steps {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--navy-900); color: #fff; border-radius: var(--radius); overflow: hidden;
}
.steps li { padding: 30px 28px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.steps li + li { border-left: 1px solid rgba(255,255,255,.1); }
.step-n { font: 600 14px/1 var(--font-brand); letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.steps strong { font-size: 1.1rem; }
.steps li > span:last-child { font-size: 14.5px; color: rgba(255,255,255,.68); line-height: 1.5; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 16px;
}
.g-item {
  position: relative; grid-row: span 2; padding: 0; border: 0; margin: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--navy-900);
}
.g-wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,15,46,.75) 0%, rgba(11,15,46,0) 45%);
  opacity: .85; transition: opacity .4s;
}
.g-cap {
  position: absolute; left: 20px; bottom: 16px; right: 20px; z-index: 1; text-align: left;
  color: #fff; font: 700 15px/1.3 var(--font);
  transform: translateY(4px); transition: transform .4s var(--ease);
}
.g-item:hover img { transform: scale(1.06); }
.g-item:hover .g-cap { transform: translateY(0); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8,10,30,.94); color: #fff;
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; animation: fadeIn .25s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { margin-top: 14px; font-weight: 600; color: rgba(255,255,255,.8); }
.lb-close, .lb-nav {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.1);
  width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; display: grid; place-items: center;
  transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Contact */
.contact {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(68,83,196,.45), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255,107,44,.18), transparent 60%),
    var(--navy-950);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.contact-intro > p:not(.eyebrow) { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 44ch; }
.contact-list { display: grid; gap: 12px; margin-top: 36px; }
.c-item {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.c-item:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); transform: translateX(4px); }
.c-item small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.c-item strong { font-size: 1.05rem; font-weight: 700; word-break: break-word; }
.c-icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: var(--accent); color: #fff;
}
.c-icon svg { width: 22px; height: 22px; }

.map {
  position: relative; min-height: 460px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0/32px 32px,
    rgba(255,255,255,.03);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center;
}
.map-placeholder p { margin: 0; font-size: 1.1rem; }
.map-placeholder small { color: rgba(255,255,255,.5); font-size: 13px; }
.map-pin { width: 54px; height: 54px; color: var(--accent); stroke-width: 1.6; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand-footer .brand-name { color: var(--brand); }
.brand-footer .brand-tag { color: var(--ink-2); opacity: 1; letter-spacing: .06em; }
.footer-meta { margin: 0; font-size: 14px; color: var(--ink-2); text-align: right; }
.footer-meta a { color: var(--brand); font-weight: 700; text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* Floating call button (mobile) */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: none; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 14px 30px -8px rgba(255,107,44,.8);
  transition: transform .3s var(--ease), opacity .3s;
}
.fab.fab-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
.fab svg { width: 26px; height: 26px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .nav > a:not(.btn) { padding: 10px 10px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .menu-toggle {
    display: grid; place-content: center; gap: 5px; width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid currentColor; border-color: rgba(127,127,127,.35); background: transparent; color: inherit; cursor: pointer;
    position: relative; z-index: 2;
  }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 8px;
    background: var(--navy-950); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav > a:not(.btn) { font-size: 1.6rem; font-weight: 800; padding: 10px 20px; }
  .nav > a:not(.btn)::after { left: 20px; right: 20px; }
  .nav-cta { margin: 20px 0 0; }
  .lang-switch { margin: 16px 0 0; }
  .lang-switch a { padding: 8px 16px; font-size: 15px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open.site-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-open .brand { position: relative; z-index: 2; }
  .menu-open .brand-mark { --m-bg: #fff; --m-fg: var(--brand); }

  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }

  .split, .contact-grid, .section-head-row { grid-template-columns: 1fr; }
  .section-head-row { gap: 16px; }
  .split-media { max-width: 560px; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .g-wide { grid-column: span 2; grid-row: span 2; }

  .map { min-height: 340px; }
  .fab { display: grid; }
  .footer-meta { text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 18px; }
  .brand-tag { font-size: 9px; }
  .hero { padding-bottom: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats li { padding: 16px 18px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .gallery { gap: 10px; grid-auto-rows: 130px; }
  .g-cap { left: 12px; right: 12px; bottom: 10px; font-size: 13px; }
  .media-badge { left: 0; top: 16px; max-width: 170px; padding: 12px 14px; }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
