/* ============================================================
   Global Tech Professionals - Design System
   Sister brand of GDP Beacon - matching warm aesthetic
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors - matching GDP Beacon warm palette */
  --gtp-red: #E31B23;
  --gtp-red-dark: #C41018;
  --gtp-red-light: #FF3038;
  --gtp-black: #1A1A1A;

  /* Warm Cream Palette */
  --cream-50: #FEFDFB;
  --cream-100: #FBF8F1;
  --cream-200: #F5EDE0;
  --cream-300: #EBD9C4;
  --cream-400: #DCC5A6;

  /* Sand */
  --sand-50: #FAF7F2;
  --sand-100: #F3EDE2;
  --sand-200: #E8DCC8;
  --sand-300: #D4C4A0;
  --sand-400: #BFA97A;
  --sand-500: #9E8E70;

  /* Charcoal */
  --charcoal-50: #F5F5F4;
  --charcoal-100: #E7E5E4;
  --charcoal-200: #D6D3D1;
  --charcoal-300: #A8A29E;
  --charcoal-400: #78716C;
  --charcoal-500: #57534E;
  --charcoal-600: #44403C;
  --charcoal-700: #373330;
  --charcoal-800: #292524;
  --charcoal-900: #1C1917;
  --charcoal-950: #0F0E0D;

  /* Coral Accent */
  --coral-50: #FFF5F0;
  --coral-100: #FFE8DB;
  --coral-200: #FFCDB3;
  --coral-300: #FFA87A;
  --coral-400: #D4734C;
  --coral-500: #B85C3A;
  --coral-600: #9A4A2E;
  --coral-700: #7A3A24;

  /* Sage */
  --sage-50: #F5F7F2;
  --sage-100: #E8EDDF;
  --sage-200: #D1DBC0;
  --sage-300: #B8C9A0;
  --sage-400: #98AB80;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --critical: #E31B23;
  --info: #3B82F6;

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

  /* Shadows */
  --shadow-soft: 0 1px 3px rgba(28,25,23,0.04), 0 1px 2px rgba(28,25,23,0.06);
  --shadow-medium: 0 4px 16px rgba(28,25,23,0.06), 0 1px 3px rgba(28,25,23,0.04);
  --shadow-elevated: 0 8px 32px rgba(28,25,23,0.08), 0 2px 8px rgba(28,25,23,0.04);
  --shadow-glow-red: 0 4px 24px rgba(227,27,35,0.15);
  --shadow-glow-coral: 0 4px 24px rgba(212,115,76,0.15);

  /* Radii */
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;

  /* Transitions */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 150ms var(--ease-premium);
  --transition-base: 250ms var(--ease-premium);
  --transition-slow: 400ms var(--ease-premium);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--charcoal-900);
  background-color: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ---------- Typography Scale ---------- */
.text-display-xl {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.text-display-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.text-display-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.text-display-sm {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.text-body-lg {
  font-size: 1.125rem;
  line-height: 1.65;
}

.text-body-md {
  font-size: 1rem;
  line-height: 1.6;
}

.text-body-sm {
  font-size: 0.875rem;
  line-height: 1.55;
}

.text-caption {
  font-size: 0.8125rem;
  line-height: 1.45;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gtp-red), var(--gtp-black));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

/* ---------- Grid System ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

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

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

/* ---------- Flexbox Utilities ---------- */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--gtp-black);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--charcoal-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-accent {
  background: var(--gtp-red);
  color: white;
  box-shadow: var(--shadow-glow-red);
}

.btn-accent:hover {
  background: var(--gtp-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(227,27,35,0.25);
}

.btn-secondary {
  background: white;
  color: var(--charcoal-900);
  border: 1.5px solid var(--charcoal-200);
}

.btn-secondary:hover {
  border-color: var(--charcoal-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal-700);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background: var(--cream-100);
  color: var(--charcoal-900);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* ---------- Cards ---------- */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--cream-200);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-medium);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.card-dark {
  background: var(--charcoal-900);
  color: white;
  border-color: var(--charcoal-700);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.badge-red {
  background: rgba(227,27,35,0.08);
  color: var(--gtp-red);
  border: 1px solid rgba(227,27,35,0.15);
}

.badge-success {
  background: rgba(16,185,129,0.08);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.15);
}

.badge-info {
  background: rgba(59,130,246,0.08);
  color: #2563EB;
  border: 1px solid rgba(59,130,246,0.15);
}

.badge-warning {
  background: rgba(245,158,11,0.08);
  color: #B45309;
  border: 1px solid rgba(245,158,11,0.15);
}

/* ---------- Icon Wrappers ---------- */
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.icon-circle-red {
  background: rgba(227,27,35,0.08);
  color: var(--gtp-red);
}

.icon-circle-coral {
  background: var(--coral-50);
  color: var(--coral-500);
}

.icon-circle-sage {
  background: var(--sage-50);
  color: #5B8A5F;
}

.icon-circle-info {
  background: rgba(59,130,246,0.08);
  color: var(--info);
}

.icon-circle-dark {
  background: var(--charcoal-900);
  color: white;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-in {
  animation: fadeIn 0.6s var(--ease-premium) forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--ease-premium) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s var(--ease-premium) forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--charcoal-300);
  border-radius: 3px;
}

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

/* ---------- Selection ---------- */
::selection {
  background: rgba(227,27,35,0.12);
  color: var(--charcoal-900);
}

/* ---------- Focus States ---------- */
:focus-visible {
  outline: 2px solid var(--gtp-red);
  outline-offset: 2px;
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--charcoal-400); }
.text-subtle { color: var(--charcoal-500); }
.text-white { color: white; }
.text-red { color: var(--gtp-red); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.bg-cream { background: var(--cream-50); }
.bg-sand { background: var(--sand-50); }
.bg-white { background: white; }
.bg-dark { background: var(--charcoal-950); color: white; }
.bg-charcoal { background: var(--charcoal-900); color: white; }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: 9999px; }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }

.w-full { width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--cream-200);
  border: none;
  margin: 2rem 0;
}

/* ---------- Form Elements ---------- */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--charcoal-200);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--charcoal-900);
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--gtp-red);
  box-shadow: 0 0 0 3px rgba(227,27,35,0.1);
}

.input::placeholder {
  color: var(--charcoal-300);
}

textarea.input {
  resize: vertical;
  min-height: 120px;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal-700);
  margin-bottom: 0.375rem;
}

/* ---------- Media Queries ---------- */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .section-lg { padding: 5rem 0; }
  .hide-mobile { display: none; }
  .container { padding: 0 1rem; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none; }
}
