/* ===== CUSTOM CSS — Alveris IT ===== */
/* Only styles that cannot be expressed cleanly with Tailwind utilities */

/* ----- Base ----- */
:root {
  --navy:        #0B1F3A;
  --navy-dark:   #061325;
  --teal:        #14B8B8;
  --teal-light:  #5DD5D5;
  --warm-white:  #FAFAF7;
  --surface:     #F1F2F4;
  --border:      #E2E4E8;
  --text-primary: #0B1F3A;
  --text-secondary: #4A5568;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--warm-white);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Focus states (WCAG 2.1 AA) ----- */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--surface);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A0AEC0;
}

/* ----- Navigation ----- */
#main-nav {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

#main-nav.scrolled {
  box-shadow: 0 1px 12px rgba(11, 31, 58, 0.10);
  background-color: rgba(250, 250, 247, 0.97);
  backdrop-filter: blur(8px);
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* Hamburger icon lines */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

#nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
#nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ----- GSAP animation base states ----- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
}

.fade-in {
  opacity: 0;
}

/* ----- Hero gradient background ----- */
.hero-bg {
  background: linear-gradient(135deg, var(--navy) 0%, #0F2D52 60%, #0B2A4A 100%);
}

/* Subtle grid pattern overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 184, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ----- Service cards ----- */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.12);
}

/* ----- Teal gradient text ----- */
.text-gradient {
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- Process step connector line ----- */
.process-steps {
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 767px) {
  .process-steps::before {
    display: none;
  }
}

/* ----- Section divider accent ----- */
.section-accent {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  border-radius: 2px;
}

/* ----- CTA section background ----- */
.cta-bg {
  background: linear-gradient(135deg, var(--navy) 0%, #0F2D52 100%);
}

/* ----- Form focus styles ----- */
.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 184, 0.15);
}

/* ----- Teal button ----- */
.btn-teal {
  background-color: var(--teal);
  color: white;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-teal:hover {
  background-color: #119898;
  box-shadow: 0 6px 20px rgba(20, 184, 184, 0.35);
  transform: translateY(-1px);
}

.btn-teal:active {
  transform: translateY(0);
}

/* ----- Outline navy button ----- */
.btn-outline-navy {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: white;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-outline-navy:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.08);
}

/* ----- Stat cards ----- */
.stat-card {
  border-top: 3px solid var(--teal);
}

/* ----- Tag/badge ----- */
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ----- About page timeline dot ----- */
.value-card {
  border-left: 3px solid var(--teal);
  transition: box-shadow 0.2s ease;
}

.value-card:hover {
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.08);
}

/* ----- Services page anchor offset (sticky nav) ----- */
.anchor-offset {
  scroll-margin-top: 88px;
}

/* ----- Offering checklist ----- */
.offering-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}

.offering-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314B8B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ----- Contact page ----- */
.contact-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  box-shadow: 0 6px 24px rgba(11, 31, 58, 0.09);
  transform: translateY(-2px);
}

/* ----- Reduced motion overrides ----- */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .service-card:hover,
  .btn-teal:hover,
  .contact-card:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
