/* ==========================================================================
   M.M. Group — Corporate Website
   Design system: light, soft, material, customer-friendly
   Palette derived from logo: navy #292767 · blue #245CA0 · cyan #278ECA
   Type: Lexend (display) + Source Sans 3 (body)
   ========================================================================== */

:root {
  --navy-900: #171f42;
  --navy: #292767;
  --blue: #245CA0;
  --cyan: #278ECA;
  --cyan-bright: #2fa8e0;

  --primary: var(--blue);
  --primary-dark: var(--navy);
  --primary-light: #e8eefa;
  --accent: var(--cyan);
  --accent-light: #e3f2fc;

  --text: #0f1a2e;
  --text-light: #5a6b85;
  --text-faint: #8b99b0;

  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef3f9;
  --border: #e3e9f2;
  --border-strong: #d3dcea;

  --shadow-sm: 0 1px 3px rgba(15, 26, 46, 0.06), 0 1px 2px rgba(15, 26, 46, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 26, 46, 0.08), 0 2px 6px rgba(15, 26, 46, 0.05);
  --shadow-lg: 0 18px 44px rgba(15, 26, 46, 0.12), 0 4px 10px rgba(15, 26, 46, 0.06);
  --shadow-accent: 0 8px 24px rgba(36, 92, 160, 0.28);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: 'Lexend', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --gradient-brand: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 40%, var(--blue) 75%, var(--cyan) 100%);
  --gradient-soft: linear-gradient(135deg, #eef3fb 0%, #f0f8fe 100%);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; }

::selection { background: rgba(39, 142, 202, 0.22); }
:focus-visible { outline: 3px solid rgba(39, 142, 202, 0.45); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.22; color: var(--text); letter-spacing: -0.015em; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.header.scrolled {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img {
  height: 36px; width: auto;
  object-fit: contain;
  transition: var(--transition);
}
.logo:hover img { opacity: 0.85; }

.nav ul { display: flex; gap: 6px; }
.nav a {
  font-size: 0.95rem; font-weight: 600; color: var(--text-light);
  padding: 10px 16px; border-radius: var(--radius-pill);
  position: relative; letter-spacing: 0.1px;
}
.nav a:hover { color: var(--primary); background: var(--surface-soft); }
.nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-cta {
  margin-left: 8px;
  background: var(--gradient-brand);
  color: #fff !important;
  padding: 10px 22px !important;
  box-shadow: var(--shadow-accent);
}
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(36, 92, 160, 0.35); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 12px; border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block; width: 22px; height: 2.5px;
  background: var(--text); border-radius: 2px; transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 92vh; min-height: 640px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy-900);
}
.hero-slider { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease;
  will-change: opacity;
}
.slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(23, 31, 66, 0.92) 0%, rgba(41, 39, 103, 0.72) 42%, rgba(36, 92, 160, 0.38) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding-top: 120px; padding-bottom: 110px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff; padding: 7px 18px; border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.6px;
  margin-bottom: 24px; border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-bright); box-shadow: 0 0 0 4px rgba(47, 168, 224, 0.25);
}
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  font-weight: 700; line-height: 1.12; margin-bottom: 22px; letter-spacing: -0.02em;
}
.text-accent {
  background: linear-gradient(120deg, #6ec3ec 0%, #2fa8e0 55%, #7fd0f4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: rgba(255, 255, 255, 0.88); font-size: 1.12rem; max-width: 560px; margin-bottom: 38px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; letter-spacing: 1.5px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: var(--radius-pill);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.2px;
  transition: var(--transition); cursor: pointer; border: none;
  min-height: 48px; font-family: var(--font-display);
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff; box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(36, 92, 160, 0.4);
}
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.btn-white:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.4); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-light-primary { background: var(--primary-light); color: var(--primary); }
.btn-light-primary:hover { background: #d8e3f8; transform: translateY(-2px); }
.btn-link {
  color: var(--primary); font-weight: 600; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 4px; min-height: auto; font-family: var(--font-body);
}
.btn-link:hover { gap: 11px; color: var(--accent); }
.btn-link::after { content: '→'; font-size: 1.05rem; }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-section { padding: 0 0 56px; margin-top: -44px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card {
  text-align: center; padding: 34px 18px 30px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-brand); opacity: 0.85;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-number {
  display: inline; font-size: 2.7rem; font-weight: 700;
  color: var(--primary); line-height: 1;
  font-family: var(--font-display); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-suffix { font-size: 1rem; font-weight: 600; color: var(--text-light); margin-left: 3px; }
.stat-label { display: block; margin-top: 10px; font-size: 0.92rem; color: var(--text-light); font-weight: 500; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); color: var(--blue);
  padding: 6px 18px; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.4px; margin-bottom: 16px;
}
.section-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.section-header h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700;
  line-height: 1.18; margin-bottom: 16px; color: var(--text);
}
.section-header p { color: var(--text-light); font-size: 1.08rem; line-height: 1.7; }

/* ==========================================================================
   About preview
   ========================================================================== */
.about-preview { background: var(--bg); }
.about-preview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-text p { margin-bottom: 18px; color: var(--text-light); font-size: 1.05rem; line-height: 1.75; }
.about-text strong { color: var(--text); font-weight: 600; }
.check-list { margin: 28px 0; }
.check-list li {
  padding: 9px 0 9px 32px; position: relative;
  color: var(--text-light); font-size: 1rem;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(23,31,66,0.35) 100%);
}
.about-image img { width: 100%; height: 460px; object-fit: cover; transition: transform 1.2s ease; }
.about-image:hover img { transform: scale(1.04); }
.about-exp {
  position: absolute; bottom: 22px; left: 22px; z-index: 2;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  color: var(--navy); padding: 16px 24px; border-radius: var(--radius);
  font-size: 1.9rem; font-weight: 700; line-height: 1.1; text-align: left;
  font-family: var(--font-display); box-shadow: var(--shadow-md);
}
.about-exp small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-light); margin-top: 4px; letter-spacing: 0.3px; }

