/* ============================================================
   HUTCHPORT - Container Terminal at Night
   Dark midnight-harbor theme, container-coral accents,
   hi-vis yellow safety ticks. Gantry crane quay motif.
   ============================================================ */

/* Root palette tokens */
:root{
  --midnight:#101820;      /* midnight-harbor body */
  --harbor:#0B1117;        /* deeper harbor footer */
  --crane:#1A2530;         /* crane-steel panels */
  --berth:#223140;         /* berth-deep panels */
  --cream:#F5F7F8;         /* floodlight-cream headline */
  --mist:#C3D0DA;          /* dock-mist body */
  --pale:#E7EEF3;          /* pale dock-light text */
  --coral:#E8603C;         /* container-coral accent */
  --hi:#F2C53D;            /* hi-vis vest yellow */
  --berthblue:#2E4A66;     /* berth-blue container end */
  --hairline:#2A3A4A;      /* thin separators */
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-size:16px; /* explicit literal px sizing */
  font-family:"Segoe UI","Helvetica Neue",Arial,sans-serif;
  background-color:#101820;          /* midnight-harbor */
  color:#C3D0DA;                     /* dock-mist body text */
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{ color:#E8603C; text-decoration:none; }
a:hover{ color:#F2C53D; text-decoration:underline; }

h1,h2,h3,h4{ font-weight:700; line-height:1.2; margin:0 0 0.6em; color:#F5F7F8; }

p{ margin:0 0 1em; }

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

.container{ max-width:1180px; margin:0 auto; padding:0 24px; }

.wrap{ overflow-x:hidden; }

/* ------------------------------------------------------------
   GATE-ARM NAV
   ------------------------------------------------------------ */
.gatearm-nav{
  position:sticky;
  top:0;
  z-index:60;
  background-color:#1A2530;   /* crane-steel */
  border-bottom:1px solid #2A3A4A;
}
/* Hazard stripe safety edge */
.gatearm-nav .hazard{
  height:14px;
  width:100%;
  background:
    linear-gradient(45deg,
      #E8603C 25%, #F2C53D 25%, #F2C53D 50%,
      #E8603C 50%, #E8603C 75%, #F2C53D 75%);
  background-size:24px 24px;
  border-bottom:1px solid #0B1117;
}
.gatearm-nav .navrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1180px;
  margin:0 auto;
  padding:14px 24px;
  gap:20px;
}
.gatearm-nav .brand{
  display:flex;
  align-items:center;
  gap:10px;
}
/* Spreader glyph - square with four twist-lock dots */
.gatearm-nav .glyph{
  width:16px;
  height:16px;
  position:relative;
  background-color:#1A2530;
  border:1px solid #E8603C;
  flex:0 0 auto;
}
.gatearm-nav .glyph::before,
.gatearm-nav .glyph::after{
  content:"";
  position:absolute;
  width:3px; height:3px;
  background-color:#E8603C;
  border-radius:50%;
}
.gatearm-nav .glyph::before{ top:-2px; left:-2px; }
.gatearm-nav .glyph::after{ top:-2px; right:-2px; }
.gatearm-nav .glyph .dot{ position:absolute; width:3px; height:3px; background-color:#E8603C; border-radius:50%; }
.gatearm-nav .glyph .d1{ bottom:-2px; left:-2px; }
.gatearm-nav .glyph .d2{ bottom:-2px; right:-2px; }
.gatearm-nav .brand .wordmark{
  font-size:20px;
  letter-spacing:0.22em;
  font-weight:700;
  color:#F5F7F8;
  text-transform:uppercase;
}
.gatearm-nav .links{
  display:flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
}
.gatearm-nav .links a{
  position:relative;
  padding:6px 10px;
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#C3D0DA;
  margin-left:6px;
}
.gatearm-nav .links a::before{
  content:attr(data-bollard);
  color:#E8603C;
  margin-right:4px;
}
.gatearm-nav .links a:hover{
  color:#F5F7F8;
  text-decoration:none;
}
.gatearm-nav .links a:hover::after{
  content:"✓";
  display:inline-block;
  margin-left:2px;
  color:#F2C53D;
  font-weight:700;
}
/* Mobile toggle */
.gatearm-nav .burger{
  display:none;
  background:none;
  border:1px solid #2A3A4A;
  color:#F5F7F8;
  font-size:22px;
  padding:6px 12px;
  cursor:pointer;
  border-radius:4px;
}
.gatearm-nav .burger:hover{ border-color:#E8603C; color:#E8603C; }

/* ------------------------------------------------------------
   GANTRY-LIGHT HERO
   ------------------------------------------------------------ */
.gantry-hero{
  background-color:#101820;
  padding:70px 0 40px;
  position:relative;
  overflow:hidden;
}
.gantry-hero .grid{
  display:grid;
  grid-template-columns:55fr 45fr;
  gap:40px;
  align-items:stretch;
}
.gantry-hero .text{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.gantry-hero .eyebrow{
  display:inline-block;
  align-self:flex-start;
  background-color:#E8603C;
  color:#101820;
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:700;
  padding:6px 12px;
  margin-bottom:18px;
}
.gantry-hero h1{
  font-size:58px;
  line-height:1.08;
  color:#F5F7F8;
  letter-spacing:-0.01em;
  margin-bottom:18px;
}
.gantry-hero h1 .accent{ color:#E8603C; }
.gantry-hero .sub{
  font-size:18px;
  color:#C3D0DA;
  max-width:560px;
  margin-bottom:28px;
}
.gantry-hero .sub strong{ color:#F5F7F8; font-weight:600; }
.gantry-hero .ctas{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  display:inline-block;
  padding:13px 28px;
  font-size:15px;
  letter-spacing:0.06em;
  font-weight:700;
  border-radius:4px;
  text-transform:uppercase;
  border:0;
  cursor:pointer;
}
.btn.coral{
  background-color:#E8603C;
  color:#101820;
}
.btn.coral:hover{ background-color:#F2C53D; text-decoration:none; }
.btn.outline{
  background:transparent;
  color:#F5F7F8;
  border:1px solid #F5F7F8;
}
.btn.outline:hover{ border-color:#E8603C; color:#E8603C; text-decoration:none; }

/* DOCK SCENE */
.gantry-hero .scene{
  position:relative;
  min-height:460px;
  background-color:#0B1117;
  border:1px solid #2A3A4A;
  overflow:hidden;
}
/* floodlight mast + light head */
.scene .floodlight{
  position:absolute;
  right:14px;
  top:14px;
  width:6px;
  height:74px;
  background-color:#1A2530;
}
.scene .floodlight::after{
  content:"";
  position:absolute;
  top:0;
  left:-7px;
  width:20px;
  height:20px;
  border-radius:50%;
  background-color:#F5F7F8;
  box-shadow:0 0 14px 4px #2A3A4A;
}
.scene .floodlight::before{
  content:"";
  position:absolute;
  left:6px;
  bottom:-2px;
  width:56px;
  height:2px;
  background-color:#F5F7F8;
}
/* Gantry crane */
.crane{
  position:absolute;
  left:12px;
  top:8px;
  width:78%;
  height:210px;
}
.crane .boom{
  position:absolute;
  top:40px;
  left:0;
  width:100%;
  height:10px;
  background-color:#223140;
  border:1px solid #2A3A4A;
}
.crane .leg-l{
  position:absolute;
  top:40px;
  right:26px;
  width:10px;
  height:170px;
  background-color:#223140;
  border:1px solid #2A3A4A;
}
.crane .leg-r{
  position:absolute;
  top:110px;
  right:-6px;
  width:10px;
  height:100px;
  transform:rotate(18deg);
  transform-origin:top;
  background-color:#223140;
  border:1px solid #2A3A4A;
}
.crane .stays{
  position:absolute;
  top:50px;
  right:32px;
  width:2px;
  height:150px;
  background-color:#2A3A4A;
  transform:rotate(12deg);
}
.crane .trolley{
  position:absolute;
  top:38px;
  left:40%;
  width:26px;
  height:12px;
  background-color:#1A2530;
  border:1px solid #E8603C;
}
.crane .cable{
  position:absolute;
  top:50px;
  left:48.5%;
  width:2px;
  height:64px;
  background-color:#2A3A4A;
}
/* hanging spreader gripping a container */
.crane .spreader{
  position:absolute;
  top:108px;
  left:42%;
  width:34px;
  height:8px;
  background-color:#E8603C;
  border:1px solid #101820;
}
.crane .spreader::before,
.crane .spreader::after{
  content:"";
  position:absolute;
  top:-4px;
  width:4px; height:4px;
  border-radius:50%;
  background-color:#E8603C;
}
.crane .spreader::before{ left:-2px; }
.crane .spreader::after{ right:-2px; }
.crane .held{
  position:absolute;
  top:114px;
  left:44%;
  width:24px;
  height:16px;
  background-color:#2E4A66;
  border:1px solid #101820;
}
/* Quay apron + container stack */
.scene .apron{
  position:absolute;
  left:0;
  right:0;
  bottom:34px;
  height:6px;
  background-color:#1A2530;
}
.scene .apron::before{
  content:"";
  position:absolute;
  top:-12px;
  left:0;
  width:100%;
  height:2px;
  background-color:#2A3A4A;
}
/* container stack - three rows */
.stack{
  position:absolute;
  left:30px;
  bottom:38px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.stack .row{ display:flex; gap:4px; }
.stack .mbox{
  height:22px;
  border:1px solid #101820;
}
.stack .mbox.b1{ width:34px; background-color:#E8603C; }
.stack .mbox.b2{ width:34px; background-color:#2E4A66; }
.stack .mbox.b3{ width:34px; background-color:#F2C53D; }
/* bollard + mooring line */
.scene .bollard{
  position:absolute;
  left:64%;
  bottom:38px;
  width:22px;
  height:26px;
  background-color:#1A2530;
  border-top:4px solid #E8603C;
  border-left:1px solid #2A3A4A;
  border-right:1px solid #2A3A4A;
}
.scene .mooring{
  position:absolute;
  left:64%;
  bottom:38px;
  width:50%;
  height:2px;
  background-color:#C3D0DA;
  transform:rotate(8deg);
  transform-origin:left center;
}
/* waterline + waves */
.scene .water{
  position:absolute;
  left:0;
  right:0;
  bottom:14px;
  height:2px;
  background-color:#223140;
}
.scene .wave{
  width:24px; height:2px;
  background-color:#1A2530;
  position:absolute;
  bottom:7px;
}
.scene .wave.w1{ left:20px; }
.scene .wave.w2{ left:120px; }

/* ------------------------------------------------------------
   BAY-PLAN ROWS
   ------------------------------------------------------------ */
.bayplan-rows{
  background-color:#101820;
  padding:70px 0 40px;
}
.bayplan-rows .sec-head{ margin-bottom:34px; }
.bayplan-rows .kicker{
  color:#F2C53D;
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:700;
  margin-bottom:8px;
}
.bayplan-rows h2{ font-size:38px; color:#E8603C; margin-bottom:12px; }
.bayplan-rows .lead{ max-width:760px; color:#C3D0DA; }

.bay{
  display:grid;
  grid-template-columns:170px 1fr auto;
  gap:24px;
  align-items:center;
  background-color:#1A2530;
  border:1px solid #2A3A4A;
  padding:22px 24px;
  margin-bottom:12px;
}
.bay:last-child{ margin-bottom:0; }
/* bay grid mini graphic: 3x2 */
.baygrid{
  display:grid;
  grid-template-columns:repeat(3, 40px);
  grid-template-rows:repeat(2, 26px);
  gap:4px;
}
.baygrid .cell{
  height:26px;
  border:1px solid #101820;
  position:relative;
}
.baygrid .g1{ background-color:#E8603C; }
.baygrid .g2{ background-color:#2E4A66; }
.baygrid .g3{ background-color:#F2C53D; }
.bay .titles h3{ font-size:21px; color:#F5F7F8; margin-bottom:8px; }
.bay .titles p{ color:#C3D0DA; margin:0; font-size:15px; }
.bay .stencil{
  color:#F2C53D;
  font-family:"Courier New",monospace;
  font-size:15px;
  letter-spacing:0.14em;
  white-space:nowrap;
  background-color:#0B1117;
  border:1px dashed #F2C53D;
  padding:10px 14px;
}

/* ------------------------------------------------------------
   MOVES METRIC BAND
   ------------------------------------------------------------ */
.metrics{
  background-color:#223140;   /* berth-deep */
  padding:56px 24px;
}
.metrics .mrow{
  display:grid;
  grid-template-columns:1fr 1px 1fr 1px 1fr 1px 1fr;
  max-width:1180px;
  margin:0 auto;
  gap:0;
  align-items:center;
}
.metrics .stat{ text-align:center; }
.metrics .num{
  font-size:52px;
  font-weight:800;
  color:#E8603C;
  line-height:1;
  letter-spacing:-0.02em;
}
.metrics .lbl{
  margin-top:10px;
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#C3D0DA;
}
.metrics .div{ width:1px; height:56px; background-color:#E8603C; justify-self:center; }

/* ------------------------------------------------------------
   STATEMENT BAND
   ------------------------------------------------------------ */
.statement{
  background-color:#1A2530;
  padding:64px 24px;
}
.statement .inner{ max-width:820px; margin:0 auto; }
.statement .manifesto{
  font-size:26px;
  line-height:1.5;
  color:#F5F7F8;
  border-left:4px solid #F2C53D;
  padding-left:24px;
  font-weight:600;
  margin-bottom:16px;
}
.statement .attrib{
  color:#C3D0DA;
  font-size:14px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  padding-left:24px;
}

/* ------------------------------------------------------------
   CTA BAND
   ------------------------------------------------------------ */
.cta{
  background-color:#101820;
  padding:70px 0 80px;
  text-align:center;
}
.cta h2{ color:#E8603C; font-size:36px; margin-bottom:14px; }
.cta p{ color:#C3D0DA; max-width:640px; margin:0 auto 26px; }

/* ------------------------------------------------------------
   QUAY-BOLLARD FOOTER
   ------------------------------------------------------------ */
.quay-footer{
  position:relative;
  background-color:#0B1117;
  padding:0 0 28px;
  text-align:center;
  z-index:1;
}
.quay-footer .quayedge{
  height:14px;
  width:100%;
  background:
    repeating-linear-gradient(90deg,
      #223140 0 10px, transparent 10px 24px,
      #223140 24px 34px, transparent 34px 48px),
    #0B1117;
  border-bottom:1px solid #2A3A4A;
  position:relative;
}
.quay-footer .quayedge::after{
  content:"";
  position:absolute;
  left:0; right:0; top:0; height:2px;
  background:
    repeating-linear-gradient(90deg,
      #E8603C 0 12px, transparent 12px 24px,
      #E8603C 24px 36px, transparent 36px 48px);
}
.quay-footer .fbody{ padding:40px 24px 0; }
.quay-footer .fwordmark{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:22px;
  font-weight:700;
  letter-spacing:0.22em;
  color:#F5F7F8;
  text-transform:uppercase;
  margin-bottom:18px;
}
.quay-footer .glyph{
  width:16px; height:16px;
  border:1px solid #E8603C;
  position:relative;
  background-color:#1A2530;
}
.quay-footer .glyph::before,
.quay-footer .glyph::after{
  content:"";
  position:absolute;
  width:3px; height:3px;
  background-color:#E8603C;
  border-radius:50%;
}
.quay-footer .glyph::before{ top:-2px; left:-2px; }
.quay-footer .glyph::after{ top:-2px; right:-2px; }
.quay-footer .glyph .d{ position:absolute; width:3px; height:3px; background-color:#E8603C; border-radius:50%; }
.quay-footer .glyph .d1{ bottom:-2px; left:-2px; }
.quay-footer .glyph .d2{ bottom:-2px; right:-2px; }
.quay-footer .flinks{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px 22px;
  margin-bottom:22px;
}
.quay-footer .flinks a{ color:#C3D0DA; font-size:14px; letter-spacing:0.08em; }
.quay-footer .flinks a:hover{ color:#E8603C; }
.quay-footer .fstack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  margin:0 auto 22px;
  width:fit-content;
}
.quay-footer .fstack .r{ display:flex; gap:4px; }
.quay-footer .fstack .c{ width:26px; height:18px; border:1px solid #101820; }
.quay-footer .fstack .c1{ background-color:#E8603C; }
.quay-footer .fstack .c2{ background-color:#F2C53D; }
.quay-footer .fstack .c3{ background-color:#2E4A66; }
.quay-footer .fstack .quayline{
  width:90px; height:3px; background-color:#1A2530; margin-top:2px;
}
.quay-footer .legal{
  color:#C3D0DA;
  font-size:13px;
  letter-spacing:0.04em;
  max-width:820px;
  margin:0 auto;
}

/* ------------------------------------------------------------
   SCROLL REVEAL
   ------------------------------------------------------------ */
.fade-up{
  transition: transform 0.7s ease, opacity 0.7s ease;
  transform: translateY(18px);
  opacity: 0;
}
.fade-up.visible{
  transform: translateY(0);
  opacity: 1;
}

/* ------------------------------------------------------------
   SECONDARY PAGES (services / contact)
   ------------------------------------------------------------ */
.page-head{
  background-color:#0B1117;
  border-bottom:1px solid #2A3A4A;
  padding:54px 0 40px;
}
.page-head .kicker{ color:#F2C53D; font-size:12px; letter-spacing:0.16em; text-transform:uppercase; font-weight:700; margin-bottom:10px; }
.page-head h1{ font-size:44px; color:#F5F7F8; margin-bottom:12px; }
.page-head h1 .accent{ color:#E8603C; }
.page-head p{ color:#C3D0DA; max-width:720px; }

.sec{
  padding:60px 0;
}
.sec.alt{ background-color:#0B1117; }
.sec-head .kicker{ color:#F2C53D; font-size:12px; letter-spacing:0.16em; text-transform:uppercase; font-weight:700; margin-bottom:8px; }
.sec-head h2{ color:#E8603C; font-size:32px; margin-bottom:14px; }
.sec-head p{ color:#C3D0DA; max-width:720px; }

.service-blocks{ display:grid; gap:16px; }
.svblock{
  background-color:#1A2530;
  border:1px solid #2A3A4A;
  padding:24px;
}
.svblock .snum{ color:#E8603C; font-family:"Courier New",monospace; font-size:14px; letter-spacing:0.2em; }
.svblock h3{ color:#F5F7F8; font-size:19px; margin:6px 0 10px; }
.svblock p{ color:#C3D0DA; margin:0; }

.process-step{
  position:relative;
  background-color:#1A2530;
  border-left:4px solid #E8603C;
  padding:16px 20px;
  margin-bottom:14px;
}
.process-step h3{ color:#F5F7F8; font-size:17px; margin-bottom:6px; }
.process-step p{ color:#C3D0DA; margin:0; font-size:15px; }

.contact-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:36px;
  align-items:start;
}
.form-panel{ background-color:#1A2530; border:1px solid #2A3A4A; padding:28px; }
.form-panel .field{ margin-bottom:18px; }
.form-panel label{ display:block; color:#F5F7F8; font-size:14px; letter-spacing:0.06em; text-transform:uppercase; margin-bottom:6px; }
.form-panel input,
.form-panel select,
.form-panel textarea{
  width:100%;
  background-color:#0B1117;
  border:1px solid #2A3A4A;
  color:#E7EEF3;
  padding:12px 14px;
  font-size:15px;
  font-family:inherit;
  border-radius:4px;
}
.form-panel input:focus,
.form-panel textarea:focus,
.form-panel select:focus{ outline:none; border-color:#E8603C; box-shadow:0 0 0 2px #223140; }
.form-note{ color:#C3D0DA; font-size:13px; margin-top:8px; }
.form-msg{ margin-top:14px; padding:12px; border-radius:4px; font-size:14px; display:none; }
.form-msg.ok{ display:block; background-color:#0B1117; border:1px solid #F2C53D; color:#F5F7F8; }
.form-msg.err{ display:block; background-color:#0B1117; border:1px solid #E8603C; color:#E8603C; }

.info-lines{ display:grid; gap:16px; }
.info-line{ background-color:#1A2530; border:1px solid #2A3A4A; padding:20px; }
.info-line .il{ color:#F2C53D; font-size:12px; letter-spacing:0.14em; text-transform:uppercase; font-weight:700; margin-bottom:6px; }
.info-line p{ color:#C3D0DA; margin:0; }
.info-line a{ color:#E8603C; }

.faq{ max-width:820px; }
.faq-item{
  background-color:#1A2530;
  border:1px solid #2A3A4A;
  margin-bottom:10px;
}
.faq-item .faq-q{
  width:100%;
  text-align:left;
  background:none;
  border:0;
  color:#F5F7F8;
  font-size:16px;
  font-weight:600;
  padding:16px 18px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.faq-item .faq-q .mark{ color:#E8603C; }
.faq-item .faq-a{
  padding:0 18px;
  max-height:0;
  overflow:hidden;
  transition:max-height 0.35s ease;
  color:#C3D0DA;
}
.faq-item.open .faq-a{ max-height:400px; padding:0 18px 16px; }
.faq-item.open .faq-q .mark{ color:#F2C53D; }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width:900px){
  .gatearm-nav .links{
    display:none;
    flex-direction:column;
    width:100%;
    background-color:#0B1117;
    padding:8px 0 12px;
    margin-top:4px;
  }
  .gatearm-nav .links.open{ display:flex; }
  .gatearm-nav .links a{ width:100%; padding:10px 16px; text-align:left; }
  .gatearm-nav .burger{ display:block; }
  .gatearm-nav .navrow{ flex-wrap:wrap; }
  .gantry-hero .grid{ grid-template-columns:1fr; }
  .gantry-hero h1{ font-size:38px; }
  .bay{ grid-template-columns:1fr; }
  .bay .stencil{ justify-self:start; }
  .metrics .mrow{ grid-template-columns:1fr 1px 1fr; grid-template-rows:auto auto; }
  .metrics .div.h3{ display:none; }
  .metrics .div.h4{ display:none; }
  .metrics .stat{ padding:10px; }
  .contact-grid{ grid-template-columns:1fr; }
}
@media (max-width:520px){
  .gantry-hero h1{ font-size:30px; }
  .gantry-hero .ctas{ flex-direction:column; }
  .gantry-hero .btn{ text-align:center; }
  .metrics .num{ font-size:38px; }
  .metrics .mrow{ grid-template-columns:1fr; }
  .metrics .div{ display:none; }
  .statement .manifesto{ font-size:21px; }
  .bayplan-rows h2{ font-size:28px; }
  .page-head h1{ font-size:32px; }
}

/* no-JS reveal fallback (kept inline-safe) */
