/* GITG Holding Limited - corporate site.
   One fixed palette: dark and light sections alternate, as on the original site. */

:root {
  --dark: #0a1220;
  --dark-2: #111b2c;
  --on-dark: #eef1f6;
  --on-dark-soft: #b4bfcf;
  --on-dark-line: rgba(238, 241, 246, 0.16);

  --light: #ffffff;
  --light-2: #f3f5f8;
  --ink: #0b1f3a;
  --ink-soft: #46546a;
  --line: rgba(11, 31, 58, 0.12);

  --accent: #c8233f;

  --font: "Raleway", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --z-nav: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--light); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--light); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.logo {
  display: block; background: currentColor; aspect-ratio: 1244.48 / 315;
  -webkit-mask: url("assets/logo.svg") no-repeat left center / contain;
  mask: url("assets/logo.svg") no-repeat left center / contain;
}

/* ---------- Section themes ---------- */
.dark { background: var(--dark); color: var(--on-dark); }
.light { background: var(--light); color: var(--ink); }
.section { padding: var(--section) 0; position: relative; }
.h2 {
  margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2;
}
.center { text-align: center; }

/* Photo-backed dark sections: image + scrim for legible text */
.photo { background-size: cover; background-position: center; isolation: isolate; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 32, 0.72), rgba(10, 18, 32, 0.86)); }
.photo--overview { background-image: url("assets/img/overview.jpg"); }
.photo--contact { background-image: url("assets/img/contact.jpg"); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(10, 18, 32, 0.92); color: var(--on-dark);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--on-dark-line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__brand { width: 200px; color: var(--on-dark); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--on-dark-soft); transition: color 0.3s var(--ease); }
.nav__links a:hover { color: var(--on-dark); }
.nav__links a.btn { color: var(--dark); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--on-dark); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px;
  font: 700 13px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 17px; transition: transform 0.4s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn--light { background: var(--on-dark); color: var(--dark); }
.btn--light:hover { background: var(--accent); color: #fff; }
.btn--outline { border-color: var(--on-dark-line); color: var(--on-dark); }
.btn--outline:hover { border-color: var(--on-dark); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(78dvh, 720px); display: flex; align-items: center; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/img/hero.jpg") center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 18, 32, 0.88) 0%, rgba(10, 18, 32, 0.55) 60%, rgba(10, 18, 32, 0.35) 100%); }
.hero__content { padding-top: 64px; padding-bottom: 80px; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.1; letter-spacing: -0.01em; max-width: 15ch; }
.hero__lead { margin: 24px 0 36px; font-size: clamp(16px, 1.4vw, 19px); color: var(--on-dark-soft); max-width: 50ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Goal / Approach / Advantage ---------- */
/* Full-bleed rows like the original site: image fills its half edge to edge */
.splits { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: clamp(400px, 38vw, 580px); }
.split__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px) clamp(48px, 6vw, 96px) var(--edge); }
.split--rev .split__text { order: 2; padding: clamp(48px, 6vw, 96px) var(--edge) clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px); }
.split__icon { font-size: 40px; color: var(--accent); display: block; margin-bottom: 20px; }
.split__text p { margin: 16px 0 0; color: var(--ink-soft); font-size: 17px; max-width: 46ch; }
.split__img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Overview ---------- */
.points { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.points li {
  grid-column: span 2; padding: 28px; border: 1px solid var(--on-dark-line); border-radius: var(--radius);
  background: rgba(10, 18, 32, 0.45); font-size: 16px; font-weight: 500; line-height: 1.55;
}
.points li:nth-child(4) { grid-column: 2 / span 2; }
.points li i { display: block; font-size: 30px; color: var(--on-dark); margin-bottom: 16px; }

/* ---------- Mission ---------- */
.mission__grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mission__grid > div { padding: 36px; background: var(--light-2); border-top: 2px solid var(--accent); }
.mission__grid h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.mission__grid p { margin: 0; color: var(--ink-soft); }

/* ---------- Core values ---------- */
.values { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--on-dark-line); border: 1px solid var(--on-dark-line); }
.values li {
  background: var(--dark); padding: 40px 24px; text-align: center;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 15px;
  transition: background-color 0.4s var(--ease);
}
.values li:hover { background: var(--dark-2); }

/* ---------- Services ---------- */
.services { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.services li { text-align: center; font-weight: 600; font-size: 16px; line-height: 1.5; max-width: 30ch; margin: 0 auto; }
.services li i { display: block; font-size: 40px; color: var(--accent); margin: 0 auto 16px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__lead { color: var(--on-dark-soft); margin: 16px 0 32px; max-width: 44ch; font-size: 17px; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.details { margin: 0; border: 1px solid var(--on-dark-line); background: rgba(10, 18, 32, 0.55); border-radius: var(--radius); }
.details div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 24px; }
.details div + div { border-top: 1px solid var(--on-dark-line); }
.details dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); padding-top: 3px; }
.details dd { margin: 0; font-weight: 500; }
.details dd a { border-bottom: 1px solid var(--on-dark-line); transition: border-color 0.3s var(--ease); }
.details dd a:hover { border-color: var(--on-dark); }

/* ---------- Footer ---------- */
.footer { background: #060b14; color: var(--on-dark-soft); font-size: 13px; padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { width: 160px; color: var(--on-dark); }
.footer p { margin: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: breathe 24s ease-in-out infinite alternate; }
  @keyframes breathe { from { transform: scale(1); } to { transform: scale(1.08); } }
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .points { grid-template-columns: 1fr 1fr; }
  .points li, .points li:nth-child(4) { grid-column: auto; }
  .points li:last-child { grid-column: 1 / -1; }
  .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); border-bottom: 1px solid var(--on-dark-line); padding: 8px var(--gutter) 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0.3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links li a { display: block; padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--on-dark-line); }
  .nav__links li:last-child { margin-top: 20px; }
  .nav__links li:last-child a { display: inline-flex; border: 0; padding: 0 18px; }
  .nav__brand { width: 170px; }
  .split, .contact, .mission__grid { grid-template-columns: 1fr; }
  .split { min-height: 0; }
  .split__text, .split--rev .split__text { order: 0; padding: 56px var(--gutter) 32px; }
  .split__img { height: auto; aspect-ratio: 96 / 50; }
}
@media (max-width: 600px) {
  .points, .services { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .values li { padding: 28px 12px; font-size: 13px; }
  .points li:last-child { grid-column: auto; }
  .details div { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .mission__grid > div { padding: 28px 24px; }
}
