/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; color: #333; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-link { flex-shrink: 0; }
.logo-link img { width: 82px; height: auto; }
.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #1a1a1a;
  flex: 1;
  text-decoration: none;
}
.site-title:hover { color: #1565c0; }
.main-nav {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}
.main-nav a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #555;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active {
  color: #1565c0;
  border-bottom-color: #1565c0;
}

/* ========== Sections ========== */
.section {
  padding: 72px 24px;
}
.section-alt {
  background: #f7f8fa;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1565c0;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.section-divider {
  width: 80px;
  height: 3px;
  background: #4a6072;
  margin: 0 auto 48px;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/static/img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 24px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.45);
}
.hero-content {
  position: relative;
  max-width: 800px;
  text-align: center;
}
.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1565c0;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1565c0;
  margin-bottom: 36px;
}
.btn-primary {
  display: inline-block;
  background: #1565c0;
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 16px 40px;
  font-size: .95rem;
}
.btn-primary:hover { background: #0d47a1; }

/* ========== About Cards ========== */
.card-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.card {
  text-align: center;
}
.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 10px;
}
.card p {
  font-size: .85rem;
  font-weight: 600;
  color: #1565c0;
  line-height: 1.3;
}

/* ========== Mission / Split Layout ========== */
.split-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}
.split-text {
  flex: 1;
}
.split-text .section-title { text-align: left; }
.split-text .section-divider { margin: 0 0 28px; }
.split-text p {
  margin-bottom: 16px;
  color: #444;
  font-size: 1rem;
}
.split-text p.highlight {
  font-weight: 700;
  color: #1565c0;
}
.split-img {
  flex: 1;
}
.split-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ========== Solutions ========== */
.solutions-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.solution-item {
  position: relative;
  overflow: hidden;
}
.solution-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.solution-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(21,101,192,.8);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ========== Partners ========== */
.partners-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  color: #555;
  font-size: 1rem;
}

/* ========== Contact ========== */
.contact-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-form-col h3,
.contact-info-col h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}
.contact-form-col input,
.contact-form-col textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: none;
  background: #f0f0f0;
  font-size: .95rem;
  font-family: inherit;
  color: #333;
  outline: none;
  resize: vertical;
}
.contact-form-col input:focus,
.contact-form-col textarea:focus {
  background: #e8e8e8;
}
.btn-submit {
  display: block;
  margin: 4px auto 0;
  padding: 10px 40px;
  background: #fff;
  color: #333;
  border: 2px solid #333;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s;
}
.btn-submit:hover {
  background: #333;
  color: #fff;
}
.contact-info-col address p {
  margin-bottom: 8px;
  color: #444;
}
.contact-info-col a { color: #1565c0; }
.contact-info-col a:hover { text-decoration: underline; }

/* ========== Alerts ========== */
.alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: .9rem;
  border-radius: 2px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #43a047; }
.alert-error   { background: #ffebee; color: #c62828; border-left: 4px solid #e53935; }

/* ========== Footer ========== */
.site-footer {
  text-align: center;
  padding: 24px;
  font-size: .85rem;
  color: #777;
  border-top: 1px solid #eee;
}

/* ========== Career ========== */
.career-section {
  max-width: 820px;
  margin: 0 auto;
}
.job-posting {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.job-header {
  background: #1565c0;
  color: #fff;
  padding: 32px 40px;
}
.job-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.job-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  opacity: 0.9;
}
.job-meta-sep { opacity: 0.5; }
.job-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.job-section h3,
.job-apply h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1565c0;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e3eaf5;
}
.job-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-section ul li {
  padding-left: 18px;
  position: relative;
  color: #333;
  line-height: 1.55;
}
.job-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1565c0;
}
.job-footer-line {
  color: #333;
  line-height: 1.6;
  font-size: 0.97rem;
  border-top: 1px solid #e3eaf5;
  padding-top: 24px;
}
.job-footer-line a { color: #1565c0; }
.job-footer-line a:hover { text-decoration: underline; }

/* ========== Hamburger toggle ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========== Responsive ========== */

/* --- Tablet landscape (≤ 900px) --- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .split-layout { flex-direction: column; gap: 32px; }
  .split-img img { height: 260px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-item img { height: 280px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .job-header { padding: 24px 28px; }
  .job-body { padding: 24px 28px; }
}

/* --- Phone / tablet portrait (≤ 640px) --- */
@media (max-width: 640px) {
  /* Header */
  .nav-toggle { display: flex; }
  .site-title { font-size: .75rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
    padding: 8px 0;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a {
    padding: 13px 24px;
    font-size: .88rem;
    letter-spacing: .04em;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .main-nav a:hover,
  .main-nav a.active {
    border-left-color: #1565c0;
    border-bottom-color: transparent;
    background: #f5f8ff;
  }

  /* Sections */
  .section { padding: 48px 20px; }
  .section-title { font-size: 1.5rem; }
  .section-divider { margin-bottom: 32px; }

  /* Hero */
  .hero { min-height: 360px; padding: 56px 20px; }
  .hero-content h1 { font-size: 1.35rem; }
  .hero-content p { font-size: 1rem; margin-bottom: 28px; }
  .btn-primary { padding: 14px 32px; }

  /* Cards */
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Solutions */
  .solution-item img { height: 210px; }

  /* Career */
  .job-header { padding: 20px 20px; }
  .job-title { font-size: 1.3rem; }
  .job-meta { flex-wrap: wrap; row-gap: 4px; font-size: .88rem; }
  .job-meta-sep { display: none; }
  .job-body { padding: 20px 20px; gap: 24px; }
}

/* --- Small phone (≤ 420px) --- */
@media (max-width: 420px) {
  .header-inner { padding: 0 16px; gap: 10px; }
  .site-title { display: none; }
  .logo-link img { width: 68px; }
  .section { padding: 40px 16px; }
  .hero { padding: 44px 16px; }
  .card-grid { gap: 10px; }
  .card p { font-size: .78rem; }
  .btn-primary { padding: 12px 24px; font-size: .88rem; width: 100%; text-align: center; }
  .split-img img { height: 220px; }
  .solution-item img { height: 180px; }
  .job-header { padding: 18px 16px; }
  .job-title { font-size: 1.2rem; }
  .job-body { padding: 18px 16px; }
  .contact-form-col input,
  .contact-form-col textarea { font-size: .9rem; }
}
