:root {
  --vista-green: #00483f;
  --vista-green-2: #0a6154;
  --breeze-teal: #46b8b6;
  --sky-aqua: #79ced1;
  --mist: #eef3f2;
  --mist-2: #d8e1df;
  --ink: #12322f;
  --muted: #5b706d;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(4, 41, 37, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Montserrat, Avenir Next, Avenir, Segoe UI, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 72, 63, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-family: Georgia, Cormorant Garamond, serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--vista-green);
}

.brand img {
  width: 42px;
  height: 32px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--vista-green);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-action,
.button.primary {
  color: var(--white);
  background: var(--vista-green);
}

.button.primary:hover,
.nav-action:hover {
  background: var(--vista-green-2);
}

.button.secondary {
  color: var(--vista-green);
  background: rgba(70, 184, 182, 0.15);
}

.button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.button.danger {
  color: var(--white);
  background: #9a2f24;
}

.button.danger:hover {
  background: #7d251d;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  min-height: calc(100vh - 74px);
  padding: clamp(40px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 86% 28%, rgba(121, 206, 209, 0.36), transparent 32%),
    linear-gradient(135deg, #f8fbfa 0%, #ffffff 58%, #eef7f6 100%);
  overflow: hidden;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 86% 28%, rgba(121, 206, 209, 0.34), transparent 32%),
    linear-gradient(135deg, #f8fbfa 0%, #ffffff 58%, #eef7f6 100%);
  overflow: hidden;
}

.page-hero img {
  width: min(100%, 880px);
  filter: drop-shadow(0 26px 30px rgba(4, 41, 37, 0.16));
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--vista-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, Cormorant Garamond, serif;
  line-height: 1.02;
  color: var(--vista-green);
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

h3 {
  margin-bottom: 10px;
  color: var(--vista-green);
  font-size: 1.08rem;
}

.hero-text,
.section-heading p,
.panel p,
.experience-list p,
.destination-card p,
.fleet-grid span,
.feature-grid p,
.job-card p,
.job-card dd,
.fleet-detail-grid p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 560px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-media {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.hero-media::before {
  position: absolute;
  inset: 8% 0 0 8%;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.hero-media img {
  position: relative;
  width: min(100%, 980px);
  filter: drop-shadow(0 26px 30px rgba(4, 41, 37, 0.16));
}

.booking-shell {
  padding: 0 clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #eef7f6 0%, #ffffff 100%);
}

.booking-card {
  max-width: 1180px;
  margin: 0 auto;
  transform: translateY(-34px);
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: 1px solid rgba(0, 72, 63, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading.compact h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

select,
input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #f7faf9;
  border: 1px solid var(--mist-2);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
}

.search-result {
  margin-top: 16px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(121, 206, 209, 0.14);
  border-left: 4px solid var(--breeze-teal);
  border-radius: var(--radius);
  line-height: 1.55;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.5);
  border-block: 1px solid rgba(0, 72, 63, 0.12);
}

.stats-band div {
  min-height: 136px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: var(--vista-green);
  color: var(--white);
}

.stats-band strong {
  font-family: Georgia, Cormorant Garamond, serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
}

.stats-band span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

.content-section,
.split-section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.content-section {
  max-width: 1320px;
  margin: 0 auto;
}

.route-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill {
  min-height: 38px;
  padding: 0 16px;
  color: var(--vista-green);
  background: var(--white);
  border: 1px solid rgba(0, 72, 63, 0.18);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pill.active,
.pill:hover {
  color: var(--white);
  background: var(--vista-green);
}

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

.destination-card,
.fleet-grid article {
  padding: 22px;
  border: 1px solid rgba(0, 72, 63, 0.12);
  border-radius: var(--radius);
  background: #fbfdfd;
}

.destination-card[hidden] {
  display: none;
}

.destination-card span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--breeze-teal);
  border-radius: var(--radius);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: stretch;
  background: var(--mist);
}

.panel {
  padding: clamp(28px, 5vw, 50px);
  border-radius: var(--radius);
}

.dark-panel {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 72, 63, 0.94), rgba(10, 97, 84, 0.88)),
    url("assets/vista-wing-mark.png") right -26px bottom -12px / 210px auto no-repeat;
}

.dark-panel .eyebrow,
.dark-panel h2,
.dark-panel p {
  color: var(--white);
}

.dark-panel p {
  color: rgba(255, 255, 255, 0.78);
}

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

.experience-list div {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 72, 63, 0.1);
}

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

.feature-grid,
.job-grid,
.fleet-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fleet-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.job-card,
.fleet-detail-grid article {
  padding: 24px;
  border: 1px solid rgba(0, 72, 63, 0.12);
  border-radius: var(--radius);
  background: #fbfdfd;
}

.feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--breeze-teal);
  border-radius: var(--radius);
  font-weight: 900;
}

.fleet-grid p {
  margin-bottom: 12px;
  color: var(--breeze-teal);
  font-size: 1.45rem;
  font-weight: 900;
}

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

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

.job-type {
  margin-bottom: 8px;
  color: var(--vista-green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.job-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.job-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 72, 63, 0.12);
}

.job-card dt {
  color: var(--vista-green);
  font-weight: 900;
}

.job-card dd {
  margin: 0;
  text-align: right;
}

.fleet-stat {
  margin-bottom: 12px;
  color: var(--breeze-teal) !important;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.2 !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 72px);
  background: #f7faf9;
  border-top: 1px solid rgba(0, 72, 63, 0.12);
}

.site-footer strong {
  color: var(--vista-green);
  font-family: Georgia, Cormorant Garamond, serif;
  font-size: 1.5rem;
}

.site-footer p {
  max-width: 460px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 78% 18%, rgba(121, 206, 209, 0.32), transparent 34%),
    linear-gradient(135deg, #f8fbfa 0%, #ffffff 58%, #eef7f6 100%);
}

.login-card {
  width: min(100%, 460px);
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid rgba(0, 72, 63, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card .brand {
  margin-bottom: 28px;
}

.login-card h1,
.crew-main h1 {
  margin-bottom: 14px;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.stack-form,
.crew-form,
.settings-form {
  display: grid;
  gap: 14px;
}

.form-error {
  margin: 18px 0;
  padding: 12px 14px;
  color: #8a1f11;
  background: #fff0ec;
  border-left: 4px solid #d6482f;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-success {
  margin: 18px 0;
  padding: 12px 14px;
  color: var(--vista-green);
  background: rgba(70, 184, 182, 0.15);
  border-left: 4px solid var(--breeze-teal);
  border-radius: var(--radius);
  font-weight: 800;
}

.crew-app {
  background: #f7faf9;
}

.crew-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.crew-sidebar {
  padding: 28px;
  background: var(--vista-green);
  color: var(--white);
}

.crew-sidebar .eyebrow {
  color: var(--sky-aqua);
}

.crew-sidebar strong {
  display: block;
  margin-bottom: 4px;
  font-family: Georgia, Cormorant Garamond, serif;
  font-size: 1.45rem;
}

.crew-sidebar span {
  display: block;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.68);
  text-transform: capitalize;
}

.crew-sidebar nav {
  display: grid;
  gap: 8px;
}

.crew-sidebar a {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  font-weight: 900;
}

.crew-sidebar a.active,
.crew-sidebar a:hover {
  color: var(--vista-green);
  background: var(--white);
}

.crew-main {
  padding: clamp(30px, 5vw, 64px);
}

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

.crew-card-grid article,
.table-shell,
.crew-form,
.bid-window {
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(0, 72, 63, 0.12);
  border-radius: var(--radius);
}

.crew-card-grid a {
  color: var(--vista-green);
  font-weight: 900;
}

.crew-form {
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  align-items: end;
  margin-bottom: 28px;
}

.settings-form {
  max-width: 780px;
  padding: 22px;
  margin-bottom: 28px;
  background: var(--white);
  border: 1px solid rgba(0, 72, 63, 0.12);
  border-radius: var(--radius);
}

.user-create-form {
  max-width: none;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
  align-items: end;
}

.admin-panel {
  margin-bottom: 34px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(76px, 0.45fr) minmax(90px, 0.55fr) auto;
  gap: 8px;
  align-items: center;
}

.inline-form input,
.inline-form select {
  min-height: 38px;
}

.admin-table {
  min-width: 1100px;
}

.muted-text {
  color: var(--muted);
}

.bid-window {
  margin-bottom: 16px;
  color: var(--muted);
  border-left: 4px solid var(--breeze-teal);
}

.table-shell {
  overflow-x: auto;
  margin-bottom: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 72, 63, 0.1);
  vertical-align: top;
}

th {
  color: var(--vista-green);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--vista-green);
  background: rgba(70, 184, 182, 0.15);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: 260px;
  }

  .booking-form,
  .destination-grid,
  .fleet-grid,
  .feature-grid,
  .job-grid,
  .fleet-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-form button {
    grid-column: 1 / -1;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

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

  .crew-sidebar {
    padding: 20px;
  }

  .crew-sidebar nav {
    grid-template-columns: repeat(7, minmax(max-content, 1fr));
    overflow-x: auto;
  }

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

  .crew-form,
  .user-create-form,
  .inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-action {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .booking-form,
  .destination-grid,
  .fleet-grid,
  .feature-grid,
  .job-grid,
  .fleet-detail-grid,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .crew-card-grid,
  .crew-form,
  .user-create-form,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
