/* ============================================
   THE DIVE SHOP — Global Styles
   Ocean & Bold aesthetic
   ============================================ */

/* --- CSS Reset & Variables --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --navy-deep: #070E1A;
  --navy: #0A1628;
  --navy-mid: #0F2138;
  --navy-light: #162D4A;
  --navy-lighter: #1E3A5F;

  /* Accent */
  --teal: #00D4AA;
  --teal-glow: #00FFCCaa;
  --cyan: #0EA5E9;
  --cyan-light: #38BDF8;

  /* Text */
  --white: #F5F5F5;
  --white-soft: #E0E7EF;
  --gray: #8899AA;
  --gray-light: #A0B0C0;

  /* Functional */
  --danger: #FF4D6A;
  --success: #00D4AA;
  --glass-bg: rgba(15, 33, 56, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 212, 170, 0.25);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 350ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.15);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --banner-height: 40px;
}

@media (max-width: 600px) {
  :root { --banner-height: 56px; }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--navy-deep);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cyan-light);
}

strong { color: var(--white); }

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-gray { color: var(--gray); }

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

/* --- Animated gradient line --- */
.gradient-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  border-radius: 2px;
  margin: var(--space-sm) 0 var(--space-md);
}

.gradient-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Section header pattern --- */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header .label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-xs);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header p {
  max-width: 560px;
  font-size: 1.1rem;
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Backgrounds --- */
.bg-navy { background-color: var(--navy); }
.bg-navy-deep { background-color: var(--navy-deep); }
.bg-navy-mid { background-color: var(--navy-mid); }

/* Subtle wave texture overlay */
.wave-bg {
  position: relative;
}

.wave-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 170, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wave-bg > * {
  position: relative;
  z-index: 1;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-lighter);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* --- Selection --- */
::selection {
  background: rgba(0, 212, 170, 0.3);
  color: var(--white);
}

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

/* --- Focus styles --- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* --- Loading skeleton --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--navy-mid) 25%, var(--navy-light) 50%, var(--navy-mid) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
