/* Majestic Security Forces Sdn. Bhd. — global shell: tokens, reset, header, footer, sticky CTA, reveal */

:root {
  --ink: #0B0B0D;
  --ink-2: #141418;
  --ink-3: #1F1F26;
  --ink-4: #2C2C35;
  --gold: #D4AF37;
  --gold-lt: #FFC400;
  --gold-pale: #FFE9A8;
  --gold-soft: #FBF4DE;
  --gold-line: rgba(212,175,55,.34);
  --red: #C8102E;
  --red-soft: #FDEDEF;
  --body: #4A4A54;
  --muted: #6B6B76;
  --line: #E7E7EC;
  --off: #F7F7F8;
  --wa: #25D366;
  --wa-dark: #1DAF54;
  /* Squared-off geometry is deliberate — the only rounded things on the page are the
     WhatsApp CTAs and the officer portraits, so those read as intentional, not default. */
  --r-sm: 3px;
  --r: 4px;
  --r-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(11,11,13,.05), 0 4px 14px rgba(11,11,13,.05);
  --shadow-md: 0 2px 6px rgba(11,11,13,.06), 0 16px 38px rgba(11,11,13,.10);
  --shadow-lg: 0 4px 12px rgba(11,11,13,.07), 0 30px 66px rgba(11,11,13,.16);
  --shadow-xl: 0 8px 20px rgba(11,11,13,.09), 0 48px 96px rgba(11,11,13,.22);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 108px; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.14; letter-spacing: -0.028em; color: var(--ink);
}
/* height:auto is load-bearing — the width/height attributes on each <img> otherwise
   win over `width:100%` and the image renders at its natural pixel height. */
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(11,11,13,.07);
}
.header-inner {
  max-width: 1220px; margin: 0 auto; padding: 0 28px;
  height: 96px; display: flex; align-items: center; gap: 22px;
}
/* Logo image only. The crest already carries the wordmark, so a second lockup of
   type beside it just competed with the nav. */
