/* ==========================================================================
   Dependable Marine Solutions — Design System
   Palette matched to the client's logo & flyer: chrome-on-navy mark,
   deep navy, warm gold, crisp near-white.
   Type: Fraunces (display, incl. italic wordmark tagline) / Inter (body)
   ========================================================================== */

:root{
  --navy-deep:   #070E1B;
  --navy:        #0B2A4A;
  --navy-mid:    #0F3A63;
  --canvas:      #F6F7F8;
  --canvas-dim:  #E9EDF0;
  --ink:         #14202E;
  --ink-soft:    #45566459;
  --ink-muted:   #4C5C6B;
  --brass:       #C9A052;
  --brass-light: #E0C077;
  --brass-dark:  #A57F32;
  --teal:        #0B2A4A;
  --signal:      #9C3B34;
  --line:        #14202e1c;
  --line-on-navy:#F6F7F833;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --container: 1180px;
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body{
  margin:0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.01em;
}
p{ margin: 0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible{
  outline: 2px solid var(--brass-dark);
  outline-offset: 3px;
}

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass-dark);
  display: inline-block;
}

/* ---------- header / nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line-on-navy);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 84px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  color: var(--canvas);
}
.brand-mark{ height: 34px; width: auto; flex: none; display:block; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-name{
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--canvas);
}
.brand-tag{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.site-header .brand-text,
.site-header .brand-name,
.site-header .brand-tag{ white-space: nowrap; }
.footer-grid .brand-name{ font-size: 18px; white-space: normal; max-width: 20ch; }
.main-nav ul{
  display:flex;
  gap: 36px;
}
.main-nav a{
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--canvas-dim);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.main-nav a:hover{ color: var(--brass-light); }
.main-nav a.active{ color: var(--brass-light); }
.main-nav a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:1px;
  background: var(--brass-light);
}
.nav-cta{
  display: inline-flex;
  align-items:center;
  gap: 10px;
  border: 1px solid var(--brass-light);
  color: var(--canvas) !important;
  padding: 10px 18px;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover{ background: var(--brass-light); color: var(--navy-deep) !important; }
.nav-toggle{ display:none; touch-action: manipulation; }

/* ---------- bearing divider (signature element, gold rule) ---------- */
.bearing{
  position: relative;
  display:flex;
  align-items:center;
  gap: 18px;
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 32px;
}
.bearing::before, .bearing::after{
  content:"";
  flex: 1;
  height: 1px;
  background: var(--brass);
  opacity: 0.55;
}
.bearing-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brass-dark);
  white-space: nowrap;
}
.bearing.on-navy::before, .bearing.on-navy::after{ background: var(--brass-light); opacity:0.5; }
.bearing.on-navy .bearing-label{ color: var(--brass-light); }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items:center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{
  background: var(--brass);
  color: var(--navy-deep);
}
.btn-primary:hover{ background: var(--brass-light); transform: translateY(-1px); }
.btn-ghost{
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover{ background: var(--navy); color: var(--canvas); }
.btn-ghost-light{
  border-color: var(--line-on-navy);
  color: var(--canvas);
}
.btn-ghost-light:hover{ background: var(--canvas); color: var(--navy-deep); }

/* ---------- hero (home) ---------- */
.hero{
  position: relative;
  background: var(--navy-deep);
  color: var(--canvas);
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero-video-frame{
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--navy-mid);
}
.hero-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}
.hero-chart{
  position:absolute;
  inset:0;
  opacity: 0.5;
  pointer-events:none;
}
.hero .wrap{ position: relative; z-index: 2; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items:center;
}
.hero h1{
  color: var(--canvas);
  font-size: clamp(40px, 5.2vw, 68px);
  margin: 22px 0 26px;
}
.hero h1 em{
  font-style: italic;
  color: var(--brass-light);
}
.hero-sub{
  font-size: 18px;
  color: var(--canvas-dim);
  max-width: 46ch;
  margin-bottom: 38px;
}
.hero-actions{ display:flex; gap: 16px; flex-wrap: wrap; margin-bottom: 54px; }
.hero-stats{
  display:flex;
  gap: 44px;
  flex-wrap: wrap;
}
.hero-stats .stat-num{
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--brass-light);
  display:block;
}
.hero-stats .stat-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--canvas-dim);
}

