/* ============================================================
   C&P Inspection Sdn Bhd — Stylesheet
   Brand: navy #1E4D8F + orange #F08020
   ============================================================ */

:root {
  --brand: #1E4D8F;
  --brand-dark: #163a6c;
  --brand-darker: #0f2a52;
  --accent: #F08020;
  --accent-dark: #d96b10;
  --ink: #0c1a2b;
  --ink-soft: #3a4a60;
  --muted: #6c7a90;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef3fb;
  --white: #ffffff;
  --shadow-sm: 0 2px 6px rgba(15, 42, 82, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 42, 82, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 42, 82, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --t: 0.25s cubic-bezier(.4,.0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 9999;
}
.skip-link:focus { left: 8px; }

/* Headings */
.h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2; letter-spacing: -0.02em; color: var(--ink);
}
.h2--white { color: #fff; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(30, 77, 143, 0.08);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow--alt { color: var(--accent); background: rgba(240, 128, 32, 0.10); }
.eyebrow--white { color: #fff; background: rgba(255,255,255,0.15); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240,128,32,0.20);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all var(--t); border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: var(--accent); color: #fff; }
.btn--outline-white { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline-white:hover { background: #fff; color: var(--brand); border-color: #fff; }
.btn--block { width: 100%; }

/* Badges */
.badge-mini {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
  background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.18);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--brand-darker); color: #fff;
  font-size: 13px; padding: 10px 0;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.topbar__left { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__item {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.92);
}
.topbar__item svg { width: 14px; height: 14px; color: var(--accent); }
.topbar__item:hover { color: #fff; }
.topbar__right { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 24px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand__tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
  padding: 3px 8px; border-radius: 4px;
  background: var(--accent); color: #fff;
}

/* Nav */
.nav__list { display: flex; gap: 8px; list-style: none; }
.nav__list > li { position: relative; }
.nav__list a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: 15px;
}
.nav__list a:hover { background: var(--bg-tint); color: var(--brand); }

/* Mega menu */
.has-mega .mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 24px; min-width: 720px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all var(--t);
}
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega__col h4 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px; font-weight: 800;
}
.mega__col a {
  display: block; padding: 6px 0; color: var(--ink-soft); font-weight: 500; font-size: 14px;
}
.mega__col a:hover { color: var(--brand); padding-left: 4px; }

.header__cta { display: none; }
@media (min-width: 1100px) {
  .header__cta { display: inline-flex; }
}

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2.5px; background: var(--ink);
  border-radius: 2px; transition: all var(--t);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: #fff; border-top: 1px solid var(--line);
  padding: 16px 24px 32px;
}
.mobile-menu.is-open {
  display: block;
  position: fixed;
  top: var(--mobile-menu-top, 76px);
  left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 99;
}
body.menu-open { overflow: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  padding: 12px 14px; border-radius: 8px; color: var(--ink); font-weight: 600;
}
.mobile-menu nav a:hover { background: var(--bg-tint); color: var(--brand); }
.mobile-menu nav .btn { margin-top: 12px; }

@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
}
@media (min-width: 1025px) {
  .hamburger { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at top left, rgba(30,77,143,0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(240,128,32,0.08), transparent 50%),
    linear-gradient(180deg, #fbfcfe 0%, #f1f5fb 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,77,143,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,77,143,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}
.hero__glow {
  position: absolute; right: -10%; top: 20%; width: 50%; height: 80%;
  background: radial-gradient(circle, rgba(240,128,32,0.12), transparent 60%);
  filter: blur(40px);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center;
}

.hero__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 18px 0 20px;
}
.grad-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink-soft); margin-bottom: 28px; max-width: 600px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__pills {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero__pills li {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
}
.hero__pills li::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* Hero visual card */
.hero__visual { position: relative; }
.hero__card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px; border: 1px solid var(--line);
  transform: rotate(-1deg);
  transition: transform var(--t);
}
.hero__card:hover { transform: rotate(0deg) translateY(-4px); }
.hero__card-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; border-bottom: 2px dashed var(--line);
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.hero__card-id { color: var(--brand); }
.hero__card-body { padding: 18px 0; display: flex; flex-direction: column; gap: 14px; }
.hero__card-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.hero__card-row span { color: var(--muted); }
.hero__card-row strong { color: var(--ink); font-weight: 700; }
.status-ok { color: #1a9d4e !important; }
.hero__card-foot {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}

.hero__chip {
  position: absolute; background: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 700; font-size: 13px; color: var(--brand);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  display: flex; align-items: center;
}
.hero__chip::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(240,128,32,0.18);
}
.hero__chip--1 { top: -10px; right: 10%; animation: floaty 6s ease-in-out infinite; }
.hero__chip--2 { bottom: 10%; left: -20px; animation: floaty 7s ease-in-out infinite 1s; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 480px; margin: 0 auto; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--brand); padding: 50px 0; color: #fff; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat {
  text-align: center; padding: 12px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: #fff; line-height: 1; display: inline-block;
}
.stat__plus { color: var(--accent); font-size: 1.6rem; font-weight: 800; }
.stat__label {
  display: block; margin-top: 8px;
  font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
@media (max-width: 700px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.15); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__lead {
  font-size: 1.1rem; color: var(--ink-soft); margin-top: 16px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover;
}

/* Heritage credentials card (replaces office photo in About) */
.heritage-card {
  position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.heritage-card::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,128,32,0.22), transparent 70%);
  pointer-events: none;
}
.heritage-card__eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(240,128,32,0.14);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(240,128,32,0.4);
}
.heritage-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 800;
  margin: 18px 0 8px; color: #fff;
}
.heritage-card__lead {
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255,255,255,0.85); margin-bottom: 24px;
}
.heritage-card__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 24px;
}
.heritage-card__stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.heritage-card__stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--accent); line-height: 1;
  margin-bottom: 6px;
}
.heritage-card__stat sup { font-size: 0.55em; margin-left: 2px; }
.heritage-card__stat span {
  font-size: 12px; color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
}
.heritage-card__creds {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
}
.heritage-card__creds li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.heritage-card__ico {
  width: 18px; height: 18px; color: var(--accent);
  flex-shrink: 0;
}
.about__media-stamp {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--accent); color: #fff;
  padding: 18px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about__media-stamp strong { display: block; font-size: 18px; font-weight: 800; }
