/* ═══════════════════════════════════════════════════════════
   ONYXTA GLOBAL — Design System
   Light, sharp, minimal, premium
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (Brand Tokens) ── */
:root {
  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --blue-tint: #EEEEEE;

  /* Text */
  --ink: #273338;
  --text-muted: #667085;
  --text-on-primary: #FFFFFF;

  /* Accents */
  --primary: #2B5748;
  --primary-hover: #273338;
  --cyan: #38BDF8;
  --mint: #14B8A6;
  --lime: #A3E635;

  /* Borders & Surfaces */
  --border: #E5E7EB;
  --border-hover: #D1D5DB;

  /* Card System */
  --radius-card: 22px;
  --radius-btn: 100px;
  --radius-input: 12px;
  --shadow-soft: 0 18px 50px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 24px 60px rgba(16, 24, 40, 0.10);
  --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.04);

  /* Typography */
  --font-heading: var(--font-montserrat), 'Montserrat', sans-serif;
  --font-body: var(--font-inter), 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  color: var(--text-muted);
  max-width: 680px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-hover);
}

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

ul, ol {
  list-style: none;
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Section ── */
.section {
  padding: var(--section-padding) 0;
}

.section--soft {
  background-color: var(--bg-soft);
}

.section--tint {
  background-color: var(--blue-tint);
}

/* ── Section Label ── */
.sectionLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.sectionLabel::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--text-on-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn--secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  padding: 14px 16px;
}

.btn--ghost:hover {
  color: var(--primary-hover);
}

/* ── Cards ── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ── Icon Container ── */
.iconWrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  border-radius: 14px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.card:hover .iconWrap {
  background: var(--primary);
  color: var(--text-on-primary);
}

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.30s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Form Elements ── */
.formGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.formLabel {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.formLabel span {
  color: var(--text-muted);
  font-weight: 400;
}

.formInput,
.formSelect,
.formTextarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
  width: 100%;
}

.formInput:focus,
.formSelect:focus,
.formTextarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.formInput::placeholder,
.formTextarea::placeholder {
  color: #94A3B8;
}

.formTextarea {
  resize: vertical;
  min-height: 140px;
}

.formSelect {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23667085' viewBox='0 0 16 16'%3E%3Cpath d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 56px;
  }
}
