@import "tailwindcss";

/* ============================================================
   GVSB design tokens - SPEC-V2 §0 (example-mimic restyle)
   Navy hero/CTA/footer (#0B1638), blue-600 accent (#2563EB),
   alternating white / #F8FAFC sections, 16px cards, 999px pills.
   Fonts: Space Grotesk (display) + Manrope (body). No em-dashes.
   ============================================================ */

:root {
  --brand-deep: #040073;
  --ink: #0b1b33;
  --ink-soft: #41536e;
  --navy: #0b1638;
  --navy-2: #172554;
  --accent: #2563eb;
  --accent-soft: #60a5fa;
  --accent-deep: #0a3a9e;
  --paper: #ffffff;
  --surface: #f8fafc;
  --line: #e2e8f0;
  --sky: #dbeafe;
  --error: #d92d20;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

@theme inline {
  --color-brand-deep: var(--brand-deep);
  --color-paper: var(--paper);
  --color-surface: var(--surface);
  --color-ink: var(--ink);
  --color-ink-soft: var(--ink-soft);
  --color-line: var(--line);
  --color-accent: var(--accent);
  --color-accent-soft: var(--accent-soft);
  --color-accent-deep: var(--accent-deep);
  --color-navy: var(--navy);
  --color-navy-2: var(--navy-2);
  --color-sky: var(--sky);
  --color-error: var(--error);
  --font-sans: var(--font-manrope), ui-sans-serif, system-ui, sans-serif;
  --font-display: var(--font-space), var(--font-manrope), ui-sans-serif,
    system-ui, sans-serif;
  --radius-chip: 4px;
  --radius-card: 16px;
}

@layer base {
  html {
    scroll-behavior: auto;
    scroll-padding-top: 96px;
  }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
  }
  ::selection {
    background: var(--accent);
    color: #fff;
  }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }
}

/* ---------------- layout rhythm ---------------- */

.section {
  padding-block: 6rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 8rem;
  }
}
@media (min-width: 1024px) {
  .section {
    padding-block: 10rem;
  }
}

.container-gv {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container-gv {
    padding-inline: 2rem;
  }
}

.section-head {
  margin-bottom: 3.5rem;
}

/* ---------------- type ---------------- */

/* Eyebrow per example signature: inline-block text-sm font-semibold
   tracking-widest uppercase mb-4 text-accent. Use sparingly (max 1 per 3 sections). */
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-dark {
  color: #fff;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.625rem 1rem 0.625rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease-spring),
    color 0.3s var(--ease-spring),
    border-color 0.3s var(--ease-spring),
    transform 0.2s var(--ease-spring);
}
.btn:active {
  transform: scale(0.98);
}
.btn-sm {
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-soft);
  background: var(--surface);
}

.btn-dark {
  background: #fff;
  color: var(--navy);
}
.btn-dark:hover {
  background: var(--sky);
}

/* Secondary hero CTA: white pill, blue-800 text (example signature). */
.btn-white {
  background: #fff;
  color: #1e40af;
  box-shadow: 0 8px 30px rgba(4, 0, 115, 0.25);
}
.btn-white:hover {
  background: var(--sky);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  flex-shrink: 0;
  transition:
    transform 0.3s var(--ease-spring),
    background-color 0.3s var(--ease-spring);
}
.btn:hover .btn-arrow {
  transform: translate(2px, -1px) scale(1.06);
}
.btn-ghost .btn-arrow {
  background: var(--sky);
}
.btn-ghost:hover .btn-arrow {
  background: var(--accent);
  color: #fff;
}
.btn-dark .btn-arrow {
  background: rgba(11, 27, 51, 0.08);
}

.btn-arrow .ph {
  width: 14px;
  height: 14px;
}

/* ---------------- text link with arrow ---------------- */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-bottom: 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-spring);
}
.link-arrow:hover::after {
  transform: scaleX(1);
}
.link-arrow .ph {
  transition: transform 0.3s var(--ease-spring);
}
.link-arrow:hover .ph {
  transform: translate(2px, -2px);
}

.link-arrow-dark {
  color: #fff;
}

/* ---------------- media frames ---------------- */

.media-frame {
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(11, 27, 51, 0.06),
    0 24px 48px -24px rgba(11, 27, 51, 0.2);
}

/* ---------------- card hover lift ---------------- */

.card-lift {
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-spring),
    border-color 0.3s var(--ease-spring);
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(11, 27, 51, 0.18);
}

/* ---------------- modal motion ---------------- */

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-enter {
  animation: modal-in 0.35s var(--ease-spring) both;
}
.overlay-enter {
  animation: overlay-in 0.25s ease-out both;
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .modal-enter,
  .overlay-enter {
    animation: none;
  }
}
