/* KARS Corporation — institutional corporate style */
:root {
  --navy: #16265c;
  --navy-dark: #0e1a42;
  --navy-ink: #101c46;
  --ink: #1a2332;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --line: #e2e6ec;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
section { scroll-margin-top: 84px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { max-width: 780px; }
.wrap.center, .center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section { padding: 5.5rem 0; }
.section.alt { background: var(--bg-alt); }
.kicker {
  text-transform: uppercase; letter-spacing: .24em; font-size: .75rem;
  color: var(--navy); font-weight: 700; margin-bottom: 1rem;
}
.kicker.light { color: rgba(255,255,255,.75); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 1.1rem; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 660px; margin-bottom: 2.6rem; }

/* ---------- Entrance ---------- */
#entrance {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 1.2rem;
  animation: entranceOut .6s ease 1s forwards;
}
#entrance .e-logo { width: 220px; height: auto; }
#entrance .e-text {
  color: #fff; letter-spacing: .45em; font-size: .78rem; font-weight: 600; padding-left: .45em;
}
#entrance .e-loader {
  width: 180px; height: 3px; background: rgba(255,255,255,.15);
  border-radius: 2px; overflow: hidden; margin-top: .5rem;
}
#entrance .e-loader::after {
  content: ""; display: block; height: 100%; width: 40%;
  background: #fff; border-radius: 2px;
  animation: eLoad 1s ease-in-out infinite;
}
@keyframes eLoad {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(450%); }
}
@keyframes entranceOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Nav : transparent over hero, white on scroll ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-logo { height: 40px; width: auto; display: block; }
.links { display: flex; align-items: center; gap: 1.7rem; }
.links a { text-decoration: none; color: #fff; font-weight: 600; font-size: .93rem; }
.links a:hover { opacity: .75; }
/* White bar once scrolled */
.nav.scrolled { background: #fff; box-shadow: 0 2px 14px rgba(16,28,70,.10); }
.nav.scrolled .links a { color: var(--ink); }
.nav.scrolled .login-link { color: var(--muted); border-color: var(--line); }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.5); }
.nav.scrolled .lang-toggle { border-color: var(--line); }
.lang-toggle button {
  border: none; background: transparent; padding: .35rem .75rem; font-size: .76rem;
  font-weight: 700; cursor: pointer; color: rgba(255,255,255,.75); font-family: inherit;
}
.nav.scrolled .lang-toggle button { color: var(--muted); }
.lang-toggle button.active { background: var(--navy); color: #fff !important; }
.login-link {
  font-size: .85rem !important; font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,.5); padding: .45rem 1rem !important;
}
.btn-nav {
  background: var(--navy); color: #fff !important;
  padding: .65rem 1.6rem; font-weight: 700;
}
.nav.scrolled .btn-nav { color: #fff !important; }
.btn-nav:hover { background: var(--navy-dark); opacity: 1 !important; }
.burger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #fff; }
.nav.scrolled .burger { color: var(--ink); }

/* ---------- Buttons : sharp, no rounding, no shadow ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 1rem 2.4rem; font-size: .95rem; letter-spacing: .04em;
  border: none; cursor: pointer; font-family: inherit;
  transition: background .18s ease, color .18s ease;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-dark); }
.btn.ghost { border: 1px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn.ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- Hero : full viewport photo + navy wash ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff; position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("images/hero-skyline.jpg") center/cover no-repeat;
  animation: heroZoom 30s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,26,66,.92) 0%, rgba(14,26,66,.62) 48%, rgba(14,26,66,.28) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 7rem 1.5rem 4rem; width: 100%; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.9rem, 6.5vw, 5.4rem);
  max-width: 900px; margin: 0 0 1.4rem;
}
.hero .sub { font-size: 1.2rem; max-width: 620px; color: rgba(255,255,255,.85); margin-bottom: 2.4rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Numbers : GIC style ---------- */
.numbers { background: #fff; border-bottom: 1px solid var(--line); }
.numbers .wrap { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.num-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.num-head h2 { margin-bottom: 0; }
.num-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.num-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.num-stat { padding: 0 2rem; border-left: 1px solid var(--line); }
.num-stat:first-child { border-left: none; padding-left: 0; }
.num-stat .num {
  display: block; font-size: clamp(3.2rem, 6vw, 5rem); font-weight: 800;
  color: var(--navy); letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.num-stat .lbl { display: block; margin-top: .7rem; color: var(--muted); font-size: .92rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin: 3rem 0; }
.two-col p { color: #334155; font-size: 1.05rem; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 1rem; }
.tl-item { border-top: 3px solid var(--navy); padding-top: 1.4rem; }
.tl-year { display: block; font-weight: 800; font-size: 1.05rem; color: var(--navy); margin-bottom: .6rem; letter-spacing: .02em; }
.tl-item h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.tl-item p { color: var(--muted); font-size: .96rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.pillar { padding: 2.2rem 2rem 2.2rem 0; border-bottom: 1px solid var(--line); }
.pillar + .pillar { padding-left: 2rem; }
.pillar-num { display: block; font-size: .85rem; font-weight: 800; color: var(--navy); letter-spacing: .18em; margin-bottom: 1rem; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.pillar p { color: var(--muted); font-size: .96rem; }
.pillar ul { list-style: none; }
.pillar li { color: var(--muted); font-size: .95rem; padding: .35rem 0 .35rem 1.5rem; position: relative; }
.pillar li::before { content: "—"; position: absolute; left: 0; color: var(--navy); font-weight: 700; }

/* ---------- Group cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.cards.carousel { display: flex; overflow: hidden; scroll-behavior: smooth; }
.cards.carousel .card { flex: 0 0 calc(33.333% - 1rem); min-width: 0; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 1.5rem; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: #ccc; cursor: pointer; padding: 0; }
.carousel-dots button.active { background: #1a365d; }
.card {
  border: 1px solid var(--line); background: #fff;
  padding: 2.2rem; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: border-color .18s ease;
}
.card:hover { border-color: var(--navy); }
.card-mark {
  width: 64px; height: 64px; background: #fff; color: var(--navy);
  border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; margin-bottom: 1.4rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.card-ent { color: var(--navy); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.tags { display: flex; flex-wrap: nowrap; gap: .45rem; margin-top: auto; }
.tag { background: var(--bg-alt); color: var(--ink); font-size: .72rem; font-weight: 600; padding: .3rem .6rem; white-space: nowrap; }
.card .ext { color: var(--navy); }

/* ---------- Portfolio : two-panel split ---------- */
.portfolio-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.pf-left { background: var(--navy); color: #fff; padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.pf-left h2 { color: #fff; }
.pf-lede { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 2.5rem; max-width: 440px; }
.pf-rows { border-top: 1px solid rgba(255,255,255,.22); }
.pf-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.7rem 0; border-bottom: 1px solid rgba(255,255,255,.22);
  color: #fff; text-decoration: none;
}
a.pf-row:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.pf-row h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.pf-row p { color: rgba(255,255,255,.7); font-size: .95rem; margin: 0; }
.pf-arrow { font-size: 1.6rem; font-weight: 400; flex-shrink: 0; }
.pf-right { background: url("images/panel-office.jpg") center/cover no-repeat; min-height: 420px; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; margin-top: 2.5rem; }
.value-num { display: block; font-size: .85rem; font-weight: 800; color: var(--navy); letter-spacing: .18em; margin-bottom: .9rem; }
.value h3 { font-size: 1.08rem; margin-bottom: .6rem; }
.value p { color: var(--muted); font-size: .93rem; }

/* ---------- Certs ---------- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.cert { border: 1px solid var(--line); background: #fff; padding: 2.4rem 2rem; }
.cert-badge {
  display: inline-block; background: var(--navy); color: #fff;
  font-weight: 800; font-size: .85rem; letter-spacing: .05em;
  padding: .55rem 1.1rem; margin-bottom: 1.2rem;
}
.cert h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.cert p { color: var(--muted); font-size: .93rem; }

/* ---------- Presence ---------- */
.countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.country { border-top: 3px solid var(--navy); padding-top: 1.4rem; }
.country h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.country p { font-size: .95rem; color: #334155; }
.country .addr { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.contact-item { border: 1px solid var(--line); padding: 1.6rem; font-size: .95rem; background: #fff; }
.contact-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--navy); margin-bottom: .5rem; }
.contact-item a { color: var(--navy); font-weight: 600; }
.hq-addr { font-size: .8rem; line-height: 1.5; }
.contact-form label { display: block; margin-bottom: 1.3rem; font-weight: 600; font-size: .92rem; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: .4rem;
  border: 1px solid var(--line); padding: .85rem 1rem;
  font-size: .95rem; font-family: inherit; font-weight: 400;
  background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-note { color: var(--muted); font-size: .88rem; margin-top: .8rem; }

/* ---------- Footer ---------- */
footer { background: #2b2f36; color: rgba(255,255,255,.75); padding: 3.5rem 0 1.8rem; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.foot-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; font-weight: 700; }
.foot-col a { display: block; color: rgba(255,255,255,.65); text-decoration: none; font-size: .88rem; margin-bottom: .7rem; }
.foot-col a:hover { color: #fff; }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; margin-bottom: 2.5rem; }
.foot-logo { height: 44px; width: auto; display: block; margin-bottom: 1.1rem; }
footer .muted { font-size: .92rem; max-width: 380px; }
.foot-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.foot-links a { color: #fff; text-decoration: none; font-size: .92rem; font-weight: 600; }
.foot-links a:hover { opacity: .7; }
.copy { text-align: left; color: rgba(255,255,255,.45); font-size: .82rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; max-width: 1180px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .portfolio-split { grid-template-columns: 1fr; }
  .pf-left { padding: 3.5rem 1.5rem; }
  .pf-right { min-height: 320px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .num-head { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 1.4rem; gap: 0; box-shadow: 0 12px 24px rgba(16,28,70,.12);
  }
  .links.open { display: flex; }
  .links a { color: var(--ink) !important; padding: .75rem 0; border-top: 1px solid var(--line); }
  .links .btn-nav { color: #fff !important; text-align: center; margin-top: .8rem; border-top: none; }
  .links .login-link { border: 1px solid var(--line); text-align: center; margin-top: .6rem; }
  .lang-toggle { margin-top: .8rem; align-self: flex-start; border-color: var(--line); }
  .lang-toggle button { color: var(--muted) !important; }
  .burger { display: block; }
  .two-col, .timeline, .pillars, .cards, .certs, .countries { grid-template-columns: 1fr; }
  .pillar + .pillar { padding-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .num-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .num-stat:nth-child(3) { border-left: none; padding-left: 0; }
  .grid2 { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .foot { flex-direction: column; }
  .section { padding: 4rem 0; }
}

/* Justified about paragraphs */
.two-col.justify p { text-align: justify; }

/* Card logo images */
.card-mark img { width: 48px; height: 48px; object-fit: contain; }

/* Pillars lede on one line */
#pillars .lede { white-space: nowrap; }
@media (max-width: 768px) { #pillars .lede { white-space: normal; } }

/* Justified timeline descriptions */
.tl-item p { text-align: justify; }

/* Centered footer copyright */
.foot-bottom { text-align: center; font-size: .82rem; color: rgba(255,255,255,.45); padding: 1.2rem 0; }

/* Policy pages */
.policy-body { max-width: 800px; margin: 0 auto; padding: 120px 24px 80px; }
.policy-body h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.policy-body .updated { color: #6b7280; margin-bottom: 2rem; }
.policy-body h2 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.policy-body p, .policy-body li { line-height: 1.7; color: #374151; }
.policy-body ul { padding-left: 1.4rem; }
