/* ==========================================================================
   Indus Security Services — Design System
   Signature element: the "Clearance Badge" — a hexagonal verification seal
   used on team credentials, testimonials, and certifications, echoing the
   agency's vetting process. Paired with a "manifest strip" (mono, tracked
   uppercase, tick-divided) used for trust signals — the visual language of
   an ID card / clearance document.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* Color */
  --navy-deep: #0A1628;
  --navy: #12233F;
  --navy-soft: #1B3358;
  --charcoal: #454328;
  --gold: #B8935A;
  --gold-bright: #D4AF6A;
  --silver: #9AA5B1;
  --silver-dim: #6C7684;
  --paper: #F6F5F2;
  --paper-dim: #EBE8E2;
  --white: #FFFFFF;
  --ok: #4C7A5C;
  --warn: #B8935A;
  --danger: #A6453A;

  /* Type */
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --maxw: 1200px;
  --radius: 2px;
  --shadow: 0 12px 32px rgba(10, 22, 40, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--charcoal); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-dark { background: var(--navy-deep); color: var(--paper); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #C7CDD6; }
.section-alt { background: var(--paper-dim); }

/* Eyebrow / mono label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); background: var(--navy-deep); }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(184,147,90,0.25);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand-mark {
  width: 34px; height: 34px; flex-shrink: 0;
}
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.03em; text-transform: uppercase; }
.brand-text span { color: var(--gold); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #C7CDD6; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: -16px; background: var(--navy);
  min-width: 240px; padding: 10px 0; box-shadow: var(--shadow);
  border-top: 2px solid var(--gold);
  display: none;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 20px; text-transform: none; letter-spacing: 0.02em; font-size: 0.85rem; }
.dropdown a:hover { background: var(--navy-soft); border: none; }
.dropdown-wide { min-width: 460px; column-count: 2; column-gap: 0; padding: 10px 0; }
.dropdown-wide a { break-inside: avoid; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--navy-deep);
    flex-direction: column; align-items: flex-start; padding: 24px; gap: 4px; display: none; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .dropdown { position: static; box-shadow: none; background: transparent; padding-left: 16px; display: block; }
  .dropdown-wide { min-width: 0; column-count: 1; }
  .nav-toggle { display: block;margin-left: 99px;
  }
  .nav-cta .btn { display: none; }
}

/* Manifest strip — trust signal bar */
.manifest-strip {
  background: var(--navy);
  border-top: 1px solid rgba(184,147,90,0.2);
  border-bottom: 1px solid rgba(184,147,90,0.2);
}
.manifest-strip .container {
  display: flex; flex-wrap: wrap; gap: 0;
  padding-top: 16px; padding-bottom: 16px;
}
.manifest-item {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #C7CDD6;
  padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; gap: 8px;
}
.manifest-item:first-child { padding-left: 0; }
.manifest-item:last-child { border-right: none; }
.manifest-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* Hero */
.hero { padding: 110px 0 90px; position: relative; overflow: hidden; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,0.9) 100%),
    repeating-linear-gradient(115deg, rgba(184,147,90,0.045) 0px, rgba(184,147,90,0.045) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-lead { font-size: 1.15rem; color: #C7CDD6; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-panel {
  border: 1px solid rgba(184,147,90,0.3); background: rgba(255,255,255,0.03);
  padding: 28px; border-radius: var(--radius);
}
.hero-panel-title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Clearance badge (signature element) */
.badge {
  width: 64px; height: 64px;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 60%, #8a6a3c);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-deep); font-weight: 800; flex-shrink: 0;
}
.badge svg { width: 26px; height: 26px; }
.badge-sm { width: 44px; height: 44px; }
.badge-sm svg { width: 18px; height: 18px; }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-5, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--paper-dim);
  padding: 30px; border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card-dark {
  background: var(--navy); color: var(--paper); border: 1px solid rgba(184,147,90,0.25);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: #C7CDD6; }
.card-icon { margin-bottom: 18px; }
.card-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); letter-spacing: 0.14em; }

/* Section head */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Stats strip */
.stat { text-align: left; }
.stat-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver-dim); margin-top: 8px; }

/* Testimonial */
.testimonial { border-left: 2px solid var(--gold); padding-left: 24px; }
.testimonial p { font-size: 1.05rem; font-style: italic; color: var(--charcoal); }
.testimonial-name { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver-dim); }

