/* Single source of truth for font imports and family variables. */
:root {
  --font-primary: 'EB Garamond', serif;
  --font-secondary: 'Montserrat', sans-serif;
}

/**
 * Global CSS Variables
 * Core design system for AshtonGray
 */
:root {
  /* Core Colors */

  --pure-black: #000000;

  /* Secondary Black */
  --rich-black: #050f0a; /* rgb(5, 15, 10) */

  --dark-charcoal: #000000;

  /* Card Background */
  --card-bg: #000000;

  /* White */
  --white: #f9f9f9;

  /* Light Gray */
  --light-gray: #f9f9f9;

  /* Accent Colors */
  
  /* Dark Navy rgb(12, 19, 33) */
  --dark-blue: #0c1321;
  
  /* Main Site Primary */
  --bright-blue: #558fff;

  /* Replaced with Blue */
  --cyan: #558fff;
  /* IR Site Primary */
  --teal: #7ee4b3;
  /* New Cyan */
  --bright-cyan: #25e9e2;

  /* Gradient Colors - consolidated to Blue */
  --gradient-blue: #558fff;
  --gradient-purple: #558fff;
  --gradient-pink: #558fff;
  --gradient-orange: #558fff;

  /* Gradient Colors - Hover States */
  --gradient-blue-hover: #558fff;
  --gradient-purple-hover: #558fff;
  --gradient-pink-hover: #558fff;
  --gradient-orange-hover: #558fff;
  --teal-hover: #115740;
  /* Dark Green Hover */

  /* Design Variables - with triangular focus */
  --border-radius: 4px;
  --small-radius: 2px;
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --subtle-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --glow-shadow: 0 0 20px rgba(85, 143, 255, 0.3);
  /* Adjusted to blue */

  /* Backdrop blur for glass effects - refined */
  --glass-blur: blur(15px);
  --glass-bg: rgba(5, 15, 10, 0.7);
  /* Adjusted to new dark green */

  /* Spacing variables */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--rich-black);
}

body {
  background-color: var(--rich-black) !important;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-secondary);
  background-color: var(--pure-black);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 400;
}

section {
  max-width: 100%;
  overflow-x: hidden;
}

.section-title {
  font-size: 4.5rem !important;
  font-weight: 400 !important;
}

/**
 * Media Queries
 */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .section-title {
    font-size: 3.4rem !important;
    font-weight: 400 !important;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* Accessibility utility: hide visually but keep available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #000;
  color: #fff;
  text-decoration: none;
  z-index: 9999;
}
