/* ===============================================================
   Celadon Group — Global Stylesheet
   Brand palette derived from official logo
   Deep blue  #00649c   |   Sky blue  #09bbee
   =============================================================== */

:root {
  --blue-900: #013a5c;
  --blue-700: #00649c;
  --blue-500: #0a86c9;
  --sky-400:  #09bbee;
  --sky-100:  #e6f7fe;
  --ink:      #15222c;
  --slate:    #4a5b67;
  --muted:    #7c8a95;
  --line:     #e3e9ee;
  --bg:       #ffffff;
  --bg-alt:   #f5f8fb;
  --white:    #ffffff;
  --amber:    #ffb400;
  --radius:   14px;
  --radius-sm:8px;
  --shadow:   0 10px 30px rgba(1, 58, 92, .08);
  --shadow-lg:0 24px 60px rgba(1, 58, 92, .16);
  --container: 1180px;
  --ease: cubic-bezier(.16, .84, .44, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { 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;
  overflow-x: hidden;
}

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

a { color: var(--blue-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sky-400); }

h1, h2, h3, h4 { line-height: 1.15; color: var(--blue-900); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; color: var(--slate); }

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

.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--sky-400);
  margin-bottom: 14px;
}

.center { text-align: center; }
.center p { max-width: 680px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.18rem; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: .97rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sky-400); color: #04303f; box-shadow: 0 8px 24px rgba(9,187,238,.35); }
.btn--primary:hover { background: #1ccafd; color: #04303f; }
.btn--solid { background: var(--blue-700); color: #fff; }
.btn--solid:hover { background: var(--blue-900); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--blue-900); border-color: #fff; }
.btn--outline { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn--outline:hover { background: var(--blue-700); color: #fff; }

/* ---------- Top reinstatement banner ---------- */
.topbar {
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
  color: #dff3ff; font-size: .85rem; text-align: center;
  padding: 9px 16px; letter-spacing: .01em;
}
.topbar strong { color: #fff; }
.topbar .pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 rgba(255,180,0,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,180,0,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(255,180,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,180,0,0); }
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(1,58,92,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .96rem;
  padding: 10px 16px; border-radius: 8px; position: relative;
}
.nav-links a:hover { color: var(--blue-700); background: var(--sky-100); }
.nav-links a.active { color: var(--blue-700); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--sky-400); border-radius: 2px;
}
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--blue-900); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  min-height: 86vh; display: flex; align-items: center;
  background: linear-gradient(120deg, rgba(1,30,48,.86), rgba(0,100,156,.62)),
              url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(1,30,48,.65), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: #d7e8f3; font-size: 1.2rem; max-width: 56ch; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(9,187,238,.18); border: 1px solid rgba(9,187,238,.5);
  color: #bdeeff; padding: 8px 16px; border-radius: 50px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px;
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2s infinite; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats .num { font-size: 2.1rem; font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: .85rem; color: #bcd4e3; letter-spacing: .03em; }

/* ---------- Trust / logos strip ---------- */
.strip { background: var(--blue-900); color: #cfe6f3; padding: 26px 0; }
.strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.strip .item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.strip .item svg { width: 26px; height: 26px; fill: var(--sky-400); flex: none; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 26px; }
.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);
  padding: 30px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-700));
  margin-bottom: 18px;
}
.card .ico svg { width: 28px; height: 28px; fill: #fff; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .96rem; }

/* service cards with image */
.svc {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc .img { height: 200px; overflow: hidden; }
.svc .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc:hover .img img { transform: scale(1.07); }
.svc .body { padding: 26px; }
.svc .body h3 { margin-bottom: 8px; }
.svc .body p { margin: 0; font-size: .95rem; }
.svc .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-700); background: var(--sky-100);
  padding: 5px 12px; border-radius: 50px; margin-bottom: 12px;
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 100%; object-fit: cover; }
.split-media { position: relative; }
.split-media .float {
  position: absolute; bottom: -26px; left: -26px;
  background: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--line);
}
.split-media .float .big { font-size: 1.8rem; font-weight: 800; color: var(--blue-700); }
.split-media .float .sm { font-size: .82rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 22px 0 28px; }
.checklist li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--slate); }
.checklist li svg { width: 22px; height: 22px; flex: none; fill: var(--sky-400); margin-top: 2px; }

