/* ==========================================================================
   KTL Group — Shared Stylesheet
   Brand palette (from KTL brand guidelines):
     #131B26 deep charcoal-navy   #020037 deep navy
     #0F1E7A royal blue           #154374 steel blue
     #4AEEFE cyan  #5C4DE2 violet  #FFF852 yellow (accents/outlines)
     Greys: #686868 #7e7f7f #939598 #b9babd
   Typeface: Roboto
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --bg:            #131B26;
  --bg-deep:       #020037;
  --bg-panel:      #182231;
  --bg-panel-2:    #1e2a3d;
  --blue-royal:    #0F1E7A;
  --blue-steel:    #154374;
  --cyan:          #4AEEFE;
  --violet:        #5C4DE2;
  --yellow:        #FFF852;
  --grey-1:        #b9babd;
  --grey-2:        #939598;
  --grey-3:        #7e7f7f;
  --grey-4:        #686868;
  --white:         #ffffff;
  --border:        rgba(74, 238, 254, 0.16);
  --border-soft:   rgba(255, 255, 255, 0.08);
  --shadow:        0 20px 50px rgba(0, 0, 0, 0.45);
  --radius:        14px;
  --radius-sm:     10px;
  --maxw:          1200px;
  --header-h:      74px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--grey-1);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--white); }
h1, h2, h3, h4 { color: var(--white); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
ul { list-style: none; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--grey-1); max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }
.divider { height: 4px; width: 64px; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 4px; margin: 0 0 28px; }
.center .divider { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 600; font-size: 0.98rem;
  cursor: pointer; border: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn--primary { background: linear-gradient(100deg, var(--cyan), var(--violet)); color: #06121b; }
.btn--primary:hover { color: #06121b; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(74,238,254,0.3); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid var(--border); }
.btn--ghost:hover { color: var(--white); border-color: var(--cyan); background: rgba(74,238,254,0.06); transform: translateY(-2px); }

/* ---- Announcement / notice bar ---- */
.notice-bar {
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  color: #06121b;
  text-align: center;
  font-size: 1.45rem; font-weight: 500; line-height: 1.5;
  padding: 27px 22px;
}
.notice-bar a { color: #06121b; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.notice-bar a:hover { color: #000; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(19, 27, 38, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.5rem; color: var(--white); letter-spacing: 0.02em; }
.brand:hover { color: var(--white); }
.brand .mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #06121b; font-weight: 900; font-size: 1.05rem; letter-spacing: -0.03em;
}
/* Logo image — the supplied logo is a light/white mark with transparency,
   so it sits directly on the dark header/footer (no background chip). */
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; padding: 0; border-radius: 0; line-height: 0; box-shadow: none;
}
.brand-logo { height: 42px; width: auto; display: block; }
.site-footer .brand-logo { height: 40px; }
@media (max-width: 720px) { .brand-logo { height: 34px; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--grey-1); font-weight: 500; font-size: 0.97rem;
  padding: 9px 16px; border-radius: 8px;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; width: 22px; margin: 4px auto 0;
  background: var(--cyan); border-radius: 2px;
}
.nav-links .btn { margin-left: 10px; padding: 10px 22px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 100px;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(74,238,254,0.14), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(92,77,226,0.20), transparent 55%),
    linear-gradient(160deg, var(--bg-deep), var(--bg) 55%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(74,238,254,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(74,238,254,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 400px at 70% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 400px at 70% 20%, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 15ch; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.2rem; max-width: 620px; margin-bottom: 34px; color: var(--grey-1); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* page hero (interior pages) */
.page-hero {
  position: relative; overflow: hidden;
  padding: 92px 0 76px;
  background:
    radial-gradient(700px 400px at 85% -20%, rgba(92,77,226,0.18), transparent 60%),
    linear-gradient(160deg, var(--bg-deep), var(--bg) 60%);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { max-width: 680px; font-size: 1.12rem; }
.breadcrumb { font-size: 0.85rem; color: var(--grey-3); margin-bottom: 18px; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--grey-2); }

/* ---- Stat bar ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 16px; background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.stat .num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--white); background: linear-gradient(100deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { font-size: 0.9rem; color: var(--grey-2); margin-top: 6px; }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); opacity: 0; transition: opacity .25s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: rgba(74,238,254,0.10); border: 1px solid var(--border);
  color: var(--cyan);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { font-size: 0.98rem; color: var(--grey-2); }

/* ---- Split feature ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--panel { background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 46px; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 16px; color: var(--grey-1); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(74,238,254,0.12); border: 1px solid var(--cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234AEEFE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.check-list li strong { color: var(--white); }

/* ---- Values / SHEQ pillars ---- */
.pillar { padding: 32px; border-radius: var(--radius); background: var(--bg-panel); border: 1px solid var(--border-soft); }
.pillar h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.25rem; }
.pillar .dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* rules list (SHEQ) */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rule { display: flex; gap: 16px; padding: 22px; background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.rule .n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #06121b; background: linear-gradient(135deg, var(--cyan), var(--violet)); font-size: 0.9rem; }
.rule h4 { font-size: 1.02rem; margin-bottom: 4px; }
.rule p { font-size: 0.9rem; color: var(--grey-2); }

/* ---- Team ---- */
.team-card { text-align: center; }
.team-card .avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center;
  font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; color: #06121b;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: 3px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
a.avatar { text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.avatar:hover { transform: scale(1.05); box-shadow: 0 10px 26px rgba(74, 238, 254, 0.30); }
.grid-3 .team-card:nth-child(3n+2) .avatar { background: linear-gradient(135deg, var(--violet), var(--blue-royal)); }
.grid-3 .team-card:nth-child(3n) .avatar { background: linear-gradient(135deg, var(--blue-steel), var(--cyan)); }
.team-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-card .role { color: var(--cyan); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.03em; }

/* ---- Banner CTA ---- */
.cta-banner {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(74,238,254,0.16), transparent 60%),
    linear-gradient(120deg, var(--blue-royal), var(--bg-deep));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.cta-banner p { max-width: 600px; margin: 0 auto 28px; color: var(--grey-1); }

/* ---- Contact ---- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.contact-cards .info-card { margin-bottom: 0; }
.info-card { background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--cyan); }
.info-card p { color: var(--grey-1); font-size: 0.98rem; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(74,238,254,0.10); border: 1px solid var(--border); color: var(--cyan); }

/* ---- Legal / Terms ---- */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; padding-top: 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; color: var(--grey-1); }
.legal p, .legal li { color: var(--grey-2); margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal ul li { margin-bottom: 8px; }
.toc { background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 44px; }
.toc h3 { color: var(--white); margin-bottom: 12px; font-size: 1.05rem; }
.toc ol { padding-left: 20px; color: var(--grey-1); }
.toc ol li { margin-bottom: 6px; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border-soft); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-3); margin-bottom: 18px; }
.footer-grid a, .footer-grid p { color: var(--grey-2); font-size: 0.95rem; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand p { color: var(--grey-2); font-size: 0.96rem; max-width: 320px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft);
  font-size: 0.86rem; color: var(--grey-3);
}
.footer-bottom a { color: var(--grey-3); }
.footer-bottom a:hover { color: var(--cyan); }

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

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .notice-bar { font-size: 1.15rem; padding: 18px 18px; }
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(19,27,38,0.98); backdrop-filter: blur(14px);
    padding: 12px; border-bottom: 1px solid var(--border-soft);
    transform: translateY(-140%); transition: transform .3s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 16px; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(74,238,254,0.08); }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner, .split--panel { padding: 32px 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
