/* ===== CSS VARIABLES ===== */
:root {
  --blue: #1a3d7c;
  --blue-dark: #0f2a5c;
  --blue-light: #2a5298;
  --green: #2d6a4f;
  --green-dark: #1b4332;
  --green-light: #40916c;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --gray: #6c757d;
  --dark: #212529;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus-visible {
  color: var(--green);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue-dark);
}

ul {
  list-style: none;
}

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 16px;
  position: relative;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 48px;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--green-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--white);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

/* ===== SKIP LINK (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  z-index: 10000;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 6px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--green-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray);
}

.about-highlight {
  background: linear-gradient(135deg, var(--blue-dark), var(--green-dark));
  border-radius: 12px;
  padding: 48px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-highlight blockquote {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1.4;
}

.about-highlight p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== SERVICES ===== */
.services {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--green);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ===== CAREERS ===== */
.careers {
  background: var(--white);
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.career-box {
  background: var(--off-white);
  border-radius: 12px;
  padding: 36px;
  border-left: 4px solid var(--blue);
}

.career-box h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.career-box ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.career-box ul li {
  padding-left: 24px;
  position: relative;
  color: var(--gray);
}

.career-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.careers-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== PARTNER ===== */
.partner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
}

.partner .section-title {
  color: var(--white);
}

.partner p {
  max-width: 640px;
  margin: 0 auto 16px;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

.partner .btn {
  margin-top: 24px;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-item-text span,
.contact-item-text a {
  color: var(--gray);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,61,124,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #adb5bd;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ===== APPLY PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--green-dark) 100%);
  color: var(--white);
  padding: 140px 0 60px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

.apply-section {
  padding: 60px 0 80px;
  background: var(--off-white);
}

.apply-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.apply-form-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.apply-form-wrapper > p {
  color: var(--gray);
  margin-bottom: 32px;
}

/* Success notification */
.notification {
  display: none;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 500;
  align-items: center;
  gap: 12px;
}

.notification.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.notification.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.notification.show {
  display: flex;
}

.notification svg {
  min-width: 24px;
}

/* File input styling */
.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  padding: 10px;
  border: 2px dashed var(--light-gray);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--off-white);
}

.file-input-wrapper input[type="file"]:hover {
  border-color: var(--blue);
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ===== LEGAL PAGES ===== */
.legal-section {
  padding: 60px 0 80px;
  background: var(--white);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content .coming-soon {
  text-align: center;
  padding: 80px 24px;
  background: var(--off-white);
  border-radius: 12px;
}

.legal-content .coming-soon h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.legal-content .coming-soon p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .careers-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .apply-form-wrapper {
    padding: 28px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-hero {
    padding: 120px 0 48px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

/* ===== OVERLAY (Mobile Nav) ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}

.nav-overlay.show {
  display: block;
}

/* ===== LOADING SPINNER ===== */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}
