:root {
  --body-font: 'Manrope', -apple-system, system-ui, sans-serif;
  --heading-font: 'Manrope', -apple-system, system-ui, sans-serif;
}

/* ─── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  color: #1E293B;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.section-title, .detail-title, .hero h1, .page-header h1,
.card-title, .service-title, .why-us-title, .employee-name {
  font-family: var(--heading-font);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* ─── Layout ───────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ─── Header ───────────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: 72px; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid #E2E8F0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 32px; }
.logo-text { font-weight: 700; color: #1E293B; font-size: 14px; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-size: 14px; font-weight: 500; color: #1E293B;
  transition: color 0.2s; padding: 8px 0;
}
.nav-link:hover, .nav-link.active { color: #0055A4; }
.btn-cta {
  background: #0055A4; color: white; padding: 10px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14px; transition: all 0.2s;
}
.btn-cta:hover { background: #0078D4; }

.burger { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid #E2E8F0; }
  .nav.open { display: flex; }
  .burger { display: block; padding: 8px; }
  .burger svg { width: 24px; height: 24px; stroke: #1E293B; }
}

/* ─── Page header (under hero) ────────────────────────────────────── */
.page-header {
  position: relative; padding: 120px 0 80px; margin-top: 72px;
  background-size: cover; background-position: center; color: white; text-align: center;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,0.85), rgba(10,22,40,0.7));
}
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.page-header p { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto; }

