:root {
  --bg: #07111f;
  --bg-soft: #0d1d31;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #eaf2ff;
  --text-muted: #b7c6df;
  --accent: #caa96c;
  --accent-strong: #e9c98d;
  --line: rgba(255, 255, 255, 0.14);
  --max-width: 1180px;
  --shadow: 0 14px 34px rgba(2, 8, 20, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

img,
iframe {
  max-width: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #173559 0%, transparent 45%),
    radial-gradient(circle at 100% 0%, #102741 0%, transparent 42%),
    var(--bg);
  min-height: 100%;
}

body {
  line-height: 1.6;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  background: rgba(6, 14, 26, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 78px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand .brand-mark {
  width: 170px;
  height: auto;
  border-radius: 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
  font-size: 1rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.2rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.73rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1f1305;
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  background:
    linear-gradient(to right, rgba(7, 17, 31, 0.82), rgba(7, 17, 31, 0.55)),
    url("assets/photos/bigblue.jpg") center/cover no-repeat;
  padding: 6.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.lead {
  color: var(--text-muted);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-stat-card {
  padding: 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  padding: 0.95rem 0.55rem;
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--accent);
}

.section {
  padding: 4.2rem 0;
}

.section-header {
  max-width: 72ch;
  margin-bottom: 1.7rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.post-card,
.gallery-card,
.contact-card {
  padding: 1.3rem;
}

.at-a-glance-card {
  background:
    linear-gradient(to bottom, rgba(7, 17, 31, 0.62), rgba(7, 17, 31, 0.88)),
    url("assets/photos/isle3.jpg") center/cover no-repeat;
}

.at-a-glance-card .muted {
  color: #d8e4f8;
}

.feature-card h3,
.post-card h3,
.gallery-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.post-card .pill {
  margin-bottom: 0.55rem;
}

.feature-card .pill {
  margin-bottom: 0.55rem;
}

.gallery-card .pill {
  margin-top: 0.7rem;
  margin-bottom: 0.55rem;
}

.post-preview-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.95rem;
  border: 1px solid var(--line);
}

.post-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-weight: 600;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.photo-tile {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.photo-tile img,
.gallery-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.photo-tile p {
  margin: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.gallery-meta {
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.route-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.route-control-group label {
  display: block;
  margin-bottom: 0.35rem;
}

.route-control-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.65rem 0.72rem;
  font: inherit;
  appearance: auto;
}

.route-control-group select option {
  background: #0d1d31;
  color: #eaf2ff;
}

.route-control-group select:focus {
  outline: 2px solid rgba(202, 169, 108, 0.45);
  outline-offset: 2px;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.timeline li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.timeline strong {
  color: var(--accent);
  display: block;
}

.map-panel {
  min-height: 360px;
  background:
    linear-gradient(to bottom, rgba(13, 29, 49, 0.7), rgba(8, 18, 31, 0.9)),
    url("assets/photos/reef.jpg")
      center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.map-canvas {
  width: 100%;
  min-height: 300px;
  height: min(460px, 62vh);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  background: rgba(4, 13, 24, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.leaflet-container {
  background: #102741;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #0b1a2c;
  color: var(--text);
  border: 1px solid var(--line);
}

.video-frame {
  width: 100%;
  border: 0;
  border-radius: 14px;
  min-height: 240px;
}

.alert {
  display: none;
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.alert.show {
  display: block;
}

.alert-success {
  background: rgba(44, 115, 70, 0.2);
  border-color: rgba(106, 204, 138, 0.45);
  color: #b9f5cb;
}

.alert-error {
  background: rgba(139, 46, 46, 0.2);
  border-color: rgba(255, 124, 124, 0.4);
  color: #ffd3d3;
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

input,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.72rem 0.78rem;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.captcha-container {
  display: none;
  margin-top: 0.2rem;
}

.captcha-container.show {
  display: block;
}

code {
  font-family: "Consolas", "Courier New", monospace;
  color: var(--accent-strong);
}

.post-page-header {
  margin-bottom: 1rem;
}

.post-page-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 1rem 0 1.2rem;
}

.post-content {
  max-width: 78ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.highlight {
  color: var(--accent);
}

@media (max-width: 960px) {
  .hero-grid,
  .grid.cols-3,
  .grid.cols-2,
  .photo-strip,
  .route-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: rgba(5, 12, 22, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.7rem 1.5rem 1rem;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.8rem 0.2rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 2rem, var(--max-width));
  }

  .brand .brand-mark {
    width: 140px;
  }
}

@media (max-width: 520px) {
  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .map-canvas {
    height: min(380px, 56vh);
  }

  .video-frame {
    min-height: 210px;
  }
}