/* ---------- Stats band ---------- */
.statband { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: #fff; }
.statband .grid-4 { gap: 20px; }
.statband .stat { text-align: center; padding: 14px; }
.statband .num { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1; }
.statband .num span { color: var(--sky-400); }
.statband .lbl { color: #bcd9ea; margin-top: 8px; font-size: .95rem; }

/* ---------- Divisions ---------- */
.division {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.division:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.division .top { padding: 22px 26px; color: #fff; }
.division .top .flag { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.division .top h3 { color: #fff; margin: 4px 0 0; }
.division .body { padding: 22px 26px; }
.division .body p { margin: 0; font-size: .95rem; }
.bg-us  { background: linear-gradient(135deg, #00649c, #013a5c); }
.bg-ca  { background: linear-gradient(135deg, #c0392b, #8e2b20); }
.bg-mx  { background: linear-gradient(135deg, #117a3d, #0c5a2c); }
.bg-3pl { background: linear-gradient(135deg, #09bbee, #00649c); }

/* ---------- Timeline (reinstatement) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 34px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--sky-400);
}
.tl-item.now::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px rgba(255,180,0,.2); }
.tl-item .yr { font-weight: 800; color: var(--blue-700); }
.tl-item h4 { margin: 2px 0 6px; color: var(--blue-900); font-size: 1.1rem; }
.tl-item p { margin: 0; font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(120deg, rgba(1,30,48,.9), rgba(0,100,156,.78)),
              url("https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=1920&q=80") center/cover fixed no-repeat;
}
.cta h2 { color: #fff; }
.cta p { color: #d7e8f3; max-width: 600px; margin: 0 auto 26px; font-size: 1.12rem; }
.cta .hero-actions { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  color: #fff; padding: 120px 0 80px; position: relative;
  background: linear-gradient(120deg, rgba(1,30,48,.9), rgba(0,100,156,.7)),
              url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #d7e8f3; font-size: 1.15rem; max-width: 60ch; }
.crumbs { font-size: .85rem; color: #b8d2e3; margin-bottom: 14px; }
.crumbs a { color: #b8d2e3; }
.crumbs a:hover { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.info-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 18px; box-shadow: var(--shadow); }
.info-card .ico { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--sky-100); }
.info-card .ico svg { width: 24px; height: 24px; fill: var(--blue-700); }
.info-card h4 { margin: 0 0 4px; }
.info-card p, .info-card a { margin: 0; font-size: .97rem; color: var(--slate); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--blue-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .97rem; color: var(--ink); transition: border .2s, box-shadow .2s; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(9,187,238,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-success {
  display: none; background: #e8f8ef; border: 1px solid #b7e6cb; color: #1c7a45;
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600;
}
.form-success.show { display: block; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Values / accordion ---------- */
.value { display: flex; gap: 16px; }
.value .ico { width: 50px; height: 50px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--sky-100); }
.value .ico svg { width: 26px; height: 26px; fill: var(--blue-700); }
.value h4 { margin: 0 0 6px; }
.value p { margin: 0; font-size: .95rem; }

.accordion { max-width: 820px; margin: 0 auto; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: #fff; overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px; font-size: 1.05rem; font-weight: 700; color: var(--blue-900);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit;
}
.acc-head .plus { font-size: 1.5rem; color: var(--sky-400); transition: transform .3s; flex: none; }
.acc-item.open .acc-head .plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-body p { padding: 0 24px 22px; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-900); color: #b9d3e2; padding: 70px 0 0; }
.footer a { color: #b9d3e2; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer .brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer p { color: #9fc0d2; font-size: .93rem; }
.footer h5 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 11px; font-size: .93rem; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, transform .2s; }
.social a:hover { background: var(--sky-400); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #87aabf; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-150%); transition: transform .35s var(--ease); max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .split-media .float { left: 16px; bottom: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero { min-height: 78vh; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .strip .container { justify-content: center; text-align: center; }
}
