/* Infinity2Diving — Light SaaS design system (diveshop360-inspired).
   Tokens, resets, typography. */

:root {
  /* Brand */
  --navy: #0e333c;
  --navy-deep: #01313d;
  --navy-700: #1a4651;
  --navy-600: #2b5b67;
  --navy-100: #d6e3e6;

  --blue: #1BA9E1;
  --blue-hover: #138fc0;
  --blue-50: #e8f7fd;
  --blue-soft: #c9edf9;

  /* Neutrals */
  --bg: #f5f7f9;
  --bg-soft: #fafbfc;
  --surface: #ffffff;
  --border: #e5e7ea;
  --border-soft: #eef0f3;
  --line: #d9dee2;
  --text: #0e333c;
  --text-muted: #5a6b73;
  --text-soft: #8896a0;

  /* Status */
  --green: #10b981;
  --green-50: #ecfdf5;
  --amber: #f59e0b;
  --amber-50: #fffbeb;
  --red: #ef4444;
  --red-50: #fef2f2;
  --grey: #cbd2d6;

  /* Cert agency tints */
  --padi: #1BA9E1;
  --padi-bg: #e8f7fd;
  --ssi: #d83a3a;
  --ssi-bg: #fee9e9;
  --tdi: #0e7c8e;
  --tdi-bg: #def4f7;
  --sdi: #b07700;
  --sdi-bg: #fef2db;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(14,51,60,0.05);
  --shadow-sm: 0 1px 2px rgba(14,51,60,0.06), 0 1px 3px rgba(14,51,60,0.04);
  --shadow-md: 0 4px 12px rgba(14,51,60,0.06), 0 2px 4px rgba(14,51,60,0.04);
  --shadow-lg: 0 12px 32px rgba(14,51,60,0.08), 0 4px 12px rgba(14,51,60,0.04);
  --shadow-blue: 0 6px 20px rgba(27,169,225,0.25);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 24px;

  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'JetBrains Mono', monospace;
  --font-serif: 'Playfair Display', Georgia, serif;

  --header-h: 64px;
  --sidebar-w: 252px;
  --tap-target: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button, [role="button"], a, input, select, textarea { touch-action: manipulation; }
input, select, textarea {
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
select, textarea { max-width: 100%; }
textarea { resize: vertical; }
img { max-width: 100%; }
table { max-width: 100%; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,169,225,0.12);
}
input::placeholder, textarea::placeholder { color: var(--text-soft); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h3 { font-size: 1.05rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--blue);
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(14,51,60,0.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(14,51,60,0.24); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .4s ease both; }