.header-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.header-logo img { height: 74px; width: auto; filter: drop-shadow(0 3px 8px rgba(11,11,13,.16)); transition: transform .22s; }
.header-logo:hover img { transform: scale(1.03); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: .93rem;
  color: var(--body); padding: 9px 13px; border-radius: 3px; transition: color .18s, background .18s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .26s;
}
.main-nav a:hover { color: var(--ink); background: rgba(11,11,13,.035); }
.main-nav a:hover::after { transform: scaleX(1); }
.header-cta {
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark)); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .92rem; padding: 13px 22px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(37,211,102,.34); transition: transform .18s, box-shadow .22s;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,211,102,.44); }
.header-cta svg { width: 18px; height: 18px; fill: #fff; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 1100px) {
  .main-nav {
    position: absolute; top: 96px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 28px 20px;
    transform: translateY(-150%); transition: transform .32s cubic-bezier(.2,.7,.3,1);
    max-height: calc(100vh - 96px); overflow-y: auto; box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { margin-left: 0; padding: 13px 15px; }
  .header-cta span { display: none; }
}
@media (max-width: 600px) {
  .header-inner, .container { padding: 0 20px; }
  .header-inner { height: 80px; }
  .header-logo img { height: 60px; }
  .main-nav { top: 80px; max-height: calc(100vh - 80px); }
}

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--ink); color: #C4C4CE; padding: 72px 0 0; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; background-image: var(--noise);
  opacity: .05; pointer-events: none;
}
.site-footer::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: rgba(212,175,55,.11); filter: blur(110px); top: -240px; right: -120px; pointer-events: none;
}
.footer-grid {
  position: relative; max-width: 1220px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: 46px;
}
.footer-brand img { height: 66px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .93rem; line-height: 1.74; }
.site-footer h4 {
  color: #fff; font-size: .8rem; font-weight: 800; margin-bottom: 18px;
  letter-spacing: .13em; text-transform: uppercase;
}
.site-footer h4::after {
  content: ""; display: block; width: 26px; height: 2px; margin-top: 9px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; font-size: .93rem; color: #C4C4CE; transition: color .18s, padding-left .18s; }
.site-footer a:hover { color: var(--gold-lt); padding-left: 5px; }
.footer-contact p { font-size: .93rem; margin-bottom: 14px; }
.footer-wa {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark)); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: .92rem; padding: 13px 22px; border-radius: 999px;
  transition: transform .18s, box-shadow .22s;
}
.footer-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,.4); padding-left: 22px; }
.footer-wa svg { width: 18px; height: 18px; fill: #fff; }
.footer-licence {
  font-size: .82rem; color: #85858F; margin-top: 20px; padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.09); line-height: 1.65;
}
.footer-bottom {
  position: relative; max-width: 1220px; margin: 56px auto 0; padding: 24px 28px 28px;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: .85rem; color: #85858F;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid, .footer-bottom { padding-left: 20px; padding-right: 20px; }
  .site-footer { padding-bottom: 78px; }
  .footer-bottom { margin-top: 40px; }
}

/* ---------- floating WhatsApp (desktop) ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 300;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 34px rgba(37,211,102,.48); transition: transform .18s;
}
.wa-float::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(37,211,102,.4); animation: waring 2.6s infinite;
}
@keyframes waring { 0% { transform: scale(.9); opacity: .9 } 70% { transform: scale(1.25); opacity: 0 } 100% { opacity: 0 } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 31px; height: 31px; fill: #fff; }

/* ---------- sticky mobile CTA bar ---------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 310;
  background: rgba(11,11,13,.93); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(212,175,55,.28);
  padding: 11px 16px; align-items: center; gap: 13px;
}
.mobile-cta-text { flex: 1; min-width: 0; }
.mobile-cta-text strong {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: .87rem; color: #fff; line-height: 1.3;
}
.mobile-cta-text span { font-size: .74rem; color: var(--gold-pale); }
.mobile-cta a {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark)); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .89rem; padding: 12px 19px; border-radius: 999px;
}
.mobile-cta a svg { width: 17px; height: 17px; fill: #fff; }
@media (max-width: 600px) {
  .mobile-cta { display: flex; }
  .wa-float { display: none; }
}

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
}

/* ================= SHARED SECTION SYSTEM (all pages) ================= */
section { padding: 104px 0; position: relative; }
.sec-off { background: var(--off); }

/* ---- section heading system ---- */
.sec-head { max-width: 800px; margin-bottom: 58px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px; margin-bottom: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: #8A6D14;
}
.eyebrow b { color: var(--gold); font-size: .85rem; }
.eyebrow i { display: block; width: 30px; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(212,175,55,0)); }
.sec-head.center .eyebrow { justify-content: center; }
/* text-wrap: balance stops a two-line heading dropping one orphan word onto line two,
   which is most of what makes a long H2 look amateur. */
.section-title { font-size: clamp(2rem, 1.4rem + 2.3vw, 2.9rem); font-weight: 800; text-wrap: balance; }
.section-title em { font-style: normal; color: var(--gold); }
.section-lead { margin-top: 18px; font-size: 1.06rem; max-width: 700px; text-wrap: pretty; }
.sec-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* dark-section variants */
.dark { background: linear-gradient(155deg, #0B0B0D 0%, #16161B 52%, #22222A 100%); overflow: hidden; }
.dark::before { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .05; pointer-events: none; }
.dark .container { position: relative; z-index: 1; }
.dark .section-title { color: #fff; }
.dark .section-lead { color: #B0B0BC; }
.dark .eyebrow { color: var(--gold-pale); }
.glow {
  position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none;
}
.glow.g1 { width: 540px; height: 540px; background: rgba(212,175,55,.15); top: -220px; right: -110px; }
.glow.g2 { width: 420px; height: 420px; background: rgba(200,16,46,.11); bottom: -200px; left: -120px; }

/* ---- buttons ---- */
.btn-wa {
  display: inline-flex; align-items: center; gap: 11px;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark)); color: #fff; text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 17px 30px; border-radius: 999px; box-shadow: 0 10px 26px rgba(37,211,102,.34);
  transition: transform .2s, box-shadow .24s;
}
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(37,211,102,.44); }
.btn-wa svg { width: 20px; height: 20px; fill: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(255,255,255,.3); color: #fff; text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 17px 28px; border-radius: 999px; backdrop-filter: blur(8px);
  transition: background .22s, border-color .22s, transform .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--gold); transform: translateY(-3px); }
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold)); color: var(--ink);
  text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1rem;
  padding: 17px 30px; border-radius: 999px; box-shadow: 0 10px 26px rgba(212,175,55,.36);
  transition: transform .2s, box-shadow .24s;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(212,175,55,.46); }