/* photo banner (home) */
.photo-banner{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
  min-height: 460px;
}
.photo-banner-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 50px 56px 50px 0;
}
.photo-banner-image{
  position: relative;
  overflow: hidden;
}
.photo-banner-curve{
  position: absolute;
  left: -1px;
  top: 0;
  height: 100%;
  width: 44px;
  z-index: 2;
}
.photo-banner-image img{
  width:100%; height:100%;
  object-fit: cover;
  object-position: center 60%;
  display:block;
}
/* featured brand mark (hero) */
.compass-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}
.hero-logo-feature{
  width: min(100%, 440px);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 70px -20px #00000080;
}

/* ---------- section basics ---------- */
section{ padding: 96px 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2{
  font-size: clamp(30px, 3.4vw, 44px);
  margin-top: 16px;
}
.section-head p{
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 17px;
}
.section-alt{ background: var(--canvas-dim); }
.section-navy{ background: var(--navy-deep); color: var(--canvas); }
.section-navy h2{ color: var(--canvas); }
.section-navy .section-head p{ color: var(--canvas-dim); }

/* ---------- plaque cards (services) ---------- */
.plaque-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--ink);
}
.plaque{
  background: var(--canvas);
  padding: 40px 34px;
  position: relative;
  transition: background .25s ease;
}
.plaque:hover{ background: #fff; }
.plaque-rivet{
  position:absolute;
  top: 18px; right: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 1px 1px #0003 inset;
}
.plaque-num{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass-dark);
  letter-spacing: 0.1em;
}
.plaque h3{
  font-size: 21px;
  margin: 16px 0 12px;
}
.plaque p{
  color: var(--ink-muted);
  font-size: 15px;
}

.icon-badge{
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex: none;
}
.icon-badge svg{ width: 26px; height: 26px; }
.icon-badge svg path, .icon-badge svg circle, .icon-badge svg line{ stroke: var(--brass-light); }
.section-navy .icon-badge{ background: var(--navy-mid); }

/* ---------- reusable grid utilities (replace inline grid styles) ---------- */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.plaque-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
.hero-grid.single-col{ grid-template-columns: 1fr; max-width: 760px; }

/* label-row: replaces inline "200px 1fr" rows (About "How We Operate") */
.operate-list{ display:flex; flex-direction:column; }
.operate-row{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.operate-row:last-child{ border-bottom: 1px solid var(--line); }
.operate-row .operate-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--brass-dark);
  text-transform: uppercase;
}
.operate-row p{ color: var(--ink-muted); max-width: 60ch; }

/* cta-band: replaces repeated inline flex "space-between" CTA rows */
.cta-band{
  padding: 70px 0;
}
.cta-band .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band h2{ font-size: clamp(24px, 3vw, 32px); }
.cta-band p{ color: var(--ink-muted); margin-top: 8px; }

/* hero-compact: subpage heroes (Services/About/Contact) */
.hero-compact{ padding: 72px 0 84px; }

