/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --primary:        #1272c8;
  --primary-light:  #1a8de8;
  --primary-dark:   #0e5ca8;
  --accent:         #8b31c7;
  --background:     #ffffff;
  --foreground:     #1a1a1a;
  --muted:          #f5f5f5;
  --muted-fg:       #888888;
  --card-bg:        #fafafa;
  --border:         #e5e5e5;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.07);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10);
  --radius:         0.5rem;
  --radius-lg:      0.75rem;
  --font-sans:      'DM Sans', sans-serif;
  --font-display:   'Syne', sans-serif;
  --max-w:          80rem;
  --header-h:       72px;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .container { padding: 0 3rem; } }

.text-primary    { color: var(--primary); }
.text-muted      { color: var(--muted-fg); }
.text-gradient   {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all .25s;
  cursor: pointer;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-outline  { background: #f1f5f9; color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { background: #e2e8f0; }
.btn-white    { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f4ff; }
.btn-sm       { padding: .625rem 1.25rem; font-size: .875rem; border-radius: 99px; }

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, border-color .3s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(18,114,200,.25); }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  padding: 1.5rem 0;
  transition: padding .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  padding: .75rem 0;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-link { display: flex; align-items: center; gap: .75rem; }
.logo-img   { height: 2.5rem; width: auto; }
.logo-img--sm { height: 2rem; }
.logo-text  { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .05em; }

/* Desktop Nav */
.desktop-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .desktop-nav { display: flex; } }

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color .2s;
  position: relative;
}
.nav-link:hover { color: var(--foreground); }
.nav-link--active { color: var(--foreground); }
.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -.5rem;
  left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 9px;
}

/* Language Switcher */
.lang-switcher { display: flex; gap: .25rem; }
.lang-switcher--mobile { margin-top: 1rem; }
.lang-btn {
  padding: .25rem .5rem;
  border-radius: .25rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted-fg);
  transition: all .2s;
}
.lang-btn:hover { color: var(--primary); background: rgba(18,114,200,.08); }
.lang-btn--active { color: var(--primary); background: rgba(18,114,200,.1); }

