/* ==========================================================================
   Kingsman Security Sdn Bhd — shared stylesheet
   Brand tokens verified via pixel-sampling of client PDFs. See
   CLAUDE-kingsman-build.md for sourcing notes and contrast rules.
   Rule: gold TEXT only ever appears on the black/charcoal background.
   On white sections gold is decorative only (borders/icons/dividers).
   ========================================================================== */

:root {
  --gold: #B38C41;
  --gold-light: #cba658;
  --black: #141414;
  --charcoal: #1e1e1e;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: #e6e2da;

  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1140px;
  --radius: 2px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

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

.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--dark { background: var(--black); color: #f4f2ee; }
.section--dark p { color: #cfcac0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--charcoal { background: var(--charcoal); color: #f4f2ee; }
.section--charcoal p { color: #cfcac0; }
.section--alt { background: #faf8f4; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* Gold is decorative-only on white/light backgrounds — never body/heading text there. */
.section--alt .eyebrow,
.section:not(.section--dark):not(.section--charcoal) .eyebrow { color: #8a6a2f; }

.section--dark .eyebrow,
.section--charcoal .eyebrow { color: var(--gold-light); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(179, 140, 65, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
}

.brand img { width: 40px; height: 40px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand-name span { color: var(--gold-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(179, 140, 65, 0.4);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  color: var(--paper);
  font-size: 1.1rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #e9e5dc;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--gold-light); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(179, 140, 65, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 26rem; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .main-nav li { border-top: 1px solid rgba(255,255,255,0.06); }
  .main-nav a { display: block; padding: 0.85rem 0; }
}

/* ----------------------------------------------------------------- hero */
.hero {
  background: var(--black);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(179,140,65,0.16), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(179,140,65,0.10), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.hero-inner > * { min-width: 0; max-width: 100%; }

.hero-crest { width: clamp(72px, 12vw, 108px); height: auto; margin-bottom: 1.5rem; }

.hero h1 {
  color: var(--paper);
  letter-spacing: 0.01em;
}

.hero .tagline {
  font-family: var(--font-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 0.75rem;
}

.hero .lede {
  max-width: 640px;
  color: #d8d3c8;
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 242, 238, 0.4);
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-dark { background: var(--black); color: var(--paper); }
.btn-dark:hover { background: var(--charcoal); }

/* ------------------------------------------------------------- sig strip */
.motif-strip {
  background: var(--black);
  color: var(--gold-light);
  text-align: center;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  border-top: 1px solid rgba(179,140,65,0.3);
  border-bottom: 1px solid rgba(179,140,65,0.3);
}

/* ------------------------------------------------------------ trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #d8d3c8;
}

.trust-item strong { color: var(--paper); font-weight: 600; }

/* ------------------------------------------------------------- section head */
.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head p { margin: 0; }

/* ------------------------------------------------------------ card grids */
.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover { box-shadow: 0 12px 28px rgba(20,20,20,0.08); transform: translateY(-2px); }

.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.card-body h3 { margin-bottom: 0.25rem; }
.card-body p { font-size: 0.92rem; margin-bottom: 0; flex: 1; }

.card-index {
  font-family: var(--font-display);
  color: var(--gold);
  opacity: 0.55;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* dark variant card for pillar tiles without photography */
.pillar-card {
  background: var(--charcoal);
  color: var(--paper);
  border: 1px solid rgba(179,140,65,0.22);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.pillar-card h3 { color: var(--paper); }
.pillar-card p { color: #cfcac0; font-size: 0.92rem; margin-bottom: 0; }
.pillar-card .card-index { opacity: 0.8; }

/* ------------------------------------------------------------- value cards */
.value-card {
  border-top: 3px solid var(--gold);
  padding: 1.75rem 0 0;
}

.value-card h3 { margin-bottom: 0.35rem; }
.value-card .value-line { font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.92rem; }

.value-card--secondary { border-top-color: var(--line); }

/* ------------------------------------------------------------ credential box */
.credential-box {
  background: var(--black);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.credential-box dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.credential-box dd { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------- notice */
.notice {
  border: 1px dashed #b8860b;
  background: #fdf8ec;
  color: #6b4e00;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.notice strong { color: #4a3600; }

/* ------------------------------------------------------------------ list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.check-list li { position: relative; padding-left: 1.5rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--black); color: #cfcac0; }

.footer-top {
  padding: clamp(3rem, 6vw, 4rem) 0 2.5rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}

@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--paper); font-size: 1.05rem; }

.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col p { font-size: 0.88rem; margin-bottom: 0.4rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8f8a80;
}

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }

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

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d6d1c6;
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(179,140,65,0.18);
}

textarea { resize: vertical; min-height: 120px; }

/* --------------------------------------------------------------- helpers */
.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.two-col {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--gold);
  color: #6b4e00;
  border-radius: 999px;
}
.section--dark .tag, .section--charcoal .tag { color: var(--gold-light); border-color: var(--gold-light); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: var(--black);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }
