/* napsteer.com: hand-written styles. No frameworks, no web fonts, mobile first. */

:root {
  --bg: #0d0f12;
  --bg-alt: #14171c;
  --surface: #1b1f26;
  --border: #2e343e;
  --text: #e8eaed;
  --text-dim: #a3abb6;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --on-accent: #111317;
  --green: #34d399;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: 8px;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn-large {
  padding: 15px 28px;
  font-size: 1.05rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.center .button-row {
  justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 18, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.logo:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.main-nav {
  order: 3;
  width: 100%;
  overflow-x: auto;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.main-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

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

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 640px;
  color: var(--text-dim);
  font-size: 1.15rem;
}

/* Hero blocks: a photo behind dark shading, text on top. */

.page-hero,
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.page-hero {
  padding: 72px 0 64px;
}

.cta-band {
  padding: 64px 0;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after,
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 18, 0.72) 0%, rgba(13, 15, 18, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.cta-band .hero-content p {
  color: var(--text-dim);
}

.hero-home {
  padding: 88px 0 72px;
}

.search-bar {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.dot,
.available {
  color: var(--green);
}

/* ---------- Forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label,
legend {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7d8592;
}

.form-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Category and listing cards ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.category-card {
  display: block;
  overflow: hidden;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-name {
  display: block;
  padding: 12px 14px 0;
  font-weight: 700;
}

.category-count {
  display: block;
  padding: 0 14px 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.category-card:hover,
.listing-card:hover {
  border-color: var(--accent);
  color: var(--text);
}

.listing-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.listing-card {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.thumb {
  position: relative;
}

.thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(13, 15, 18, 0.85);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}

.listing-body {
  padding: 16px;
}

.listing-body h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.listing-rate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.rate {
  font-size: 1.25rem;
  font-weight: 800;
}

.rate small {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
}

.loc {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.more-link {
  margin-top: 24px;
  font-weight: 700;
}

/* ---------- Steps, stats, splits, lists ---------- */

.steps {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps p {
  margin: 0;
  color: var(--text-dim);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  background: var(--accent);
  border-radius: 10px;
  color: var(--on-accent);
  font-weight: 800;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.stat-row li {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.stat-row strong {
  display: block;
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1.2;
}

/* "Demo site: figures are illustrative." under a block of figures. Same colour and
   size as the other "Demo site" notes (.form-note), aligned with the block above. */

.demo-note {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

p + .demo-note {
  margin: -0.4em 0 1em;
}

.check-list + .demo-note {
  margin: -14px 0 24px;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.split-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.check-list {
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 30px;
  color: var(--text-dim);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.check-list strong {
  color: var(--text);
}

.check-list a,
.footer-about a {
  color: inherit;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  border-bottom: 1px solid var(--border);
}

.link-list a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
}

/* ---------- FAQ and callouts ---------- */

.faq {
  margin-top: 24px;
}

.faq-item {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.faq-q {
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
}

.faq-a {
  padding: 0 18px 4px;
  color: var(--text-dim);
}

.callout {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.callout-title {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.callout p {
  color: var(--text-dim);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Guides ---------- */

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--text-dim);
}

.post-date {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Search page ---------- */

.search-page {
  padding-top: 32px;
}

.search-layout {
  display: grid;
  gap: 28px;
}

.filters {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filters-title {
  margin: 0;
  font-size: 1.1rem;
}

.extras {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.extras label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.extras input {
  width: auto;
}

.extras:disabled label {
  color: var(--text-dim);
}

.filters .form-note {
  margin: 0;
  text-align: left;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-count {
  margin: 0;
  color: var(--text-dim);
}

.result-count strong {
  color: var(--text);
}

.results-bar select {
  width: auto;
}

.empty-state {
  margin-top: 28px;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Equipment page ---------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.crumbs li + li::before {
  content: "/";
  padding: 0 8px;
}

.crumbs a {
  color: var(--text-dim);
}

.crumbs [aria-current] {
  color: var(--text);
}

.detail-layout {
  display: grid;
  gap: 32px;
  padding-top: 20px;
  padding-bottom: 56px;
}

.gallery {
  margin-bottom: 28px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.detail-main h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

.sub-meta {
  color: var(--text-dim);
}

.detail-heading {
  margin-top: 30px;
  font-size: 1.25rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.spec-table th,
.spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 45%;
  padding-right: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.included {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.included li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 28px;
}

.included li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.book-card {
  align-self: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rate-big {
  margin-bottom: 14px;
  font-size: 2rem;
  font-weight: 800;
}

.rate-big small {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 600;
}

.rate-lines {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.rate-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.rate-lines dt {
  color: var(--text-dim);
}

.rate-lines dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.book-form {
  display: grid;
  gap: 8px;
}

.book-form select + label,
.book-form input + label {
  margin-top: 8px;
}

.book-form .btn-primary {
  margin-top: 14px;
}

.note {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- About page ---------- */

.contact-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

/* ---------- 404 ---------- */

.not-found {
  padding: 96px 0;
}

.not-found .button-row {
  margin-top: 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 28px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-heading {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

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

.footer-about a {
  text-decoration: underline;
}

.footer-about .logo {
  display: inline-block;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0 0 4px;
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  .search-bar {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: end;
  }

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

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

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

  .stat-row-wide,
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .form-grid .full {
    grid-column: 1 / -1;
  }

  .link-columns {
    columns: 2;
    column-gap: 40px;
  }

  .link-columns li {
    break-inside: avoid;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .section {
    padding: 80px 0;
  }

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

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

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

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .search-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }

  .search-layout .visually-hidden + .filters {
    position: sticky;
    top: 90px;
  }

  .search-layout .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr 360px;
    gap: 48px;
  }

  .book-card {
    position: sticky;
    top: 90px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

@media (min-width: 1100px) {
  .main-nav {
    order: 0;
    width: auto;
  }
}

@media (min-width: 1200px) {
  .search-layout .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
