/* =========================================
   TELEOCEAN — Main Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=Space+Mono:wght@400;700&display=swap');

/* ── CSS Variables ── */
:root {
  --space:       #020B18;
  --abyss:       #030F22;
  --deep:        #041E42;
  --mid:         #0A3060;
  --ocean:       #0D47A1;
  --sky:         #1565C0;
  --signal:      #00D4FF;
  --signal-dim:  #0099BB;
  --accent:      #FF6B35;
  --white:       #F0F8FF;
  --muted:       #8BAAC8;
  --border:      rgba(0,212,255,0.15);
  --glass:       rgba(4,30,66,0.7);

  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --nav-h: 72px;
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--abyss);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(2,11,24,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo span { color: var(--signal); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(0,212,255,0.08); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 200px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  /* padding-top bridges the gap so mouse can travel from link to dropdown */
  padding: 12px 8px 8px;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
/* Invisible bridge fills gap between nav-link and dropdown */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown a:hover { color: var(--signal); background: rgba(0,212,255,0.08); }
.nav-dropdown a + a { border-top: 1px solid var(--border); }

/* Crew Portal CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--signal);
  color: var(--space) !important;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover {
  background: #33DDFF;
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}
.nav-cta svg { width: 16px; height: 16px; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ── Page Wrapper ── */
.page-content { padding-top: var(--nav-h); }

/* ── Section Helpers ── */
.section {
  padding: 96px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-sm { padding: 64px 32px; }
.section-full { padding: 96px 32px; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--signal);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.section-title em { color: var(--signal); font-style: normal; }
.section-body {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.75;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--signal);
  color: var(--space);
}
.btn-primary:hover {
  background: #33DDFF;
  box-shadow: 0 0 24px rgba(0,212,255,0.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(0,212,255,0.06);
}

/* ── Cards ── */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,212,255,0.08);
  transform: translateY(-3px);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border-radius: 2px;
}
.badge-signal { background: rgba(0,212,255,0.12); color: var(--signal); border: 1px solid var(--border); }
.badge-accent { background: rgba(255,107,53,0.12); color: var(--accent); border: 1px solid rgba(255,107,53,0.2); }

/* ── Footer ── */
.footer {
  background: var(--space);
  border-top: 1px solid var(--border);
  padding: 64px 32px 32px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-brand .logo-text span { color: var(--signal); }
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--signal); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--signal); }

/* ── Qualifications bar ── */
.qual-bar {
  background: var(--mid);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.qual-item { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.qual-item strong { color: var(--signal); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--abyss);
    padding: 24px;
    overflow-y: auto;
  }
  .nav-menu.open .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    padding-left: 16px;
  }
  .section { padding: 64px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Inner page hero ── */
.page-hero {
  background: linear-gradient(180deg, var(--deep) 0%, var(--abyss) 100%);
  padding: 80px 32px 64px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .section-label { margin: 0 auto 16px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
