/* ============================================================
   ServeLynx Theme — main.css
   Design tokens, resets, typography, layout utilities
   ============================================================ */

/* ── Google Fonts imported via functions.php ── */

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --navy-950: #060E1A;
  --navy-900: #0D1B2A;
  --navy-800: #132238;
  --navy-700: #1A3050;
  --navy-600: #1E3A5F;
  --blue-700: #0D47A1;
  --blue-600: #1565C0;
  --blue-500: #1E88E5;
  --blue-400: #42A5F5;
  --electric: #29B6F6;
  --electric-light: #81D4FA;
  --cyan-glow: rgba(41, 182, 246, 0.15);
  --text-1: #FFFFFF;
  --text-2: #CBD5E1;
  --text-3: #64748B;
  --text-4: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --border-blue: rgba(41, 182, 246, 0.25);
  --surface-glass: rgba(13, 27, 42, 0.7);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #060E1A 0%, #0D47A1 55%, #1565C0 80%, #29B6F6 100%);
  --gradient-card: linear-gradient(135deg, #132238 0%, #1A3050 100%);
  --gradient-blue: linear-gradient(135deg, #1565C0 0%, #29B6F6 100%);
  --gradient-text: linear-gradient(90deg, #FFFFFF 0%, #29B6F6 100%);

  /* Spacing */
  --section-py: 100px;
  --section-py-sm: 60px;
  --container-max: 1200px;
  --container-px: 24px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 48px rgba(41, 182, 246, 0.2);
  --shadow-glow: 0 0 40px rgba(41, 182, 246, 0.25);
  --shadow-btn: 0 4px 20px rgba(21, 101, 192, 0.5);
  --shadow-btn-hover: 0 8px 32px rgba(41, 182, 246, 0.5);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Z-index layers */
  --z-base: 0;
  --z-raised: 10;
  --z-nav: 100;
  --z-modal: 200;
  --z-toast: 300;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--navy-950);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  line-height: 1.7;
  color: var(--text-2);
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section--sm {
  padding-top: var(--section-py-sm);
  padding-bottom: var(--section-py-sm);
}

.section--dark { background-color: var(--navy-900); }
.section--darker { background-color: var(--navy-950); }
.section--card { background-color: var(--navy-800); }

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ── Section Labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--electric);
  background: rgba(41, 182, 246, 0.1);
  border: 1px solid rgba(41, 182, 246, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric);
  animation: pulse-dot 2s ease-in-out infinite;
}

.section-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 16px;
}

.section-heading span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtext {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Gradient Text ── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
    --container-px: 32px;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-py: 60px;
    --container-px: 20px;
  }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}