/* Forms */
.form-panel { background: var(--white); border: 1px solid var(--paper-dim); padding: 36px; border-radius: var(--radius); }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--silver-dim); margin-bottom: 8px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #D8D4CB; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--paper); color: var(--charcoal);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; }
.form-msg { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.92rem; font-family: var(--font-mono); }
.form-msg.ok { background: rgba(76,122,92,0.12); border: 1px solid var(--ok); color: #2E4C39; }
.form-msg.err { background: rgba(166,69,58,0.1); border: 1px solid var(--danger); color: var(--danger); }

/* CTA band */
.cta-band { background: var(--navy-deep); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #9BA5B2; padding: 64px 0 28px; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; }
.footer-grid a, .footer-grid p { font-size: 0.9rem; color: #9BA5B2; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--silver-dim);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }

/* Breadcrumb / page header */
/* Breadcrumb bar */
.breadcrumb-bar {
  background: var(--paper-dim); border-bottom: 1px solid #E2DFD7;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.breadcrumb-bar .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb-bar a { color: var(--silver-dim); }
.breadcrumb-bar a:hover { color: var(--gold); }
.breadcrumb-bar .crumb-sep { margin: 0 8px; color: #C9C5BC; }
.breadcrumb-bar .crumb-current { color: var(--navy); }

/* Related services cross-links */
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--paper-dim); border-radius: 20px; color: var(--navy);
}
.related-links a:hover { border-color: var(--gold); color: var(--gold); }

/* Coming soon panel */
.coming-soon { text-align: center; padding: 60px 30px; border: 1px dashed #D8D4CB; border-radius: var(--radius); background: var(--white); }
.coming-soon .badge { margin: 0 auto 20px; }

.page-head { background: var(--navy-deep); padding: 64px 0 40px; }
.page-head .eyebrow { color: var(--gold); }

/* Table (admin reused visually) */
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--paper-dim); }
table.data th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver-dim); }
.status-pill { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 12px; display: inline-block; }
.status-New { background: #E4E9F0; color: var(--navy); }
.status-Contacted { background: rgba(184,147,90,0.18); color: #8a6a3c; }
.status-Booked { background: rgba(76,122,92,0.15); color: #2E4C39; }
.status-Completed { background: rgba(76,122,92,0.3); color: #1F3327; }
.status-Cancelled { background: rgba(166,69,58,0.12); color: var(--danger); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-gold { color: var(--gold); }
.small { font-size: 0.85rem; color: var(--silver-dim); }

/* ==========================================================================
   Motion System — page-load sequence, scroll reveals, micro-interactions.
   Everything here is skipped for prefers-reduced-motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Hero entrance sequence */
  .hero .eyebrow   { animation: fadeUp .7s cubic-bezier(.16,.84,.44,1) both; }
  .hero h1         { animation: fadeUp .7s cubic-bezier(.16,.84,.44,1) .08s both; }
  .hero-lead       { animation: fadeUp .7s cubic-bezier(.16,.84,.44,1) .16s both; }
  .hero-actions    { animation: fadeUp .7s cubic-bezier(.16,.84,.44,1) .24s both; }
  .hero-panel      { animation: fadeUp .8s cubic-bezier(.16,.84,.44,1) .32s both; }
  .page-head .eyebrow { animation: fadeUp .6s cubic-bezier(.16,.84,.44,1) both; }
  .page-head h1        { animation: fadeUp .6s cubic-bezier(.16,.84,.44,1) .08s both; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Scroll reveal — JS adds .reveal to targets, toggles .is-visible in view */
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  /* Stagger siblings inside a grid so cards don't all land at once */
  .grid .reveal:nth-child(1) { transition-delay: .04s; }
  .grid .reveal:nth-child(2) { transition-delay: .11s; }
  .grid .reveal:nth-child(3) { transition-delay: .18s; }
  .grid .reveal:nth-child(4) { transition-delay: .25s; }
  .grid .reveal:nth-child(5) { transition-delay: .32s; }

  /* Sticky header condenses on scroll */
  .site-header { transition: box-shadow .3s ease; }
  .site-header.scrolled { box-shadow: 0 10px 28px rgba(10,22,40,0.3); }
  .site-header.scrolled .nav-wrap { padding-top: 12px; padding-bottom: 12px; }
  .nav-wrap { transition: padding .25s ease; }

  /* Button micro-interaction: lift + light sweep */
  .btn { position: relative; overflow: hidden; transform: translateY(0); }
  .btn::before {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-18deg); transition: left .55s ease;
  }
  .btn:hover::before { left: 130%; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }

  /* Nav link underline sweep */
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px;
    background: var(--gold); transition: width .25s ease;
  }
  .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

  /* Clearance badge: subtle hover turn */
  .badge { transition: transform .35s cubic-bezier(.16,.84,.44,1); }
  .badge:hover { transform: rotate(8deg) scale(1.06); }

  /* Cards lift a little further with a soft shadow on hover */
  .card:hover { box-shadow: var(--shadow); }

  /* Manifest strip trust dots breathe gently */
  .manifest-item .dot { animation: dotPulse 2.6s ease-in-out infinite; }
  @keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

  /* Footer links nudge right on hover */
  .footer-links a { display: inline-block; transition: transform .2s ease, color .2s ease; }
  .footer-links a:hover { transform: translateX(4px); }

  /* Related-links pills lift slightly */
  .related-links a { transition: border-color .2s ease, color .2s ease, transform .2s ease; }
  .related-links a:hover { transform: translateY(-2px); }
}

/* Back to top button (visibility state works regardless of motion preference) */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px;
  background: var(--gold); color: var(--navy-deep); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 1.1rem; line-height: 1; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .18s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--gold-bright); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero .eyebrow, .hero h1, .hero-lead, .hero-actions, .hero-panel,
  .page-head .eyebrow, .page-head h1 { animation: none !important; }
  .back-to-top { transition: opacity .2s ease; }
}
