:root {
  --navy-950: #071321;
  --navy-900: #0b1b2c;
  --navy-800: #10263b;
  --steel-700: #31506b;
  --steel-500: #5f7f98;
  --steel-200: #d7e2ea;
  --steel-100: #eef4f8;
  --white: #ffffff;
  --gold: #c89f5a;
  --line: rgba(255, 255, 255, 0.15);
  --shadow: 0 22px 60px rgba(3, 11, 20, 0.2);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy-900);
  background: var(--white);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--navy-900);
  background: var(--white);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(5, 14, 24, 0.88), rgba(5, 14, 24, 0.2));
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  padding-block: 12px;
  background: rgba(7, 19, 33, 0.94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand em {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 19, 33, 0.96) 0%, rgba(7, 19, 33, 0.82) 35%, rgba(7, 19, 33, 0.4) 68%),
    linear-gradient(180deg, rgba(7, 19, 33, 0.15), rgba(7, 19, 33, 0.6)),
    url("assets/mastermariner-hero.png") center / cover;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 138px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--navy-950);
  background: var(--gold);
  border-color: var(--gold);
}

.button.secondary {
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.quote-form .button.secondary {
  color: var(--navy-900);
  background: var(--white);
  border-color: rgba(7, 19, 33, 0.18);
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1010px;
  margin: 72px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 19, 33, 0.56);
  backdrop-filter: blur(14px);
}

.hero-notes div {
  padding: 22px;
}

.hero-notes div + div {
  border-left: 1px solid var(--line);
}

.hero-notes dt {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-notes dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.intro-strip {
  padding: 22px clamp(20px, 4vw, 56px);
  color: var(--steel-200);
  background: var(--navy-900);
}

.intro-strip p {
  width: min(1120px, 100%);
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.7;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section h2,
.benchmark h2,
.about h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.about-panel p,
.benchmark p {
  color: var(--steel-700);
  font-size: 1rem;
  line-height: 1.75;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.why-list article,
.steps article,
.lane-column,
.quote-form,
.faq details {
  border: 1px solid rgba(7, 19, 33, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(7, 19, 33, 0.07);
}

.service-card {
  min-height: 270px;
  padding: 26px;
}

.card-icon {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--gold);
  font-weight: 900;
}

.service-card h3,
.why-list h3,
.steps h3,
.lane-column h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.15rem;
}

.service-card p,
.why-list p,
.steps p,
.lane-column li,
.faq p {
  color: var(--steel-700);
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-list article {
  padding: 24px;
}

.lanes {
  width: 100%;
  max-width: none;
  padding-inline: clamp(20px, 4vw, 56px);
  background: var(--steel-100);
}

.lanes > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.lane-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.lane-column {
  padding: 28px;
}

.lane-column ul {
  display: grid;
  gap: 12px;
  padding-left: 18px;
}

.lane-map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 270px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(200, 159, 90, 0.28), transparent 45%),
    var(--navy-900);
  overflow: hidden;
}

.lane-map span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.lane-map i {
  position: absolute;
  width: 62%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.benchmark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 58px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: var(--navy-950);
}

.benchmark > div {
  max-width: 760px;
}

.benchmark h2 {
  color: var(--white);
}

.benchmark p {
  color: rgba(255, 255, 255, 0.76);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  padding: 28px;
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--navy-950);
  background: var(--gold);
  font-weight: 900;
}

.about {
  width: 100%;
  max-width: none;
  padding-inline: clamp(20px, 4vw, 56px);
  background:
    linear-gradient(rgba(7, 19, 33, 0.88), rgba(7, 19, 33, 0.88)),
    url("assets/mastermariner-hero.png") center / cover fixed;
}

.about-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: start;
}

.quote-form {
  padding: clamp(22px, 4vw, 34px);
  background: var(--steel-100);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy-950);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(7, 19, 33, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--navy-950);
  background: var(--white);
  font: inherit;
  font-weight: 500;
}

textarea {
  margin-top: 16px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(200, 159, 90, 0.32);
  border-color: var(--gold);
}

.form-output {
  display: block;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius);
  color: var(--navy-950);
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  white-space: pre-wrap;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq details {
  padding: 20px 22px;
}

.faq summary {
  color: var(--navy-950);
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 48px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-950);
}

.site-footer p {
  max-width: 470px;
  line-height: 1.65;
}

.site-footer address {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.site-footer a {
  color: var(--white);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
  }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto;
    display: none;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(7, 19, 33, 0.98);
    box-shadow: var(--shadow);
  }

  .site-header.nav-active .site-nav {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 122px;
  }

  .hero-notes,
  .card-grid.three,
  .split,
  .lane-board,
  .steps,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .hero-notes div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .benchmark,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand em {
    display: none;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 32px, 1120px);
    padding: 64px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .about {
    background-attachment: scroll;
  }
}
