/* ================================================================
   RS Enterprises - style.css
   This file controls ALL the colours, fonts and layout of the site.

   Colour scheme (think: trustworthy Indian security company):
     - Navy blue  : the main brand colour (header, footer, buttons)
     - White      : clean background for easy reading
     - Gold/amber : the accent colour (small touches, buttons, lines)

   How to use this file for small edits (no coding needed):
     - To change the main colour: edit "--navy" below.
     - To change the accent colour: edit "--gold" below.
     - To change the font size of a section: find that section's name
       below (for example "Hero") and adjust the font-size value.

   The whole site is one page, and it is built to look good on:
     - a big computer screen (widescreen monitors)
     - a small mobile phone (the most common way people will visit)
   ================================================================ */

/* ---------- 1. Design "variables" (the main palette) ---------- */
:root {
  --navy: #0B1F3A;      /* main navy blue */
  --navy-2: #123055;    /* lighter navy (hover colour) */
  --navy-deep: #081527; /* darkest navy (footer) */
  --gold: #E9A319;      /* main gold / amber accent */
  --gold-dark: #B97E0B; /* darker gold (hover colour) */
  --gold-soft: #FBF0DA; /* very light cream used behind accents */
  --white: #FFFFFF;
  --cloud: #F3F6FA;     /* very light grey-blue used on alternate sections */
  --line: #E1E8F0;      /* light border colour between cards */
  --ink: #22374E;       /* main readable paragraph colour */
  --muted: #52667B;     /* softer grey for captions */
  --radius: 16px;       /* how round the corners are (16px looks soft and friendly) */
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.10);
  --danger: #C0392B;    /* red, used only for form error notes */
  --font: 'Fredoka', 'Segoe UI', Arial, sans-serif; /* the one font used everywhere */
}

/* ---------- 2. Basic reset & defaults ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* fallback smooth jump if Lenis is not loaded */
}

/* Recommended Lenis styles (needed for smooth scrolling to work well) */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Keeps the content in a neat narrow strip in the middle of the screen */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Extra space at the top of each section so the sticky menu never covers it */
section[id] {
  scroll-margin-top: 100px;
}

/* ---------- 3. Buttons (all rounded, clean, easy to tap on a phone) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px; /* full pill shape */
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 0.8rem 1.5rem;
  font-size: 1.05rem;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

/* Gold button = the main "do this" action on the page */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
}

/* Navy button = secondary action */
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-2);
}

/* White outline button = used on the dark hero picture */
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.95rem; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.2rem; }

/* ---------- 4. Sticky top menu bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold); /* slim gold line under the menu */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 88px;
}

/* Logo block on the left (shield icon + company name) */
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
}
.brand-logo {
  width: 52px;
  height: 52px;
  flex: none;
}
.brand-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.1;
  color: var(--white);
}
.brand-tag {
  display: block;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.4px;
  margin-top: 0.2rem;
}

/* The middle menu links */
.site-nav {
  display: flex;
  gap: 0.35rem;
}
.site-nav a {
  color: #DCE6F2;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Right side of the menu: language button + Apply Now button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.5rem;
}

/* The EN / हिंदी language switch button */
.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hamburger button - only visible on small phone screens;
   it opens and closes the menu on mobile */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---------- 5. Hero (big welcome section at the top) ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(233, 163, 25, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-2) 100%);
  color: var(--white);
  padding: 6rem 0 6.5rem;
  text-align: center;
}
.hero-chip {
  display: inline-block;
  background: rgba(233, 163, 25, 0.16);
  border: 1px solid rgba(233, 163, 25, 0.4);
  color: var(--gold);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 22ch;
  margin: 1.3rem auto 1rem;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  color: #D8E3F2;
  max-width: 62ch;
  margin-inline: auto;
}
.hero-actions {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  margin-top: 2.6rem;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 1.9rem;
  font-size: 1rem;
  color: #AFC2DB;
}

/* ---------- 6. General section blocks ---------- */
.section {
  padding: 5.5rem 0;
}
.section.alt {
  background: var(--cloud);
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.4rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  color: var(--navy);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 76px;
  height: 5px;
  border-radius: 4px;
  background: var(--gold); /* the gold underline under each section title */
}
.section-head p {
  color: var(--muted);
  font-size: 1.15rem;
}

