/* ============================================================
   EARTHWISE - Biliten (Hong Kong) International Trade Co., Limited
   Harbour hold / general-cargo stowage plan theme
   Palette:
     HOLD-CREAM   #F3EDDF  body background
     STOW-NAVY    #24405E  primary text
     HATCH-MUSTARD#C9942F  accent
     MOORING-RED  #A84B38  secondary accent (small chips)
     BILGE-DEEP   #1C3247  deepest blocks
     DECK-GREY    #6E7B82  thin rail lines
     PALLET-SAND  #E4D6BC  raised deck faces
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  margin: 0;
  padding: 0;
  background-color: #F3EDDF;
  color: #24405E;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin-top: 0;
  color: #24405E;
}

p { margin: 0 0 1em 0; }

a { color: #24405E; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #A84B38; }

/* ---------- scroll reveal (class based only) ---------- */
html.js .reveal-pre { opacity: 0; transform: translateY(14px); }
html.js .reveal-pre.is-shown { opacity: 1; transform: none; }
.reveal-pre { transition: opacity 520ms ease, transform 520ms ease; }

/* ============================================================
   NAVIGATION - MOORING CLEAT TABS (.cleatnav)
   ============================================================ */
.cleatnav {
  background-color: #1C3247;
  border-bottom: 6px solid #6E7B82;
  padding: 0 18px;
  position: relative;
}

.cleatnav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.cleatnav-brandplate {
  background-color: #24405E;
  border: 4px solid #C9942F;
  color: #F3EDDF;
  padding: 10px 20px 12px 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 3px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 0 #6E7B82;
}

.cleatnav-brandplate:hover { color: #F3EDDF; background-color: #2e4f72; }

.cleatnav-brandsub {
  display: block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 1.6px;
  color: #C9942F;
  font-weight: 600;
  margin-top: 3px;
}

.cleatnav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
  padding-bottom: 8px;
}

/* each tab = deck-grey cleat bracket with a rope loop glyph */
.cleat-tab {
  position: relative;
  display: inline-block;
  background-color: #E4D6BC;
  border: 3px solid #6E7B82;
  border-radius: 4px 4px 0 0;
  color: #24405E;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  padding: 11px 20px 11px 36px;
  box-shadow: 0 3px 0 #6E7B82;
}

.cleat-tab::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 3px solid #C9942F;
  border-radius: 50%;
}

