/* ============================================================
   ROVA MARITIEM B.V. — "Tidal Momentum" / Industrial Fluidity
   Static frontend stylesheet (Bootstrap 5 overlay)
   ============================================================ */

:root {
  --navy: #0A1F44;
  --navy-2: #0d2a5c;
  --orange: #FF7A00;
  --azure: #0077B6;
  --white: #FFFFFF;
  --slate: #F8F9FA;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(10, 31, 68, 0.12);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100vw;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--orange); }

.text-orange { color: var(--orange) !important; }
.text-azure { color: var(--azure) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-orange { background: var(--orange) !important; }
.bg-azure { background: var(--azure) !important; }
.bg-slate { background: var(--slate) !important; }

/* ---------- Layout containers ---------- */
.container-wide {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--orange);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 2px;
  background: var(--orange);
}

/* Thin technical rule */
.rule { border: 0; border-top: 1px solid var(--line-dark); margin: 0; }
.rule.light { border-top-color: var(--line); }

/* Coordinate overlay text */
.coord {
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 2px;
  padding: .8rem 1.8rem;
  transition: all .35s cubic-bezier(.16,1,.3,1);
}
.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-orange:hover {
  background: #e86f00;
  border-color: #e86f00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,122,0,.35);
}
.btn-outline-light {
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-outline-navy {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}
.btn:focus, .btn:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 2px;
}

/* ---------- Navbar ---------- */
.custom-nav {
  position: relative;
  z-index: 1040;
  background: rgba(10, 31, 68, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: all .4s ease;
  padding: 1rem 0;
}
.custom-nav.scrolled {
  background: rgba(10, 31, 68, 0.97);
  padding: .55rem 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.custom-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: .02em;
}
.custom-nav .navbar-brand img.logo {
  height: 46px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
}
.custom-nav .brand-name { line-height: 1; }
.custom-nav .brand-name small {
  display: block;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .28em;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}
.custom-nav .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 .15rem;
  position: relative;
  padding: .5rem .9rem !important;
}
.custom-nav .nav-link:hover,
.custom-nav .nav-link.active {
  color: var(--orange) !important;
}
.custom-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: .9rem;
  right: .9rem;
  height: 2px;
  background: var(--orange);
}
.custom-nav .navbar-toggler {
  position: relative;
  z-index: 1;
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.custom-nav .navbar-toggler:focus { box-shadow: none; }

/* Mobile nav — off-canvas drawer sliding in from the right,
   instead of Bootstrap's default in-place accordion (which
   pushed the hero section down the page when opened). */
@media (max-width: 991.98px) {
  .custom-nav .navbar-collapse {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(82vw, 320px);
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: 6rem 2rem 2.5rem;
    box-shadow: -20px 0 50px rgba(0,0,0,.4);
    overflow-y: auto;
    z-index: 1035;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .45s cubic-bezier(.16,1,.3,1), visibility 0s linear .45s;
  }
  .custom-nav .navbar-collapse.show {
    transform: translateX(0);
    visibility: visible;
    transition: transform .45s cubic-bezier(.16,1,.3,1), visibility 0s linear 0s;
  }
  /* dimmed backdrop behind the drawer, covering the rest of the page */
  .custom-nav .navbar-collapse::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(5, 14, 31, .55);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
  }
  .custom-nav .navbar-collapse.show::before {
    opacity: 1;
    pointer-events: auto;
  }

  .custom-nav .navbar-nav { width: 100%; }
  .custom-nav .nav-link {
    padding: .85rem 0 !important;
    margin: 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .custom-nav .nav-link.active::after { display: none; }
  .custom-nav .nav-link.active {
    padding-left: .6rem !important;
    border-left: 2px solid var(--orange);
  }
  .custom-nav .navbar-collapse .theme-toggle { margin-top: 1.5rem; }
  .custom-nav .navbar-collapse .btn-orange {
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-nav .navbar-collapse,
  .custom-nav .navbar-collapse::before {
    transition: none;
  }
}

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
}
.theme-toggle:hover { background: var(--orange); border-color: var(--orange); }
.theme-toggle .icon-sun { display: none; }

/* ---------- Hero (Command) ---------- */
.hero-fluid {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(115deg, rgba(10,31,68,.94) 0%, rgba(10,31,68,.72) 45%, rgba(255,122,0,.28) 100%),
    radial-gradient(120% 80% at 80% 20%, rgba(0,119,182,.45), transparent 60%);
  overflow: hidden;
}
.hero-fluid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255,255,255,.04) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(255,255,255,.03) 119px 120px);
  pointer-events: none;
}
.hero-fluid .coord-top {
  position: absolute;
  top: 6rem;
  left: 2rem;
}
.hero-fluid .coord-bottom {
  position: absolute;
  bottom: 1.6rem;
  left: 2rem;
}
.hero-title {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .98;
  text-transform: uppercase;
}
.hero-title .accent {
  display: block;
  color: var(--orange);
}
.hero-sub {
  color: rgba(255,255,255,.82);
  max-width: 38rem;
  font-size: 1.15rem;
  margin-top: 1.6rem;
}
.hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Global Pulse widget */
.global-pulse {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  background: rgba(10,31,68,.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-head);
  min-width: 260px;
}
.global-pulse .gp-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9rem;
}
.global-pulse .pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #21d48a;
  box-shadow: 0 0 0 0 rgba(33,212,138,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(33,212,138,.6); }
  70% { box-shadow: 0 0 0 12px rgba(33,212,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(33,212,138,0); }
}
.global-pulse .gp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.global-pulse .gp-row:last-child { border-bottom: 0; }
.global-pulse .gp-city { letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.global-pulse .gp-time { color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- Service blades (carousel) ---------- */
.blade {
  background: var(--slate);
  border-left: 1px solid var(--line-dark);
  padding: 3rem 2rem;
  height: 100%;
  transition: all .5s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
}
.blade:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-6px);
}
.blade:hover h3, .blade:hover .blade-num { color: #fff; }
.blade:hover .blade-icon { color: var(--orange); }
.blade-num {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .25em;
  color: var(--orange);
  margin-bottom: 1.2rem;
}
.blade-icon { font-size: 2.6rem; color: var(--azure); margin-bottom: 1.4rem; transition: color .4s; }
.blade h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.blade p { font-size: 1rem; opacity: .85; }
.blade ul { list-style: none; padding: 0; margin-top: 1.2rem; }
.blade ul li { padding: .4rem 0; font-size: .92rem; opacity: .85; }
.blade ul li i { color: var(--orange); margin-right: .5rem; }

/* ---------- Terminal matrix ---------- */
.terminal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.terminal-card {
  border-left: 1px solid var(--line-dark);
  padding: 2.5rem 1.8rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  transition: all .6s cubic-bezier(.16,1,.3,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.terminal-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  opacity: 0;
  transition: opacity .6s;
}
.terminal-card > * { position: relative; z-index: 1; }
.terminal-card:hover { flex: 2 1 0; }
.terminal-card:hover::before { opacity: 1; }
.terminal-card:hover .tc-city,
.terminal-card:hover .tc-meta,
.terminal-card:hover .tc-dna,
.terminal-card:hover .tc-country { color: #fff; }
.terminal-card:hover .tc-dna { opacity: 1; }
.terminal-card:hover .tc-tag { background: var(--orange); color: #fff; border-color: var(--orange); }
.tc-country {
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}
.tc-city {
  font-size: 2rem;
  margin: .6rem 0;
  transition: color .4s;
}
.tc-tag {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  color: var(--navy);
  transition: all .4s;
}
.tc-dna {
  margin-top: 1.4rem;
  opacity: 0;
  max-height: 0;
  transition: all .6s ease;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}
.tc-dna .row-line {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-top: 1px solid var(--line);
}
.tc-dna strong { color: #fff; }
.terminal-card:hover .tc-dna { opacity: 1; max-height: 240px; }

/* ---------- Stats counters ---------- */
.stat-block { text-align: center; padding: 2rem 1rem; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--navy);
  line-height: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}
.stat-num .unit { color: var(--orange); }
.stat-label {
  margin-top: .8rem;
  font-family: var(--font-head);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}
.stats-band { background: var(--navy); color: #fff; }
.stats-band .stat-num { color: #fff; }

/* Plain CSS grid for compact stat bands — avoids Bootstrap's
   .row negative-margin gutters, which can bleed past a custom
   container's padding on narrow screens. */
.mini-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1rem;
}
@media (max-width: 576px) {
  .mini-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* ---------- Why choose us / feature cards ---------- */
.feature-card {
  border: 1px solid var(--line-dark);
  padding: 2.4rem;
  height: 100%;
  background: #fff;
  transition: all .4s ease;
}
.feature-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10,31,68,.1);
}
.feature-card .fc-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,122,0,.12);
  color: var(--orange);
  font-size: 1.4rem;
  border-radius: 2px;
  margin-bottom: 1.4rem;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--slate);
  border-left: 4px solid var(--orange);
  padding: 2.4rem;
  height: 100%;
}
.testimonial .quote { font-size: 1.1rem; font-style: italic; color: var(--navy); }
.testimonial .person { margin-top: 1.4rem; }
.testimonial .person strong { font-family: var(--font-head); display: block; }
.testimonial .person span { font-size: .85rem; color: var(--azure); }

/* ---------- Partners strip ---------- */
.partner-strip {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 2.5rem 0;
  background: #fff;
}
.partner-name {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(10,31,68,.4);
  font-size: 1.1rem;
  text-align: center;
}

/* ---------- Split screen contact ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.contact-info-panel {
  background: var(--navy);
  color: #fff;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}
.contact-info-panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.04) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.03) 79px 80px);
}
.contact-info-panel > * { position: relative; }
.contact-form-panel { padding: 4rem 3rem; background: var(--slate); }
.contact-info-panel .ci-item {
  display: flex; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-panel .ci-item i { color: var(--orange); font-size: 1.2rem; margin-top: .2rem; }

.form-control, .form-select {
  border-radius: 2px;
  border: 1px solid var(--line-dark);
  padding: .8rem 1rem;
  font-family: var(--font-body);
}
.form-control:focus, .form-select:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(0,119,182,.18);
}
.form-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Page header (interior) ---------- */
.page-header-band {
  background: var(--navy);
  color: #fff;
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 90% 0%, rgba(255,122,0,.22), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255,255,255,.03) 119px 120px);
}
.page-header-band > * { position: relative; }
.page-header-band h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.6rem); text-transform: uppercase; }
.page-header-band p { color: rgba(255,255,255,.78); max-width: 42rem; margin-top: 1rem; }
.breadcrumb-band { color: rgba(255,255,255,.6); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-head); }
.breadcrumb-band a { color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 5rem 0 2rem;
}
.site-footer h5 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.site-footer a { color: rgba(255,255,255,.7); display: block; padding: .35rem 0; font-size: .95rem; }
.site-footer a:hover { color: var(--orange); }
.site-footer .footer-brand img.logo { height: 56px; border-radius: 50%; }
.site-footer .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  margin-right: .5rem; color: #fff;
}
.site-footer .social a:hover { background: var(--orange); border-color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Loader ---------- */
.loader-wrap {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s;
}
.loader-wrap.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 64px; height: 64px;
  border: 4px solid rgba(255,255,255,.15);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Quick quote modal ---------- */
.modal-content { border-radius: 4px; border: none; }
.modal-header { background: var(--navy); color: #fff; }
.modal-header .btn-close { filter: invert(1); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .avatar {
  width: 120px; height: 120px; border-radius: 50%;
  margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, var(--navy), var(--azure));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-size: 2rem; font-weight: 800;
}
.team-card h5 { font-size: 1.15rem; margin-bottom: .2rem; }
.team-card .role { color: var(--orange); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-head); }

/* ---------- Dark / Light mode ---------- */
body.light-mode {
  --navy: #0A1F44;
  color: var(--navy);
  background: #fff;
}
body.light-mode .custom-nav { background: rgba(255,255,255,.92); border-bottom-color: var(--line-dark); }
body.light-mode .custom-nav.scrolled { background: rgba(255,255,255,.98); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
body.light-mode .custom-nav .nav-link { color: var(--navy) !important; }
body.light-mode .custom-nav .navbar-brand,
body.light-mode .custom-nav .brand-name small { color: var(--navy); }
body.light-mode .brand-name small { color: rgba(10,31,68,.6) !important; }
body.light-mode .theme-toggle { border-color: var(--line-dark); color: var(--navy); }
body.light-mode .hero-fluid::before,
body.light-mode .site-footer { /* keep dark anchors */ }

/* keep hero/nav/footer dark even in light mode (anchored dark sections) */

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .terminal-grid { grid-template-columns: 1fr 1fr; }
  .terminal-card:hover { flex: none; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-info-panel, .contact-form-panel { padding: 3rem 1.8rem; }
  .global-pulse { position: static; margin-top: 2rem; }
  .hero-fluid .coord-top, .hero-fluid .coord-bottom { display: none; }
}
@media (max-width: 576px) {
  .terminal-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  body { font-size: 1rem; }
  .container-wide { padding: 0 1.2rem; }
}

/* AOS-ish reveal fallback (in case AOS CDN fails) */
[data-aos] { opacity: 1; }
/* ============================================================
   Terminal Rows — Spacious Redesign (terminals.html)
   Airy, editorial row layout replacing the compressed 4-column
   hover matrix. All-new class names — nothing above this block
   is touched, so no other page is affected.
   ============================================================ */

.term-rows-section {
  padding: 2rem 0 6rem;
}

.term-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
}
.term-row + .term-row {
  border-top: 1px solid var(--line-dark);
}
.term-row--reverse .term-visual { order: 2; }
.term-row--reverse .term-copy { order: 1; }

/* ---- Visual / image column ---- */
.term-visual { position: relative; }
.term-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 70px -30px rgba(10, 31, 68, .4);
}
.term-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 31, 68, .55) 100%);
  pointer-events: none;
}
.term-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: term-kenburns 20s ease-in-out infinite alternate;
  transition: filter .6s ease;
}
.term-row:hover .term-frame img { filter: brightness(1.08) saturate(1.12); }
@keyframes term-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* Targeting-reticle corner brackets, draw in on hover/focus */
.term-bracket {
  position: absolute;
  width: 30px; height: 30px;
  opacity: 0;
  transition: opacity .5s ease, transform .5s ease;
}
.term-bracket.tl { top: 16px; left: 16px; border-top: 2px solid var(--orange); border-left: 2px solid var(--orange); transform: translate(-8px, -8px); }
.term-bracket.tr { top: 16px; right: 16px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: translate(8px, -8px); }
.term-bracket.bl { bottom: 16px; left: 16px; border-bottom: 2px solid var(--orange); border-left: 2px solid var(--orange); transform: translate(-8px, 8px); }
.term-bracket.br { bottom: 16px; right: 16px; border-bottom: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: translate(8px, 8px); }
.term-row:hover .term-bracket,
.term-row:focus-within .term-bracket { opacity: 1; transform: translate(0, 0); }