/* ---------- 7. About Us ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.2rem;
  align-items: start;
}
.about-text p {
  margin-bottom: 1.3rem;
  font-size: 1.18rem;
}

/* The small tick list beside the About text */
.check-list {
  margin-top: 1.5rem;
}
.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.check-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-top: 0.2rem;
}

/* The small white "promise" box next to the About text */
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
}
.about-card h3 {
  color: var(--navy);
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}
.about-card p {
  color: var(--muted);
}

/* The row of number "trust stats" (500+ guards, 50+ clients...) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 3.2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg {
  width: 24px;
  height: 24px;
}
.stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* ---------- 8. Service cards (Guard, Gunman, Housekeeping, Supervisor) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
/* --- Job vacancies grid - owner-required layout ---
   Desktop: exactly 4 columns in row 1 (Guard, Gunman, Housekeeping,
   Supervisor) and the two NEW cards (Sales, Electrician) centered below
   in grid columns 2 and 3. Tablet: 2 columns. Mobile: 1 column. */
.vacancies-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vacancies-grid .vacancy-card:nth-child(5) { grid-column: 2 / 3; }
.vacancies-grid .vacancy-card:nth-child(6) { grid-column: 3 / 4; }
@media (max-width: 1023px) {
  .vacancies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vacancies-grid .vacancy-card:nth-child(5),
  .vacancies-grid .vacancy-card:nth-child(6) {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  .vacancies-grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(11, 31, 58, 0.14);
}
.service-card .card-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg {
  width: 30px;
  height: 30px;
}
.card h3 {
  font-size: 1.45rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}
/* The Hindi job title shown under the English title (always visible) */
.role-hi {
  display: block;
  font-size: 1.05rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin-top: 0.2rem;
}
.card p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 0.7rem;
}

/* ---------- 9. Job vacancy cards ---------- */
.vacancy-card {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.vacancy-card h3 {
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 600;
}
.vacancy-location {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0.6rem 0 1rem;
}
.vacancy-location svg {
  width: 16px;
  height: 16px;
  color: var(--gold-dark);
  flex: none;
}
.vacancy-requirements {
  margin-bottom: 0.5rem;
}
.vacancy-requirements li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
  font-size: 1.07rem;
}
/* the little gold dot before each requirement */
.vacancy-requirements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.vacancy-card .btn {
  flex: none;
}

/* ---------- 10. Apply Now ---------- */
.apply-section .section-head {
  margin-bottom: 2rem;
}
.apply-intro {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  font-size: 1.2rem;
}

/* The online application form. It posts to a Google Apps Script Web App
   (Code.gs) - full setup steps are in the green owner notes in index.html. */
.rs-form {
  margin: 2.4rem auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.8rem;
  padding: 2.4rem 2.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Section heading inside the form ("Personal Details", "Contact Details"...)
   Each heading stretches across both columns. */
.rs-form-section {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1.4;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
}

/* One label + answer pair. Short pairs sit side by side on wide screens. */
.rs-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.rs-field-wide {
  grid-column: 1 / -1;
}
.rs-field > label {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.4;
}

/* All answer boxes: roomy (min 48px) so they are easy to tap on a phone */
.rs-field input,
.rs-field select,
.rs-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rs-field textarea {
  min-height: 110px;
  resize: vertical;
}
.rs-field input:focus,
.rs-field select:focus,
.rs-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233, 163, 25, 0.18);
}

/* The file upload controls (photo, Aadhaar, PAN, police certificate) */
.rs-field input[type="file"] {
  padding: 0.55rem 0.6rem;
}

/* The declaration checkbox line */
.rs-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 400 !important;
  cursor: pointer;
}
.rs-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: none;
  margin-top: 0.25rem;
  accent-color: var(--gold);
}

/* A missing/oversized field gains a red edge + a small red note */
.rs-field.rs-has-error input,
.rs-field.rs-has-error select,
.rs-field.rs-has-error textarea {
  border-color: var(--danger);
}
.rs-field-error {
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 500;
}

