/* ==========================================================================
   JDMJ PTE LTD — single page site
   Palette taken from the company logo: flame red/orange, water blue.
   ========================================================================== */

:root {
  --red: #e0271f;
  --red-dark: #b01c16;
  --orange: #f6871f;
  --blue: #1b74bd;
  --blue-dark: #12508a;
  --blue-light: #2bacea;

  --ink: #10202e;
  --ink-soft: #45596b;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 46, .06), 0 4px 12px rgba(16, 32, 46, .05);
  --shadow-md: 0 10px 30px rgba(16, 32, 46, .1);
  --wrap: 1160px;
  --header-h: 74px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 .6em;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 19px; height: 19px; fill: currentColor; flex: none; }

.btn-sm { padding: 10px 20px; font-size: .9rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-dark);
  border-color: rgba(27, 116, 189, .35);
}
.btn-ghost:hover { background: rgba(27, 116, 189, .07); }

.btn-light { background: #fff; color: var(--blue-dark); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(16, 32, 46, .06);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.06rem; letter-spacing: -.02em; }
.brand-text em {
  font-style: normal;
  font-size: .74rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: .02em;
}

.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s ease, background .15s ease;
}
.primary-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.primary-nav a.is-active { color: var(--red); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(43, 172, 234, .16) 0, transparent 46%),
    radial-gradient(circle at 4% 88%, rgba(224, 39, 31, .12) 0, transparent 44%),
    linear-gradient(180deg, #fbfdff 0%, #eef4fa 100%);
  padding: clamp(48px, 8vw, 92px) 0 clamp(56px, 9vw, 100px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  margin-bottom: .18em;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 .7em;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 42%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 30px;
  padding: 0;
}
.hero-chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 22px;
}

.hero-note {
  margin: 0;
  font-size: .93rem;
  color: var(--ink-soft);
}

.hero-logo { display: grid; place-items: center; }

/* The logo artwork carries its own white disc, so this wrapper contributes only
   the coloured halo and the float — no second background or padding. */
.logo-disc {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: float 7s ease-in-out infinite;
}
.logo-disc::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--red), var(--orange), var(--blue-light), var(--blue), var(--red));
  z-index: -1;
  opacity: .28;
  filter: blur(16px);
}
.logo-disc img {
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(16, 32, 46, .2));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 46em;
  margin: 0 auto clamp(34px, 5vw, 54px);
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.section-lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  margin: 0;
}

/* values */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.value-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--orange));
}
.value-card:nth-child(even)::before {
  background: linear-gradient(180deg, var(--blue), var(--blue-light));
}
.value-card h3 { font-size: 1.08rem; margin-bottom: .35em; }
.value-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 116, 189, .3);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(224, 39, 31, .1), rgba(43, 172, 234, .14));
  color: var(--blue-dark);
}
.service-icon svg { width: 28px; height: 28px; fill: currentColor; }
.service-card:nth-child(3n+1) .service-icon { color: var(--red-dark); }
.service-card:nth-child(3n+2) .service-icon { color: var(--blue-dark); }
.service-card:nth-child(3n) .service-icon { color: var(--orange); }

.service-card h3 { font-size: 1.16rem; }
.service-card p { color: var(--ink-soft); font-size: .94rem; }

.service-card ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line);
}
.service-card li {
  position: relative;
  padding-left: 20px;
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blue));
}

/* why us */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.why-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 22px;
}
.why-card .tick {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  fill: #fff;
  box-sizing: content-box;
}
.why-card:nth-child(even) .tick {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}
.why-card h3 { font-size: 1.02rem; margin-bottom: .25em; }
.why-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* cta band */

.cta-band {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 55%, var(--red-dark) 130%);
  color: #fff;
  padding: clamp(44px, 6vw, 68px) 0;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .9; max-width: 40em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 18px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.contact-card-wide { grid-column: 1 / -1; }
.contact-card h3 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: .7em;
}
.contact-value {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.contact-value a { color: var(--ink); text-decoration: none; }
.contact-value a:hover { color: var(--red); text-decoration: underline; }

/* footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}
.footer-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand strong { color: #fff; font-size: 1rem; }
.footer-brand span { font-size: .8rem; color: var(--blue-light); }
.footer-legal { margin: 0; font-size: .86rem; }

/* floating call button (mobile) */

.call-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(224, 39, 31, .4);
}
.call-fab svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .logo-disc { width: min(74%, 280px); animation: none; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-inline: auto; }
  .hero-chips, .hero-actions { justify-content: center; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 16px 22px 22px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { padding: 12px 14px; font-size: 1rem; }

  .call-fab { display: inline-flex; }
  .site-footer { padding-bottom: 84px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: .95rem; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .call-fab, .hero-actions, .cta-band { display: none !important; }
  body { font-size: 12pt; }
}
