:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #29363b;
  --bg-surface-glass: rgba(41, 54, 59, 0.78);
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #14b8a6;
  --accent-primary-hover: #0d9488;
  --border-subtle: rgba(20, 184, 166, 0.24);
  --shadow-hard: 4px 4px 0 #0f1215;
  --shadow-hard-hover: 2px 2px 0 #0f1215;
  --max-width: 1200px;
  --reading-width: 68ch;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Expeditions Bar */
.expedition-bar {
  background: #111417;
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 1.5rem;
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.expedition-bar span {
  white-space: nowrap;
}

/* Header */
.site-header {
  position: static;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 1.5rem;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.header-cta {
  background-color: var(--accent-primary);
  color: #1c1f24;
  padding: 0.45rem 1rem;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-hard);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hard-hover);
}

/* Mobile 3-dot trigger */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-surface);
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--accent-primary);
}

.mobile-menu.is-open {
  display: flex;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ffffff;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #d1d5db;
}

/* Layout containers */
.main-content {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 1.5rem;
}

.reading-column {
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
}

/* Fluid Organic Hero - Oversized without imagery */
.hero-field {
  background: linear-gradient(135deg, #1c1f24 0%, #203a3d 60%, #154e53 100%);
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  border-bottom: 3px solid var(--accent-primary);
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: rgba(20, 184, 166, 0.15);
  color: var(--accent-primary);
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #1c1f24;
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hard-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-hard);
}

.btn-secondary:hover {
  background: rgba(20, 184, 166, 0.1);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hard-hover);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Diagonal coastlines & Organic Sections */
.section-diagonal {
  background: #182024;
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-teal-surface {
  background: linear-gradient(180deg, #1f2a2e 0%, #1c1f24 100%);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* Card Variations */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.card-panel {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.card-panel:hover {
  border-color: var(--accent-primary);
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: #13171a;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) brightness(0.9);
}

.badge-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  background: rgba(20, 184, 166, 0.2);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

/* Split Card Layout */
.card-split {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

@media (min-width: 769px) {
  .card-split {
    flex-direction: row;
  }
  .card-split-media {
    flex: 1;
    min-width: 45%;
  }
  .card-split-content {
    flex: 1.2;
    padding: 2.5rem;
  }
}

.card-split-media {
  aspect-ratio: 16 / 10;
  background: #111417;
}

.card-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-split-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Pull Quotes */
.pullquote {
  border-left: 4px solid var(--accent-primary);
  padding: 1.25rem 1.5rem;
  margin: 2.25rem 0;
  background: rgba(20, 184, 166, 0.08);
  font-size: 1.15rem;
  font-style: italic;
  color: #f3f4f6;
}

/* Breakout Landscape */
.breakout-figure {
  margin: 3rem 0;
  width: 100%;
}

.breakout-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-subtle);
}

.breakout-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: left;
}

/* Tables with horizontal scroll wrapper */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 580px;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  background: rgba(0, 0, 0, 0.3);
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Seasonal decision list */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.season-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
}

.season-box h3 {
  color: var(--accent-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FAQ Disclosures */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent-primary);
}

.faq-symbol {
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  display: none;
  color: var(--text-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
}

.faq-item.is-active .faq-answer {
  display: block;
}

.faq-item.is-active .faq-symbol {
  transform: rotate(45deg);
}

/* Route Index bar */
.route-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.route-index-card {
  background: #1f272c;
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.route-index-card:hover {
  background: #253338;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.route-index-card h4 {
  color: var(--accent-primary);
  font-size: 1.05rem;
}

.route-index-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Contact Draft Tool Form */
.editor-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #f3f4f6;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #181d22;
  border: 1px solid #3c4a50;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.output-preview {
  background: #111417;
  border: 1px solid #2d383d;
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: #a7f3d0;
  margin-top: 1.5rem;
  min-height: 120px;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: #13171a;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: auto;
  font-size: 0.95rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h5 {
  color: var(--accent-primary);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.footer-legal-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-bar a {
  color: var(--text-muted);
}

.footer-legal-bar a:hover {
  color: var(--accent-primary);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--accent-primary);
  color: #000;
  padding: 8px 12px;
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .header-cta-desktop {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .expedition-bar span:last-child {
    display: none;
  }
  .cta-group {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
