/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.tagline {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 400;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 16px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Main content */
main {
  padding: 0;
}

/* Sections */
.section {
  padding: 80px 0;
  background: white;
  margin-bottom: 0;
}

.alt-bg {
  background: #f8fafc;
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.eyebrow {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 100px 0;
}

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

.hero-text .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.hero-text h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: #06b6d4;
  color: white;
  box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.39);
}

.btn-primary:hover {
  background: #0891b2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(6, 182, 212, 0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.hero-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card li:last-child {
  border-bottom: none;
}

/* Two column layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.two-column p {
  margin-bottom: 20px;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1e293b;
}

.card p {
  color: #64748b;
  line-height: 1.6;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-arrow {
  display: inline-block;
  margin-top: 16px;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.card-link:hover .card-arrow {
  transform: translateX(4px);
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1e293b;
}

.feature-item p {
  color: #64748b;
  line-height: 1.6;
}

/* Mission grid */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.mission-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.mission-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1e293b;
}

.mission-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Contact */
.contact-section {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
}

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

.contact-box h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-box p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-details p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.contact-details strong {
  display: inline-block;
  width: 100px;
}

/* Certifications */
.certifications-layout {
  margin-top: 40px;
}

.cert-group {
  margin-bottom: 40px;
}

.cert-group h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

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

.cert-badge {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.cert-badge:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cert-badge h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 8px;
}

.cert-badge p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Contact section overrides for white-on-blue readability */
.contact-section .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.contact-email-fallback {
  margin-top: 30px;
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.contact-email-fallback a {
  color: white;
  text-decoration: underline;
}

.contact-email-fallback a:hover {
  opacity: 0.8;
}

/* Contact form card */
.contact-form-wrap {
  background: white;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

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

.contact-form label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.8rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
}

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

.btn-submit {
  width: 100%;
  background: #1e40af;
  color: white;
  border: none;
  cursor: pointer;
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 4px;
}

.btn-submit:hover:not(:disabled) {
  background: #1e3a8a;
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-success {
  text-align: center;
  padding: 20px 0;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 10px;
}

.form-success p {
  color: #64748b;
  font-size: 1rem;
}

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 10px;
}

/* Hamburger nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  margin-left: auto;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }

  header nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  header nav.open {
    max-height: 400px;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-box {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav {
    padding: 16px 0;
  }

  .logo {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-text h2,
  .section-heading h2,
  .contact-box h2 {
    font-size: 1.75rem;
  }

  .card,
  .mission-card,
  .cert-badge,
  .contact-form-wrap {
    padding: 24px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 12px 14px;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .nav {
    padding: 12px 0;
    gap: 12px;
  }

  .logo {
    gap: 10px;
  }

  .logo-img {
    height: 48px;
  }

  .logo h1 {
    font-size: 1.125rem;
    margin-bottom: 2px;
  }

  .tagline {
    font-size: 0.75rem;
  }

  .nav-links {
    gap: 8px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-text h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .hero-card {
    padding: 20px;
  }

  .hero-card h3 {
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

  .section-heading p {
    font-size: 0.95rem;
  }

  .card,
  .mission-card,
  .cert-badge,
  .contact-form-wrap,
  .feature-item {
    padding: 16px;
  }

  .card h3,
  .mission-card h3,
  .cert-badge h4,
  .feature-item h3 {
    font-size: 1.1rem;
  }

  .card p,
  .mission-card p,
  .cert-badge p,
  .feature-item p {
    font-size: 0.9rem;
  }

  .two-column p {
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .contact-form label {
    font-size: 0.85rem;
  }

  .btn-submit {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .contact-email-fallback {
    font-size: 0.9rem;
  }

  .cert-group h3 {
    font-size: 1.25rem;
  }
}