/* ─── Hero section (main page) ────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background-image: url('/images/hero_bg.jpg'); background-size: cover; background-position: center;
  margin-top: 0; padding-top: 72px; text-align: center; color: white;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(0,85,164,0.55) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; padding: 0 24px; }
.hero-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.1; margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #0055A4; color: white; padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 15px; transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(0,85,164,0.3);
}
.btn-primary:hover { background: #0078D4; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: white; padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1.5px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ─── Stats bar ────────────────────────────────────────────────────── */
.stats {
  background: #F5F7FA; padding: 60px 0; border-top: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; text-align: center;
}
.stat-value { font-size: 48px; font-weight: 800; color: #0055A4; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: #8A93A4; font-weight: 500; }

/* ─── Sections ─────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-light { background: #F5F7FA; }
.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: #0055A4; margin-bottom: 12px;
}
.section-title { font-size: 36px; font-weight: 800; color: #1E293B; margin-bottom: 16px; line-height: 1.2; }
.section-subtitle { font-size: 17px; color: #8A93A4; max-width: 700px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ─── Cards grid ───────────────────────────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.05);
  transition: all 0.3s; display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.card-image { aspect-ratio: 16/10; overflow: hidden; position: relative; background: #E2E8F0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-image img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.95); color: #0055A4;
  padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.card-body { padding: 24px; }
.card-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #8A93A4; margin-bottom: 10px;
}
.card-title {
  font-size: 18px; font-weight: 700; color: #1E293B; margin-bottom: 12px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-title { color: #0055A4; }
.card-text {
  font-size: 14px; color: #8A93A4; margin-bottom: 16px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid #E2E8F0;
}
.card-area { color: #0055A4; font-weight: 600; font-size: 14px; }
.card-link { color: #0055A4; font-weight: 500; font-size: 14px; }

/* ─── Filter chips ─────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.filter-chip {
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
  background: #F5F7FA; color: #1E293B; transition: all 0.2s;
}
.filter-chip:hover { background: rgba(0,85,164,0.1); }
.filter-chip.active {
  background: #0055A4; color: white;
  box-shadow: 0 4px 12px rgba(0,85,164,0.25);
}

/* ─── About / 2-col blocks ─────────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.about-image { width: 100%; }
.about-image img {
  border-radius: 16px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  display: block;
}
/* On about page specifically: show image on top of text on mobile */
@media (max-width: 768px) {
  .about-image-wrap { order: -1; }
}
.values-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px;
}
.value-card {
  background: white; padding: 20px; border-radius: 12px; border: 1px solid #E2E8F0;
}
.value-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(0,85,164,0.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.value-icon svg { width: 20px; height: 20px; stroke: #0055A4; }
.value-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.value-text { font-size: 13px; color: #8A93A4; line-height: 1.5; }

/* ─── Services list ────────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.service-card {
  background: white; padding: 32px; border-radius: 12px; border: 1px solid #E2E8F0;
  transition: all 0.3s;
}
.service-card:hover { border-color: #0055A4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.service-icon {
  width: 56px; height: 56px; border-radius: 12px; background: rgba(0,85,164,0.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; stroke: #0055A4; }
.service-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #1E293B; }
.service-text { font-size: 14px; color: #8A93A4; line-height: 1.6; }

/* ─── Employees grid ───────────────────────────────────────────────── */
.employees-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px;
}
.employee-card {
  background: white; border-radius: 12px; overflow: hidden;
  border: 1px solid #E2E8F0; transition: all 0.3s;
  display: flex; flex-direction: column;
}
.employee-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.employee-photo { aspect-ratio: 3/4; background: #E2E8F0; }
.employee-photo img { width: 100%; height: 100%; object-fit: cover; }
.employee-body {
  padding: 20px 24px 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.employee-name {
  font-size: 16px; font-weight: 700; color: #1E293B; margin-bottom: 4px;
  line-height: 1.3; text-align: center;
}
.employee-position {
  font-size: 13px; color: #0055A4; font-weight: 500; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid #F1F5F9;
  text-align: center;
}
.employee-desc {
  font-size: 13px; color: #475569; line-height: 1.65;
  text-align: left !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
/* Override any inline styles inside rich-text in employee description */
.employee-desc * {
  text-align: left !important;
  max-width: 100%;
}
.employee-desc.rich-text p {
  margin: 0 0 10px 0;
  text-align: left !important;
}
.employee-desc.rich-text p:last-child { margin-bottom: 0; }
.employee-desc.rich-text ul,
.employee-desc.rich-text ol {
  padding-left: 22px; margin: 0 0 10px 0;
  text-align: left !important;
}
.employee-desc.rich-text li {
  margin-bottom: 4px; font-size: 13px; line-height: 1.55;
  text-align: left !important;
}
.employee-desc.rich-text br + br { display: none; }

/* ─── Contact form ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600; color: #1E293B; margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; border: 1px solid #E2E8F0; border-radius: 8px;
  background: white; transition: all 0.2s; font-size: 14px;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: #0055A4; box-shadow: 0 0 0 3px rgba(0,85,164,0.1);
}
.form-textarea { min-height: 120px; resize: vertical; font-family: inherit; }

/* ─── Contact info cards ──────────────────────────────────────────── */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #F5F7FA; border-radius: 12px; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(0,85,164,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 22px; height: 22px; stroke: #0055A4; }
.contact-item-label { font-size: 12px; color: #8A93A4; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.contact-item-value { font-size: 15px; font-weight: 600; color: #1E293B; }

/* ─── Footer ───────────────────────────────────────────────────────── */
.footer { background: #0A1628; color: white; padding: 60px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 20px; color: white; }
.footer-col p, .footer-col a { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  font-size: 13px; color: rgba(255,255,255,0.5); text-align: center;
}

/* ─── Detail page ──────────────────────────────────────────────────── */
.detail-hero {
  position: relative; min-height: 50vh; padding: 144px 0 64px;
  background-size: cover; background-position: center; color: white;
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.85), rgba(10,22,40,0.4));
}
.detail-hero-inner { position: relative; z-index: 1; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 24px;
}
.back-link:hover { color: white; }
.detail-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.detail-title { font-size: 40px; font-weight: 800; line-height: 1.2; }
@media (max-width: 768px) { .detail-title { font-size: 28px; } }
.detail-content { padding: 64px 0; }
.detail-prose { max-width: 800px; margin: 0 auto; }
.detail-prose .lead { font-size: 18px; color: #8A93A4; margin-bottom: 24px; line-height: 1.7; }
.detail-prose p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; color: #1E293B; }
.detail-info-bar {
  background: white; padding: 32px; border-radius: 12px; margin-bottom: 40px;
  display: flex; gap: 48px; flex-wrap: wrap;
}
.detail-info-item { display: flex; gap: 12px; align-items: center; }
.detail-info-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(0,85,164,0.1); display: flex; align-items: center; justify-content: center; }
.detail-info-icon svg { width: 22px; height: 22px; stroke: #0055A4; }
.detail-info-label { font-size: 12px; color: #8A93A4; text-transform: uppercase; }
.detail-info-value { font-size: 15px; font-weight: 600; }

/* ─── Loading & empty states ───────────────────────────────────────── */
.loading {
  display: flex; align-items: center; justify-content: center; padding: 80px;
  color: #8A93A4;
}
.spinner {
  width: 40px; height: 40px; border: 3px solid #E2E8F0;
  border-top-color: #0055A4; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty {
  text-align: center; padding: 60px 20px; color: #8A93A4; font-size: 15px;
}

/* ─── Toast ────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  background: #1E293B; color: white; padding: 14px 20px; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); font-size: 14px;
  transform: translateY(100px); opacity: 0; transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #0F6E56; }
.toast.error { background: #A32D2D; }

/* ─── Rich text content (output) ───────────────────────────────────── */
.rich-text { line-height: 1.7; color: #1E293B; }
/* Honor inline font/color styles set via TinyMCE */
.rich-text [style*="font-family"],
.rich-text [style*="font-size"],
.rich-text [style*="color"],
.rich-text [style*="background-color"] {
  /* Inline styles win as expected — nothing to do, but this rule prevents
     parent shorthand `font:` from overriding child spans. */
}
.rich-text p { margin: 0 0 16px 0; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text br { display: block; content: ""; margin-bottom: 8px; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 {
  color: #0A1628; line-height: 1.3;
  margin: 28px 0 12px;
}
.rich-text h1 { font-size: 28px; font-weight: 800; }
.rich-text h2 { font-size: 24px; font-weight: 700; }
.rich-text h3 { font-size: 20px; font-weight: 700; }
.rich-text h4 { font-size: 17px; font-weight: 600; }
.rich-text ul, .rich-text ol {
  margin: 0 0 16px 0; padding-left: 28px;
}
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li {
  margin-bottom: 8px; line-height: 1.6;
  display: list-item;
}
.rich-text li::marker { color: #0055A4; }
.rich-text strong, .rich-text b { font-weight: 700; color: #0A1628; }
.rich-text em, .rich-text i { font-style: italic; }
.rich-text u { text-decoration: underline; }
.rich-text a { color: #0055A4; text-decoration: underline; }
.rich-text a:hover { color: #0078D4; }
.rich-text blockquote {
  margin: 16px 0; padding: 12px 20px;
  border-left: 3px solid #0055A4; background: #F5F7FA;
  color: #475569; font-style: italic;
}
.rich-text pre {
  background: #F1F5F9; padding: 12px 16px; border-radius: 6px;
  font-family: Consolas, monospace; font-size: 13px;
  overflow-x: auto; margin-bottom: 16px;
}
.rich-text img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
/* Honor TinyMCE inline alignment & spacing — but only for top-level rich-text,
   not for nested ones inside cards which should always be left-aligned */
.rich-text > [style*="text-align: center"] { text-align: center; }
.rich-text > [style*="text-align: right"] { text-align: right; }
.rich-text > [style*="text-align: justify"] { text-align: justify; }

/* ─── Why-us blocks ────────────────────────────────────────────────── */
.why-us-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-us-card {
  background: white; padding: 28px; border-radius: 14px;
  border: 1px solid #E2E8F0; transition: all 0.3s;
}
.why-us-card:hover {
  border-color: #0055A4; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,85,164,0.08);
}
.why-us-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #0055A4, #0078D4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-us-icon svg { width: 26px; height: 26px; stroke: white; }
.why-us-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #0A1628; }
.why-us-text { font-size: 14px; color: #64748B; line-height: 1.6; }

/* ─── Extra info blocks (about page) ───────────────────────────────── */
.extra-block {
  padding: 32px; background: white; border-radius: 14px;
  border: 1px solid #E2E8F0; margin-bottom: 24px;
}
.extra-block-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #0055A4, #0078D4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.extra-block-icon svg { width: 26px; height: 26px; stroke: white; }
.extra-block h3 {
  font-size: 22px; font-weight: 700; margin-bottom: 14px; color: #0A1628;
}