/* The submit button (gold, like the other main buttons) */
.rs-submit-btn {
  width: 100%;
  margin-top: 0.4rem;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gold);
  border: 0;
  border-radius: 14px;
  min-height: 54px;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.rs-submit-btn:hover {
  background: var(--gold-dark);
  color: var(--white);
}
.rs-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* The status line under the button ("Sending...", "Thank you!", errors) */
.rs-form-status {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  min-height: 1.6rem;
}
.rs-form-status[data-state="sending"] { color: var(--muted); }
.rs-form-status[data-state="success"] { color: #1E7A3C; }
.rs-form-status[data-state="error"],
.rs-form-status[data-state="filesize"],
.rs-form-status[data-state="duplicate"],
.rs-form-status[data-state="ratelimited"],
.rs-form-status[data-state="validation"],
.rs-form-status[data-state="servererror"],
.rs-form-status[data-state="badresponse"] { color: var(--danger); }

/* Helper line shown when a vacancy button pre-selects the applied-for post */
.rs-post-hint {
  font-size: 0.95rem;
  color: var(--gold-dark);
  font-weight: 500;
}

/* Small bilingual note under a form section ("optional for now" guidance) */
.rs-form-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  border-left: 3px solid var(--gold);
  padding-left: 0.6rem;
}

/* Privacy / data-use notice shown near the submit buttons */
.rs-privacy-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

