/*
Theme Name: Jobdrive
Theme URI: https://jobdrive.ai
Author: Jobdrive Team
Author URI: https://jobdrive.ai
Description: Custom WordPress Block (FSE) Theme for Jobdrive AI hiring platform.
Version: 1.0.1
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: jobdrive
Tags: block-theme, full-site-editing, custom-colors, custom-menu, sticky-post, threaded-comments, translation-ready
*/

/*
 * Fonts are self-hosted and declared in theme.json (settings.typography
 * .fontFamilies[].fontFace), which makes WordPress emit the @font-face rules
 * and preload them. There is deliberately no Google Fonts @import here: an
 * @import inside a stylesheet costs an extra serial round trip before text can
 * render, and if the font host is unreachable the whole site falls back to a
 * system sans and loses its typography entirely.
 */

/* Additional global overrides */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--wp--preset--color--base, #ffffff);
  color: var(--wp--preset--color--body, #475569);
  font-family: var(--wp--preset--font-family--plus-jakarta-sans, 'Plus Jakarta Sans', sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Focus Ring Rule */
:focus-visible {
  outline: 2px solid var(--wp--preset--color--sky, #38bdf8) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.20) !important;
}

/* Global Reduced Motion Override */
@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;
  }
}
