/* ─────────────────────────────────────────────────────────────
   flex4grid · main.css
   ───────────────────────────────────────────────────────────── */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --navy:         #1f3a58;
  --navy-dark:    #15293d;
  --gold:         #ffaa00;
  --gold-dark:    #e09600;
  --accent:       #5975de;
  --accent-light: rgba(89, 117, 222, 0.12);
  --white:        #ffffff;
  --light:        #f6f7fb;
  --border:       #e2e8f0;
  --text:         #1a2535;
  --muted:        #64748b;
  --header-h:     72px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html   { scroll-behavior: smooth; }
body   { font-family: 'Lato', sans-serif; color: var(--text); background: var(--white); }
a      { color: inherit; text-decoration: none; }

/* ── HEADER ─────────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h); background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.logo {
  display: flex; align-items: center;
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: 1.65rem; color: var(--white); letter-spacing: -0.02em;
}
.logo-bolt { color: var(--gold); }
.logo-img  { height: 44px; width: auto; display: block; }

.nav-toggle-input { display: none; }
.nav-toggle-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; cursor: pointer; border-radius: 5px;
}
.nav-toggle-btn span {
  display: block; width: 22px; height: 2px; background: var(--white); margin: 0 auto;
  transition: transform .2s, opacity .2s;
}

nav { display: flex; align-items: center; gap: 2px; }

.nav-item { position: relative; }

.nav-btn {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: .88rem;
  color: rgba(255, 255, 255, 0.88); background: none; border: none;
  padding: 8px 13px; border-radius: 5px; cursor: pointer;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-btn:hover,
.nav-btn.active { color: var(--gold); background: rgba(255, 255, 255, 0.09); }

.nav-arrow { font-size: .65rem; transition: transform .2s; display: inline-block; }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16); min-width: 280px;
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all .22s;
  display: flex; flex-direction: column;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dd-item {
  display: block; padding: 10px 20px;
  font-family: 'Lato', sans-serif; font-size: .9rem;
  color: var(--text);
  border-left: 3px solid transparent; transition: all .15s;
}
.dd-item:hover { color: var(--navy); background: var(--light); border-left-color: var(--gold); }

.dd-item.dd-sub {
  padding-left: 32px; font-size: .85rem;
  color: var(--muted); border-left-color: transparent !important;
}
.dd-item.dd-sub:hover { color: var(--navy); background: var(--light); }

.dd-item.coming-soon {
  color: var(--muted); font-style: italic; cursor: default; pointer-events: none;
}

.lang-toggle {
  margin-left: 12px;
  font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: .82rem;
  background: rgba(255, 255, 255, 0.12); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 5px;
  padding: 6px 14px; transition: all .2s; display: inline-block;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.22); color: var(--white); }

/* ── Page top offset ─────────────────────────────────────────── */
main { padding-top: var(--header-h); min-height: 100vh; }

/* ── HOME HERO ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}

.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; width: 100%;
}

.hero-eyebrow {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}

.hero-title {
  font-family: 'Source Sans 3', sans-serif; font-weight: 900;
  font-size: 2.9rem; color: var(--white); line-height: 1.12; margin-bottom: 22px;
}
.hero-title em { color: var(--gold); font-style: normal; }

.hero-sub {
  font-size: 1.05rem; color: rgba(255, 255, 255, 0.72); line-height: 1.75; margin-bottom: 40px;
}

.btn-gold {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: .9rem;
  background: var(--gold); color: var(--navy); border: none;
  padding: 14px 34px; border-radius: 6px; cursor: pointer;
  transition: all .2s; text-transform: uppercase; letter-spacing: .06em;
  display: inline-block;
}
.btn-gold:hover {
  background: var(--gold-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 170, 0, 0.32);
  color: var(--navy);
}

.hero-visual { display: grid; gap: 16px; }

.hero-img {
  width: 100%; aspect-ratio: 16/9; object-fit: contain;
  /* border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); */
  display: block;
}

/* ── SERVICE ITEMS ───────────────────────────────────────────── */
.services-section  { padding: 80px 0 0; }
.services-header   { padding: 0 40px; max-width: 1200px; margin: 0 auto 56px; }

.sec-label {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.sec-title {
  font-family: 'Source Sans 3', sans-serif; font-weight: 900;
  font-size: 2.1rem; color: var(--navy); margin-bottom: 10px;
}
.sec-sub { font-size: .98rem; color: var(--muted); max-width: 560px; line-height: 1.7; }

.services-stack  { display: flex; flex-direction: column; }
.service-item {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px; border-top: 1px solid var(--border);
}
.service-item:last-child { border-bottom: 1px solid var(--border); }
.service-item.reverse .sitem-photo { order: 2; }
.service-item.reverse .sitem-info  { order: 1; }

.sitem-photo  { position: relative; overflow: hidden; cursor: pointer; }
.sitem-photo-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.sitem-photo:hover .sitem-photo-bg { transform: scale(1.04); }

.photo-bg-1 { background-image: linear-gradient(135deg, rgba(13,34,51,.55), rgba(42,96,133,.35)), url("/assets/img/card1.jpg"); }
.photo-bg-2 { background-image: linear-gradient(135deg, rgba(15,37,24,.55), rgba(42,110,72,.35)), url("/assets/img/card2.jpg"); }
.photo-bg-3 { background-image: linear-gradient(135deg, rgba(26,18,64,.55), rgba(28,61,90,.35)), url("/assets/img/card3.jpg"); }

.sitem-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 34, 51, 0.97) 0%, rgba(13, 34, 51, 0.75) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 40px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.sitem-photo:hover .sitem-overlay { opacity: 1; transform: translateY(0); }

