/* ===================================
   BASE STYLES - AAM WEBSITE
   =================================== */

/* Import Variables First */

/* Reset and Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--bg-white) 60%, var(--bg-light) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--text-white);
  text-shadow: 0 2px 12px rgba(30,60,114,0.07);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
}

h6 {
  font-size: 1.125rem;
  font-weight: 500;
}

p {
  margin-bottom: 16px;
  color: var(--text-light);
  line-height: 1.625;
}

/* Links */
a {
  color: #1e3c72;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #162d5a;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Lists */
ul, ol {
  margin-bottom: 16px;
  padding-left: 32px;
}

li {
  margin-bottom: 4px;
  line-height: 1.625;
}

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

/* Form Elements */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

input,
textarea,
select {
  width: 100%;
  padding: 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background-color: #ffffff;
  color: #333333;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #1e3c72;
  box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  padding: 0 24px;
}

.container-sm { max-width: 540px; }
.container-md { max-width: 720px; }
.container-lg { max-width: 960px; }
.container-2xl { max-width: 1320px; }

/* Text Utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-primary { color: #1e3c72; }
.text-secondary { color: #666666; }
.text-accent { color: #ff6b35; }
.text-white { color: #ffffff; }
.text-muted { color: #6c757d; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 800; }

/* Display Utilities */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flexbox Utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

/* Grid Utilities */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-4 { margin: 16px; }
.m-6 { margin: 24px; }
.m-8 { margin: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

/* Background Utilities */
.bg-white { background-color: #ffffff; }
.bg-light { background-color: #f8f9fa; }
.bg-primary { background-color: #1e3c72; }
.bg-secondary { background-color: #2a5298; }
.bg-accent { background-color: #ff6b35; }

.bg-gradient-primary { 
  background: linear-gradient(135deg, #1e3c72, #2a5298); 
}
.bg-gradient-accent { 
  background: linear-gradient(135deg, #ff6b35, #ff8f65); 
}

/* Border Utilities */
.border { border: 1px solid #e9ecef; }
.border-2 { border: 2px solid #e9ecef; }
.border-primary { border-color: #1e3c72; }
.border-accent { border-color: #ff6b35; }

.rounded { border-radius: 12px; }
.rounded-sm { border-radius: 8px; }
.rounded-lg { border-radius: 16px; }
.rounded-xl { border-radius: 24px; }
.rounded-full { border-radius: 9999px; }

/* Shadow Utilities */
.shadow-sm { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); }
.shadow { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12); }
.shadow-lg { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15); }
.shadow-xl { box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18); }
.shadow-2xl { box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2); }

.shadow-primary { box-shadow: 0 8px 30px rgba(30, 60, 114, 0.3); }
.shadow-accent { box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3); }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Width and Height Utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

/* Transition Utilities */
.transition { transition: all 0.3s ease; }
.transition-fast { transition: all 0.15s ease; }
.transition-slow { transition: all 0.5s ease; }

/* Transform Utilities */
.transform { transform: translateZ(0); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.rotate-45 { transform: rotate(45deg); }
.rotate-90 { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  min-height: 48px;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.2);
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--text-white);
  box-shadow: var(--shadow-accent);
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text-white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #1e3c72;
  border-color: #1e3c72;
}

.btn-secondary:hover {
  background: #1e3c72;
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-ghost {
  background: rgba(255,255,255,0.18);
  color: var(--primary-color);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.btn-ghost:hover {
  background: var(--primary-light);
  color: var(--text-white);
  border-color: var(--primary-color);
}

.btn-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-full);
  transition: background 0.2s, color 0.2s;
}

.btn-link:hover {
  background: var(--accent-light);
  color: var(--text-white);
}

/* Button Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 36px;
}

.btn-lg {
  padding: 20px 40px;
  font-size: 18px;
  min-height: 56px;
}

.btn-xl {
  padding: 24px 48px;
  font-size: 20px;
  min-height: 64px;
}

/* 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: 0;
}

.focus\:outline-none:focus {
  outline: none;
}

.focus-visible\:ring:focus-visible {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #1e3c72;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 8px;
  z-index: 1000;
}

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

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-break {
    page-break-after: always;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
}