/**
 * Custom Styles
 * This file contains project-specific styles.
 * Bootstrap utilities are preferred; use custom CSS sparingly.
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   Modern shadcn-inspired design system
   ============================================ */

@import url("header.css");
@import url("footer.css");

:root {
  /* Colors - shadcn inspired palette */
  --custom-accent: #6366f1;
  --custom-accent-light: #818cf8;
  --custom-accent-dark: #4f46e5;

  /* Brand colors */
  --brand-color: #e57818;
  --brand-color-rgb: 229 120 24;
  --brand-color-dark: #d77116;
  --brand-color-darker: #c86913;
  --brand-blue-color: #273272;
  --brand-blue-color-rgb: 39 50 114;
  --brand-bg-light: rgb(var(--brand-blue-color-rgb) / 5%);

  /* Neutral colors */
  --color-background: #fff;
  --color-foreground: #09090b;
  --color-muted: #f4f4f5;
  --color-muted-foreground: #71717a;
  --color-border: #e4e4e7;

  /* Animation durations */
  --animation-duration-fast: 200ms;
  --animation-duration-normal: 400ms;
  --animation-duration-slow: 600ms;

  /* Shadows - softer, more subtle */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -1px rgb(0 0 0 / 6%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 10px 10px -5px rgb(0 0 0 / 4%);

  /* Spacing - Tailwind-like scale */
  --spacing-xs: 0.5rem; /* 8px */
  --spacing-sm: 0.75rem; /* 12px */
  --spacing-md: 1rem; /* 16px */
  --spacing-lg: 1.5rem; /* 24px */
  --spacing-xl: 2rem; /* 32px */
  --spacing-2xl: 3rem; /* 48px */
  --spacing-3xl: 4rem; /* 64px */
  --spacing-4xl: 6rem; /* 96px */

  /* Border radius */
  --radius-sm: 0.375rem; /* 6px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */
}

/* ============================================
   Global Styles
   ============================================ */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Ensure footer stays at bottom */
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Inter, sans-serif;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
}

/* Utility spacing classes */
.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.pb-6 {
  padding-bottom: 5rem !important;
}

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

.section-subtitle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgb(var(--brand-blue-color-rgb) / 18%);
  border-radius: 20px;
  background-color: var(--brand-bg-light);
  color: var(--brand-blue-color);
  font-size: 13px;
  line-height: 1;
  margin-bottom: 1rem;
}

/* Shared inner page hero */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--brand-blue-color);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(248 249 250 / 98%) 0%,
    rgb(248 249 250 / 92%) 62%,
    rgb(248 249 250 / 58%) 100%
  );
  content: "";
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.page-hero-copy {
  max-width: 100%;
}

.page-hero h1 {
  margin-bottom: 0.875rem;
  color: var(--brand-blue-color);
  font-size: 2.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 31.25rem;
  margin-bottom: 0;
  color: var(--color-muted-foreground);
  font-size: 1rem;
  line-height: 1.5625;
}

.page-path {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.625rem !important;
  margin-bottom: 1rem !important;
  color: var(--color-muted-foreground) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.125 !important;
}

.page-path a {
  color: var(--brand-color) !important;
}

.page-path a:hover {
  color: var(--brand-blue-color) !important;
}

.page-path-separator {
  color: #5f6875 !important;
  line-height: 1 !important;
}

.page-path-current {
  color: #667085 !important;
}

@media (width < 576px) {
  .page-path--detail {
    display: flex !important;
    flex-wrap: wrap !important;
    row-gap: 0.5rem !important;
  }

  .page-path--detail .page-path-current {
    flex: 0 0 100% !important;
  }
}

@media (width >= 576px) {
  .page-hero {
    min-height: 26.875rem;
  }

  .page-hero h1 {
    font-size: 3.25rem;
  }
}

