/* ORCA Marine shared stylesheet */
:root {
  --navy: #0c2340;
  --deep: #081a30;
  --blue: #2179b5;
  --blue-dark: #185e8e;
  --sky: #eaf2f8;
  --mist: #f5f8fa;
  --ink: #16222e;
  --gray: #5a6b7a;
  --line: #dbe4ec;
  --white: #ffffff;
  --finsulate: #2b2a72;
  --hyg: #56718a;
  --radius: 10px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

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

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.lead { font-size: 1.15rem; color: var(--gray); max-width: 720px; }

/* ---------- Header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
}
.brand {
  font-weight: 800; font-size: 1.3rem; letter-spacing: 0.06em;
  color: var(--navy); text-decoration: none;
  display: flex; align-items: center;
}
.brand img { height: 40px; width: auto; }
.brand span { color: var(--blue); }
.brand:hover { text-decoration: none; }
@media (max-width: 480px) { .brand img { height: 32px; } }

nav.menu { display: flex; gap: 26px; align-items: center; }
nav.menu a {
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
}
nav.menu a:hover { color: var(--blue); text-decoration: none; }
nav.menu a.active { color: var(--blue); font-weight: 700; }
nav.menu a.cta {
  background: var(--blue); color: var(--white);
  padding: 9px 18px; border-radius: 6px; font-weight: 600;
}
nav.menu a.cta:hover { background: var(--blue-dark); }

#nav-toggle { display: none; }
label.hamburger { display: none; cursor: pointer; font-size: 1.6rem; color: var(--navy); }

/* Seven nav items: tighten spacing between the tablet breakpoint and full width. */
@media (min-width: 861px) and (max-width: 1060px) {
  nav.menu { gap: 16px; }
  nav.menu a { font-size: 0.9rem; }
  nav.menu a.cta { padding: 8px 14px; }
}

@media (max-width: 860px) {
  label.hamburger { display: block; }
  nav.menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 24px; gap: 16px;
    align-items: flex-start;
  }
  #nav-toggle:checked ~ nav.menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  padding: 110px 0 120px;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,26,48,0.88) 0%, rgba(8,26,48,0.55) 60%, rgba(8,26,48,0.35) 100%);
}
.hero .wrap { position: relative; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero p { max-width: 620px; margin: 1.2rem 0 2rem; font-size: 1.2rem; color: #d8e4ef; }
.hero.short { padding: 80px 0; }

.btn {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 13px 26px; border-radius: 7px; font-weight: 600;
  border: none; font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn.ghost {
  background: transparent; border: 2px solid rgba(255,255,255,0.7);
  margin-left: 12px;
}
.btn.ghost:hover { background: rgba(255,255,255,0.12); }
.btn.dark { background: var(--navy); }
.btn.dark:hover { background: var(--deep); }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card img { height: 240px; object-fit: cover; width: 100%; }
.card .pad { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card .pad p { color: var(--gray); flex: 1; }
.card .pad a.more { margin-top: 14px; font-weight: 600; }

.tile {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.tile h3 { color: var(--navy); }
.tile p { color: var(--gray); font-size: 0.97rem; }

/* ---------- Stat bands ---------- */
.stats {
  background: var(--navy); color: var(--white);
}
.stats .grid-3, .stats .grid-4 { text-align: center; }
.stat .num {
  font-size: 2.4rem; font-weight: 800; color: #7fc4ee;
  line-height: 1.1;
}
.stat .label { color: #b9cbdb; font-size: 0.95rem; margin-top: 6px; }

/* ---------- Alternating feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.rev { direction: rtl; }
.feature.rev > * { direction: ltr; }
.feature img { border-radius: var(--radius); width: 100%; height: 380px; object-fit: cover; }
@media (max-width: 860px) {
  .feature, .feature.rev { grid-template-columns: 1fr; direction: ltr; }
  .feature img { height: 260px; }
}

/* ---------- Checklist ---------- */
ul.check { list-style: none; margin-top: 1rem; }
ul.check li {
  padding-left: 30px; position: relative; margin-bottom: 0.7rem; color: var(--ink);
}
ul.check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 800;
}
ul.check li strong { color: var(--navy); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: var(--white); font-weight: 600; }
tr:nth-child(even) td { background: var(--mist); }
td.good { color: var(--blue-dark); font-weight: 700; }

/* ---------- Comparison chart (CSS bars) ---------- */
.bars { display: flex; flex-direction: column; gap: 14px; margin-top: 1.5rem; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 110px; gap: 12px; align-items: center; }
.bar-track { background: var(--sky); border-radius: 6px; height: 34px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px 0 0 6px; }
.bar-fill.a { background: var(--blue); }
.bar-fill.b { background: #c0392b; }
.bar-row .val { font-weight: 700; color: var(--navy); text-align: right; }
@media (max-width: 640px) {
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .bar-row .val { text-align: left; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 1.6rem; font-weight: 800; color: var(--blue);
  margin-bottom: 8px;
}
.step h4 { margin-bottom: 6px; }
.step p { color: var(--gray); font-size: 0.93rem; }

/* ---------- Bands ---------- */
.band { background: var(--mist); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy p { color: #c4d4e2; }

/* ---------- Logo strip ---------- */
.logos { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.logos img { height: 64px; width: auto; filter: none; }
.logos .caption { width: 100%; text-align: center; color: var(--gray); font-size: 0.9rem; }

/* ---------- Partner cards ---------- */
.partner {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start;
}
.partner.featured { border-top: 4px solid var(--blue); }
@media (max-width: 720px) {
  .partner { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
}

/* Wordmark slot: takes a logo file where we have one, type where we don't. */
.partner-mark {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 18px; text-align: center;
}
.partner-mark img { height: 54px; width: auto; margin: 0 auto; object-fit: contain; }
.partner-mark .mark-name {
  font-weight: 800; font-size: 1.3rem; line-height: 1.15;
  letter-spacing: 0.04em; color: var(--navy);
}
.partner-mark .mark-rule {
  width: 40px; height: 3px; background: var(--blue);
  border-radius: 2px; margin: 14px auto;
}
.partner-mark .mark-meta {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gray); line-height: 1.7;
}

.partner-body h3 { font-size: 1.4rem; }
.partner-body h4 { font-size: 0.95rem; color: var(--navy); }
.partner-body p { color: var(--gray); }
.partner-body p strong { color: var(--navy); }
.partner-body a.more { font-weight: 600; white-space: nowrap; }

/* Attribute pills, for claims quoted from a partner's own material. */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
.pills span {
  background: var(--sky); color: var(--blue-dark);
  border-radius: 999px; padding: 5px 14px;
  font-size: 0.85rem; font-weight: 600;
}

/* ---------- Forms ---------- */
form.contact {
  display: grid; gap: 16px; max-width: 640px;
}
form.contact label { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 7px; font-size: 1rem; font-family: inherit; margin-top: 6px;
  background: var(--white);
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus {
  outline: 2px solid var(--blue); border-color: var(--blue);
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--deep); color: #a9bccb; padding: 56px 0 32px;
  font-size: 0.93rem;
}
footer.site h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }
footer.site a { color: #a9bccb; }
footer.site a:hover { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-bottom {
  border-top: 1px solid #1d3a55;
  margin-top: 40px; padding-top: 20px; text-align: center; color: #6e8399;
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.note {
  background: var(--sky); border-left: 4px solid var(--blue);
  padding: 14px 18px; border-radius: 0 7px 7px 0; font-size: 0.95rem; color: var(--ink);
}
