:root {
  color-scheme: dark;
  --bg: #04080b;
  --bg-deep: #020405;
  --surface: #0a1015;
  --surface-soft: rgba(10, 16, 21, 0.72);
  --line: rgba(220, 241, 246, 0.16);
  --line-strong: rgba(220, 241, 246, 0.28);
  --text: #f5f8f8;
  --soft: #d8e2e4;
  --muted: #a5b5ba;
  --accent: #43dbe7;
  --accent-strong: #20bfd0;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #050a0d 0%, var(--bg) 48%, #071014 100%);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid transparent;
  padding: 10px clamp(22px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(4, 8, 11, 0.88), rgba(4, 8, 11, 0));
}

.gallery-header {
  position: sticky;
  background: rgba(5, 9, 12, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 72px);
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -13px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  background: var(--accent);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 72px clamp(22px, 6vw, 96px) 96px;
  overflow: hidden;
}

.hero::after,
.gallery-hero.has-hero::after,
.cave-intro.has-hero::after,
.about-hero.has-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 28vh;
  background: linear-gradient(180deg, transparent, var(--bg-deep));
  content: "";
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #071017;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 8, 0.86), rgba(3, 6, 8, 0.28) 54%, rgba(3, 6, 8, 0.5)),
    linear-gradient(180deg, rgba(3, 6, 8, 0.08), rgba(3, 6, 8, 0.7));
  content: "";
}

.hero-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b1a21, #020405 72%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.6rem, 12vw, 10rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 520px;
  margin-top: 28px;
  color: var(--soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.button-link,
.text-link,
.tag-button,
.lightbox-close {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 12px 24px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
}

.button-link,
.tag-button[aria-pressed="true"] {
  border-color: rgba(67, 219, 231, 0.78);
  background: var(--accent-strong);
  color: #031012;
}

.text-link,
.tag-button,
.lightbox-close {
  background: rgba(6, 12, 16, 0.46);
  color: var(--text);
}

.home-gallery {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
  border-top: 1px solid rgba(220, 241, 246, 0.08);
  padding: 40px clamp(22px, 4vw, 54px) 88px;
  background: var(--bg-deep);
}

.section-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.home-gallery h2,
.about-hero h1 {
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-rule {
  width: 84px;
  height: 2px;
  display: block;
  margin: 30px 0 34px;
  background: var(--accent);
}

.home-gallery-copy > p:not(.section-label),
.about-hero p,
.about-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.arrow-link::after {
  content: "->";
  font-size: 1.1rem;
  letter-spacing: 0;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  min-width: 0;
  min-height: 360px;
  position: relative;
  display: block;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: var(--surface);
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.feature-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 320ms ease, opacity 320ms ease;
}

.feature-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(2, 4, 5, 0.88));
  content: "";
}

.feature-card:hover img,
.feature-card:focus-visible img,
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.025);
  opacity: 0.9;
}

.feature-card-copy {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  z-index: 2;
  display: block;
}

.feature-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
}

.feature-card p {
  margin-top: 8px;
  color: rgba(216, 226, 228, 0.7);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
}

.cta-card {
  min-width: 0;
  min-height: 360px;
  position: relative;
  display: block;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0d2730, #071014 72%);
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.cta-card img,
.cta-card-overlay {
  position: absolute;
  inset: 0;
}

.cta-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 320ms ease, opacity 320ms ease;
}

.cta-card-overlay {
  background: linear-gradient(180deg, rgba(3, 6, 8, 0.08), rgba(2, 4, 5, 0.94));
}

.cta-card:hover img,
.cta-card:focus-visible img {
  transform: scale(1.025);
  opacity: 0.76;
}

.cta-card-copy {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  z-index: 2;
  display: block;
}

.cta-card h3 {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
}

