/* Animations */
@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-10px, 10px) scale(0.95);
  }
}

/* Comprehensive reduced motion support - disable all non-essential animations/transforms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Reduced motion for back-to-top button */
@media (prefers-reduced-motion: reduce) {
  #back-to-top {
    transition: opacity 0.01ms;
  }
}

/* ==========================================
   Print Styles - Optimize for paper/PDF
   ========================================== */
@media print {
  /* Reset colors for B&W printing */
  :root {
    --color-bg: #FFFFFF !important;
    --color-surface: #F5F5F5 !important;
    --color-text: #000000 !important;
    --color-text-muted: #333333 !important;
    --color-primary: #000000 !important;
    --color-secondary: #CCCCCC !important;
    --noise-opacity: 0 !important;
    --shadow-sm: none !important;
    --shadow-md: none !important;
    --shadow-lg: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.4;
  }

  /* Hide non-essential elements */
  #top-header,
  .skip-link,
  footer,
  #theme-toggle,
  .language-selector,
  .banner::before,
  .banner::after,
  .service-list li::before,
  .office::before,
  footer::before,
  body::before {
    display: none !important;
  }

  /* Ensure URLs are visible */
  a {
    text-decoration: underline;
    color: #000000 !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    color: #666666;
  }

  a[href^="#"]::after {
    content: "";
  }

  /* Layout - single column */
  section {
    min-height: auto;
    padding: 1rem 0;
    break-inside: avoid;
  }

  #services .service-list {
    display: block;
  }

  .service-list li {
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    page-break-inside: avoid;
    box-shadow: none;
  }

  .digital, .physical {
    display: block;
  }

  .office {
    page-break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
  }

  .banner img.logo {
    width: 150px;
    height: auto;
    filter: grayscale(100%);
  }

  .banner h1.logo-text {
    font-size: 2rem;
    color: black !important;
    -webkit-text-fill-color: black;
  }

  .tagline {
    color: #333 !important;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: black !important;
  }

  p, li, address {
    orphans: 3;
    widows: 3;
  }

  .contact-item a,
  .office a {
    font-weight: bold;
  }

  @page {
    margin: 1cm;
  }
}

/* Font faces - loaded last as requested */
@font-face {
  font-family: 'PhiloLogicXP';
  src: url('../assets/fonts/PhiloLogic/PhiloLogicXP-ExpandedRegular.eot');
  src: local('PhiloLogicXP Expanded Regular'), local('PhiloLogicXP-ExpandedRegular'),
  url('../assets/fonts/PhiloLogic/PhiloLogicXP-ExpandedRegular.eot?#iefix') format('embedded-opentype'),
  url('../assets/fonts/PhiloLogic/PhiloLogicXP-ExpandedRegular.woff2') format('woff2'),
  url('../assets/fonts/PhiloLogic/PhiloLogicXP-ExpandedRegular.woff') format('woff'),
  url('../assets/fonts/PhiloLogic/PhiloLogicXP-ExpandedRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PhiloLogic';
  src: url('../assets/fonts/PhiloLogic/PhiloLogic-ExpandedRegularOutline.eot');
  src: local('PhiloLogic Expanded Regular Outline'), local('PhiloLogic-ExpandedRegularOutline'),
  url('../assets/fonts/PhiloLogic/PhiloLogic-ExpandedRegularOutline.eot?#iefix') format('embedded-opentype'),
  url('../assets/fonts/PhiloLogic/PhiloLogic-ExpandedRegularOutline.woff2') format('woff2'),
  url('../assets/fonts/PhiloLogic/PhiloLogic-ExpandedRegularOutline.woff') format('woff'),
  url('../assets/fonts/PhiloLogic/PhiloLogic-ExpandedRegularOutline.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PhiloLogicExpanded';
  src: url('../assets/fonts/PhiloLogic/PhiloLogicExpanded-RegularOutlineShadow.eot');
  src: local('PhiloLogicExpanded Regular'), local('PhiloLogicExpanded-RegularOutlineShadow'),
  url('../assets/fonts/PhiloLogic/PhiloLogicExpanded-RegularOutlineShadow.eot?#iefix') format('embedded-opentype'),
  url('../assets/fonts/PhiloLogic/PhiloLogicExpanded-RegularOutlineShadow.woff2') format('woff2'),
  url('../assets/fonts/PhiloLogic/PhiloLogicExpanded-RegularOutlineShadow.woff') format('woff'),
  url('../assets/fonts/PhiloLogic/PhiloLogicExpanded-RegularOutlineShadow.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oxanium';
  src: url('../assets/fonts/Oxanium/Oxanium-VariableFont_wght.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Sarpanch';
  src: url('../assets/fonts/Sarpanch/Sarpanch-SemiBold.ttf');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarpanch';
  src: url('../assets/fonts/Sarpanch/Sarpanch-Bold.ttf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarpanch';
  src: url('../assets/fonts/Sarpanch/Sarpanch-Regular.ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
