/*
Theme Name: MEDvolunteering - Community Health
Theme URI: https://medvolunteering.org
Author: MEDvolunteering Dev Team
Author URI: https://medvolunteering.org
Description: A modern, accessible, bilingual (Arabic & English) WordPress theme for MEDvolunteering for Community Health (جمعية ميدفولنتيرينغ للصحة المجتمعية التطوعية). Registered under Jordanian Associations Law No. 51 of 2008. Includes interactive Jordan health centers map, deterministic 6-station clinical flow, volunteer tiers, and community request systems.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medvolunteering
Domain Path: /languages
Tags: medical, non-profit, rtl-language-support, translation-ready, custom-menu, featured-images, responsive-layout, grid-layout
*/

:root {
  /* Colors */
  --med-primary: #0f766e;
  --med-primary-dark: #0b4d54;
  --med-primary-light: #14b8a6;
  --med-primary-50: #f0fdfa;
  --med-primary-100: #ccfbf1;
  --med-primary-900: #134e4a;
  
  --med-secondary: #0284c7;
  --med-secondary-dark: #0369a1;
  --med-secondary-50: #f0f9ff;
  
  --med-accent: #d97706;
  --med-accent-light: #fef3c7;
  --med-emerald: #059669;
  --med-emerald-50: #ecfdf5;
  
  --med-slate-900: #0f172a;
  --med-slate-800: #1e293b;
  --med-slate-700: #334155;
  --med-slate-600: #475569;
  --med-slate-500: #64748b;
  --med-slate-400: #94a3b8;
  --med-slate-200: #e2e8f0;
  --med-slate-100: #f1f5f9;
  --med-slate-50: #f8fafc;
  --med-white: #ffffff;
  
  /* Status */
  --med-emergency-bg: #fee2e2;
  --med-emergency-border: #fca5a5;
  --med-emergency-text: #991b1b;
  
  /* Fonts */
  --med-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --med-font-arabic: 'Cairo', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  
  /* Spacing & Borders */
  --med-radius-sm: 6px;
  --med-radius-md: 12px;
  --med-radius-lg: 18px;
  --med-radius-full: 9999px;
  --med-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --med-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --med-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --med-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  
  /* Layout */
  --med-max-width: 1280px;
}

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

body {
  font-family: var(--med-font-sans);
  background-color: var(--med-slate-50);
  color: var(--med-slate-700);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--med-slate-900);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.2rem; }

a {
  color: var(--med-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  color: var(--med-primary-dark);
}

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

.med-container {
  width: 100%;
  max-width: var(--med-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Screen reader text for accessibility */
.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;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--med-primary-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--med-radius-md);
  z-index: 999999;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}
