/* EHTS Brand Variables */
:root {
  /* Brand Colors */
  --eh-primary: #FB883B;
  --eh-primary-hover: #E2732A;
  --eh-primary-active: #C15F1F;
  --eh-text: #414141;
  --eh-muted: #6F6F6F;
  --eh-bg: #FFFFFF;
  --eh-card: #FAFAFA;
  --eh-border: #E6E6E6;
  --eh-white: #FFFFFF;
  
  /* Override Bootstrap variables */
  --bs-primary: var(--eh-primary);
  --bs-primary-rgb: 251, 136, 59;
  --bs-body-color: var(--eh-text);
  --bs-body-bg: var(--eh-bg);
  --bs-border-color: var(--eh-border);
}

/* Base Typography */
body {
  color: var(--eh-text);
  font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--eh-text);
  font-weight: 600;
}

/* Buttons */
.btn {
  border-radius: 6px;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--eh-primary);
  border: none;
  color: var(--eh-white);
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: var(--eh-primary-hover);
  box-shadow: 0 4px 12px rgba(251, 136, 59, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active, 
.btn-primary:focus {
  background-color: var(--eh-primary-active);
  box-shadow: 0 0 0 3px rgba(193, 95, 31, 0.3);
}

.btn-outline {
  border: 2px solid var(--eh-primary);
  color: var(--eh-primary);
  background: transparent;
}

.btn-outline:hover, 
.btn-outline:focus {
  background-color: color-mix(in srgb, var(--eh-primary) 10%, white);
  border-color: var(--eh-primary-hover);
  color: var(--eh-primary-hover);
}

/* Cards */
.card {
  background-color: var(--eh-card);
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Section Headings */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: var(--eh-primary);
  border-radius: 2px;
}

/* Links */
a {
  color: var(--eh-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--eh-primary-hover);
}

/* Form Elements */
.form-control:focus {
  border-color: var(--eh-primary);
  box-shadow: 0 0 0 0.25rem rgba(251, 136, 59, 0.25);
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--eh-text);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--eh-primary);
}

/* Stats Section */
.counter-box .counter-value {
  color: var(--eh-primary);
  font-size: 2.5rem;
  font-weight: 700;
}

.counter-box .counter-title {
  color: var(--eh-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Utility Classes */
.text-muted {
  color: var(--eh-muted) !important;
}

.bg-light {
  background-color: var(--eh-card) !important;
}

/* Remove outline from all elements but keep it for keyboard navigation */
*:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--eh-primary-active);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip to main content link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: var(--eh-primary);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skip-to-content:focus {
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
}
