/* =========================================================================
   Baltic Control (BD) Ltd. — Shared Design System
   One stylesheet for all 23 pages. Edit tokens below to restyle the whole site.
   ========================================================================= */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  /* Brand */
  --c-navy:      #0A2547;
  --c-brand:     #1A4C9B;
  --c-brand-600: #163F80;
  --c-brand-50:  #EAF1FB;
  --c-accent:    #E07B1A;
  --c-accent-600:#C46A12;

  /* Neutrals */
  --c-ink:    #16202E;
  --c-body:   #3B4656;
  --c-muted:  #6B7787;
  --c-line:   #E3E8EF;
  --c-bg:     #FFFFFF;
  --c-soft:   #F4F8FC;

  /* Type */
  --font-display: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10,37,71,.06), 0 8px 24px rgba(10,37,71,.08);
  --shadow-lift: 0 10px 20px rgba(10,37,71,.10), 0 20px 48px rgba(10,37,71,.14);

  --header-h: 64px;
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { color: var(--c-accent-600); }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ----- Helpers ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(48px, 8vw, 88px); }
.section--soft { background: var(--c-soft); }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent-600);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--c-accent); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--c-muted); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-600); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background:#fff; color: var(--c-brand); border-color: var(--c-line); }
.btn--outline:hover { color: var(--c-brand-600); border-color: var(--c-brand); }

/* ----- Logo mark -------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; flex: 0 0 auto; object-fit: contain; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--c-ink); line-height: 1.05; letter-spacing: -0.01em;
}
.brand__name span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--c-accent-600); text-transform: uppercase; }

/* ----- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: none;
  border-bottom: 1px solid var(--c-line);
}
.topbar {
  background: var(--c-navy); color: #cdd9ec;
  font-size: 12.5px; letter-spacing: .02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #e7eefb; }
.topbar .iso { color: #fff; font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; }

.navbar .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 8px;
  background: #fff; cursor: pointer; padding: 0 11px;
}
.nav-toggle span { height: 2px; background: var(--c-ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav > ul { display: flex; flex-direction: column; gap: 0; }
.nav a, .nav .submenu-toggle {
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #fff;
  padding: 16px 6px; display: flex; align-items: center; gap: 6px; width: 100%;
  background: none; border: none; border-bottom: 1px solid rgba(255,255,255,.16);
  cursor: pointer; border-radius: 0; text-align: left;
}
.nav a:active, .nav .submenu-toggle:active,
.nav a:hover, .nav .submenu-toggle:hover { color: #ffc684; }
.has-sub > .submenu-toggle::after {
  content: ""; width: 9px; height: 9px; margin-left: auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s; opacity: .7;
}
.has-sub.open > .submenu-toggle::after { transform: rotate(-135deg); }

/* Submenus (accordion on mobile) */
.submenu, .submenu--cols {
  display: none; padding: 2px 0 10px 12px; margin-left: 4px;
  border-left: 2px solid rgba(255,255,255,.28);
}
.has-sub.open > .submenu, .has-sub.open > .submenu--cols { display: block; }
.submenu a, .submenu--cols a {
  font-weight: 500; font-size: 15px; color: rgba(255,255,255,.85); padding: 13px 10px; border-bottom: none;
}