.about__media-stamp span { font-size: 12px; opacity: 0.9; letter-spacing: 0.05em; text-transform: uppercase; }

.about__content p {
  margin: 16px 0; color: var(--ink-soft); font-size: 1.02rem;
}
.about__pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px;
}
.pillar {
  padding: 20px; background: var(--bg-soft); border-radius: var(--radius);
  border: 1px solid var(--line);
}
.pillar__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h4 { font-size: 15px; margin-bottom: 4px; }
.pillar p { font-size: 13px; color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__media-stamp { right: 16px; bottom: -16px; padding: 14px 18px; }
  .about__pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service {
  background: #fff; border-radius: var(--radius-lg);
  padding: 36px 28px; border: 1px solid var(--line);
  transition: all var(--t); position: relative; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service--accent { background: linear-gradient(180deg, #fff 0%, rgba(240,128,32,0.04) 100%); }

.service__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service--accent .service__icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem; font-weight: 800; margin-bottom: 8px;
}
.service > p { color: var(--ink-soft); margin-bottom: 18px; }
.service__list { list-style: none; }
.service__list li {
  padding: 10px 0; padding-left: 24px; position: relative;
  font-size: 14px; color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.service__list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(240,128,32,0.15);
  border: 2px solid var(--accent);
}
.service__list li strong { color: var(--ink); }

/* Practice-area card additions */
.service__tag {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.service--accent .service__tag { color: var(--brand); }

.service__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 18px 0 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.service__chips span {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 6px;
  background: var(--bg-tint); color: var(--brand);
}
.service--accent .service__chips span {
  background: rgba(240,128,32,0.12); color: var(--accent-dark);
}

.service__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  font-weight: 700; font-size: 14.5px;
  color: var(--brand);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  width: 100%;
}
.service--accent .service__cta { color: var(--accent-dark); }
.service__cta svg { transition: transform var(--t); }
.service:hover .service__cta svg { transform: translateX(4px); }

.service {
  display: flex; flex-direction: column;
}

.services__note {
  text-align: center; margin-top: 40px;
  max-width: 760px; margin-left: auto; margin-right: auto;
  font-size: 14px; color: var(--muted);
  padding: 18px 24px;
  background: rgba(30, 77, 143, 0.05);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTORS
   ============================================================ */
.sectors {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.sector {
  padding: 26px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: all var(--t); text-align: left;
}
.sector:hover {
  transform: translateY(-4px); border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.sector__ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: all var(--t);
}
.sector:hover .sector__ico { background: var(--brand); color: #fff; }
.sector__ico svg { width: 24px; height: 24px; }
.sector h4 { font-size: 1.05rem; margin-bottom: 6px; }
.sector p { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 900px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sectors { grid-template-columns: 1fr; } }

/* ============================================================
   DOSH BAND
   ============================================================ */
.dosh {
  background:
    linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
  color: #fff; padding: 90px 0;
  position: relative; overflow: hidden;
}
.dosh::before {
  content: ""; position: absolute; right: -10%; top: -50%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(240,128,32,0.25), transparent 60%);
}
.dosh__inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center;
  position: relative;
}
.dosh__copy p {
  margin: 20px 0 32px; color: rgba(255,255,255,0.88);
  font-size: 1.05rem; max-width: 580px;
}
.dosh__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dosh__codes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.code-tile {
  padding: 24px 12px; text-align: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-weight: 800; font-size: 15px; letter-spacing: 0.05em;
  transition: all var(--t);
  backdrop-filter: blur(10px);
}
.code-tile:hover {
  background: var(--accent); border-color: var(--accent);
  transform: translateY(-3px);
}
@media (max-width: 900px) {
  .dosh__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   WHY US
   ============================================================ */
.whygrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.why {
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  transition: all var(--t); position: relative;
}
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.why__num {
  display: inline-block; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.why h4 { font-size: 1.2rem; margin-bottom: 8px; }
.why p { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 900px) { .whygrid { grid-template-columns: 1fr; } }


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px;
}
.contact__info p { color: var(--ink-soft); margin: 16px 0 32px; }
.contact__cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.ccard {
  padding: 20px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.ccard__ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.ccard__ico svg { width: 18px; height: 18px; }
.ccard h4 { font-size: 14px; margin-bottom: 4px; }
.ccard p, .ccard a { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.ccard a:hover { color: var(--brand); }

.contact__meta {
  display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
  padding: 12px 16px; background: var(--bg-tint); border-radius: 10px;
}

.contact__form {
  background: #fff; border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  align-self: start;
}
.contact__form h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem; font-weight: 800; margin-bottom: 6px;
}
.form__lead { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
  transition: all var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(30,77,143,0.10);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { margin-top: 14px; font-size: 14px; min-height: 22px; }
.form__note.is-ok { color: #1a9d4e; }
.form__note.is-err { color: #c53030; }

/* Honeypot — never visible to humans, never read by screen readers */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

/* Submit button loading state */
#contactSubmit.is-loading {
  pointer-events: none; opacity: 0.75;
  position: relative;
}
#contactSubmit.is-loading .contactSubmit__label::after {
  content: ""; display: inline-block;
  width: 12px; height: 12px; margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Banner shown on redirect-based success/error (no-JS path) */
.form-banner {
  margin-bottom: 24px; padding: 14px 18px;
  border-radius: var(--radius); border: 1px solid var(--line);
  font-size: 14.5px; display: flex; align-items: flex-start; gap: 10px;
}
.form-banner.is-ok  { background: rgba(26,157,78,0.08); border-color: rgba(26,157,78,0.3); color: #146e3a; }
.form-banner.is-err { background: rgba(197,48,48,0.08); border-color: rgba(197,48,48,0.3); color: #8c1f1f; }
.form-banner svg { flex-shrink: 0; margin-top: 2px; }

.map-wrap {
  margin-top: 60px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .contact__cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: 70px 0 0; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 50px;
}
.footer__brand img { filter: brightness(0) invert(1); height: 40px; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; margin-bottom: 20px; max-width: 320px; }
.footer__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.footer__col h5 {
  color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer__col a, .footer__col p {
  display: block; color: rgba(255,255,255,0.7); font-size: 14px;
  padding: 4px 0; line-height: 1.6;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  flex-wrap: wrap;
}
.footer__bottom small { color: rgba(255,255,255,0.55); font-size: 12.5px; }
.footer__bottom a { color: rgba(255,255,255,0.78); }
.footer__bottom a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--t); z-index: 50;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); transform: translateY(-3px); color: #fff; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   PAGE HEADER (for non-home pages)
   ============================================================ */
.page-header {
  position: relative; overflow: hidden;
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse at top left, rgba(30,77,143,0.10), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(240,128,32,0.10), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #eef3fb 100%);
  border-bottom: 1px solid var(--line);
}

/* Hero image variant — used on service/course detail pages */
.page-header--hero {
  padding: 110px 0 90px;
  color: #fff;
  background-color: var(--brand-darker);
}
.page-header--hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-img);
  background-size: cover; background-position: center;
  opacity: 0.32;
}
.page-header--hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,42,82,0.85) 0%, rgba(30,77,143,0.55) 60%, rgba(240,128,32,0.35) 100%);
}
.page-header--hero .page-header__inner { color: #fff; }
.page-header--hero h1 { color: #fff; }
.page-header--hero .page-header__lead { color: rgba(255,255,255,0.92); }
.page-header--hero .page-header__crumb,
.page-header--hero .page-header__crumb a { color: rgba(255,255,255,0.78); }
.page-header--hero .page-header__crumb a:hover { color: var(--accent); }
.page-header--hero .page-header__crumb .current { color: #fff; }
.page-header--hero .eyebrow { background: rgba(255,255,255,0.16); color: #fff; }
.page-header--hero .page-header__chip {
  background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.24);
  color: #fff;
}
.page-header--hero .page-header__chip strong { color: var(--accent); }
.page-header__inner { position: relative; z-index: 1; max-width: 880px; }
.page-header__crumb {
  display: flex; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 16px;
  flex-wrap: wrap;
}
.page-header__crumb a { color: var(--muted); }
.page-header__crumb a:hover { color: var(--brand); }
.page-header__crumb .sep { opacity: 0.5; }
.page-header__crumb .current { color: var(--ink); font-weight: 600; }
.page-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
  margin: 8px 0 16px;
}
.page-header__lead {
  font-size: 1.1rem; color: var(--ink-soft); max-width: 720px;
}
.page-header__meta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px;
}
.page-header__chip {
  background: #fff; border: 1px solid var(--line); padding: 8px 16px;
  border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--ink-soft);
}
.page-header__chip strong { color: var(--brand); }

/* ============================================================
   CARDS GRID (for listings: inspections, certs, courses)
   ============================================================ */
.cardgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 1000px) { .cardgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cardgrid { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid var(--line);
  transition: all var(--t);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  transform: scaleY(0); transform-origin: top; transition: transform 0.4s;
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card:hover::before { transform: scaleY(1); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: all var(--t);
}
.card:hover .card__icon { background: var(--brand); color: #fff; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.18rem; font-weight: 800;
  margin-bottom: 8px; line-height: 1.3;
}
.card p { font-size: 14px; color: var(--ink-soft); flex: 1; margin-bottom: 14px; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--accent);
  margin-top: auto;
}
.card__link svg { transition: transform var(--t); }
.card:hover .card__link svg { transform: translateX(4px); }
.card__code {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; background: var(--brand);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}

/* ============================================================
   DETAIL PAGE LAYOUT (service / course detail)
   ============================================================ */
.detail {
  display: grid; grid-template-columns: 1fr 320px; gap: 60px;
  padding-top: 70px;
  padding-bottom: 70px;
}
@media (max-width: 1000px) {
  .detail { grid-template-columns: 1fr; gap: 32px; }
}
.detail__body p { color: var(--ink-soft); margin: 12px 0; line-height: 1.75; }
.detail__body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  margin: 36px 0 12px; color: var(--ink);
}
.detail__body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  margin: 28px 0 10px;
}
.detail__body ul { padding-left: 0; list-style: none; margin: 12px 0; }
.detail__body ul li {
  padding: 10px 0 10px 32px; position: relative;
  color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.detail__body ul li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(240,128,32,0.18);
  border: 2px solid var(--accent);
}
.detail__body ul li:last-child { border-bottom: none; }

.aside {
  position: sticky; top: 100px; align-self: start;
  display: flex; flex-direction: column; gap: 18px;
}
.aside__card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.aside__card h4 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 800;
}
.aside__card.aside__card--cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  color: #fff; border: none;
}
.aside__card--cta h4 { color: rgba(255,255,255,0.7); }
.aside__card--cta p { color: rgba(255,255,255,0.9); font-size: 14px; margin-bottom: 16px; }
.aside__card--cta .btn { width: 100%; }
.aside__list { list-style: none; }
.aside__list li {
  padding: 8px 0; font-size: 14px; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.aside__list li:last-child { border-bottom: none; }
.aside__list--standards li {
  font-weight: 600; color: var(--brand); font-family: 'Plus Jakarta Sans', sans-serif;
}
.aside__related a {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 14px;
  transition: padding-left var(--t);
}
.aside__related a:hover { padding-left: 6px; color: var(--brand); }
.aside__related a:last-child { border-bottom: none; }

/* Course-specific aside */
.course-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
.course-meta__item { font-size: 14px; }
.course-meta__item span { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.course-meta__item strong { color: var(--ink); }

/* ============================================================
   DROPDOWN (simple, non-mega)
   ============================================================ */
.has-dropdown .dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 12px; min-width: 240px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px); transition: all var(--t);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.has-dropdown .dropdown a {
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
}
.has-dropdown .dropdown a:hover { background: var(--bg-tint); color: var(--brand); }

/* Mega menu heading link */
.mega__col h4 a { color: inherit; }
.mega__col h4 a:hover { color: var(--brand); }

/* Mobile menu sub-items */
.mobile-menu__sub-heading {
  font-size: 12px !important; letter-spacing: 0.1em;
  text-transform: uppercase !important; color: var(--accent) !important;
  padding: 12px 14px 4px !important; font-weight: 800 !important;
}
.mobile-menu__sub {
  font-size: 14px !important; color: var(--ink-soft) !important;
  padding-left: 28px !important; font-weight: 500 !important;
}

/* ============================================================
   ABOUT / ACCREDITATIONS / EXPERTISE pages
   ============================================================ */
.prose {
  max-width: 820px; margin: 0 auto;
}
.prose p { margin: 14px 0; color: var(--ink-soft); line-height: 1.8; }
.prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.7rem; font-weight: 800; margin: 40px 0 12px;
}
.prose h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem; font-weight: 700; margin: 28px 0 8px;
}
.prose ul { padding-left: 22px; }
.prose ul li { padding: 6px 0; color: var(--ink-soft); }

.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0;
}
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: #fff; border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--line);
}
.value-card__ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.value-card__ico svg { width: 22px; height: 22px; }
.value-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.value-card p { font-size: 14px; color: var(--ink-soft); }

.accred-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 800px) { .accred-grid { grid-template-columns: 1fr; } }
.accred-card {
  padding: 28px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); border-left: 4px solid var(--accent);
}
.accred-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--brand); }
.accred-card p { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   DOWNLOADS PAGE
   ============================================================ */
.dl-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
@media (max-width: 800px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  transition: all var(--t);
}
.dl-item:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dl-item__ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dl-item__body { flex: 1; }
.dl-item__body h4 { font-size: 1rem; margin-bottom: 2px; }
.dl-item__body p { font-size: 13px; color: var(--muted); margin: 0; }
.dl-item__btn {
  padding: 8px 14px; background: var(--accent); color: #fff;
  border-radius: 8px; font-weight: 700; font-size: 13px;
}

/* ============================================================
   CONTACT-DEDICATED PAGE EXTRA
   ============================================================ */
.contact--page { padding-top: 0; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