/* ==========================================================================
   Companies
   ========================================================================== */
.companies-section { background: var(--gradient-soft); }
.companies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.company-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 40px 38px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); text-align: center;
  transition: var(--transition); position: relative; overflow: hidden;
}
.company-card::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(39,142,202,0.1) 0%, transparent 70%);
}
.company-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfe0f2; }
.company-icon {
  width: 58px; height: 58px;
  background: var(--gradient-brand); color: #fff; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 700; margin: 0 auto 22px;
  font-family: var(--font-display); box-shadow: var(--shadow-accent);
}
.company-card h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 6px; }
.company-sub { color: var(--accent); font-size: 0.86rem; font-weight: 600; margin-bottom: 18px; letter-spacing: 0.3px; text-transform: uppercase; }
.company-card p { color: var(--text-light); line-height: 1.7; margin-bottom: 22px; }
.company-stats { border-top: 1px solid var(--border); padding-top: 18px; margin-bottom: 22px; list-style: none; }
.company-stats li {
  padding: 7px 0; color: var(--text-light); font-size: 0.95rem;
  display: flex; align-items: baseline; gap: 10px; justify-content: center;
}
.company-stats li::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0; transform: translateY(-2px);
}

/* ==========================================================================
   Capabilities cards
   ========================================================================== */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px 28px; text-align: center;
  transition: var(--transition); position: relative; overflow: hidden;
}
.cap-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.cap-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gradient-brand); opacity: 0; transition: var(--transition);
}
.cap-card:hover::before { opacity: 1; }
.cap-icon {
  width: 54px; height: 54px; margin: 0 auto 20px;
  background: var(--accent-light); border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); transition: var(--transition);
}
.cap-card:hover .cap-icon { background: var(--gradient-brand); color: #fff; }
.cap-icon svg { width: 27px; height: 27px; }
.cap-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.cap-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.65; }
.section-cta { text-align: center; margin-top: 44px; }

/* ==========================================================================
   Certifications
   ========================================================================== */
.certs-section { background: var(--surface); }
.certs-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.cert-item {
  background: var(--bg); padding: 14px 28px; border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 600; color: var(--text-light);
  border: 1px solid var(--border); transition: var(--transition);
  letter-spacing: 0.3px;
}
.cert-item:hover {
  border-color: var(--cyan); color: var(--blue);
  background: var(--accent-light); transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-section { padding: 84px 0; background: var(--bg); }
.cta-box {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg); padding: 68px 56px;
  text-align: center; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-box::before {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 195, 236, 0.28) 0%, transparent 70%);
}
.cta-box::after {
  content: ''; position: absolute; left: -100px; bottom: -140px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 168, 224, 0.2) 0%, transparent 70%);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; }