.cleat-tab:hover { background-color: #C9942F; color: #1C3247; box-shadow: 0 3px 0 #A84B38; }

.cleat-tab:nth-child(1) { transform: rotate(-1.2deg); }
.cleat-tab:nth-child(2) { transform: rotate(0.9deg); }
.cleat-tab:nth-child(3) { transform: rotate(-0.7deg); }
.cleat-tab:nth-child(4) { transform: rotate(1.1deg); }
.cleat-tab:nth-child(5) { transform: rotate(-0.9deg); }

.cleatnav-burger {
  display: none;
  background-color: #C9942F;
  color: #1C3247;
  border: 3px solid #6E7B82;
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  margin-left: auto;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

@media (max-width: 860px) {
  .cleatnav-inner { padding-bottom: 6px; }
  .cleatnav-burger { display: inline-block; }
  .cleatnav-tabs { display: none; width: 100%; margin-left: 0; }
  .cleatnav-tabs.is-open { display: flex; flex-wrap: wrap; }
  .cleat-tab { flex: 0 0 46%; transform: none; text-align: center; padding: 10px 8px; }
  .cleat-tab::before { display: none; }
}

/* ============================================================
   HERO - HOLD CROSS-SECTION (.holdcut)
   ============================================================ */
.holdcut {
  background-color: #F3EDDF;
  border-bottom: 4px solid #6E7B82;
  padding: 54px 18px 46px 18px;
}

.holdcut-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: center;
}

.holdcut-copy { flex: 1 1 54%; min-width: 320px; }

.holdcut-kicker {
  display: inline-block;
  background-color: #1C3247;
  color: #F3EDDF;
  font-size: 0.72rem;
  letter-spacing: 2.6px;
  font-weight: 700;
  padding: 7px 15px;
  border-left: 6px solid #C9942F;
  margin-bottom: 18px;
}

.holdcut h1 {
  font-size: 2.85rem;
  margin: 0 0 18px 0;
  color: #24405E;
}

.holdcut h1 .stowword { color: #C9942F; }

.holdcut-lede {
  font-size: 1.06rem;
  color: #24405E;
  max-width: 640px;
  margin-bottom: 24px;
}

.holdcut-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.hatchcover {
  display: inline-block;
  background-color: #C9942F;
  color: #1C3247;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 15px 30px;
  border: 4px solid #1C3247;
  box-shadow: 0 5px 0 #A84B38;
  font-size: 0.95rem;
}

.hatchcover:hover { background-color: #1C3247; color: #F3EDDF; box-shadow: 0 5px 0 #6E7B82; }
.hatchcover.alt { background-color: #E4D6BC; border-color: #24405E; box-shadow: 0 5px 0 #6E7B82; }
.hatchcover.alt:hover { background-color: #24405E; color: #F3EDDF; }

/* --- the CSS ship hold drawing --- */
.holdcut-diagram { flex: 1 1 40%; min-width: 300px; }

.holdcut-hold { position: relative; padding: 26px 0 0 0; }

.holdcut-coaming {
  height: 20px;
  background-color: #24405E;
  border: 4px solid #1C3247;
  border-bottom: none;
  margin: 0 12px;
  position: relative;
}

.holdcut-coaming::before, .holdcut-coaming::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 14px;
  height: 14px;
  background-color: #C9942F;
  border: 3px solid #1C3247;
}
.holdcut-coaming::before { left: 0; }
.holdcut-coaming::after { right: 0; }

.holdcut-well {
  background-color: #E4D6BC;
  border: 5px solid #1C3247;
  border-top: none;
  padding: 14px 14px 0 14px;
  display: flex;
  gap: 8px;
  position: relative;
}

/* vertical cargo battens drawn as left ribbing on the well */
.holdcut-well::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  background-color: #6E7B82;
}

.holdcut-bay {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 250px;
  border-left: 3px solid #6E7B82;
  border-right: 3px solid #6E7B82;
  background-color: #F3EDDF;
}

.holdcut-block { width: 100%; }
.holdcut-block.navy { background-color: #24405E; }
.holdcut-block.mustard { background-color: #C9942F; }
.holdcut-block.red { background-color: #A84B38; }

.holdcut-baytag {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #24405E;
  background-color: #E4D6BC;
  border-top: 2px solid #6E7B82;
  padding: 3px 0;
}

/* six different fill heights */
.hb-1 .holdcut-block { height: 40%; }
.hb-2 .holdcut-block { height: 58%; }
.hb-3 .holdcut-block { height: 74%; }
.hb-4 .holdcut-block { height: 90%; }
.hb-5 .holdcut-block { height: 66%; }
.hb-6 .holdcut-block { height: 100%; }

.holdcut-deck {
  height: 22px;
  background-color: #24405E;
  border: 4px solid #1C3247;
  border-top: none;
  margin: 0 12px;
  position: relative;
}

.holdcut-bollards {
  display: flex;
  justify-content: space-between;
  padding: 16px 34px 0 34px;
}

.bollard {
  width: 20px;
  height: 30px;
  background-color: #A84B38;
  border: 3px solid #1C3247;
  border-radius: 3px;
  position: relative;
}

.bollard::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 0;
}

.ropecurve {
  height: 30px;
  flex: 1 1 auto;
  border-bottom: 5px dotted #6E7B82;
  border-radius: 0 0 60px 60px;
  margin: 0 4px;
}

.holdcut-caption {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  color: #6E7B82;
  font-weight: 700;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .holdcut h1 { font-size: 2.1rem; }
  .holdcut-bay { height: 190px; }
}

/* ============================================================
   TALLY ROWS - .stowrows (not a uniform grid)
   ============================================================ */
.stowrows {
  padding: 56px 18px 40px 18px;
  background-color: #F3EDDF;
}

.stowrows-head {
  max-width: 1180px;
  margin: 0 auto 30px auto;
}

.stowrows-head h2 {
  font-size: 2.1rem;
  color: #24405E;
  margin-bottom: 8px;
}

.stowrows-head p { max-width: 720px; color: #24405E; }

.stowrow {
  max-width: 1180px;
  margin: 0 auto 22px auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border: 3px solid #24405E;
  box-shadow: 0 5px 0 #6E7B82;
}

.stowrow.band-sand { background-color: #E4D6BC; }
.stowrow.band-sand2 { background-color: #DCCBA9; }
.stowrow.band-deep { background-color: #1C3247; border-color: #C9942F; }

.stowrow.skew-left { transform: rotate(-0.7deg); }
.stowrow.skew-right { transform: rotate(0.6deg); }

.tallycol {
  flex: 0 0 168px;
  background-color: #1C3247;
  color: #F3EDDF;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 4px solid #C9942F;
}

.tallycol .baycode {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #F3EDDF;
}

.tallycol .tallymark {
  margin-top: 8px;
  width: 42px;
  height: 8px;
  background-color: #C9942F;
}

.tallycol .tallyfoot {
  margin-top: 10px;
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  color: #C9942F;
  font-weight: 700;
}

.cargopanel { flex: 1 1 340px; padding: 22px 26px 18px 26px; position: relative; }

.cargopanel h3 {
  font-size: 1.35rem;
  margin: 0 0 8px 0;
  color: #24405E;
}

.cargopanel p { margin: 0 0 12px 0; color: #24405E; }

.stowrow.band-deep .cargopanel h3 { color: #F3EDDF; }
.stowrow.band-deep .cargopanel p { color: #E4D6BC; }

.cargolink {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #A84B38;
  text-decoration: none;
  border-bottom: 2px solid #C9942F;
}

.stowrow.band-deep .cargolink { color: #C9942F; }
.cargolink:hover { color: #24405E; }

/* draft line across each band, mustard-filled portion varies */
.draftline {
  height: 8px;
  background-color: #F3EDDF;
  border: 2px solid #6E7B82;
  margin-top: 14px;
  position: relative;
}

.draftfill { height: 100%; background-color: #C9942F; }

.draftline-label {
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #6E7B82;
  margin-top: 4px;
  display: block;
}

.stowrow.band-deep .draftline { background-color: #24405E; }
.stowrow.band-deep .draftline-label { color: #E4D6BC; }

/* ============================================================
   SAILING NOTICE accent strip
   ============================================================ */
.sailingnotice {
  background-color: #C9942F;
  color: #1C3247;
  padding: 32px 18px;
  border-top: 6px solid #24405E;
  border-bottom: 6px solid #24405E;
  position: relative;
}

.sailingnotice::before, .sailingnotice::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background-color: #A84B38;
}
.sailingnotice::before { top: 8px; }
.sailingnotice::after { bottom: 8px; }

.sailingnotice-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.sailingnotice h2 {
  font-size: 1.6rem;
  color: #1C3247;
  margin-bottom: 8px;
}

.sailingnotice p { color: #1C3247; font-weight: 600; max-width: 800px; margin: 0 auto; }

.cleatglyph {
  display: inline-block;
  width: 34px;
  height: 12px;
  border: 3px solid #1C3247;
  border-radius: 3px;
  margin: 0 10px;
  vertical-align: middle;
}

/* ============================================================
   Generic content sections (services / contact)
   ============================================================ */
.pageband {
  padding: 52px 18px;
  background-color: #F3EDDF;
}

.pageband.tinted { background-color: #E4D6BC; border-top: 4px solid #6E7B82; border-bottom: 4px solid #6E7B82; }

.pageband-inner { max-width: 1080px; margin: 0 auto; }

.pageband h2 { font-size: 2rem; margin-bottom: 14px; color: #24405E; }
.pageband h3 { font-size: 1.3rem; margin-bottom: 8px; color: #24405E; }

.svcrow {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  background-color: #E4D6BC;
  border: 3px solid #24405E;
  border-left: 12px solid #C9942F;
  padding: 20px 24px;
  margin-bottom: 18px;
  box-shadow: 0 4px 0 #6E7B82;
}

.svcrow.tintdeep { background-color: #1C3247; border-color: #C9942F; }
.svcrow.tintdeep h3 { color: #F3EDDF; }
.svcrow.tintdeep p { color: #E4D6BC; }
.svcrow.tintdeep .svcindex { background-color: #C9942F; color: #1C3247; }

.svcindex {
  flex: 0 0 62px;
  background-color: #24405E;
  color: #F3EDDF;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  padding: 12px 0;
  border: 3px solid #1C3247;
}

.svcbody { flex: 1 1 320px; }
.svcbody p { margin-bottom: 0; }

/* process overview numbered list */
.processrow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  counter-reset: step;
}

.processstep {
  flex: 1 1 200px;
  background-color: #F3EDDF;
  border: 3px solid #24405E;
  border-top: 10px solid #A84B38;
  padding: 18px;
}

.processstep .stepnum {
  display: inline-block;
  background-color: #C9942F;
  color: #1C3247;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.processstep h4 { margin: 0 0 6px 0; font-size: 1.05rem; }
.processstep p { font-size: 0.92rem; margin: 0; }

/* CTA band */
.ctaband {
  background-color: #1C3247;
  color: #F3EDDF;
  padding: 42px 18px;
  border-top: 6px solid #C9942F;
  text-align: center;
}
.ctaband h2 { color: #F3EDDF; font-size: 1.9rem; margin-bottom: 10px; }
.ctaband p { color: #E4D6BC; max-width: 700px; margin: 0 auto 22px auto; }

/* ============================================================
   CONTACT page
   ============================================================ */
.contactlayout {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contactcard {
  flex: 1 1 340px;
  background-color: #E4D6BC;
  border: 4px solid #24405E;
  padding: 24px 26px;
  box-shadow: 0 5px 0 #6E7B82;
}

.contactcard h3 { color: #24405E; margin-bottom: 12px; }

.contactcard .dataline {
  border-bottom: 2px solid #6E7B82;
  padding: 9px 0;
  font-size: 0.95rem;
}

.contactcard .dataline strong { color: #24405E; }
.contactcard a { color: #A84B38; font-weight: 700; }

.cform { flex: 1 1 380px; }

.cform label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  margin: 12px 0 5px 0;
  color: #24405E;
}

.cform input, .cform select, .cform textarea {
  width: 100%;
  padding: 11px 12px;
  border: 3px solid #24405E;
  background-color: #F3EDDF;
  color: #24405E;
  font-size: 0.95rem;
  font-family: inherit;
}

.cform textarea { min-height: 140px; resize: vertical; }

.cform button {
  margin-top: 18px;
  background-color: #C9942F;
  color: #1C3247;
  border: 4px solid #1C3247;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 5px 0 #A84B38;
}

.cform button:hover { background-color: #1C3247; color: #F3EDDF; }

.formnote { font-size: 0.8rem; color: #6E7B82; margin-top: 12px; }

.faqitem {
  background-color: #F3EDDF;
  border: 3px solid #24405E;
  border-left: 10px solid #C9942F;
  margin-bottom: 14px;
}

.faqq {
  width: 100%;
  text-align: left;
  background-color: #E4D6BC;
  border: none;
  border-bottom: 2px solid #6E7B82;
  padding: 15px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: #24405E;
  cursor: pointer;
  font-family: inherit;
}

.faqq:hover { background-color: #C9942F; color: #1C3247; }
.faqa { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 320ms ease, padding 320ms ease; }
.faqitem.open .faqa { max-height: 340px; padding: 15px 18px; }
.faqa p { margin: 0; color: #24405E; }

/* ============================================================
   FOOTER - QUAY BOLLARD BASE (.quaybase)
   ============================================================ */
.quaybase {
  background-color: #1C3247;
  color: #E4D6BC;
  position: relative;
  padding: 0 18px 22px 18px;
}

.winchrail {
  height: 26px;
  background-color: #6E7B82;
  border-top: 6px solid #24405E;
  position: relative;
  margin: 0 -18px 26px -18px;
}

.winchrail::before, .winchrail::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 60px;
  height: 26px;
  border: 5px solid #A84B38;
  border-radius: 50%;
  background-color: #1C3247;
}
.winchrail::before { left: 22%; }
.winchrail::after { left: 62%; }

.quaybase-inner { max-width: 1180px; margin: 0 auto; }

.quaycleats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.quaycleat {
  background-color: #E4D6BC;
  color: #24405E;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  padding: 10px 18px;
  border: 3px solid #6E7B82;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 3px 0 #6E7B82;
}

.quaycleat:hover { background-color: #C9942F; color: #1C3247; }

.quaycols { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 22px; }

.quayplate {
  flex: 1 1 320px;
  background-color: #24405E;
  border: 4px solid #C9942F;
  padding: 20px 22px;
}

.quayplate .qbrand {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: #F3EDDF;
  font-weight: 700;
  margin-bottom: 8px;
}

.quayplate p { color: #E4D6BC; font-size: 0.92rem; margin: 0; }

.quaylinks { flex: 1 1 200px; }
.quaylinks h4 { color: #C9942F; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 10px; }
.quaylinks a { display: block; color: #E4D6BC; text-decoration: none; padding: 4px 0; font-size: 0.92rem; }
.quaylinks a:hover { color: #C9942F; }

.quaybaseline {
  border-top: 3px solid #6E7B82;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #E4D6BC;
}

.quaybaseline a { color: #C9942F; }

.draftmark {
  display: inline-block;
  background-color: #C9942F;
  color: #1C3247;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 5px 10px;
  border: 2px solid #6E7B82;
}

/* ============================================================
   Utility
   ============================================================ */
.txt-cream { color: #F3EDDF; }
.txt-mustard { color: #C9942F; }
.mt-18 { margin-top: 18px; }
.center { text-align: center; }

@media (max-width: 620px) {
  .holdcut h1 { font-size: 1.7rem; }
  .stowrows-head h2, .pageband h2 { font-size: 1.6rem; }
  .tallycol { flex: 0 0 110px; padding: 16px 10px; }
  .tallycol .baycode { font-size: 1.2rem; }
}
