/* Main Stylesheet */
:root {
  --color-primary: #2563eb;
  --color-secondary: #a855f7;
  --color-accent: #ec4899;
  --color-text: #111827;
  --color-light: #f9fafb;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background-color: #ffffff;
}

heading {
  font-family: 'Merriweather', Georgia, serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.875rem;
}

p {
  font-size: 1rem;
  line-height: 1.75;
}

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

a:hover {
  opacity: 0.8;
}

button {
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* Container Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Navigation Enhancements */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 40;
}

nav a {
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Button Styles */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

/* Error States */
input.error,
textarea.error {
  border-color: #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 4px;
}

.success-message {
  color: #16a34a;
  font-size: 0.875rem;
  margin-top: 4px;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

/* Mobile Menu Animations */
#mobile-menu.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

#mobile-menu.active .bg-white {
  animation: slideDown 0.3s ease-out;
}

/* Contrast and Accessibility */
body {
  color: #111827;
  background-color: #ffffff;
}

.text-gray-700 {
  color: #374151;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.text-white {
  color: #ffffff;
}

/* Link Contrast */
a {
  color: #2563eb;
}

a:visited {
  color: #7c3aed;
}

/* Footer Links */
footer a {
  color: #d1d5db;
}

footer a:hover {
  color: #ffffff;
}

/* Print Styles */
@media print {
  nav,
  footer,
  .no-print {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: #0000ee;
  }
}