* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #f6f6f6;
  --accent-color: #c9a227;
  --accent-dark: #8a6f12;
  --text-color: #333;
  --muted: #5c5c5c;
  --light-text: #fff;
  --header-height: 72px;
  --transition: all 0.25s ease;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: #fff;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2000;
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.navbar {
  background: #4e4e4e;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-height);
}

.navbar .btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.35rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-color);
}

.language-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.language-selector a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
}

.language-selector a:hover,
.language-selector a.active {
  opacity: 1;
}

.language-selector a.active {
  outline: 1px solid var(--accent-color);
}

.flag-icon {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-btn .icon-close {
  display: none;
}

.mobile-menu-btn.is-open .icon-bars {
  display: none;
}

.mobile-menu-btn.is-open .icon-close {
  display: block;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light-text);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}

.hero-image {
  background-size: cover;
  background-position: center;
  filter: brightness(0.62);
}

.hero-image-1 {
  background-image: url('/images/hero/security-radio.jpg');
}

.hero-image-2 {
  background-image: url('/images/hero/facility-vacuum.jpg');
}

.hero-image-3 {
  background-image: url('/images/hero/officer.jpg');
}

.hero-image-4 {
  background-image: url('/images/hero/security-vest.jpg');
}

.hero .container {
  position: relative;
  z-index: 1;
  background: rgba(12, 12, 12, 0.62);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(6px);
  max-width: 760px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn:hover,
.btn:focus-visible {
  background-color: #ddb52e;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.about,
.work,
.contact {
  padding: 4.5rem 0;
  background: var(--secondary-color);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-logo {
  flex: 0 0 220px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.about-values {
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.about-text p {
  color: #555;
  max-width: 42rem;
}

.services {
  padding: 4.5rem 0;
  background: #fff;
}

.services h2,
.work h2,
.contact h2 {
  text-align: center;
  margin-bottom: 2.4rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.work h2::after,
.contact h2::after,
.services h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent-color);
  margin: 0.75rem auto 0;
}

.services-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-category {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #ececec;
}

.service-category h3 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
}

.service-card {
  background: #fafafa;
  padding: 1.4rem 1.1rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #eee;
  flex: 1 1 200px;
  max-width: 240px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.service-card .icon,
.info-item .icon {
  width: 28px;
  height: 28px;
  color: var(--accent-dark);
  margin-bottom: 0.7rem;
}

.service-card h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Category and card titles link to their pages but must look like plain
   headings (the homepage design is fixed by the customer). */
.service-category h3 a,
.service-card h4 a {
  text-decoration: none;
}

.work-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.work-item {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  margin: 0;
  flex: 1 1 300px;
  max-width: 340px;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.work-item:hover img {
  transform: scale(1.04);
}

.stats {
  background: var(--primary-color);
  color: var(--light-text);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.35rem;
}

.contact-lead {
  text-align: center;
  color: #555;
  margin: -1.4rem auto 2rem;
  max-width: 32rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  position: relative;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.info-item .icon {
  margin: 0.15rem 0 0;
  flex-shrink: 0;
}

.info-item a {
  color: var(--text-color);
  text-decoration: none;
}

.info-item a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.form-feedback {
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

.form-feedback.success {
  background-color: #d4edda;
  color: #155724;
}

.form-feedback.error {
  background-color: #f8d7da;
  color: #721c24;
}

footer {
  background: var(--primary-color);
  color: #ddd;
  padding: 1.6rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.legal-page {
  padding: 7.5rem 0 4rem;
  min-height: 70vh;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 1.6rem 0 0.6rem;
}

.legal-page p,
.legal-page li {
  color: #555;
  max-width: 46rem;
  margin-bottom: 0.7rem;
}

.legal-page ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.notice {
  background: #fff7dc;
  border: 1px solid #ead58a;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.not-found {
  text-align: center;
  padding: 8rem 1.5rem 5rem;
}

.not-found h1 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.not-found p {
  margin-bottom: 1.4rem;
  color: #555;
}

.not-found-links {
  margin-top: 1.5rem;
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

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

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-logo {
    flex-basis: 160px;
  }

  .about-text p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .logo img {
    height: 48px;
  }

  .mobile-menu-btn {
    display: flex;
    order: 2;
  }

  .language-selector {
    order: 1;
    margin-left: 0;
    margin-right: auto;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 40, 40, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hero-background {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .hero-image-2,
  .hero-image-3,
  .hero-image-4 {
    display: none;
  }

  .hero .container {
    margin: 0 1rem;
    padding: 2rem 1.25rem;
  }

  .service-card {
    max-width: none;
  }
}

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

  .service-category {
    padding: 1.25rem;
  }
}
