/* ================================================================
   Accure Canada - Static Website Styles
   Design System converted from React/Tailwind
   ================================================================ */

/* ================================================================
   CSS Variables - Design System
   ================================================================ */
:root {
  /* Professional Color Palette - Navy, Slate, Gold */
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(215, 25%, 18%);
  
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 25%, 18%);
  
  --primary: hsl(215, 60%, 25%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-light: hsl(215, 55%, 40%);
  --primary-dark: hsl(215, 70%, 15%);
  
  --secondary: hsl(210, 30%, 92%);
  --secondary-foreground: hsl(215, 60%, 25%);
  
  --accent: hsl(35, 85%, 55%);
  --accent-foreground: hsl(215, 70%, 15%);
  --accent-hover: hsl(35, 85%, 48%);
  
  --muted: hsl(210, 25%, 95%);
  --muted-foreground: hsl(215, 15%, 50%);
  
  --border: hsl(210, 20%, 88%);
  --input: hsl(210, 20%, 88%);
  --ring: hsl(215, 60%, 25%);
  
  --radius: 0.75rem;
  
  /* Enhanced Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 40px -8px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 2px 12px rgba(33, 51, 77, 0.1);
  --shadow-card-hover: 0 12px 32px rgba(33, 51, 77, 0.18);
  
  /* Smooth Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elegant: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(215, 60%, 25%), hsl(215, 55%, 40%));
  --gradient-accent: linear-gradient(135deg, hsl(35, 85%, 55%), hsl(35, 85%, 48%));
  --gradient-overlay: linear-gradient(135deg, rgba(33, 51, 77, 0.95), rgba(33, 51, 77, 0.85));
}

/* ================================================================
   Reset & Base Styles
   ================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

html { overflow-x: hidden; }
body { overflow-wrap: break-word; }
iframe, video, canvas, svg { max-width: 100%; }
table { width: 100%; }

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

/* ================================================================
   Layout Utilities
   ================================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.w-full {
  width: 100%;
}

/* ================================================================
   Header Styles
   ================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link,
.nav-links a,
.nav-desktop a:not(.btn-cta) {
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-link::after,
.nav-links a::after,
.nav-desktop a:not(.btn-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.nav-link:hover,
.nav-links a:hover,
.nav-desktop a:not(.btn-cta):hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-links a:hover::after,
.nav-desktop a:not(.btn-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .nav-link:hover {
  background: var(--muted);
}

.btn-cta {
  background: var(--gradient-accent);
  color: var(--accent-foreground);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(222, 142, 42, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(222, 142, 42, 0.4);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.mobile-menu a:hover {
  background: var(--muted);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .nav-desktop {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* ================================================================
   Hero Section
   ================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  padding: 4.5rem 0;
  min-height: 480px;
}

.hero-home {
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  will-change: transform;
}

.hero-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Particles container */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--primary-foreground);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0;
  }
  .hero h1 {
    font-size: 3.75rem;
  }
}

/* ================================================================
   Button Styles
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

/* ================================================================
   Section Styles (tighter spacing)
   ================================================================ */
section {
  padding: 2rem 0;
}

.section-muted {
  background: var(--muted);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

/* ================================================================
   Stats Section
   ================================================================ */
.stats-section {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

/* ================================================================
   Card Styles
   ================================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

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

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(220, 85%, 28%, 0.1);
  color: var(--primary);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.card:hover .card-icon {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ================================================================
   Form Styles
   ================================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 0.25rem);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsl(220, 85%, 28%, 0.2);
}

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

/* ================================================================
   Footer Styles
   ================================================================ */
.footer {
  background: var(--muted);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.8;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
}

.mb-1 { margin-bottom: 0.25rem; }
.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; }
.mb-12 { margin-bottom: 3rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.hidden {
  display: none;
}

.flex {
  display: flex;
}

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

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* ================================================================
   Animations
   ================================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* ================================================================
   Badge Styles
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}

/* ================================================================
   Social Share Styles
   ================================================================ */
.social-share {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--muted);
  border-radius: var(--radius);
}

.social-share-label {
  font-weight: 600;
  color: var(--foreground);
  margin-right: 0.5rem;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background);
  color: var(--foreground);
  transition: var(--transition-smooth);
  border: 1px solid var(--border);
  cursor: pointer;
}

.social-share-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-share-btn i {
  font-size: 1.125rem;
}

/* LinkedIn specific */
.social-share-btn.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
}

/* Twitter specific */
.social-share-btn.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
}

/* Facebook specific */
.social-share-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

/* Email specific */
.social-share-btn.email:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ================================================================
   Footer Content/Grid Styles Fix
   ================================================================ */
.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ================================================================
   Scroll to Top Button
   ================================================================ */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  color: var(--accent-foreground);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 999;
  font-size: 1.25rem;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* ================================================================
   Form Styles
   ================================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--foreground);
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  background: var(--background);
  transition: var(--transition-smooth);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

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

.form-error {
  display: none;
  color: var(--destructive);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ================================================================
   Calendly Widget Responsive Styles
   ================================================================ */
@media (max-width: 768px) {
  .calendly-inline-widget {
    height: 600px !important;
  }
}

/* Site-wide safeguards for long-form blog and career pages */
@media (max-width: 1023px) {
  .header { z-index: 1000; }
  .header-content { min-height: 70px; padding: .75rem 0; }
  .header-content .logo { flex: 0 1 auto; min-width: 0; }
  .header-content .logo img { width: min(190px, calc(100vw - 88px)); height: auto; }
  .nav-mobile { position: fixed; top: 70px; right: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 999; padding-bottom: 2rem; }
  .nav-mobile .btn-cta { margin: 1rem 1.5rem; justify-content: center; }
}

@media (max-width: 620px) {
  .container { padding-inline: 1rem; }
  .section { padding-block: 3rem; }
  h1 { font-size: clamp(2rem, 10vw, 2.75rem); line-height: 1.12; }
  h2 { font-size: clamp(1.55rem, 7vw, 2.1rem); line-height: 1.2; }
  .card { padding: 1.25rem; }
  .footer-content { grid-template-columns: 1fr; }
  input, select, textarea, button, .btn { max-width: 100%; }
  [style*="max-width: 900px"] { width: 100%; }
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
  [style*="display: flex"][style*="justify-content: space-between"] { align-items: flex-start !important; gap: .75rem !important; flex-wrap: wrap !important; }
  pre, code { white-space: pre-wrap; word-break: break-word; }
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}


/* ================================================================
   GSAP Animation Classes - Always Visible (no hidden gaps)
   ================================================================ */
.gsap-fade-in,
.gsap-slide-left,
.gsap-slide-right,
.gsap-scale-up,
.gsap-stagger-item {
  opacity: 1;
}

/* When GSAP is active, it will animate elements via inline styles,
   but we never fully hide sections in CSS to avoid empty white space. */
.gsap-active .gsap-fade-in,
.gsap-active .gsap-slide-left,
.gsap-active .gsap-slide-right,
.gsap-active .gsap-scale-up,
.gsap-active .gsap-stagger-item {
  opacity: 1;
  transform: none;
}


/* ================================================================
   Barba.js Page Transitions
   ================================================================ */
[data-barba="wrapper"] {
  position: relative;
}

[data-barba="container"] {
  min-height: 100vh;
}

/* Page transition fade effect */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.3s ease-in-out;
}

.barba-leave-to {
  opacity: 0;
}

.barba-enter {
  opacity: 0;
}

.barba-enter-to {
  opacity: 1;
}