/* Mobile navigation — semi-transparent full-screen overlay */
.nav {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(10,37,71,.90);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  padding: calc(var(--header-h) + 64px) 22px 48px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.nav.open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s ease, transform .25s ease;
}
.nav-backdrop { display: none; }

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(10,37,71,.96) 0%, rgba(22,63,128,.92) 55%, rgba(26,76,155,.86) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 28px 28px;
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(56px, 10vw, 104px); }
.hero .eyebrow { color: #ffd9a8; }
.hero .eyebrow::before { background: var(--c-accent); }
.hero h1 {
  color: #fff; font-size: clamp(34px, 6vw, 60px); margin-top: 16px;
  max-width: 16ch; letter-spacing: -0.02em;
}
.hero h1 em { color: #ffc684; font-style: normal; }
.hero p { margin-top: 18px; max-width: 56ch; font-size: clamp(16px, 2.2vw, 19px); color: #d6e2f3; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ----- Stat band -------------------------------------------------------- */
.stats { background: var(--c-navy); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.12); }
.stat { background: var(--c-navy); padding: 26px 20px; text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px); color: #fff; display: block; line-height: 1; }
.stat span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9fb6d6; margin-top: 8px; display: block; }

/* ----- Intro / prose ---------------------------------------------------- */
.prose p { margin-top: 1em; color: var(--c-body); }
.prose p:first-child { margin-top: 0; }

/* Justified body copy (applies site-wide) */
.prose p,
.content p,
.content li,
.hero p,
.section-head p,
.callout p,
.site-footer p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.lead { font-size: 1.15rem; color: var(--c-ink); }
.lead strong { color: var(--c-brand); }

/* ----- Services grid ---------------------------------------------------- */
.grid-services {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
.svc-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--c-brand-50); }
.svc-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--c-brand-50); overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(10,37,71,.55));
}
.svc-card__body { padding: 16px 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.svc-card__body h3 { font-size: 16px; color: var(--c-ink); }
.svc-card__body .arrow { color: var(--c-accent); flex: 0 0 auto; transition: transform .2s; }
.svc-card:hover .svc-card__body .arrow { transform: translateX(3px); }

/* ----- Availability callout -------------------------------------------- */
.callout {
  background: linear-gradient(110deg, var(--c-brand) 0%, var(--c-brand-600) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(28px,5vw,48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.callout h2 { color: #fff; font-size: clamp(22px, 3.5vw, 30px); }
.callout p { color: #d6e2f3; margin-top: 8px; }

/* ----- Inner page header band ------------------------------------------ */
.page-hero { background: var(--c-navy); color: #fff; }
.page-hero .container { padding-block: clamp(40px, 7vw, 72px); }
.page-hero h1 { color: #fff; font-size: clamp(28px, 5vw, 46px); }
.breadcrumb { font-size: 13px; color: #9fb6d6; margin-bottom: 12px; display: flex; gap: 8px; }
.breadcrumb a { color: #cdd9ec; }
.content { max-width: 820px; }
.content h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 1.6em; }
.content h3 { font-size: 1.2rem; margin-top: 1.4em; }
.content p { margin-top: 1em; }
.content ul.bullets { margin-top: 1em; padding-left: 1.1em; list-style: disc; color: var(--c-body); }
.content ul.bullets li { margin-top: .4em; }
.content ul.bullets li::marker { color: var(--c-accent); }
.highlight {
  border-left: 4px solid var(--c-accent);
  background: var(--c-brand-50);
  padding: 18px 22px; border-radius: 0 10px 10px 0;
  margin-top: 1.6em; font-size: 1.08rem; color: var(--c-ink); font-weight: 500;
}
.subhead { font-family: var(--font-display); font-weight: 600; color: var(--c-ink); margin-top: 1.6em; }

/* Checklist (replaces tick.jpg point lists) */
.checklist { list-style: none; padding: 0; margin-top: 1.4em; display: grid; gap: 14px; }
.checklist li {
  position: relative; padding: 14px 16px 14px 54px;
  background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 10px;
  color: var(--c-body);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 16px; top: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c-brand); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
  font-family: var(--font-display);
}

/* Spec sections on service pages (the old coloured labels) */
.specs h3 { color: var(--c-brand); font-size: 1.05rem; margin-top: 1.6em; }
.specs h3:first-child { margin-top: 0; }
.specs p { margin-top: .4em; }

/* Responsive image gallery */
.gallery {
  display: grid; gap: 12px; margin-top: 1.6em;
  grid-template-columns: repeat(2, 1fr);
}
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--c-line); background: var(--c-soft);
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Contact: office cards */
.info-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 1.4em; }
@media (min-width: 680px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.info-card h3 { color: var(--c-brand); font-size: 1.02rem; }
.info-card address { font-style: normal; color: var(--c-body); margin-top: 10px; line-height: 1.7; text-align: left; }
.info-card .line { margin-top: 10px; font-size: .94rem; color: var(--c-body); }
.info-card .lbl { color: var(--c-muted); font-weight: 600; }
.info-card a { word-break: break-word; }

/* Contact: layout + form */
.contact-layout { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .contact-layout { grid-template-columns: 1.05fr .95fr; } }
.form {
  display: grid; gap: 16px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--c-ink); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-soft);
  color: var(--c-ink); width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--c-brand); background: #fff;
  box-shadow: 0 0 0 3px var(--c-brand-50);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .note { font-size: 13px; color: var(--c-muted); }
.form-status { font-size: 14px; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1f8f4e; }
.form-status.err { color: #c0392b; }

/* Category cards (grouped service lists on service pages) */
.cat-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 1.4em; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.cat h3 { color: var(--c-brand); font-size: 1.05rem; }
.cat ul.bullets { margin-top: .7em; }

/* Responsive data table */
.table-wrap { overflow-x: auto; margin-top: 1.2em; }
.data-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 440px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--c-line); vertical-align: top; }
.data-table thead th { background: var(--c-brand); color: #fff; font-family: var(--font-display); font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: var(--c-soft); }
.data-table td:last-child { font-weight: 600; color: var(--c-brand); }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--c-navy); color: #b9c8de; padding-block: clamp(40px,6vw,64px) 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer a { color: #b9c8de; }
.site-footer a:hover { color: #fff; }
.site-footer .brand__name { color: #fff; }
.footer-links li { margin-top: 8px; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 20px; font-size: 13px; color: #8ea4c2;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}

/* ----- Responsive ramp -------------------------------------------------- */
@media (min-width: 560px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .grid-services { grid-template-columns: repeat(3, 1fr); }
  .stats .container { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .grid-services { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop navigation: turn the mobile overlay back into an inline bar */
@media (min-width: 980px) {
  .site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px); }
  .nav-toggle { display: none; }
  .nav {
    position: static; width: auto; transform: none; box-shadow: none;
    border: 0; padding: 0; overflow: visible; background: transparent; inset: auto;
    opacity: 1; visibility: visible; z-index: auto;
  }
  .nav > ul { flex-direction: row; align-items: center; gap: 2px; }
  .nav a, .nav .submenu-toggle { color: var(--c-ink); border-bottom: 0; border-radius: 8px; font-size: 15px; padding: 12px 14px; }
  .nav a:hover, .nav .submenu-toggle:hover { background: var(--c-brand-50); color: var(--c-brand); }
  .nav .has-sub { position: relative; }
  .submenu, .submenu--cols {
    position: absolute; top: 100%; left: 0; display: none; margin: 8px 0 0;
    background: #fff; border: 1px solid var(--c-line); border-radius: 10px;
    box-shadow: var(--shadow-lift); padding: 8px; min-width: 260px;
  }
  .has-sub:hover > .submenu,
  .has-sub:hover > .submenu--cols,
  .has-sub.open > .submenu,
  .has-sub.open > .submenu--cols { display: block; }
  .submenu--cols { display: none; column-count: 2; column-gap: 8px; width: 540px; }
  .has-sub:hover > .submenu--cols, .has-sub.open > .submenu--cols { display: block; }
  .submenu a, .submenu--cols a { color: var(--c-body); border-radius: 6px; break-inside: avoid; font-size: 14px; padding: 9px 12px; }
  .nav-backdrop { display: none; }
}

/* ----- Accessibility ---------------------------------------------------- */
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