.cta-card p {
  max-width: 36ch;
  margin-top: 10px;
  color: rgba(216, 226, 228, 0.78);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cta-card-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 22px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.open-mark {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(5, 9, 12, 0.58);
  color: var(--text);
}

.open-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.gallery-page {
  min-height: 100vh;
  background: var(--bg-deep);
}

.gallery-archive {
  width: min(1510px, calc(100% - 72px));
  margin: 0 auto;
  padding: 56px 0 92px;
}

.archive-heading {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 560px);
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.archive-heading h1 {
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.archive-heading p {
  max-width: 460px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.archive-search {
  display: block;
}

.archive-search span,
.sort-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.archive-search input,
.sort-control select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(8, 14, 18, 0.64);
  color: var(--text);
  outline: none;
}

.archive-search input {
  padding: 0 18px;
}

.archive-search input:focus,
.sort-control select:focus {
  border-color: var(--accent);
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.tag-filters {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-button {
  min-height: 38px;
  border-radius: 5px;
  padding: 8px 18px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.sort-control {
  width: min(210px, 100%);
  flex: 0 0 auto;
}

.sort-control select {
  appearance: none;
  padding: 0 40px 0 16px;
  background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px 16px;
}

.gallery-item {
  width: 100%;
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-item.is-tall {
  grid-row: span 2;
}

.gallery-item figure {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: var(--ratio, 4 / 3);
  object-fit: cover;
  transition: transform 260ms ease, opacity 260ms ease;
}

.gallery-item.is-tall img {
  aspect-ratio: 3 / 4.6;
}

.gallery-caption {
  display: grid;
  gap: 5px;
  padding: 0 2px 4px;
}

.gallery-caption h2 {
  font-size: 0.96rem;
  font-weight: 500;
}

.gallery-caption p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gallery-tag {
  color: rgba(67, 219, 231, 0.7);
  font-size: 0.78rem;
  line-height: 1.5;
}

.gallery-empty {
  display: none;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
  color: var(--muted);
}

.gallery-empty.is-visible {
  display: block;
}

.lightbox {
  width: min(1180px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 8, 11, 0.96);
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #020405;
}

.lightbox-copy {
  padding: 22px;
}

.lightbox-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
}

.lightbox-copy p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.lightbox-tags {
  margin-top: 14px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  border-radius: 5px;
  cursor: pointer;
}

.about-page {
  padding: 56px 0 92px;
  background: var(--bg-deep);
}

.about-hero {
  min-height: 42vh;
  display: grid;
  align-content: end;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 36px;
  border-bottom: 1px solid var(--line);
}

.about-hero.has-hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-bottom: none;
  overflow: hidden;
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
  padding: 130px 0 40px;
  border-bottom: 1px solid rgba(220, 241, 246, 0.12);
}

.about-hero h1,
.about-hero-inner h1 {
  margin-top: 0;
}

.about-hero p,
.about-hero-inner p {
  max-width: 620px;
  margin-top: 18px;
}

.about-copy {
  display: grid;
  gap: 20px;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 34px;
}

.about-story {
  display: grid;
  gap: 16px;
}

.about-story h2,
.courses-section h2,
.courses-proof h2,
.courses-form-section h2 {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.scuba-link-card,
.about-video {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: rgba(10, 16, 21, 0.72);
}

.scuba-link-card h2,
.about-video h2 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
}

.scuba-link-card p:not(.section-label),
.about-video p:not(.section-label) {
  max-width: 680px;
  margin-top: 16px;
}

.about-video {
  display: grid;
  gap: 28px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: #020405;
}

.video-poster,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
}

.video-poster {
  z-index: 1;
  padding: 0;
  overflow: hidden;
  background: #020405;
  cursor: pointer;
}

.video-poster[hidden] {
  display: none;
}

.video-poster::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 4, 5, 0.05), rgba(2, 4, 5, 0.64));
  content: "";
}

.video-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-poster-play {
  position: absolute;
  z-index: 1;
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  padding: 14px 20px;
  border: 1px solid rgba(220, 241, 246, 0.55);
  background: rgba(4, 8, 11, 0.78);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.video-poster:hover .video-poster-play,
.video-poster:focus-visible .video-poster-play {
  border-color: var(--accent);
  color: var(--accent);
}

.video-poster:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.video-frame iframe[hidden] {
  display: none;
}

/* ── Courses & experiences ── */

.courses-page {
  min-height: 100vh;
  background: var(--bg-deep);
}

.courses-hero {
  min-height: 48vh;
  display: grid;
  align-content: end;
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  padding: 150px 0 56px;
  border-bottom: 1px solid var(--line);
}

.courses-hero.has-hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-bottom: 0;
  overflow: hidden;
}

.courses-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  padding: 130px 0 56px;
}

.courses-hero h1 {
  max-width: 840px;
  margin-top: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.96;
}

.courses-hero-inner > p:not(.section-label) {
  max-width: 680px;
  margin-top: 24px;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.courses-video {
  width: min(760px, 100%);
  margin-top: 42px;
}

.courses-section {
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  padding: 80px 0;
  border-bottom: 1px solid rgba(220, 241, 246, 0.08);
}

.courses-section-intro {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.course-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.course-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 300px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  background: rgba(10, 16, 21, 0.72);
}

.course-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.08;
}

.course-card p {
  color: var(--muted);
  line-height: 1.7;
}

.course-card .button-link,
.course-card .arrow-link {
  justify-self: start;
  margin-top: auto;
}

.course-status {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.course-level,
.course-format {
  color: var(--soft) !important;
  font-size: 0.86rem;
}

.course-format {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.coming-soon-card {
  min-height: 240px;
  background: linear-gradient(145deg, rgba(13, 39, 48, 0.72), rgba(10, 16, 21, 0.72));
}

.courses-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 7vw, 90px);
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  padding: 80px 0;
  border-bottom: 1px solid rgba(220, 241, 246, 0.08);
}

.courses-proof p:not(.section-label) {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.courses-proof ul {
  display: grid;
  gap: 18px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.courses-proof li {
  position: relative;
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  line-height: 1.6;
}

.courses-proof li::before {
  position: absolute;
  margin-left: -28px;
  color: var(--accent);
  content: "—";
}

.courses-form-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 80px);
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  padding: 80px 0;
}