/* ---------- 11. Contact Us ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 720px;
  margin-inline: auto;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.contact-item:hover {
  border-color: var(--gold);
}
.contact-item svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--gold-dark);
  margin-top: 0.2rem;
}
.contact-item strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
}
.contact-item p {
  color: var(--muted);
  font-size: 1.08rem;
  word-break: break-word;
}
.contact-item a:hover {
  color: var(--gold-dark);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #C9D6E8;
  padding-top: 3.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
}
.footer-brand p {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  color: #9FB3CC;
  max-width: 40ch;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: #B9C9DE;
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: 0.95rem;
  color: #8FA5BF;
}

/* ---------- 13. Mobile friendly adjustments ---------- */
@media (max-width: 960px) {
  /* Hamburger appears, menu becomes a dropdown */
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 0.6rem 1.2rem 1.2rem;
    border-bottom: 3px solid var(--gold);
    display: none;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.25);
  }
  .site-header.nav-open .site-nav {
    display: flex;
  }
  .site-nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .brand-tag {
    display: none; /* hide the small tagline text on very small phones */
  }
  .brand-name {
    font-size: 1.25rem;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
  }
  .lang-toggle {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
  /* Hide the small in-menu "Apply Now" button on narrow phones - the Apply
     buttons inside the page are much easier to reach. Keeps the header from
     overflowing the screen. */
  .nav-actions .btn-sm {
    display: none;
  }
  .header-inner {
    gap: 0.5rem;
    min-height: 78px;
  }
  .hero {
    padding: 4.5rem 0 5rem;
  }
  .hero-actions .btn {
    width: 100%; /* full-width buttons are much easier to tap on a phone */
  }
  .rs-form {
    grid-template-columns: 1fr; /* one column: every field full width */
    padding: 1.6rem 1.2rem;
    gap: 1.1rem;
  }
  .rs-field-wide {
    grid-column: auto;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ---------- 11. Staffing request: CTA band + modal ---------- */

/* The navy "hire manpower" band shown right after the services cards */
.staffing-cta {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%);
  border: 1px solid rgba(233, 163, 25, 0.35);
  border-radius: var(--radius);
  padding: 3.2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.staffing-cta .section-head {
  margin: 0 auto 1.8rem;
}
.staffing-cta .section-head h2 {
  color: var(--white);
}
.staffing-cta .section-head p {
  color: #C9D6E8;
}
.staffing-cta-actions {
  margin-top: 1rem;
}
.staffing-cta-actions .btn {
  max-width: 360px;
}

/* ---------- 11b. Modal overlay + dialog ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.modal.open {
  display: flex;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 39, 0.66);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 940px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 2.2rem 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.modal-close:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}
.modal-close svg {
  width: 22px;
  height: 22px;
}
.modal-title {
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0 0 1.6rem;
  padding-right: 3rem;
}
body.modal-open {
  overflow: hidden;
}

/* The form sits inside the dialog, so it drops its outer card styling */
.modal-dialog .rs-form {
  margin: 0 auto;
  max-width: 860px;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* Group label above the "Service Required" checkboxes */
.rs-checkbox-group-label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.4;
}
.staffing-form .rs-checkbox-label {
  font-size: 1.02rem;
  color: var(--ink);
}
.staffing-form .rs-checkbox-label + .rs-checkbox-label {
  margin-top: 0.35rem;
}
.staffing-form .rs-field.rs-has-error .rs-checkbox-group-label {
  color: var(--danger);
}

@media (max-width: 560px) {
  .staffing-cta {
    padding: 2.4rem 1.2rem;
  }
  .staffing-cta-actions .btn {
    width: 100%;
  }
  .modal {
    padding: 0.75rem;
  }
  .modal-dialog {
    padding: 1.5rem 1.1rem 1.2rem;
    max-height: 94vh;
  }
  .modal-title {
    font-size: 1.3rem;
  }
}

/* ---------- 12. Error (404) page ---------- */
.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.2rem 4.5rem;
  background:
    radial-gradient(1000px 480px at 18% -12%, rgba(233, 163, 25, 0.12), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: var(--white);
}
.error-code {
  display: inline-block;
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.error-page h1 {
  margin: 1.1rem 0 0.75rem;
  font-size: 1.9rem;
  line-height: 1.35;
  color: var(--white);
}
.error-page p {
  color: #C9D6E8;
  max-width: 560px;
  margin: 0 auto 1.7rem;
  line-height: 1.7;
}
.error-page .btn {
  max-width: 420px;
}
.error-contact {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: #C9D6E8;
}
.error-contact a {
  color: var(--gold);
  text-decoration: none;
}
.error-contact a:hover {
  color: var(--gold-dark);
}

@media (max-width: 560px) {
  .error-code {
    font-size: 3.4rem;
  }
  .error-page h1 {
    font-size: 1.5rem;
  }
}

/* ---------- 13. Real company photos: About strip, Gallery, Careers ---------- */

/* Shared photo-card look (white card, soft shadow, caption) */
.rs-photo {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rs-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.rs-photo figcaption {
  padding: 0.85rem 1.1rem 1rem;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

/* --- About Us: two real photos under the about text --- */
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 3rem;
}

/* --- Gallery: "Our Team & Work" ---
   Owner-required order: [Male Guard] [Group Photo] [Female Guard],
   three equal compact cards side-by-side on desktop ~ one section row.
   The grid is width-capped so the displayed photos end up roughly
   150-200px tall on desktop (NOT tall portraits). object-fit: cover
   crops the two tall portraits; object-position keeps each guard's
   face/upper body visible and the group photo fully understandable. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 780px; /* compact bento: keeps cards ~250px wide / ~185px tall */
  margin-inline: auto;
}
.team-photo img {
  width: 100%;
  aspect-ratio: 4 / 3; /* ~half the vertical height of the tall portraits */
  object-fit: cover;
  object-position: center 18%; /* keep heads and upper body on portraits */
}
.team-photo:nth-child(2) img {
  object-position: center; /* group photo: keep the whole scene */
}

/* ---------- 14. Credentials & Certifications ---------- */
.credentials-card {
  display: flex;
  gap: 2.2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.cert-preview {
  flex: 0 0 300px;
  max-width: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cloud);
}
.cert-preview img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s;
}
.cert-preview a:hover img {
  transform: scale(1.015);
}
.credentials-info {
  flex: 1 1 380px;
  min-width: 0;
}
.cred-badge {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--navy);
  border: 1px solid rgba(233, 163, 25, 0.5);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
}
.credentials-info h3 {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0.9rem 0 1rem;
}
.cred-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.cred-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 1.06rem;
  line-height: 1.5;
}
.cred-list .k {
  color: var(--navy);
  font-weight: 600;
  flex: none;
  min-width: 130px;
}
.cred-list .v {
  color: var(--muted);
  word-break: break-word;
}
.cred-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.cred-note {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 15. Responsive: photos / credentials on small screens ---------- */
@media (max-width: 900px) {
  .about-photos {
    grid-template-columns: 1fr;
  }
  .credentials-card {
    padding: 1.5rem;
  }
  .cert-preview {
    flex: 1 1 100%;
  }
}
/* Team photo cards: single column on phones/very small screens so
   images stay large and readable (3-across is kept ≥ 721px). */
@media (max-width: 720px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 420px; /* female guard is low-res: cap the display width */
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  /* Prevent the About "trust stats" 2x2 grid from blowing out of the
     container on small phones (pre-existing overflow, fixed here). */
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .stat-card {
    padding: 1.5rem 0.7rem;
  }
  .stat-num {
    font-size: 2rem;
  }
}