/* ==========================================================================
   CT Consultancy SP Limited - core stylesheet
   Palette: deep navy ink + electric blue + mint accent
   ========================================================================== */

:root {
  --ink:        #070d1c;
  --ink-2:      #0e1730;
  --brand:      #2f6bff;
  --brand-dark: #1b4ad6;
  --brand-soft: #eaf0ff;
  --accent:     #14cfae;
  --accent-soft:#e6fbf6;
  --body:       #4d5872;
  --heading:    #0b132b;
  --line:       #e6eaf3;
  --surface:    #ffffff;
  --surface-2:  #f6f8fd;

  --radius:     18px;
  --radius-sm:  12px;
  --shadow-sm:  0 4px 14px rgba(11, 19, 43, .06);
  --shadow:     0 18px 40px -18px rgba(11, 19, 43, .22);
  --shadow-lg:  0 40px 80px -30px rgba(11, 19, 43, .35);
  --ease:       cubic-bezier(.22, 1, .36, 1);

  --ff-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--surface);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.65rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

a { text-decoration: none; color: var(--brand); transition: color .25s var(--ease); }
a:hover { color: var(--brand-dark); }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.bg-soft  { background: var(--surface-2); }
.bg-ink   { background: var(--ink); }

.text-brand  { color: var(--brand) !important; }
.text-accent { color: var(--accent) !important; }