/* ---- Copy column ---- */
.term-copy { position: relative; padding: .5rem 0; }
.term-copy::before {
  content: attr(data-coord);
  position: absolute;
  top: -2.4rem;
  left: -.2rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: rgba(10, 31, 68, .06);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}
.term-copy > * { position: relative; z-index: 1; }
.term-city {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  margin: .7rem 0 1rem;
  overflow-wrap: break-word;
}
.term-row:hover .tc-tag { background: var(--orange); color: #fff; border-color: var(--orange); }
.term-write {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(10, 31, 68, .82);
}

.term-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem 3rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
}
.term-stat { display: flex; flex-direction: column; gap: .35rem; }
.ts-label {
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(10, 31, 68, .5);
}
.ts-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
}
.term-stat.status .ts-value { display: flex; align-items: center; gap: .55rem; color: #128a56; }
.term-status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #21d48a;
  box-shadow: 0 0 0 0 rgba(33, 212, 138, .7);
  animation: pulse 2s infinite;
  display: inline-block;
}

/* ---- Route panel (Four Hubs, One Artery) ---- */
.route-panel {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}
.route-panel-bg { position: absolute; inset: 0; z-index: 0; }
.route-panel-bg img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 1.6s cubic-bezier(.16, 1, .3, 1);
}
.route-panel:hover .route-panel-bg img { transform: scale(1.05); }
.route-panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 31, 68, .88) 0%, rgba(10, 31, 68, .7) 50%, rgba(10, 31, 68, .92) 100%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255, 255, 255, .04) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(255, 255, 255, .03) 119px 120px);
  z-index: 1;
}