/* testimonial */
.testimonial-quote{ max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial-quote p{
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  color: var(--navy);
  font-style: italic;
  line-height: 1.4;
}
.testimonial-quote footer{
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- contact page ---------- */
.contact-layout{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap:64px; align-items:start; }
.info-item{ padding:22px 0; border-top:1px solid var(--line); }
.info-item:last-child{ border-bottom:1px solid var(--line); }
.info-label{ font-family:var(--font-mono); font-size:11px; letter-spacing:0.1em; text-transform:uppercase; color:var(--brass-dark); display:block; margin-bottom:8px; }
.info-item p, .info-item a{ overflow-wrap: anywhere; word-break: break-word; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13px; letter-spacing:0.03em; color:var(--navy); margin-bottom:8px; font-weight:500; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; font-family:var(--font-body); font-size:16px;
  border:1px solid var(--ink-soft); background:#fff; color:var(--ink); border-radius:var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--brass-dark); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-status{ display:none; margin-top:18px; padding:14px 16px; background:var(--teal); color:#fff; font-size:14px; border-radius:var(--radius); }
.contact-form .btn{ width: auto; }

.plaque-featured{ border-top: 2px solid var(--brass); position: relative; }
.plaque-badge{
  position: absolute;
  top: 0; right: 0;
  background: var(--brass);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  max-width: calc(100% - 20px);
  white-space: nowrap;
}

/* ---------- footer ---------- */
.site-footer{
  background: var(--navy-deep);
  color: var(--canvas-dim);
  padding: 70px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-grid h4{
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid p, .footer-grid a{
  font-size: 14px;
  color: var(--canvas-dim);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid ul a:hover{ color: var(--brass-light); }
.footer-bottom{
  border-top: 1px solid var(--line-on-navy);
  padding-top: 24px;
  display:flex;
  justify-content: space-between;
  font-size: 12px;
  color: #F6F7F888;
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- floating helper widget ---------- */
.helper-widget{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
}
.helper-toggle{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brass);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px #00000060;
  transition: transform .18s ease, background .2s ease;
}
.helper-toggle:hover{ background: var(--brass-light); transform: translateY(-2px); }
.helper-toggle svg{ width: 26px; height: 26px; }
.helper-toggle .icon-close{ display: none; }
.helper-widget.open .helper-toggle .icon-chat{ display: none; }
.helper-widget.open .helper-toggle .icon-close{ display: block; }
.helper-badge{
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--signal);
  border: 2px solid var(--canvas);
}
.helper-widget.open .helper-badge{ display: none; }

.helper-panel{
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 300px;
  background: var(--navy-deep);
  border: 1px solid var(--line-on-navy);
  border-radius: 10px;
  box-shadow: 0 24px 60px -16px #000000a0;
  padding: 22px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.helper-widget.open .helper-panel{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.helper-panel-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.helper-avatar{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.helper-avatar svg{ width: 18px; height: 18px; }
.helper-panel-title{
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--canvas);
}
.helper-panel-sub{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.helper-panel p{
  font-size: 14px;
  color: var(--canvas-dim);
  line-height: 1.5;
  margin-bottom: 18px;
}
.helper-panel .btn{
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}
.helper-panel-call{
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--canvas-dim);
}
.helper-panel-call a{ color: var(--brass-light); }
.helper-panel-call a:hover{ text-decoration: underline; }


/* ==========================================================================
   Responsive — 900px (tablet), 600px (phone), 430px (large phone edge),
   390px (small iPhones)
   ========================================================================== */

/* ---------- 900px: tablet / nav collapse ---------- */
@media (max-width: 900px){
  .wrap{ padding: 0 24px; }

  .main-nav{ display:none; }
  .main-nav.nav-open{
    display:block;
    position:absolute;
    top: 84px; left:0; right:0;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line-on-navy);
    padding: 10px 0 26px;
  }
  .main-nav.nav-open ul{
    flex-direction: column;
    gap: 4px;
    padding: 0 24px;
  }
  .main-nav.nav-open a{ display:block; padding: 14px 0; font-size: 15px; }
  .nav-toggle{
    display:inline-flex;
    background:none;
    border: 1px solid var(--line-on-navy);
    color: var(--canvas);
    width: 44px; height: 44px;
    align-items:center; justify-content:center;
    flex: none;
  }

  section{ padding: 72px 0; }
  .hero{ padding: 76px 0 92px; }
  .hero-compact{ padding: 56px 0 64px; }
  .cta-band{ padding: 56px 0; }

  .hero-grid{ grid-template-columns: 1fr; gap: 40px; }
  .plaque-grid{ grid-template-columns: 1fr 1fr; }
  .plaque-grid.cols-4{ grid-template-columns: 1fr 1fr; }
  .grid-2{ grid-template-columns: 1fr; gap: 40px; }
  .grid-3{ grid-template-columns: 1fr 1fr; gap: 28px; }

  .photo-banner{ grid-template-columns: 1fr; min-height: 0; }
  .photo-banner-text{ padding: 44px 0 32px; text-align:center; }
  .photo-banner-image{ height: 320px; }
  .photo-banner-curve{ display: none; }

  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .contact-layout{ grid-template-columns: 1fr; }
}

/* ---------- 600px: phones ---------- */
@media (max-width: 600px){
  .wrap{ padding: 0 20px; }

  section{ padding: 56px 0; }
  .hero{ padding: 56px 0 64px; }
  .hero-compact{ padding: 44px 0 48px; }
  .cta-band{ padding: 48px 0; }
  .cta-band .wrap{ flex-direction: column; align-items: stretch; text-align: center; }
  .cta-band .btn{ width: 100%; justify-content: center; }

  .section-head{ margin-bottom: 36px; }

  /* header / brand */
  .site-header .wrap{ height: 72px; }
  .brand{ gap: 10px; min-width: 0; }
  .brand-mark{ height: 28px; }
  .brand-text{ min-width: 0; }
  .brand-name{ font-size: 15px; }
  .brand-tag{ font-size: 9px; letter-spacing: 0.08em; }
  .main-nav.nav-open{ top: 72px; max-height: calc(100vh - 72px); }

  /* hero */
  .hero-video-frame{ margin-bottom: 28px; }
  .hero h1{ font-size: clamp(30px, 8vw, 40px); margin: 18px 0 18px; }
  .hero-sub{ font-size: 16px; margin-bottom: 28px; }
  .hero-actions{ flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 36px; }
  .hero-actions .btn{ width: 100%; justify-content: center; }
  .hero-stats{ gap: 24px; row-gap: 18px; }
  .hero-stats .stat-num{ font-size: 26px; }

  /* grids: full stack on phones */
  .plaque-grid,
  .plaque-grid.cols-4,
  .grid-2,
  .grid-3{ grid-template-columns: 1fr; gap: 28px; }
  .plaque{ padding: 32px 24px; }

  .operate-row{ grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }

  .photo-banner-text{ padding: 36px 0 28px; }
  .photo-banner-image{ height: 260px; }

  .testimonial-quote p{ font-size: 19px; }

  /* footer */
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .site-footer{ padding: 48px 0 24px; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; gap: 8px; }

  /* contact form */
  .field-row{ grid-template-columns: 1fr; gap: 0; }
  .contact-form .btn{ width: 100%; justify-content: center; }

  /* helper widget */
  .helper-widget{ right: 16px; bottom: 16px; }
  .helper-toggle{ width: 54px; height: 54px; }
  .helper-panel{ width: calc(100vw - 32px); right: -8px; bottom: 68px; }
}

/* ---------- 430px: large-phone edge cases ---------- */
@media (max-width: 430px){
  .brand-tag{ display: none; }
  .plaque-badge{ font-size: 9px; padding: 4px 9px; }
}

/* ---------- 390px: smallest iPhones (SE, mini) ---------- */
@media (max-width: 390px){
  .wrap{ padding: 0 16px; }
  .eyebrow{ font-size: 11px; }
  .hero h1{ font-size: clamp(28px, 8vw, 34px); }
  .hero-sub{ font-size: 15px; }
  .section-head h2{ font-size: clamp(24px, 7vw, 30px); }
  .brand-name{ font-size: 14px; }
  .brand-mark{ height: 26px; }
  .hero-stats{ gap: 18px; }
  .hero-stats .stat-num{ font-size: 22px; }
  .plaque{ padding: 26px 18px; }
  .btn{ padding: 14px 22px; font-size: 12px; }
}