/* Mobile Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }
.mobile-menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--foreground);
  border-radius: 9px;
  transition: transform .3s, opacity .3s;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #fff;
  padding-top: var(--header-h);
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.mobile-nav.open { transform: translateY(0); pointer-events: all; }
@media (min-width: 768px) { .mobile-nav { display: none; } }
.mobile-nav-inner {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}
.mobile-nav-link--active { color: var(--primary); }

/* ── Main ─────────────────────────────────────────────────────────────────── */
.main-content { padding-top: var(--header-h); min-height: 80vh; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  background: linear-gradient(135deg, #fff 0%, #eff6ff 50%, #fff 100%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem;
  border-radius: 99px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-badge-text { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.hero-title { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-desc  { font-size: 1.1rem; color: var(--muted-fg); max-width: 42rem; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Section ──────────────────────────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section--gray { background: #f9fafb; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 4rem; }
.section-header--center { text-align: center; }
.section-header--spread { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-title { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-sub   { color: var(--muted-fg); max-width: 36rem; }

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.grid   { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%,24rem),1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%,20rem),1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%,14rem),1fr)); }

/* ── Service Card ─────────────────────────────────────────────────────────── */
.service-card { padding: 2rem; border-radius: var(--radius-lg); }
.service-icon {
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.service-title { font-size: 1.2rem; margin-bottom: .75rem; }
.service-desc  { font-size: .9rem; color: var(--muted-fg); line-height: 1.7; }

/* ── Project Card ─────────────────────────────────────────────────────────── */
.project-card { border-radius: var(--radius-lg); overflow: hidden; }
.project-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}
.project-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.project-card:hover .project-img { transform: scale(1.07); }
.project-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: .25rem .75rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(18,114,200,.1);
  color: var(--primary);
  border: 1px solid rgba(18,114,200,.2);
}
.project-body  { padding: 1.5rem; }
.project-title { font-size: 1.25rem; margin-bottom: .5rem; transition: color .2s; }
.project-card:hover .project-title { color: var(--primary); }
.project-desc  { font-size: .875rem; color: var(--muted-fg); margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-link  { font-size: .875rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .4rem; }
.project-link:hover { opacity: .8; }
.project-link--muted { color: var(--muted-fg); }

/* ── Mission Card ─────────────────────────────────────────────────────────── */
.mission-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow .3s;
}
.mission-card:hover { box-shadow: var(--shadow-md); }
.mission-card--highlight {
  background: var(--primary);
  border-color: rgba(18,114,200,.2);
  color: #fff;
}
.mission-icon-wrap {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
}
.mission-card--highlight .mission-icon-wrap { background: rgba(255,255,255,.2); }
.mission-icon { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.mission-card--highlight .mission-icon { color: #fff; }
.mission-label { font-size: .7rem; font-family: monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: .25rem; }
.mission-card--highlight .mission-label { color: rgba(255,255,255,.6); }
.mission-name  { font-size: 1.2rem; color: var(--primary); margin-bottom: .75rem; }
.mission-card--highlight .mission-name { color: #fff; }
.mission-desc  { font-size: .875rem; color: var(--muted-fg); line-height: 1.7; }
.mission-card--highlight .mission-desc { color: rgba(255,255,255,.85); }

/* ── Page Hero ────────────────────────────────────────────────────────────── */
.page-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, #fff 0%, #eff6ff 50%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem;
  border-radius: 99px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  margin-bottom: 2rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}
.page-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
.page-sub   { font-size: 1.05rem; color: var(--muted-fg); max-width: 42rem; }

/* ── Timeline ─────────────────────────────────────────────────────────────── */
.timeline-wrap   { position: relative; max-width: 56rem; margin: 0 auto; }
.timeline-line   {
  position: absolute;
  left: 1rem;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(18,114,200,.5), rgba(139,49,199,.2), transparent);
}
@media (min-width: 768px) {
  .timeline-line { left: 50%; transform: translateX(-50%); }
}
.timeline-list   { list-style: none; display: flex; flex-direction: column; gap: 4rem; }
.timeline-item   {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 3.5rem;
  gap: 1rem;
}
@media (min-width: 768px) {
  .timeline-item { flex-direction: row; padding-left: 0; }
  .timeline-item.even { flex-direction: row-reverse; }
  .timeline-item .timeline-card { width: 50%; }
  .timeline-item .timeline-spacer { width: 50%; }
  .timeline-item .timeline-card { padding-right: 4rem; }
  .timeline-item.even .timeline-card { padding-right: 0; padding-left: 4rem; text-align: left; }
}
.timeline-node {
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  transform: translateX(-50%);
  z-index: 1;
}
@media (min-width: 768px) { .timeline-node { left: 50%; } }
.timeline-card   { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.timeline-year   { display: flex; align-items: center; gap: .5rem; color: var(--primary); margin-bottom: 1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.timeline-title  { font-size: 1.5rem; margin-bottom: .75rem; }
.timeline-desc   { color: var(--muted-fg); line-height: 1.7; }
.timeline-end    { text-align: center; padding-top: 3rem; color: var(--muted-fg); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; font-family: monospace; }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.5rem; }
.contact-info-icon { width: 1.25rem; height: 1.25rem; color: var(--primary); flex-shrink: 0; margin-top: .1rem; }
.contact-info-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-fg); display: block; margin-bottom: .2rem; }
.contact-info-val  { font-weight: 500; }
.contact-form-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; }
.form-group        { margin-bottom: 1.25rem; }
.form-label        { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; }
.form-control {
  width: 100%;
  padding: .875rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--foreground);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18,114,200,.15); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-msg { padding: 1rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: 1rem; }
.form-msg--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.form-msg--error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.recaptcha-note    { font-size: .75rem; color: var(--muted-fg); text-align: center; margin-top: .75rem; }
.recaptcha-note a  { color: var(--primary); }

/* ── CTA Section ──────────────────────────────────────────────────────────── */
.cta-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0e5ca8 100%);
  text-align: center;
  color: #fff;
}
.cta-title { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; margin-bottom: 1.5rem; }
.cta-sub   { color: rgba(255,255,255,.9); max-width: 36rem; margin: 0 auto 2.5rem; font-size: 1.1rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: #fff; margin-top: 6rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) { .footer-inner { padding: 3rem; } }
.footer-logo  { display: flex; align-items: center; gap: .5rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--muted-fg); }
.footer-copy  { font-size: .875rem; color: var(--muted-fg); text-align: center; }
.footer-badge { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.stars        { color: #facc15; font-size: 1rem; letter-spacing: 2px; }
.footer-certified { font-size: .7rem; color: var(--muted-fg); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 5rem 2rem; border: 2px dashed var(--border); border-radius: var(--radius-lg); color: var(--muted-fg); }

/* ── Animations ───────────────────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* Stagger delays */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ── Page-specific ────────────────────────────────────────────────────────── */
.page-hero-center { text-align: center; max-width: 48rem; margin: 0 auto; }
.icon-circle {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: rgba(18,114,200,.1);
  border: 1px solid rgba(18,114,200,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(18,114,200,.4); }
