/* ==========================================================================
   075 · DEEP BLUE (العمق الأزرق) — 1:1 Abyssal Navy + Warm Sand Contrast & Refractive Bubbles
   #061424 abyssal ocean · #F3EFE6 warm sand courses band · #4EF2C5 mint-aqua & #FF7A50 coral
   ========================================================================== */

:root {
  --db-navy: #061424;
  --db-navy-deep: #040D18;
  --db-sand: #F3EFE6;
  --db-mint: #4EF2C5;
  --db-coral: #FF7A50;
  --db-ink: #FFFFFF;
  --db-muted: rgba(255, 255, 255, 0.68);
  --db-line: rgba(255, 255, 255, 0.12);
  --db-sans: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --db-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--db-navy);
  color: var(--db-ink);
  font-family: var(--db-sans);
  letter-spacing: 0;
}

body {
  background: var(--db-navy);
  color: var(--db-ink);
  font-family: var(--db-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
  letter-spacing: 0;
}

/* ======================== STICKY ABYSSAL HEADER + LIVE DEPTH BADGE ======================== */
.db-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 70px;
  background: rgba(6, 20, 36, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--db-line);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.db-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.db-bubble-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--db-mint);
  box-shadow: inset 0 0 8px rgba(78, 242, 197, 0.45);
}

.db-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.db-nav a:hover {
  color: var(--db-mint);
}

.db-header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.db-depth-badge {
  position: relative;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--db-line);
  font-family: var(--db-mono);
  font-size: 12.5px;
  color: var(--db-mint);
  overflow: hidden;
}

.db-depth-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 10%;
  background: var(--db-mint);
}

.db-btn-coral {
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  background: var(--db-coral);
  color: #140804;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.db-btn-coral:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.db-btn-outline {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(6, 20, 36, 0.55);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
}

/* ======================== 1. VIEWFINDER HERO ======================== */
.db-hero {
  position: relative;
  min-height: calc(100dvh - 70px);
  padding: 42px 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--db-line);
  isolation: isolate;
}

.db-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.db-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
}

#db-bubble-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.db-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 20, 36, 0.35) 0%, rgba(6, 20, 36, 0.2) 50%, rgba(6, 20, 36, 0.9) 100%);
  pointer-events: none;
}

/* 4 Corner Viewfinder L-Brackets */
.db-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 255, 255, 0.45);
  border-style: solid;
  pointer-events: none;
}
.db-c-tr { top: 18px; right: 18px; border-width: 1px 1px 0 0; }
.db-c-tl { top: 18px; left: 18px; border-width: 1px 0 0 1px; }
.db-c-br { bottom: 18px; right: 18px; border-width: 0 1px 1px 0; }
.db-c-bl { bottom: 18px; left: 18px; border-width: 0 0 1px 1px; }

/* Vertical Depth Ruler */
.db-depth-ruler {
  position: absolute;
  top: 50%;
  inset-inline-end: 26px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--db-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 5;
}

.db-depth-ruler span.is-active {
  color: var(--db-mint);
  font-weight: 700;
}

.db-hero-main {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.db-pill-tag {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(6, 20, 36, 0.72);
  border: 1px solid var(--db-line);
  font-size: 12px;
  color: var(--db-mint);
}

.db-h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.14;
}

.db-h1-mint {
  display: block;
  font-weight: 300;
  color: var(--db-mint);
}

.db-telemetry-4col {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
  padding: 14px 22px;
  border-radius: 12px;
  background: rgba(6, 20, 36, 0.74);
  backdrop-filter: blur(10px);
  border: 1px solid var(--db-line);
}

.db-tel-item span {
  display: block;
  font-family: var(--db-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.52);
}

.db-tel-item strong {
  font-size: 14.5px;
  color: #FFFFFF;
}

.db-cam-bar {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 14px;
  border-top: 1px solid var(--db-line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--db-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
}

/* ======================== 2. STATS & REEF SPLIT ======================== */
.db-sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 28px;
  border-bottom: 1px solid var(--db-line);
}

.db-split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.db-stats-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.db-mint-stat {
  font-size: 36px;
  font-weight: 700;
  color: var(--db-mint);
  display: block;
}

.db-plate-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--db-line);
  position: relative;
}

.db-plate-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ======================== 3. WARM SAND CONTRAST BAND (01 — COURSES) ======================== */
.db-sand-band {
  background: var(--db-sand);
  color: #0D1E2E;
  padding: 92px 28px;
}

.db-sand-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.db-filter-row {
  margin: 22px 0 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.db-cert-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(13, 30, 46, 0.2);
  background: #FFFFFF;
  color: #0D1E2E;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.db-cert-btn.is-active {
  background: #061424;
  color: var(--db-mint);
  border-color: #061424;
}

.db-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.db-course-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 2px solid #E2DDD2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(6, 20, 36, 0.06);
  transition: opacity 0.25s ease, filter 0.25s ease, border-color 0.25s ease;
}

.db-course-card.is-eligible {
  border-color: #0EA5E9;
}

.db-course-card.is-dimmed {
  opacity: 0.56;
  filter: grayscale(0.8);
}

.db-course-top {
  position: relative;
  height: 170px;
  background: #0A2239;
  overflow: hidden;
}

.db-course-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-depth-pill {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 20, 36, 0.85);
  color: var(--db-mint);
  font-family: var(--db-mono);
  font-size: 11px;
}

.db-status-ribbon {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 6px 12px;
  background: rgba(6, 20, 36, 0.88);
  color: #FFFFFF;
  font-size: 12px;
  text-align: center;
}

.db-course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* ======================== 4. LIVEABOARD DEPARTURES & 10-DOT METER ======================== */
.db-dep-row {
  padding: 20px 14px;
  border-bottom: 1px solid var(--db-line);
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 18px;
}

.db-berth-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.db-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.db-dot.is-open {
  background: var(--db-mint);
  box-shadow: 0 0 8px rgba(78, 242, 197, 0.6);
}

/* ======================== 5. CREW, FAQ & FOOTER ======================== */
.db-faq-item {
  border-bottom: 1px solid var(--db-line);
  padding: 18px 0;
}

.db-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  text-align: start;
}

.db-faq-a {
  display: none;
  padding-top: 10px;
  font-size: 14px;
  color: var(--db-muted);
}

.db-faq-item.is-open .db-faq-a {
  display: block;
}

.db-footer {
  background: var(--db-navy-deep);
  padding: 72px 28px 40px;
}

.db-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.db-footer-4col {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  font-size: 13.5px;
  color: var(--db-muted);
}

.db-giant-fade {
  margin: 40px 0 24px;
  text-align: center;
  font-family: var(--db-mono);
  font-size: clamp(3.2rem, 10vw, 8.2rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, rgba(78, 242, 197, 0.42) 0%, rgba(4, 13, 24, 0.04) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.db-showcase-bar {
  padding-top: 20px;
  border-top: 1px solid var(--db-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--db-muted);
}

@media (max-width: 720px) {
  .db-nav,
  .db-depth-ruler {
    display: none;
  }
  .db-telemetry-4col,
  .db-split-2,
  .db-courses-grid,
  .db-dep-row,
  .db-footer-4col {
    grid-template-columns: 1fr;
  }
}
