/*
Theme Name: VJInfotech
Theme URI: https://vjinfotech.com/
Author: VJInfotech
Author URI: https://vjinfotech.com/
Description: A clean, ultra-fast, lightweight theme crafted specifically for Easy Digital Downloads with native Rank Math SEO optimization.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vjinfotech
Tags: e-commerce, custom-menu, featured-images, full-width-template, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Design System & CSS Variables
   ========================================================================== */
:root {
  /* Brand Palette */
  --vji-primary: #4f46e5;
  --vji-primary-hover: #4338ca;
  --vji-primary-light: #eef2ff;
  --vji-primary-glow: rgba(79, 70, 229, 0.15);

  --vji-secondary: #0ea5e9;
  --vji-secondary-hover: #0284c7;

  --vji-accent: #10b981;
  --vji-accent-hover: #059669;
  --vji-accent-light: #ecfdf5;

  --vji-warning: #f59e0b;
  --vji-warning-light: #fffbeb;
  --vji-danger: #ef4444;
  --vji-danger-light: #fef2f2;

  /* Neutrals & Surfaces */
  --vji-bg: #f8fafc;
  --vji-surface: #ffffff;
  --vji-surface-muted: #f1f5f9;
  --vji-surface-subtle: #f8fafc;
  --vji-border: #e2e8f0;
  --vji-border-light: #edf2f7;
  --vji-border-focus: #6366f1;

  /* Typography Colors */
  --vji-text-heading: #0f172a;
  --vji-text-body: #334155;
  --vji-text-muted: #64748b;
  --vji-text-subtle: #94a3b8;
  --vji-text-inverse: #ffffff;

  /* Typography Sizing & Line Heights */
  --vji-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --vji-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Layout Containers */
  --vji-container-max: 1240px;
  --vji-container-narrow: 860px;
  --vji-container-wide: 1400px;
  --vji-header-height: 68px;

  /* Radii */
  --vji-radius-sm: 6px;
  --vji-radius-md: 10px;
  --vji-radius-lg: 16px;
  --vji-radius-xl: 24px;
  --vji-radius-full: 9999px;

  /* Shadows */
  --vji-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --vji-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
  --vji-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --vji-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --vji-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Transitions */
  --vji-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --vji-transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--vji-font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--vji-text-body);
  background-color: var(--vji-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  position: relative;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
  width: 100%;
}

#content {
  flex: 1 0 auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--vji-text-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.9375rem; }
h6 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: 0.75rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--vji-primary);
  text-decoration: none;
  transition: color var(--vji-transition-fast);
}

a:hover,
a:focus {
  color: var(--vji-primary-hover);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Accessibility / Screen Readers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #ffffff;
  border-radius: var(--vji-radius-sm);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.4);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 20px;
  background: var(--vji-primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--vji-radius-md);
  z-index: 999999;
  font-weight: 600;
}

.skip-link:focus {
  top: 20px;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.vji-container {
  width: 100%;
  max-width: var(--vji-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.vji-container--narrow {
  max-width: var(--vji-container-narrow);
}

.vji-container--wide {
  max-width: var(--vji-container-wide);
}

.vji-section {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .vji-section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }
}