/* ---------- helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 100px;
  padding: .42rem 1rem;
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.eyebrow.on-dark { color: #cfe0ff; background: rgba(255, 255, 255, .09); }
.eyebrow.on-dark::before { background: var(--accent); }

.section-head { max-width: 720px; }
.section-head p { font-size: 1.06rem; }

.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p, .text-dim { color: #a9b6d4; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 100px;
  padding: .8rem 1.7rem;
  border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(47, 107, 255, .9);
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--heading); color: var(--heading); transform: translateY(-2px); }

.btn-light-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .24); }
.btn-light-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.btn-lg { padding: .95rem 2.1rem; font-size: 1rem; }

.link-arrow {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .93rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- navbar ---------- */
.site-nav {
  padding: 1.1rem 0;
  background: transparent;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-nav.is-solid,
.site-nav.nav-static {
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding: .7rem 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.15;
}
.brand-mark small {
  display: block;
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .62;
}
.brand-badge {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #fff;
  padding: 5px;
  box-shadow: 0 10px 22px -12px rgba(11, 19, 43, .55);
}
.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.site-nav.is-solid .brand-mark,
.nav-static .brand-mark { color: var(--heading); }

.site-nav .nav-link {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: .95rem;
  color: rgba(255, 255, 255, .82);
  padding: .5rem .95rem !important;
  position: relative;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .95rem;
  right: .95rem;
  bottom: .18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: #fff; }
.site-nav.is-solid .nav-link,
.nav-static .nav-link { color: var(--body); }
.site-nav.is-solid .nav-link:hover,
.site-nav.is-solid .nav-link.active,
.nav-static .nav-link:hover,
.nav-static .nav-link.active { color: var(--heading); }

.navbar-toggler {
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  padding: 0;
}
.navbar-toggler:focus { box-shadow: none; }
.site-nav.is-solid .navbar-toggler,
.nav-static .navbar-toggler { background: var(--surface-2); color: var(--heading); }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: #fff;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .site-nav .nav-link { color: var(--body) !important; }
  .site-nav .nav-link::after { display: none; }
  .site-nav .nav-link.active { color: var(--brand) !important; }
  .nav-cta { margin-top: .6rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #070d1c 0%, #10204b 55%, #16224a 100%);
  padding: clamp(140px, 17vw, 200px) 0 clamp(80px, 10vw, 130px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
}
.hero::before {
  width: 520px;
  height: 520px;
  background: rgba(47, 107, 255, .38);
  top: -160px;
  right: -80px;
}
.hero::after {
  width: 420px;
  height: 420px;
  background: rgba(20, 207, 174, .22);
  bottom: -180px;
  left: -120px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero h1 { color: #fff; }
.hero h1 .grad {
  background: linear-gradient(100deg, #6f9bff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: #b6c4e2; font-size: 1.12rem; max-width: 540px; }

.hero-media { position: relative; }
.hero-media img {
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: .85rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--ff-head);
  animation: floaty 5s ease-in-out infinite;
}
.hero-badge i { font-size: 1.35rem; }
.hero-badge strong { display: block; font-size: 1.05rem; color: var(--heading); line-height: 1.2; }
.hero-badge span { font-size: .76rem; color: var(--body); letter-spacing: .02em; }
.hero-badge.b1 { left: -26px; top: 16%; }
.hero-badge.b2 { right: -18px; bottom: 12%; animation-delay: 1.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

@media (max-width: 575.98px) {
  .hero-badge.b1 { left: -8px; }
  .hero-badge.b2 { right: -4px; }
  .hero-badge { padding: .65rem .85rem; }
  .hero-badge strong { font-size: .92rem; }
}

.hero-stats { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding-top: 1.9rem; }
.hero-stats .num {
  font-family: var(--ff-head);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stats .lbl { font-size: .82rem; color: #93a3c6; letter-spacing: .03em; }

/* ---------- inner page header ---------- */
.page-head {
  position: relative;
  padding: clamp(130px, 15vw, 175px) 0 clamp(56px, 7vw, 84px);
  background: linear-gradient(155deg, #070d1c, #12224d);
  overflow: hidden;
  isolation: isolate;
}
.page-head::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(47, 107, 255, .3);
  filter: blur(100px);
  top: -220px;
  right: -120px;
  z-index: -1;
}
.page-head h1 { color: #fff; }
.page-head p { color: #b6c4e2; max-width: 620px; }
.crumb { font-size: .85rem; color: #8fa0c6; font-family: var(--ff-head); }
.crumb a { color: #cfdcff; }
.crumb span { opacity: .5; margin: 0 .45rem; }

/* ---------- trust bar ---------- */
.trust-bar { border-bottom: 1px solid var(--line); padding: 2.2rem 0; }
.trust-label {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8b97b4;
  font-family: var(--ff-head);
}
.trust-logo {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: #8592b1;
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  opacity: .85;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.trust-logo:hover { color: var(--heading); opacity: 1; }

/* ---------- cards ---------- */
.card-soft {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card-soft::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card-soft:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-soft:hover::after { transform: scaleX(1); }

/* card used as a link: keep normal text colours, not link blue */
a.card-soft { color: var(--body); display: block; }
a.card-soft h3 { color: var(--heading); }
a.card-soft:hover { color: var(--body); }

.svc-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.25rem;
  transition: transform .35s var(--ease);
}
.card-soft:hover .svc-icon { transform: rotate(-6deg) scale(1.06); }
.svc-icon.mint { background: var(--accent-soft); color: #0aa88d; }

.svc-list { list-style: none; padding: 0; margin: 1.1rem 0 1.35rem; font-size: .93rem; }
.svc-list li { position: relative; padding-left: 1.5rem; margin-bottom: .38rem; }
.svc-list li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: .9rem;
}

/* ---------- service detail rows ---------- */
.svc-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.svc-num {
  font-family: var(--ff-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brand);
}
.chip {
  display: inline-block;
  font-size: .78rem;
  font-family: var(--ff-head);
  font-weight: 500;
  color: var(--heading);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .3rem .85rem;
  margin: 0 .4rem .5rem 0;
}

/* ---------- feature / why-us ---------- */
.feature-item { display: flex; gap: 1.05rem; }
.feature-item .ico {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(47, 107, 255, .14);
  color: #7ea6ff;
  font-size: 1.15rem;
}
.feature-item.light .ico { background: var(--brand-soft); color: var(--brand); }
.feature-item h3 { font-size: 1.06rem; margin-bottom: .3rem; }
.feature-item p { font-size: .94rem; margin: 0; }

/* ---------- process ---------- */
.process-track { position: relative; }
.process-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 20px);
}
@media (max-width: 991.98px) { .process-track::before { display: none; } }
.step-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.15rem;
  background: #fff;
  border: 2px solid var(--line);
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--brand);
  position: relative;
  z-index: 1;
  transition: all .35s var(--ease);
}
.process-step:hover .step-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 14px 26px -12px rgba(47, 107, 255, .9);
}

/* ---------- stats strip ---------- */
.stat-tile { text-align: center; padding: 1rem .5rem; }
.stat-tile .num {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
}
.stat-tile .lbl { color: #a3b1d1; font-size: .88rem; margin-top: .45rem; }

/* ---------- testimonials ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.quote-card .bi-quote { font-size: 2.2rem; color: var(--brand); opacity: .35; line-height: 1; }
.quote-card p { color: var(--heading); font-size: 1.02rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.stars { color: #f5a623; font-size: .88rem; letter-spacing: .08em; }

/* ---------- team ---------- */
.team-card { text-align: center; }
.team-card .ph { border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: 1.1rem; }
.team-card img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: center 22%; transition: transform .6s var(--ease); }
.team-card:hover img { transform: scale(1.06); }
.team-card .social {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  display: flex;
  gap: .5rem;
  justify-content: center;
  background: linear-gradient(transparent, rgba(7, 13, 28, .8));
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
.team-card:hover .social { transform: translateY(0); }
.team-card .social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .9rem;
}
.team-card .social a:hover { background: var(--brand); }
.team-card .role { font-size: .88rem; color: var(--brand); font-family: var(--ff-head); font-weight: 500; }

/* ---------- accordion ---------- */
.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) !important;
  margin-bottom: .8rem;
  overflow: hidden;
}
.accordion-button {
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--heading);
  font-size: 1rem;
  padding: 1.15rem 1.35rem;
  background: #fff;
}
.accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-body { padding: 0 1.35rem 1.35rem; font-size: .96rem; }

/* ---------- CTA ---------- */
.cta-panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  padding: clamp(40px, 6vw, 68px);
  background: linear-gradient(135deg, var(--brand-dark), #0b1a45 60%, #072a44);
  isolation: isolate;
}
.cta-panel::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(20, 207, 174, .3);
  filter: blur(90px);
  right: -80px;
  bottom: -140px;
  z-index: -1;
}

/* ---------- contact ---------- */
.contact-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-tile .ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.contact-tile a { color: var(--heading); font-weight: 500; }
.contact-tile a:hover { color: var(--brand); }

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-label {
  font-family: var(--ff-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: .4rem;
}
.form-control, .form-select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .78rem 1rem;
  font-size: .95rem;
  color: var(--heading);
  background: var(--surface-2);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .12);
}
.form-control::placeholder { color: #9aa5bf; }
.invalid-feedback { font-size: .82rem; }

.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  filter: grayscale(.2) contrast(1.05);
  display: block;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #98a6c6; padding: clamp(56px, 7vw, 84px) 0 0; }
.site-footer h5 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
  font-family: var(--ff-head);
}
.site-footer a { color: #98a6c6; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.soc {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  display: grid;
  place-items: center;
  color: #cbd6ee;
  transition: all .3s var(--ease);
}
.soc:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  margin-top: 3.2rem;
  padding: 1.5rem 0;
  font-size: .87rem;
}

/* ---------- responsive guards ---------- */
/* Wide row gutters (g-5) create negative margins larger than the container
   padding on phones, which pushes the page sideways. Cap the horizontal
   gutter below 576px; vertical spacing is untouched. */
@media (max-width: 575.98px) {
  .row.g-5, .row.gx-5, .row.g-4, .row.gx-4 { --bs-gutter-x: 1.5rem; }
}

/* Long addresses must wrap rather than widen their column. */
.footer-links a, .contact-tile a { overflow-wrap: anywhere; }

/* ---------- misc ---------- */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .35s var(--ease);
  z-index: 900;
}
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
