/* ========== CSS VARIABLES ========== */
:root {
  --primary: #0f2041;
  --primary-light: #1a3a6b;
  --accent: #f47920;
  --accent-hover: #e06a10;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-light: #f5f7fa;
  --bg-dark: #0b1a33;
  --border: #e0e4ea;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1200px;
  --nav-height: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { font-family: var(--font); color: var(--text); line-height: 1.6; background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ========== UTILITY ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title { font-size: 32px; font-weight: 700; color: var(--primary); text-align: center; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--text-light); text-align: center; max-width: 700px; margin: 0 auto 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: var(--radius); font-size: 16px; font-weight: 600; transition: all 0.3s; min-height: 48px; min-width: 48px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(244,121,32,0.3); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-dark-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-dark-outline:hover { background: var(--primary); color: #fff; }

/* ========== HEADER / NAV ========== */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,0.06); z-index: 1000; display: flex; align-items: center; }
.header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-icon svg { width: 24px; height: 24px; fill: var(--accent); }
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo-full { max-width: 320px; width: 100%; height: auto; display: block; }
.logo-slogan { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 8px; font-style: italic; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 8px 16px; font-size: 15px; font-weight: 500; color: var(--text); border-radius: 6px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: rgba(244,121,32,0.06); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 10px 24px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600; font-size: 14px; transition: all 0.3s; }
.nav-cta:hover { background: var(--accent-hover); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== MOBILE NAV ========== */
.mobile-nav { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 999; padding: 16px; flex-direction: column; gap: 4px; max-height: calc(100vh - var(--nav-height)); overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 16px; font-size: 16px; font-weight: 500; color: var(--text); border-radius: 6px; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent); background: rgba(244,121,32,0.06); }

/* ========== HERO ========== */
.hero { margin-top: var(--nav-height); position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: var(--primary); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,32,65,0.92) 0%, rgba(15,32,65,0.65) 100%); }
.hero-content { position: relative; z-index: 1; padding: 80px 0; max-width: 720px; }
.hero h1 { font-size: 48px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 20px; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========== SERVICES ========== */
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.service-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.service-card-img { height: 180px; overflow: hidden; background: var(--bg-light); position: relative; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .service-card-img img { transform: scale(1.08); }
/* Generic image fallback (injected by JS when an image fails to load) */
.img-fallback { width: 100%; height: 100%; min-height: 160px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; }
.service-card-img .img-fallback { font-size: 48px; }
.service-card-body { padding: 20px; }
.service-card-body h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.service-card-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.service-card-body .learn-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ========== ADVANTAGES ========== */
.advantages { background: var(--bg-light); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.adv-item { text-align: center; padding: 32px 20px; }
.adv-icon { width: 64px; height: 64px; margin: 0 auto 20px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.adv-icon svg { width: 28px; height: 28px; fill: #fff; }
.adv-item h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.adv-item p { font-size: 14px; color: var(--text-light); }
.adv-stat { font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }

/* ========== CASES ========== */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: transform 0.3s; }
.case-card:hover { transform: translateY(-4px); }
.case-card-img { height: 220px; overflow: hidden; background: var(--bg-light); position: relative; }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card-img .img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a3a6b, #0f2041); color: rgba(255,255,255,0.6); font-size: 40px; }
.case-card-body { padding: 20px; }
.case-card-body h3 { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.case-card-body p { font-size: 13px; color: var(--text-light); }
.case-tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; background: rgba(244,121,32,0.1); color: var(--accent); margin-bottom: 8px; }

/* ========== TRUST ========== */
.trust { background: var(--primary); color: #fff; text-align: center; }
.trust .section-title { color: #fff; }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; margin-top: 32px; padding: 24px 0; }
.trust-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.8; }
.trust-logo-icon { width: 56px; height: 56px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #fff; }
.trust-logo span { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ========== CAPABILITIES ========== */
.cap-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.cap-table th, .cap-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
.cap-table th { background: var(--bg-light); font-weight: 600; color: var(--primary); width: 30%; }
.cap-table tr:hover { background: rgba(244,121,32,0.03); }

/* ========== ABOUT ========== */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 28px; color: var(--primary); margin-bottom: 16px; }
.about-text p { font-size: 16px; color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.about-stat { text-align: center; padding: 20px; background: var(--bg-light); border-radius: var(--radius); }
.about-stat .num { font-size: 32px; font-weight: 800; color: var(--accent); }
.about-stat .label { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }

/* ========== CONTACT ========== */
.contact { background: var(--bg-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px; font-size: 16px; font-family: var(--font); transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244,121,32,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 16px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; border: none; border-radius: var(--radius); cursor: pointer; transition: background 0.3s; min-height: 52px; }
.form-submit:hover { background: var(--accent-hover); }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 6px; line-height: 1.6; }
.form-hint a { color: var(--accent); font-weight: 600; }

/* Custom file upload — replaces the browser-native control so the button and
   status text stay English regardless of the visitor's browser locale.
   NOTE: these rules are scoped under .file-upload on purpose. The generic
   ".form-group label" (0,1,1) and ".form-group input" (0,1,1) rules would
   otherwise outrank a bare ".file-btn" / ".file-input" (0,1,0) and break the
   component (display:block kills the flex layout, and color:var(--primary)
   renders white-on-navy text invisible). ".file-upload .file-btn" is (0,2,0)
   and wins cleanly. */
.file-upload { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-upload .file-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; margin: 0; pointer-events: none; }
.file-upload .file-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; margin: 0; min-height: 46px; background: var(--primary); color: #fff; border: 0; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background 0.25s; user-select: none; }
.file-upload .file-btn:hover { background: var(--primary-light); color: #fff; }
.file-upload .file-btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; display: block; }
.file-upload .file-input:focus-visible + .file-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.file-upload .file-status { font-size: 13px; color: var(--text-light); word-break: break-all; flex: 1; min-width: 140px; }
.file-upload .file-status.has-file { color: var(--primary); font-weight: 600; }
.file-upload.has-file .file-btn { background: #1d7a3f; }
.contact-info { padding: 20px 0; }
.contact-info h3 { font-size: 22px; color: var(--primary); margin-bottom: 20px; }
.info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.info-icon { width: 48px; height: 48px; min-width: 48px; background: rgba(244,121,32,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.info-icon svg { width: 20px; height: 20px; fill: var(--accent); }
.info-item h4 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.info-item p { font-size: 14px; color: var(--text-light); }

/* ========== FOOTER ========== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1.15fr 0.85fr; gap: 36px; margin-bottom: 40px; }
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
/* ---- Follow Us column (kmrapid-style: neutral monochrome social disc) ----
   The icon deliberately drops LinkedIn's brand blue so it sits quietly inside
   the dark footer, matching the reference design. Brand blue returns only on
   hover, which keeps the resting state neutral while still signalling a link. */
.footer-col-social { display: flex; flex-direction: column; }
.footer-socials { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-col .footer-social { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; min-width: 38px; margin: 0; border-radius: 50%; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22); transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; flex-shrink: 0; }
.footer-col .footer-social svg { width: 19px; height: 19px; fill: rgba(255,255,255,0.88); display: block; transition: fill 0.25s ease; }
.footer-col .footer-social:hover { background: #fff; border-color: #fff; transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.footer-col .footer-social:hover svg { fill: #0A66C2; }
.footer-col .footer-social:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer-social-handle { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.45); margin: 0; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ========== LOCATION / MAP ========== */
.location-section { background: var(--bg-light); }
.location-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: stretch; }

.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--primary); min-height: 440px; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #e8ecef; }

.map-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f2041 0%, #1a3a6b 100%); padding: 24px; text-align: center; }
.map-wrap.map-failed .map-fallback { display: flex; }
.map-wrap.map-failed .map-frame { display: none; }
.map-fallback-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.map-fallback-inner { position: relative; z-index: 1; max-width: 420px; }
.map-pin { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(244,121,32,0.4); }
.map-pin svg { width: 32px; height: 32px; fill: #fff; }
.map-fallback-inner h3 { font-size: 20px; color: #fff; margin-bottom: 12px; }
.map-fallback-inner p { font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.8; margin-bottom: 24px; }

.location-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; }
.location-card h3 { font-size: 20px; color: var(--primary); margin-bottom: 20px; }
.location-list { margin: 0; flex: 1; }
.location-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.location-row:last-of-type { border-bottom: none; }
.location-row dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); margin-bottom: 6px; }
.location-row dd { margin: 0; font-size: 14px; color: var(--text); line-height: 1.7; }
.location-row dd a { color: var(--primary); font-weight: 500; }
.location-row dd a:hover { color: var(--accent); }
.location-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.location-actions .btn { flex: 1; min-width: 150px; padding: 12px 20px; font-size: 14px; }
.location-hint { font-size: 12px; color: var(--text-light); line-height: 1.6; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }

.location-note { margin-top: 24px; padding: 20px; background: var(--bg-light); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; display: flex; gap: 14px; }
.location-note-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; background: rgba(244,121,32,0.12); display: flex; align-items: center; justify-content: center; }
.location-note-icon svg { width: 20px; height: 20px; fill: var(--accent); }
.location-note h4 { font-size: 15px; color: var(--primary); margin-bottom: 6px; }
.location-note p { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 12px; }
.location-note-btn { padding: 10px 20px; font-size: 13px; }

@media (max-width: 1024px) {
  .location-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 380px; }
}
@media (max-width: 768px) {
  .map-wrap { min-height: 300px; }
  .location-card { padding: 24px; }
  .location-actions .btn { min-width: 100%; }
}

/* ========== CTA BANNER ========== */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); text-align: center; padding: 64px 24px; }
.cta-banner h2 { font-size: 32px; color: #fff; margin-bottom: 12px; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }

/* ========== PAGE HEADER (inner pages) ========== */
.page-header { margin-top: var(--nav-height); padding: 60px 0 0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* 5 columns do not tile evenly into 2: let the brand span the full row so the
     remaining four (Services / Quick Links / Contact / Follow Us) form a clean
     2x2 block instead of leaving Follow Us stranded on its own row. */
  .footer-brand { grid-column: 1 / -1; }
  .footer-col-social { align-items: flex-start; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero-content { padding: 48px 0; }
  .hero { min-height: 440px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-content { grid-template-columns: 1fr; }
  .about-img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-logos { gap: 20px; }
  .cap-table th, .cap-table td { padding: 12px; font-size: 13px; }
  .service-detail-row { grid-template-columns: 1fr !important; }
  .cases-detail-grid { grid-template-columns: 1fr !important; }
  .industries-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .about-stats { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  }

/* ========== PREFERS REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