/* shared premium card shell: hairline that catches gold at the top-left */
.card {
  position: relative; border-radius: var(--r); box-shadow: var(--shadow-sm);
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(150deg, rgba(212,175,55,.5), rgba(11,11,13,.07) 42%) border-box;
  border: 1px solid transparent;
  transition: transform .26s cubic-bezier(.2,.7,.3,1), box-shadow .26s;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.icon-tile {
  width: 54px; height: 54px; border-radius: var(--r-sm); flex-shrink: 0;
  background: linear-gradient(150deg, var(--ink-2), var(--ink-4));
  border: 1px solid rgba(212,175,55,.24);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(11,11,13,.2), inset 0 1px 0 rgba(255,255,255,.07);
}
.icon-tile svg { width: 23px; height: 23px; fill: none; stroke: var(--gold-lt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FINAL CTA ---------- */
.final-cta { position: relative; overflow: hidden; background: linear-gradient(155deg, #0B0B0D, #16161B 52%, #24242C); padding: 110px 0; }
.final-cta::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .05; pointer-events: none; }
.final-cta .container { position: relative; z-index: 1; }
.cta-card {
  max-width: 900px; margin: 0 auto; text-align: center;
  background: rgba(255,255,255,.055); border: 1px solid rgba(212,175,55,.28); backdrop-filter: blur(14px);
  border-radius: var(--r-lg); padding: 62px 48px;
}
.cta-card .eyebrow { color: var(--gold-pale); justify-content: center; }
.cta-card h2 {
  color: #fff; font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.85rem);
  font-weight: 800; letter-spacing: -0.035em; margin-bottom: 18px;
}
.cta-card p { color: #B8B8C4; font-size: 1.08rem; max-width: 660px; margin: 0 auto 32px; }
.cta-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin-top: 32px; }
.cta-points span {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #E4E4EC; border-radius: 3px; padding: 10px 18px; font-size: .89rem;
}
.cta-points span::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wa);
  animation: pulse 2.1s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .cta-points span::before { animation: none; } }

/* ================= INNER-PAGE HERO (About, Services, Gallery, Testimonials, Contact) ================= */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #0B0B0D 0%, #16161B 52%, #24242C 100%);
  padding: 92px 0 84px;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .05; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { max-width: 860px; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 24px;
  font-size: .84rem; color: #8E8E9C;
}
.crumbs a { color: var(--gold-pale); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: #6E6E7A; }
.page-hero h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); font-weight: 800; color: #fff;
  letter-spacing: -0.036em; line-height: 1.08; margin-bottom: 20px; text-wrap: balance;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold) 6%, var(--gold-lt) 48%, #FFF0BC 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.page-hero p { color: #B8B8C4; font-size: 1.08rem; max-width: 660px; text-wrap: pretty; }
.page-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.page-hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.page-hero-chips span {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11);
  color: #CFCFD9; border-radius: 3px; padding: 8px 14px; font-size: .82rem;
}
.page-hero-chips svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-lt); stroke-width: 2.8; }
@media (max-width: 760px) {
  .page-hero { padding: 62px 0 58px; }
}

/* current page marker in the nav */
.main-nav a.is-current { color: var(--ink); font-weight: 700; }
.main-nav a.is-current::after { transform: scaleX(1); }