.cta-box p { opacity: 0.92; font-size: 1.12rem; margin-bottom: 34px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.78); padding: 76px 0 0; position: relative; }
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-brand);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.5fr; gap: 44px; margin-bottom: 48px; }
.footer-brand .footer-logo-box {
  display: inline-flex; background: #fff; padding: 10px 18px;
  border-radius: var(--radius); margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.footer-brand .footer-logo-box img { height: 50px; width: auto; object-fit: contain; }
.footer-brand h3 { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; color: rgba(255, 255, 255, 0.6); }
.footer-links h4, .footer-contact h4 {
  color: #fff; font-size: 0.98rem; font-weight: 600; margin-bottom: 20px;
  letter-spacing: 0.4px; text-transform: uppercase; font-family: var(--font-display);
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.92rem; color: rgba(255, 255, 255, 0.62); }
.footer-links a:hover { color: #7fd0f4; padding-left: 4px; }
.footer-contact p { font-size: 0.92rem; line-height: 1.8; color: rgba(255, 255, 255, 0.62); }
.footer-contact p strong { color: rgba(255,255,255,0.9); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 26px 0; text-align: center; font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s ease forwards; }
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.25s; }
.fade-in:nth-child(3) { animation-delay: 0.45s; }
.fade-in:nth-child(4) { animation-delay: 0.65s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Interior pages
   ========================================================================== */
.page-hero {
  padding: 150px 0 72px;
  background: var(--gradient-brand);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,195,236,0.25) 0%, transparent 70%);
}
.page-hero::after {
  content: ''; position: absolute; left: -60px; bottom: -120px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,168,224,0.18) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3rem); font-weight: 700; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; margin-bottom: 22px; letter-spacing: 0.4px; }
.breadcrumb a { color: #9fd4f0; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { text-decoration: underline; }

.page-section { padding: 88px 0; }
.page-section:nth-child(even) { background: var(--gradient-soft); }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 48px; }
.content-grid:last-child { margin-bottom: 0; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.content-image img {
  width: 100%; height: 400px; object-fit: cover;
  transition: transform 1.1s ease;
}
.content-image:hover img { transform: scale(1.045); }
.content-text h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 16px; }
.content-text p { color: var(--text-light); line-height: 1.78; margin-bottom: 14px; font-size: 1.02rem; }
.content-text strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; height: 250px;
  position: relative; box-shadow: var(--shadow-sm);
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23,31,66,0.4) 100%);
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.gallery-item:hover img { transform: scale(1.07); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 900px; margin: 0 auto; }
.team-card {
  text-align: center; padding: 36px 28px 32px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-photo {
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover; object-position: top center; margin: 0 auto 20px;
  border: 5px solid var(--accent-light);
  box-shadow: var(--shadow-sm);
}
.team-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.team-card span { color: var(--accent); font-size: 0.86rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.team-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; margin-top: 14px; text-align: left; }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(to bottom, var(--cyan), var(--blue), var(--navy));
  transform: translateX(-50%); border-radius: 2px;
}
.timeline-item { display: flex; justify-content: flex-end; padding: 18px 0; position: relative; width: 50%; }
.timeline-item:nth-child(even) { align-self: flex-end; justify-content: flex-start; margin-left: 50%; }
.timeline-dot {
  position: absolute; left: -9px; top: 30px; width: 18px; height: 18px;
  background: var(--surface); border-radius: 50%;
  border: 4px solid var(--cyan); box-shadow: 0 0 0 5px rgba(39, 142, 202, 0.18);
}
.timeline-item:nth-child(even) .timeline-dot { left: auto; right: -9px; }
.timeline-content {
  background: var(--surface); padding: 26px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); max-width: 400px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.timeline-content:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.timeline-content h4 { font-weight: 600; margin-bottom: 4px; }
