/* ==========================================================================
   Stafflink — Security Staffing, Kolkata
   Design tokens
   ========================================================================== */

:root {
  --navy-950: #071a3d;
  --navy-900: #0a2a5e;
  --navy-800: #123a7a;
  --blue-600: #2b6bf2;
  --blue-500: #3f7dff;
  --blue-400: #6b9dff;
  --ink: #101418;
  --ink-soft: #3c4552;
  --paper: #f6f4ee;
  --paper-raised: #ffffff;
  --line: #e2ddd0;
  --line-dark: rgba(255, 255, 255, 0.16);
  --amber: #f2a71b;
  --ok: #1f9d55;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1180px;
  --radius: 2px;
  --shadow-card: 0 1px 2px rgba(10, 24, 60, 0.06), 0 8px 24px rgba(10, 24, 60, 0.08);
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--blue-600);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy-900);
}

p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 0 var(--navy-900);
}
.btn-primary:hover { background: var(--blue-500); }
.btn-primary:active { box-shadow: 0 2px 0 var(--navy-900); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-dark {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 4px 0 var(--navy-950);
}
.btn-dark:hover { background: var(--navy-800); }
.btn-dark:active { box-shadow: 0 2px 0 var(--navy-950); }

.btn-block { width: 100%; }

.btn-wa {
  background: #1fa855;
  color: #fff;
  box-shadow: 0 4px 0 #157a3d;
}
.btn-wa:hover { background: #24bd61; }
.btn-wa:active { box-shadow: 0 2px 0 #157a3d; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-mark img {
  height: 22px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-call {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.header-call svg { flex-shrink: 0; }

.header-actions .btn { padding: 11px 18px; font-size: 14px; }

@media (max-width: 640px) {
  .header-call span { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(100deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  overflow: hidden;
  color: #fff;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  min-height: 620px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 72px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  max-width: 640px;
}

.hero-copy .eyebrow { color: var(--blue-400); }
.hero-copy .eyebrow::before { background: var(--blue-400); }

.hero-copy h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  color: #fff;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--blue-400);
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 500px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  margin-top: 6px;
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
}
.hero-stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-photo {
  position: relative;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,61,0) 0%, rgba(7,26,61,0.15) 60%, rgba(7,26,61,0.75) 100%),
              linear-gradient(90deg, var(--navy-900) 0%, rgba(10,42,94,0) 18%);
  z-index: 1;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  right: 28px;
  background: rgba(7, 26, 61, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-dark);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
}
.hero-badge svg { flex-shrink: 0; color: var(--amber); }
.hero-badge-text { font-size: 13px; line-height: 1.35; }
.hero-badge-text b { display: block; font-size: 14px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px 0 32px; max-width: none; }
  .hero-photo { height: 320px; }
  .hero-photo::before {
    background: linear-gradient(180deg, rgba(7,26,61,0.1) 0%, rgba(7,26,61,0.85) 100%);
  }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hero-badge { left: 24px; right: 24px; bottom: 16px; }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  padding: 22px 24px;
  align-items: center;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-item svg { color: var(--blue-600); flex-shrink: 0; }

/* ==========================================================================
   Section shell
   ========================================================================== */

section { padding: 88px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
  max-width: 640px;
}

.section-alt {
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--navy-900);
  color: #fff;
}
.section-dark .section-head p { color: rgba(255,255,255,0.75); }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  background: var(--navy-900);
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-visual .shield-big {
  width: 46%;
  color: var(--blue-500);
  opacity: 0.9;
}
.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 22px);
}
.about-locale {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  padding-top: 12px;
}

.about-body p {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 18px;
}

.about-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.about-points li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  align-items: flex-start;
}
.about-points svg { color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { aspect-ratio: 16/9; }
}

/* ==========================================================================
   Why us / capability grid
   ========================================================================== */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cap-card {
  background: var(--paper-raised);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cap-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  color: var(--blue-400);
  border-radius: var(--radius);
}

.cap-card h3 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: 0;
}

.cap-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

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

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step {
  padding: 0 24px 0 0;
  position: relative;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--line-dark);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-400);
  border: 1px solid var(--line-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-weight: 700;
}
.step h3 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Booking form
   ========================================================================== */

.booking-shell {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.booking-aside {
  background: var(--navy-900);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.booking-aside h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }

.booking-aside-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.booking-aside-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
}
.booking-aside-list svg { color: var(--blue-400); flex-shrink: 0; margin-top: 2px; }

.booking-direct {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking-direct-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.booking-form {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
}
.field .req { color: #d1453b; }

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--line);
  background: var(--paper);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 90px; }

.field-error {
  font-size: 12.5px;
  color: #d1453b;
  min-height: 15px;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d1453b;
}
.field.has-error .field-error { display: block; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 300px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .booking-shell { grid-template-columns: 1fr; }
  .booking-aside { padding: 40px 28px; }
  .booking-form { padding: 40px 28px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Coverage / footer CTA
   ========================================================================== */

.cta-band {
  background: linear-gradient(120deg, var(--blue-600), var(--navy-900));
  color: #fff;
  padding: 64px 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); max-width: 560px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand img { height: 20px; margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a,
.footer-col button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  text-align: left;
}
.footer-col a:hover,
.footer-col button:hover { color: #fff; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

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

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1fa855;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(7, 26, 61, 0.3);
  transition: transform 0.15s ease;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 30, 0.6);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  max-width: 720px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modal-in 0.18s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
}
.modal-head h2 {
  font-size: 22px;
  color: var(--navy-900);
}
.modal-close {
  background: var(--paper);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-close:focus-visible { outline: 2px solid var(--blue-600); }

.modal-body {
  padding: 8px 28px 32px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.modal-body h3 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: 0;
  margin: 26px 0 8px;
}
.modal-body h3:first-child { margin-top: 20px; }
.modal-body p { margin-bottom: 10px; }
.modal-body ul { margin: 10px 0; padding-left: 20px; }
.modal-body li { margin-bottom: 6px; }
.modal-body .modal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--navy-950);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast svg { color: #1fa855; flex-shrink: 0; }

/* ==========================================================================
   Utility
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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