.route-track {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 5.5rem 3.5rem 3.5rem;
}
.route-node { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.route-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 122, 0, .25);
  margin-bottom: 1.2rem;
  transition: transform .4s ease, box-shadow .4s ease;
}
.route-node:hover .route-dot { transform: scale(1.4); box-shadow: 0 0 0 8px rgba(255, 122, 0, .35); }
.route-city {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  transition: color .3s ease;
}
.route-node:hover .route-city { color: var(--orange); }
.route-coord {
  font-family: var(--font-head);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: .4rem;
}
.route-label {
  font-family: var(--font-head);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-top: 1.4rem;
}
.route-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  margin-top: .3rem;
}

/* Connecting line + traveling flow pulses ("one artery") */
.route-line {
  position: absolute;
  top: calc(5.5rem + 7px);
  left: 3.5rem; right: 3.5rem;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 8px, transparent 8px 16px);
  z-index: 1;
}
.route-pulse {
  position: absolute;
  top: calc(5.5rem + 2px);
  left: 3.5rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px 4px rgba(255, 122, 0, .65);
  z-index: 1;
  opacity: 0;
  animation: route-flow 7s linear infinite;
}
.route-pulse--delay { animation-delay: 3.5s; }
@keyframes route-flow {
  0%   { left: 3.5rem; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { left: calc(100% - 3.5rem - 10px); opacity: 0; }
}

@media (max-width: 860px) {
  .route-track { flex-direction: column; align-items: center; gap: 2.8rem; padding: 4rem 2rem; }
  .route-line {
    top: 4rem; bottom: 4rem; left: 50%; right: auto; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 8px, transparent 8px 16px);
  }
  .route-pulse, .route-pulse--delay { top: 4rem; left: 50%; margin-left: -5px; animation-name: route-flow-vertical; }
  @keyframes route-flow-vertical {
    0%   { top: 4rem; opacity: 0; }
    6%   { opacity: 1; }
    94%  { opacity: 1; }
    100% { top: calc(100% - 4rem - 10px); opacity: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-pulse, .route-pulse--delay { animation: none; opacity: 0; }
  .route-panel-bg img { transition: none; }
}

@media (max-width: 900px) {
  .term-row { grid-template-columns: 1fr; gap: 2.4rem; padding: 3.5rem 0; }
  .term-row--reverse .term-visual,
  .term-row--reverse .term-copy { order: initial; }
  .term-copy::before { display: none; }
  .term-frame { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .term-frame img { animation: none; }
  .term-bracket { transition: none; }
}