.sitem-overlay-label {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.sitem-overlay p { font-size: .95rem; color: rgba(255, 255, 255, 0.9); line-height: 1.72; margin: 0; }

.sitem-info {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 64px; background: var(--white);
}
.sitem-title {
  font-family: 'Source Sans 3', sans-serif; font-weight: 900;
  font-size: 1.55rem; color: var(--navy); line-height: 1.22; margin-bottom: 18px;
}
.sitem-claim {
  font-size: 1rem; color: var(--navy); font-style: italic; font-weight: 700;
  line-height: 1.55; margin-bottom: 18px;
  padding-left: 18px; border-left: 3px solid var(--gold);
}
.sitem-desc { font-size: .93rem; color: var(--muted); line-height: 1.78; margin-bottom: 32px; }

/* ── ABOUT SECTION ───────────────────────────────────────────── */
.about-section { background: var(--light); padding: 100px 40px; }
.about-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.about-text p { font-size: 1rem; line-height: 1.82; color: var(--text); margin-bottom: 22px; }

.about-box { background: var(--navy); border-radius: 14px; padding: 44px; }
.about-box h3 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: 1.25rem;
  color: var(--gold); margin-bottom: 18px;
}
.about-box p { font-size: .95rem; line-height: 1.8; color: rgba(255, 255, 255, 0.82); margin-bottom: 20px; }
.about-box p:last-child { margin-bottom: 0; }

/* ── PARTNERS ────────────────────────────────────────────────── */

/* ── CTA BAR ─────────────────────────────────────────────────── */
.cta-bar           { background: var(--gold); padding: 72px 40px; text-align: center; }
.cta-bar h2 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 900;
  font-size: 1.9rem; color: var(--navy); margin-bottom: 8px;
}
.cta-bar p         { font-size: .98rem; color: rgba(13, 34, 51, 0.75); margin-bottom: 28px; line-height: 1.6; }

.btn-navy {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: .9rem;
  background: var(--navy); color: var(--white); border: none;
  padding: 14px 34px; border-radius: 6px; cursor: pointer;
  transition: all .2s; text-transform: uppercase; letter-spacing: .06em;
  display: inline-block;
}
.btn-navy:hover {
  background: var(--navy-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 34, 51, 0.3); color: var(--white);
}

/* ── INNER PAGE HERO ─────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 72px 40px 64px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-hero .tag {
  display: inline-block; background: var(--accent-light);
  color: var(--accent); font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: .74rem; padding: 5px 14px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px;
}
.page-hero h1 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 900;
  font-size: 2.5rem; color: var(--white); margin-bottom: 16px; line-height: 1.15;
}
.page-hero p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.72); line-height: 1.75; max-width: 700px; }

/* ── PAGE CONTENT ────────────────────────────────────────────── */
.page-content         { max-width: 900px; margin: 0 auto; padding: 72px 40px; }
.page-content h2 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: 1.7rem; color: var(--navy); margin: 52px 0 18px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p       { font-size: .98rem; line-height: 1.82; color: var(--text); margin-bottom: 20px; }
.page-content a       { color: var(--accent); }
.page-content table   { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: .92rem; }
.page-content th, .page-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.page-content th      { color: var(--navy); font-weight: 700; }

.sitemap-content ul   { list-style: none; margin: 0 0 8px; }
.sitemap-content li   { margin-bottom: 8px; }
.sitemap-content li a { font-size: .95rem; color: var(--accent); }
.sitemap-content li a:hover { color: var(--navy); text-decoration: underline; }

.highlight-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: 13px; padding: 40px; margin: 40px 0;
}
.highlight-box h3 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: 1.15rem; color: var(--gold); margin-bottom: 12px;
}
.highlight-box p { color: rgba(255, 255, 255, 0.82); margin-bottom: 0; }

.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin: 40px 0;
}
.value-card {
  background: var(--light); border-radius: 10px; padding: 28px;
  border-top: 3px solid var(--gold);
}
.value-card h4 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--navy); margin-bottom: 8px;
}
.value-card p { font-size: .875rem; color: var(--muted); margin-bottom: 0; line-height: 1.65; }

.empty-state {
  background: var(--light); border-radius: 12px; padding: 64px; text-align: center; color: var(--muted);
}
.empty-state h3 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: 1.2rem; color: var(--navy); margin-bottom: 10px;
}
.empty-state p { font-size: .9rem; }

