:root {
  --navy: #0b2a43;
  --navy-dark: #071c2e;
  --accent: #c49a3f;
  --accent-dark: #a07d28;
  --ink: #1a2230;
  --muted: #5c6773;
  --line: #e2e6eb;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --max: 1120px;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(11, 42, 67, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
}

.brand img {
  height: 56px;
  width: auto;
  display: block;
}

@media (max-width: 540px) {
  .brand img { height: 44px; }
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #e7edf3;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.nav-book {
  display: inline-block;
  margin-left: 16px;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border-bottom: none !important;
  transition: background 0.15s;
}

.nav-book:hover {
  background: var(--accent-dark);
  border-bottom: none !important;
}

/* Tagline / pitch section */
.pitch {
  background: var(--bg-soft);
  padding: 80px 24px;
  text-align: center;
}

.pitch-inner {
  max-width: 760px;
  margin: 0 auto;
}

.pitch h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.pitch p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Inline CTA row between sections */
.inline-cta {
  background: #fff;
  padding: 44px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inline-cta p {
  display: inline-block;
  margin: 0 24px 0 0;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: var(--navy);
  vertical-align: middle;
}

@media (max-width: 620px) {
  .inline-cta p {
    display: block;
    margin: 0 0 18px;
  }
}

/* ---------- Hero (triptych) ---------- */
.hero-intro {
  text-align: center;
  padding: 64px 24px 40px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-intro .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.hero-intro h1 {
  font-size: 2.8rem;
  margin-bottom: 0.4em;
}

.hero-intro p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.6em;
}

.hero-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0;
}

.hero-triptych .panel {
  aspect-ratio: 3 / 4;
  background: #222 center/cover no-repeat;
  position: relative;
}

.hero-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0;
  margin-top: 6px;
}

.hero-quad .panel {
  aspect-ratio: 3 / 4;
  background: #222 center/cover no-repeat;
}

@media (max-width: 860px) {
  .hero-quad { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .hero-triptych { grid-template-columns: 1fr; }
  .hero-triptych .panel { aspect-ratio: 4 / 3; }
  .hero-intro h1 { font-size: 2.1rem; }
}

.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-soft);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 8px;
}

.section-title .rule {
  width: 56px;
  height: 2px;
  background: var(--accent);
  margin: 10px auto 18px;
}

.section-title p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 56px;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 8px;
}

.page-header p {
  color: #cfd9e3;
  margin: 0;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 540px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .nav { flex-direction: column; gap: 12px; }
  .nav-links { gap: 18px; flex-wrap: wrap; justify-content: center; }
}

/* Trip grid: switch to flex so an incomplete last row centers
   rather than aligning left. Card widths still match the grid sizes. */
.trips-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.trips-grid > .trip-card {
  flex: 1 1 0;
  min-width: 220px;
}
.trips-grid--4 > .trip-card { max-width: calc(25% - 18px); }
.trips-grid--3 > .trip-card { max-width: calc(33.333% - 16px); }

@media (max-width: 860px) {
  .trips-grid--4 > .trip-card,
  .trips-grid--3 > .trip-card { max-width: calc(50% - 12px); }
}
@media (max-width: 540px) {
  .trips-grid--4 > .trip-card,
  .trips-grid--3 > .trip-card { max-width: 100%; }
}

/* ---------- Feature / Card ---------- */
.feature {
  text-align: center;
  padding: 8px 8px 0;
}

.feature .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--accent);
}

.feature h3 {
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Trip card ---------- */
.trip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.trip-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.trip-card .thumb {
  aspect-ratio: 4 / 3;
  background: #ddd center/cover no-repeat;
}

.trip-card .body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.trip-card h3 {
  margin-bottom: 4px;
}

.trip-card .meta {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.trip-card .desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Gallery (uniform grid) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery .item {
  aspect-ratio: 1 / 1;
  background: #ddd center/cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.15s;
}

.gallery .item:hover {
  opacity: 0.88;
}

/* ---------- Mosaic (collage-style gallery) ---------- */
/*
 * 6-column grid, 12 items, all spans either 2×2 or 2×3 so nothing
 * gets cropped to a wide/short strip that chops faces off portraits.
 */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 110px;
  grid-auto-flow: dense;
  gap: 8px;
}

.mosaic .m-item {
  background: #ddd no-repeat;
  background-size: cover;
  background-position: center 28%;  /* bias toward faces in portrait photos */
  border-radius: 2px;
  overflow: hidden;
  transition: opacity 0.15s, transform 0.2s;
}

.mosaic .m-item:hover {
  opacity: 0.9;
  transform: scale(1.005);
}

/* 18-item tiling: 6 bands × 3 items (alternating 2×2 / 2×3) */
.mosaic .m-item { grid-column: span 2; }
.mosaic .m-1, .mosaic .m-2, .mosaic .m-3,
.mosaic .m-7, .mosaic .m-8, .mosaic .m-9,
.mosaic .m-13, .mosaic .m-14, .mosaic .m-15 { grid-row: span 2; }
.mosaic .m-4, .mosaic .m-5, .mosaic .m-6,
.mosaic .m-10, .mosaic .m-11, .mosaic .m-12,
.mosaic .m-16, .mosaic .m-17, .mosaic .m-18 { grid-row: span 3; }

/* Per-image crop anchors for images where 28% cuts something important */
.mosaic .m-landscape { background-position: center center; }
.mosaic .m-whale { background-position: 65% 40%; }
.mosaic .m-fish-deck { background-position: center 60%; }

@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100px; }
}

@media (max-width: 540px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .mosaic .m-item { grid-column: span 1; grid-row: span 2 !important; }
}

/* See-more extras grid (hidden until user clicks the button) */
.gallery-extras {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.gallery-extras[hidden] { display: none; }
.gallery-extras img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  background: #f0eee9;
}
@media (max-width: 540px) {
  .gallery-extras { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* ---------- Captain ---------- */
.captain-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .captain-split { grid-template-columns: 1fr; }
}

.captain-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #ddd center/cover no-repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.credentials li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}

.credentials li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
}

/* ---------- Trips table ---------- */
.trip-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.trip-table th,
.trip-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}

.trip-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.trip-table tbody tr:last-child td {
  border-bottom: none;
}

.trip-table tbody tr:hover {
  background: var(--bg-soft);
}

.trip-table .trip-name {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-block:last-child {
  border-bottom: none;
}

.contact-block .icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 4px;
}

.contact-block .label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-block .value {
  font-size: 1.05rem;
  color: var(--ink);
}

.contact-block .value a { color: var(--navy); }
.contact-block .value a:hover { color: var(--accent-dark); }

.contact-note {
  background: var(--bg-soft);
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.contact-note h3 {
  margin-top: 0;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}

.cta-strip h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-strip p {
  color: #d8e2ec;
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #c6d1dc;
  padding: 48px 0 24px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.footer-grid a {
  color: #c6d1dc;
  display: block;
  padding: 3px 0;
}

.footer-grid a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background 0.15s;
}

.socials a:hover {
  background: var(--accent);
}

.socials svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #8a98a6;
  font-size: 0.85rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
