/* ==========================================================================
   CYG Pte Ltd — Corporate Site Stylesheet
   ========================================================================== */

:root {
  --navy-950: #0a1524;
  --navy-900: #0f1e33;
  --navy-800: #16283f;
  --navy-700: #1e3a5c;
  --blue-600: #1f6fb2;
  --blue-500: #2b83cf;
  --blue-400: #4da0e8;
  --red-500: #e6394a;
  --yellow-400: #f4b400;
  --gray-50: #f7f9fb;
  --gray-100: #eef1f5;
  --gray-200: #e2e7ee;
  --gray-400: #97a3b3;
  --gray-600: #5b6b7f;
  --gray-800: #2c3a4b;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 30, 51, 0.08), 0 1px 2px rgba(15, 30, 51, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 30, 51, 0.10), 0 2px 6px rgba(15, 30, 51, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 30, 51, 0.14);
  --radius: 10px;
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--gray-50); }
.section-navy { background: var(--navy-900); color: var(--gray-100); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.section-navy .eyebrow, .hero .eyebrow { color: var(--blue-400); }

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--navy-900); }
.section-navy .section-head h2 { color: var(--white); }
.section-head .lead { font-size: 17px; color: var(--gray-600); margin-top: 8px; }
.section-navy .section-head .lead { color: var(--gray-400); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-500); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.btn-block { width: 100%; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 21, 36, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 30px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--gray-400);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--white); }
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(43,131,207,0.35), transparent 60%),
    radial-gradient(700px 400px at 5% 110%, rgba(230,57,74,0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  padding: 108px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); color: var(--white); }
.hero h1 .accent { color: var(--blue-400); }
.hero .lead { font-size: 18px; color: var(--gray-400); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-page {
  padding: 64px 0 56px;
}
.hero-page h1 { font-size: clamp(30px, 4vw, 44px); }
.hero-page .lead { max-width: 640px; }

.hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero-stat { padding: 16px 4px; }
.hero-stat .num { font-size: 30px; font-weight: 800; color: var(--white); }
.hero-stat .num .u { color: var(--blue-400); }
.hero-stat .label { font-size: 13px; color: var(--gray-400); margin-top: 2px; }

.breadcrumb { font-size: 13.5px; color: var(--gray-400); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }


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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--white); }
.card h3 { font-size: 18.5px; color: var(--navy-900); }
.card p { color: var(--gray-600); font-size: 15px; margin-bottom: 0; }
.card .learn { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--blue-600); }

/* Service detail rows */
.service-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 26px;
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-row:last-child { border-bottom: none; }
.service-icon-lg {
  width: 72px; height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
}
.service-icon-lg svg { width: 34px; height: 34px; stroke: var(--white); }
.service-row h3 { font-size: 21px; color: var(--navy-900); margin-bottom: 8px; }
.service-row p { color: var(--gray-600); max-width: 720px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-600);
  background: rgba(43,131,207,0.10);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ---------------- Differentiators ---------------- */
.diff-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.diff-item { display: flex; gap: 16px; padding: 4px 0; }
.diff-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--blue-600);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.diff-item h4 { font-size: 16.5px; color: var(--navy-900); margin-bottom: 6px; }
.diff-item p { color: var(--gray-600); font-size: 14.5px; margin-bottom: 0; }

/* ---------------- Portfolio ---------------- */
.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.portfolio-media {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.portfolio-media svg { width: 56px; height: 56px; opacity: 0.9; }
.portfolio-media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 20% 0%, rgba(255,255,255,0.18), transparent 60%);
}
.pm-1 { background: linear-gradient(135deg, #1f6fb2, #0f1e33); }
.pm-2 { background: linear-gradient(135deg, #e6394a, #6e1420); }
.pm-3 { background: linear-gradient(135deg, #f4b400, #8a5a00); }
.pm-4 { background: linear-gradient(135deg, #2b83cf, #16283f); }
.portfolio-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.portfolio-body .tag { align-self: flex-start; margin-bottom: 12px; }
.portfolio-body h3 { font-size: 19px; color: var(--navy-900); }
.portfolio-body p { color: var(--gray-600); font-size: 14.5px; margin-bottom: 0; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.cta-banner p { color: var(--gray-400); margin-bottom: 0; }
.cta-actions { flex-shrink: 0; display: flex; gap: 12px; }

/* ---------------- Stats strip ---------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.stats-strip .stat { text-align: center; padding: 36px 12px; border-left: 1px solid var(--gray-200); }
.stats-strip .stat:first-child { border-left: none; }
.stats-strip .num { font-size: 32px; font-weight: 800; color: var(--navy-900); }
.stats-strip .label { font-size: 13.5px; color: var(--gray-600); margin-top: 4px; }

/* ---------------- Timeline / approach ---------------- */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.approach-figure {
  background: var(--navy-900);
  border-radius: 18px;
  padding: 40px;
  color: var(--white);
}
.approach-figure .brand-logo { height: 40px; margin-bottom: 20px; }
.approach-figure p { color: var(--gray-400); font-size: 15px; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: 18px;
  padding: 40px;
}
.contact-info-card h3 { font-size: 20px; margin-bottom: 18px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-line .ic { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; stroke: var(--blue-400); }
.contact-line .label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); margin-bottom: 3px; }
.contact-line .val { font-size: 15px; color: var(--white); font-weight: 500; }
.map-embed { border-radius: 14px; overflow: hidden; margin-top: 26px; border: 1px solid rgba(255,255,255,0.12); }
.map-embed iframe { width: 100%; height: 200px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy-900); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--gray-400); margin-top: 14px; }
.form-status { font-size: 14px; margin-top: 14px; display: none; padding: 12px 14px; border-radius: 8px; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(43,131,207,0.10); color: var(--blue-600); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-950); color: var(--gray-400); }
.footer-top { padding: 64px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { color: var(--gray-400); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: var(--gray-400); font-size: 14.5px; transition: color .15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,0.14); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-400);
}
.footer-bottom a:hover { color: var(--white); }

/* ---------------- Utilities ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .diff-list { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .stat:nth-child(3) { border-left: none; }
}

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; bottom: 0; background: var(--navy-950); flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 12px; font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-cta { margin: 12px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-top { grid-template-columns: 1fr; padding: 48px 0 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}