.partner-list {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0;
}
.partner-list li {
  background: var(--light); border-radius: 8px; padding: 18px 22px;
  font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: .9rem; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.partner-list li::before { content: '→'; color: var(--gold); font-weight: 700; }

.career-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0; }

.cv-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--light); border-radius: 10px; padding: 22px;
}
.cv-icon-bar { width: 4px; min-height: 56px; border-radius: 2px; background: var(--gold); flex-shrink: 0; }
.cv-item h4 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: .9rem; color: var(--navy); margin-bottom: 4px;
}
.cv-item p { font-size: .83rem; color: var(--muted); line-height: 1.6; margin-bottom: 0; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer              { background: var(--navy-dark); color: var(--light); border-top: 4px solid var(--gold); }
.footer-inner       { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.footer-follow {
  display: flex; align-items: center; gap: 18px;
  padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: .92rem; color: var(--light);
}
.footer-social      { display: flex; gap: 10px; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--accent); color: var(--white); transition: background .2s;
}
.social-icon svg    { width: 18px; height: 18px; }
.social-icon:hover  { background: var(--gold); }

.footer-bottom {
  padding: 18px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; font-size: .8rem; flex-wrap: wrap;
  color: rgba(255,255,255,.7);
}
.footer-links       { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a     { color: rgba(255,255,255,.7); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }

/* ── MODAL ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.52); z-index: 1000;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 16px; padding: 48px;
  max-width: 520px; width: 92%; max-height: 92vh; overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: var(--muted); line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal h2 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: 1.55rem; color: var(--navy); margin-bottom: 6px;
}
.modal-sub { font-size: .9rem; color: var(--muted); margin-bottom: 30px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: 'Source Sans 3', sans-serif; font-weight: 600;
  font-size: .83rem; color: var(--navy); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-family: 'Lato', sans-serif; font-size: .93rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s; background: var(--white); resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 135, 215, 0.15);
}
.form-group textarea { min-height: 110px; }

.form-success {
  background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: 8px;
  padding: 20px; text-align: center; color: #065f46;
  font-family: 'Source Sans 3', sans-serif; font-weight: 600; display: none;
}

/* ── BREADCRUMB ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: .8rem;
  color: rgba(255, 255, 255, 0.5); margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumb a          { color: rgba(255, 255, 255, 0.5); transition: color .15s; }
.breadcrumb a:hover    { color: var(--gold); }
.breadcrumb .sep       { color: rgba(255, 255, 255, 0.25); }
.breadcrumb [aria-current="page"] { color: rgba(255, 255, 255, 0.85); }

/* ── INLINE TAGS ─────────────────────────────────────────────── */
.inline-tag {
  display: inline-block; background: var(--accent-light);
  color: var(--accent); font-family: 'Source Sans 3', sans-serif; font-weight: 700;
  font-size: .74rem; padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .09em; margin-right: 6px; margin-bottom: 4px;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { opacity: 0; animation: fadeUp .65s ease forwards; }
.hero-content > *:nth-child(1) { animation-delay: .10s; }
.hero-content > *:nth-child(2) { animation-delay: .22s; }
.hero-content > *:nth-child(3) { animation-delay: .34s; }
.hero-content > *:nth-child(4) { animation-delay: .46s; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1180px) {
  header          { padding: 0 20px; }
  .hero-inner     { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px; }
  .hero-visual    { display: none; }
  .service-item   { grid-template-columns: 1fr; min-height: auto; }
  .service-item.reverse .sitem-photo,
  .service-item.reverse .sitem-info  { order: unset; }
  .sitem-photo    { min-height: 240px; }
  .sitem-info     { padding: 40px 24px; }
  .about-inner    { grid-template-columns: 1fr; gap: 40px; }
  .value-grid     { grid-template-columns: 1fr; }
  .partner-list   { grid-template-columns: 1fr; }
  .career-values  { grid-template-columns: 1fr; }
  .page-content   { padding: 48px 20px; }
  .page-hero      { padding: 48px 20px 40px; }

  .nav-toggle-btn { display: flex; }

  nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--navy-dark); padding: 12px 20px 32px;
    transform: translateX(100%); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav-toggle-input:checked ~ nav {
    transform: translateX(0); opacity: 1; visibility: visible;
  }
  .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-item        { width: 100%; }
  .nav-btn         { width: 100%; justify-content: space-between; padding: 14px 8px; pointer-events: none; }
  .nav-arrow       { display: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; min-width: 0; max-height: none; overflow: visible;
    background: transparent; padding: 4px 0 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .dd-item         { color: rgba(255,255,255,.8); }
  .dd-item:hover   { background: rgba(255,255,255,.08); color: var(--white); }
  .dd-item.dd-sub  { color: rgba(255,255,255,.6); }
  .lang-toggle     { margin: 16px 0 0; align-self: flex-start; }
}

@media (max-width: 600px) {
  .footer-follow  { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom  { flex-direction: column; gap: 16px; text-align: center; }
  .hero-title     { font-size: 2rem; }
  .page-hero h1   { font-size: 1.8rem; }
}