@media (width >= 992px) {
  .page-hero::before {
    background: linear-gradient(
      90deg,
      var(--bs-white) 0%,
      var(--bs-white) 36%,
      rgb(255 255 255 / 92%) 46%,
      rgb(255 255 255 / 48%) 55%,
      transparent 62%
    );
  }

  .page-hero-copy {
    max-width: 35rem;
  }

  .page-hero h1 {
    font-size: 3.5rem;
  }
}

/* Shared page CTA */
.page-cta-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 1rem 1rem, rgb(255 255 255 / 10%) 0.0625rem, transparent 0.125rem) 0
      0 / 1.5rem 1.5rem,
    #07182d;
}

.page-cta-section.py-6 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.page-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2rem;
}

.page-cta-inner h2 {
  max-width: 45rem;
  margin-bottom: 1rem;
  color: var(--bs-white);
  font-size: 2.625rem;
  font-weight: 600;
  letter-spacing: 0;
}

.page-cta-inner p {
  max-width: 41.25rem;
  margin-bottom: 0;
  color: rgb(255 255 255 / 70%);
  font-size: 1rem;
}

.page-cta-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.875rem 1.375rem;
}

.page-cta-btn-icon {
  font-size: 1.5rem;
}

.btn-brand-solid {
  background-color: var(--brand-color);
  border: 1px solid var(--brand-color);
  color: var(--bs-white);
}

.btn-brand-solid:hover,
.btn-brand-solid:focus-visible {
  background-color: var(--brand-color-dark);
  border: 1px solid var(--brand-color-dark);
  color: var(--bs-white);
}

.btn-brand-solid:focus-visible,
.btn-brand-outline:focus-visible {
  outline: 3px solid rgb(var(--brand-color-rgb) / 25%);
  outline-offset: 0;
}

.btn-brand-solid:active {
  background-color: var(--brand-color-darker) !important;
  border: 1px solid var(--brand-color-darker) !important;
  color: var(--bs-white) !important;
}

.btn-brand-outline {
  color: var(--brand-color);
  border: 1px solid var(--brand-color);
}

.btn-brand-outline:hover,
.btn-brand-outline:active,
.btn-brand-outline:focus-visible {
  background-color: var(--brand-color) !important;
  border-color: var(--brand-color) !important;
  color: var(--bs-white) !important;
}

/* ============================================
   Error pages
   ============================================ */

.error-section {
  min-height: 70dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page-code {
  color: var(--brand-blue-color);
  font-size: 220px;
  font-weight: 300;
  line-height: 0.8;
  margin-bottom: 1.25rem;
}

.error-page-title {
  margin-bottom: 0.5rem;
  color: var(--brand-blue-color);
  font-size: 2rem;
}

.error-page-message {
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  color: var(--color-muted-foreground);
}

@media (width <= 576px) {
  .error-page-code {
    font-size: 5rem;
    line-height: 1;
  }

  .error-page-title {
    font-size: 1.5rem;
  }
}

/* ============================================
   Motion Animation States
   Elements using data-animate start hidden
   and are revealed by animations.js
   ============================================ */
[data-animate] {
  opacity: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (width < 992px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0 2rem;
  }

  .display-2 {
    font-size: 2.5rem;
  }

  .display-3 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .stats-section {
    margin-top: 0;
  }

  .scale-md {
    transform: none;
  }
}

@media (width >= 992px) {
  .page-cta-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .page-cta-btn {
    width: auto;
  }
}

@media (width < 768px) {
  .container-md {
    padding-right: calc(var(--bs-gutter-x) * 1);
    padding-left: calc(var(--bs-gutter-x) * 1);
  }
}

/* ============================================
   Accessibility: Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  /* Ensure data-animate elements are visible when motion is reduced */
  [data-animate] {
    opacity: 1;
  }

  .hero-shapes .shape {
    animation: none;
  }

  .floating-card {
    animation: none;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .hero-shapes,
  .hero-gradient,
  .cta-gradient,
  .navbar,
  footer {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
}