.timeline-content .year {
  color: var(--accent); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.8px; text-transform: uppercase; font-family: var(--font-display);
}
.timeline-content p { color: var(--text-light); font-size: 0.95rem; line-height: 1.65; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 28px; }
.contact-detail {
  display: flex; gap: 18px; margin-bottom: 26px; align-items: flex-start;
  background: var(--surface); padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-detail:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.contact-icon {
  width: 50px; height: 50px;
  background: var(--accent-light); color: var(--blue);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.25rem; font-weight: 700;
}
.contact-detail h4 { font-weight: 600; margin-bottom: 3px; font-size: 1.02rem; }
.contact-detail p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 40px; border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.92rem;
  color: var(--text); font-family: var(--font-display);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-family: var(--font-body); color: var(--text);
  transition: var(--transition); background: var(--bg);
}
.form-group input:hover, .form-group textarea:hover, .form-group select:hover { border-color: var(--border-strong); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--cyan); background: #fff;
  box-shadow: 0 0 0 4px rgba(39, 142, 202, 0.14);
}
.form-group textarea { height: 140px; resize: vertical; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235a6b85' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

/* ==========================================================================
   Capability detail blocks
   ========================================================================== */
.capability-detail { margin-bottom: 56px; }
.capability-detail:last-child { margin-bottom: 0; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.stat-box {
  background: var(--accent-light); padding: 20px 14px;
  border-radius: var(--radius); text-align: center;
  transition: var(--transition);
}
.stat-box:hover { background: var(--primary-light); transform: translateY(-2px); }
.stat-box strong {
  display: block; font-size: 1.25rem; color: var(--blue);
  font-family: var(--font-display); font-weight: 700; margin-bottom: 2px;
}
.stat-box span { font-size: 0.84rem; color: var(--text-light); font-weight: 500; }

/* ==========================================================================
   Map
   ========================================================================== */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
#map { height: 400px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 968px) {
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(18px);
    padding: 20px 24px 28px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a { display: block; padding: 13px 16px; font-size: 1.02rem; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 8px; }
  .menu-toggle { display: flex; }
  .logo img { height: 29px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview-grid { grid-template-columns: 1fr; gap: 40px; }
  .companies-grid { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .content-grid.reverse { direction: ltr; }
  .timeline::before { left: 14px; }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%; margin-left: 0; justify-content: flex-start; padding-left: 48px;
  }
  .timeline-item:nth-child(even) .timeline-dot { left: 5px; right: auto; }
  .timeline-dot { left: 5px; }
  .cta-box { padding: 48px 32px; }
  .hero { min-height: 560px; }
  .hero-content { padding-top: 96px; padding-bottom: 90px; }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-content h1 { text-align: center; }
  .hero-sub, .hero-actions, .hero-scroll { justify-content: center; }

  .content-text { text-align: center; }
  .content-text .section-tag { margin-left: auto; margin-right: auto; }
  .content-text .btn { margin-left: auto; margin-right: auto; }
  .content-text .stats-row { justify-items: center; }
  .content-text h3, .content-text h2 { text-align: center; }
  .about-text, .about-text p { text-align: center; }
  .about-image { margin: 0 auto; }
  .team-card, .company-card, .cap-card, .stat-box, .contact-info, .form-card { text-align: center; }
  .team-card p { text-align: center; }
  .company-icon, .cap-icon, .cert-icon, .info-icon { margin-left: auto; margin-right: auto; }
  .company-stats { text-align: center; }
  .company-stats li { justify-content: center; }
  .company-card .btn-link, .content-text .btn-link { display: inline-block; }
  .contact-detail { justify-content: center; flex-direction: column; text-align: center; }
  .check-list { text-align: left; display: inline-block; }
  .contact-info .contact-detail { align-items: center; }
}

@media (max-width: 576px) {
  .container { padding: 0 18px; }
  .header .container { position: relative; }
  .header .logo {
    position: absolute; left: 50%; transform: translateX(-50%);
    z-index: 1;
  }
  .logo img { height: 27px; }
  .menu-toggle { margin-left: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-card { padding: 26px 12px 24px; }
  .stat-number { font-size: 2.1rem; }
  .caps-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand .footer-logo-box { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 2.05rem; }
  .hero-content { padding-top: 120px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 72px 0; }
  .page-section { padding: 64px 0; }
  .about-image img { height: 340px; }
  .content-image img { height: 300px; }
  .gallery-item { height: 220px; }
  .company-card { padding: 30px 24px; }
  .form-card { padding: 28px 22px; }
  .cta-box { padding: 40px 24px; }
  .cta-box h2 { font-size: 1.6rem; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stats-row .stat-box { margin: 0; padding: 14px 6px; }
  .stats-row .stat-box strong { font-size: 1.05rem; }
  .stats-row .stat-box span { font-size: 0.72rem; }
  .hero-scroll { display: none; }
  .content-text .btn { display: block; text-align: center; }
  .check-list { display: block; }
  .contact-info .contact-icon { margin-left: auto; margin-right: auto; }
}