.courses-form-intro > p:not(.section-label) {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.courses-form {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
}

.courses-form > label:nth-of-type(5),
.courses-form > label:nth-of-type(6),
.courses-form > .contact-form-actions {
  grid-column: 1 / -1;
}

.courses-form select,
.contact-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0 14px;
  background: rgba(4, 8, 11, 0.72);
  color: var(--text);
  outline: none;
}

.courses-form select:focus,
.contact-form select:focus {
  border-color: var(--accent);
}

.field-hint {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.courses-scuba-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 80px;
  border-top: 1px solid rgba(220, 241, 246, 0.08);
}

.courses-scuba-link p:not(.section-label) {
  color: var(--muted);
}

.courses-scuba-link .arrow-link {
  margin-top: 0;
}

.contact-form {
  display: grid;
  gap: 22px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: rgba(10, 16, 21, 0.72);
}

.contact-form label,
.contact-form legend {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 12px 14px;
  background: rgba(4, 8, 11, 0.72);
  color: var(--text);
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.interest-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 14px;
}

.contact-form .interest-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.contact-form .interest-list input {
  width: auto;
  accent-color: var(--accent);
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.contact-form-actions .button-link {
  cursor: pointer;
}

.contact-details {
  color: var(--muted);
}

.contact-details a,
.scuba-link-card a {
  color: var(--accent);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Bubble animation ── */

.bubbles {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -24px;
  border-radius: 50%;
  border: 1px solid rgba(67, 219, 231, 0.45);
  background: rgba(67, 219, 231, 0.07);
  animation: bubble-rise var(--b-duration, 16s) var(--b-delay, 0s) infinite linear;
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: var(--b-opacity, 0.08);
  }
  80% {
    opacity: var(--b-opacity, 0.08);
  }
  100% {
    transform: translateY(-110vh) translateX(var(--b-drift, 20px));
    opacity: 0;
  }
}


/* ── Admin lock ── */

.admin-lock {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  color: var(--muted);
  opacity: 0.3;
  line-height: 0;
  transition: opacity 200ms;
}

.admin-lock:hover {
  opacity: 0.65;
}

.admin-lock svg {
  width: 18px;
  height: 18px;
}

/* ── Cave diving page ── */

/* ── Shared page hero background (cave, about) ── */

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #071017;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.page-hero-bg::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 8, 0.82), rgba(3, 6, 8, 0.22) 54%, rgba(3, 6, 8, 0.46)),
    linear-gradient(180deg, rgba(3, 6, 8, 0.06), rgba(3, 6, 8, 0.72));
  content: "";
}

/* ── Gallery hero (title overlaid on image, same pattern as cave/home) ── */

.gallery-hero.has-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #071017;
}

.gallery-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1510px, calc(100% - 72px));
  margin: 0 auto;
  padding: 100px 0 40px;
}

.gallery-hero-inner h1 {
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
}

.gallery-hero-inner p {
  max-width: 460px;
  margin-top: 18px;
  color: var(--soft);
  font-size: 1rem;
}

.cave-intro {
  width: min(860px, calc(100% - 44px));
  margin: 0 auto;
  padding: 130px 0 56px;
}

.cave-intro.has-hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.cave-intro-inner {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 44px));
  margin: 0 auto;
  padding: 130px 0 56px;
}

.cave-intro h1 {
  margin-top: 28px;
  line-height: 1.1;
}

.cave-tagline-main {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 0.02em;
  line-height: 1;
}

.cave-tagline-sub {
  display: block;
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.cave-intro-body {
  max-width: 680px;
  margin-top: 28px;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.8;
}

.cave-intro-detail {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.cave-credit {
  margin-top: 28px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cave-archive {
  border-top: 1px solid rgba(220, 241, 246, 0.08);
}

@media (max-width: 1180px) {
  .home-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 300px;
  }

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

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  .gallery-header {
    position: sticky;
  }

  .hero {
    min-height: 76vh;
    padding-top: 120px;
  }

  .home-gallery,
  .archive-heading,
  .courses-proof,
  .courses-form-section {
    grid-template-columns: 1fr;
  }

  .course-card-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 360px;
  }

  .cta-card {
    min-height: 360px;
  }

  .archive-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    gap: 22px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding: 150px 20px 78px;
  }

  .hero h1 {
    font-size: clamp(4rem, 24vw, 6.2rem);
  }

  .hero-content p {
    font-size: 1.25rem;
  }

  .button-link,
  .text-link {
    width: 100%;
  }

  .home-gallery,
  .gallery-archive {
    width: auto;
    padding-right: 20px;
    padding-left: 20px;
  }

  .feature-card {
    min-height: 300px;
  }

  .cta-card {
    min-height: 300px;
  }

  .contact-form-grid,
  .interest-list {
    grid-template-columns: 1fr;
  }

  .archive-heading h1 {
    font-size: 3.2rem;
  }

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

  .courses-hero,
  .courses-section,
  .courses-proof,
  .courses-form-section,
  .courses-scuba-link {
    width: auto;
    margin-right: 20px;
    margin-left: 20px;
  }

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

  .courses-form > label:nth-of-type(5),
  .courses-form > label:nth-of-type(6),
  .courses-form > .contact-form-actions {
    grid-column: auto;
  }

  .courses-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.4rem);
  }

}
