:root {
  --ink: #1d1d1f;
  --muted: #60646b;
  --line: #dedede;
  --panel: #ffffff;
  --page: #f4f4f4;
  --charcoal: #303033;
  --charcoal-dark: #202023;
  --steel: #595959;
  --red: #d12f32;
  --red-dark: #a92327;
  --soft: #f6eeee;
  --shadow: 0 18px 48px rgba(29, 29, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  margin: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 12px 20px;
}

.brand img {
  display: block;
  height: 54px;
  object-fit: contain;
  width: 210px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.portal-link,
.logout-button {
  background: var(--charcoal);
  border: 0;
  border-radius: 7px;
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 13px;
  text-decoration: none;
}

.logout-button {
  background: var(--red);
}

.menu-toggle {
  display: none;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 20px 0;
}

.hero {
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pro-hero {
  background: linear-gradient(120deg, var(--charcoal-dark), var(--charcoal) 58%, var(--red-dark));
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  min-height: 610px;
}

.hero-content {
  align-self: center;
  padding: 54px;
}

.hero-image {
  min-height: 610px;
  position: relative;
}

.hero-image::after {
  background: linear-gradient(90deg, rgba(32, 32, 35, 0.74), transparent 45%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero .eyebrow,
.portal-hero .eyebrow,
.staff-cta .eyebrow {
  color: #ffd7d7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 52px;
  line-height: 1.03;
  margin-bottom: 18px;
}

h2 {
  color: var(--charcoal-dark);
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 14px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--charcoal-dark);
}

.trust-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 0;
}

.trust-strip div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  box-shadow: 0 10px 28px rgba(29, 29, 31, 0.08);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--charcoal-dark);
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.section {
  margin: 28px 0;
  padding: 54px 0;
}

.section:not(.service-section):not(.staff-cta):not(.contact) {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(222, 222, 222, 0.82);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(29, 29, 31, 0.08);
  padding-left: 34px;
  padding-right: 34px;
}

.section-heading {
  max-width: 780px;
}

.section-heading p,
.split p,
.contact p,
.staff-cta p,
.portal-hero p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(29, 29, 31, 0.1);
  overflow: hidden;
  padding: 24px;
}

.image-card div {
  padding: 24px;
}

.feature-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-card {
  padding: 0;
}

.image-card img {
  aspect-ratio: 16 / 9;
}

.service-link-card {
  color: inherit;
  display: block;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-link-card:hover,
.service-link-card:focus-visible {
  border-color: rgba(209, 47, 50, 0.45);
  box-shadow: 0 18px 42px rgba(29, 29, 31, 0.15);
  transform: translateY(-3px);
}

.service-link-card span {
  color: var(--red-dark);
  display: inline-block;
  font-weight: 900;
  margin-top: 10px;
}

.service-row {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.service-row:nth-child(even) {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.service-row div {
  align-self: center;
  padding: clamp(24px, 4vw, 42px);
}

.service-row h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  margin-bottom: 12px;
}

.service-row p {
  font-size: 1.02rem;
  line-height: 1.65;
}

.service-row img {
  min-height: 320px;
}

.service-section {
  background: #fff;
  border: 1px solid rgba(222, 222, 222, 0.9);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 20px 0;
  padding: 48px;
}

.service-grid,
.service-detail-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.service-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid article {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
}

.service-detail {
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(29, 29, 31, 0.1);
  overflow: hidden;
}

.service-detail img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.service-detail div {
  padding: 24px;
}

.service-detail span {
  color: var(--red);
  display: block;
  font-weight: 900;
  margin-bottom: 12px;
}

.service-detail p {
  color: var(--muted);
}

.service-detail strong {
  color: var(--charcoal-dark);
}

.service-grid span {
  color: var(--red);
  display: block;
  font-weight: 900;
  margin-bottom: 18px;
}

.service-grid p,
.feature-card p,
.callout p,
.contact-card p,
.portal-grid p,
.portal-grid li {
  color: var(--muted);
}

.escort-panel {
  align-items: stretch;
  background: linear-gradient(120deg, var(--charcoal-dark), var(--charcoal));
  border-radius: 10px;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  overflow: hidden;
}

.escort-panel img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.escort-panel div {
  align-self: center;
  padding: 44px;
}

.escort-panel h2,
.escort-panel p {
  color: #fff;
}

.split {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 0.85fr;
}

.callout,
.contact-card,
.contact-form,
.portal-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 32px rgba(29, 29, 31, 0.1);
  padding: 24px;
}

.callout {
  border-top: 5px solid var(--red);
}

.callout a,
.contact-card a {
  color: var(--red-dark);
  font-weight: 900;
}

.staff-cta {
  align-items: center;
  background: linear-gradient(120deg, var(--charcoal-dark), var(--charcoal) 58%, var(--red-dark));
  border-radius: 10px;
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 20px 0;
  padding: 38px;
}

.staff-cta h2,
.staff-cta p {
  color: #fff;
}

.service-hero {
  align-items: center;
  background: linear-gradient(120deg, var(--charcoal-dark), var(--charcoal));
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 26px;
  padding: 46px;
}

.service-hero h1,
.service-hero p {
  color: #fff;
}

.service-hero img {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
  object-fit: cover;
  width: 100%;
}

.service-breadcrumb {
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  font-weight: 800;
  margin-bottom: 18px;
  text-decoration: none;
}

.service-breadcrumb:hover {
  color: #fff;
}

.service-info-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-info-card,
.service-checklist,
.related-services {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(29, 29, 31, 0.1);
  padding: 26px;
}

.service-info-card h2,
.service-checklist h2,
.related-services h2 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.service-info-card p,
.service-checklist li,
.related-services p {
  color: var(--muted);
}

.service-checklist ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.related-links a {
  background: var(--soft);
  border: 1px solid rgba(209, 47, 50, 0.22);
  border-radius: 999px;
  color: var(--red-dark);
  font-weight: 900;
  padding: 9px 13px;
  text-decoration: none;
}

.related-links a:hover {
  background: #fff;
}

.contact {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

.contact-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  color: var(--charcoal-dark);
  display: grid;
  font-weight: 900;
  gap: 7px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(209, 47, 50, 0.72);
  box-shadow: 0 0 0 3px rgba(209, 47, 50, 0.12);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.portal-hero {
  background: linear-gradient(120deg, var(--charcoal-dark), var(--charcoal) 58%, var(--red-dark));
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 48px;
}

.portal-hero h1 {
  max-width: 780px;
}

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

.portal-grid ul,
.portal-grid ol {
  margin-bottom: 0;
  padding-left: 22px;
}

.login-page {
  background:
    linear-gradient(120deg, rgba(32, 32, 35, 0.95), rgba(169, 35, 39, 0.84)),
    url("site_assets/gate-automation.png") center / cover;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
}

.login-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 440px;
  padding: 30px;
  width: 100%;
}

.login-brand img {
  display: block;
  margin-bottom: 24px;
  max-width: 230px;
}

.login-card h1 {
  color: var(--charcoal-dark);
  font-size: 34px;
}

.login-card label {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  margin: 18px 0 14px;
}

.login-card input {
  border: 1px solid #c7c7c7;
  border-radius: 7px;
  font: inherit;
  min-height: 48px;
  padding: 11px 12px;
}

.login-card button {
  border: 0;
  cursor: pointer;
  width: 100%;
}

.login-error {
  color: var(--red-dark);
  font-weight: 800;
  min-height: 24px;
}

.back-link {
  color: var(--muted);
  display: inline-block;
  font-weight: 800;
  margin-top: 8px;
}

.site-footer {
  background: var(--charcoal-dark);
  border-radius: 16px 16px 0 0;
  color: #fff;
  margin: 42px auto 0;
  max-width: 1180px;
  padding: 34px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 1fr));
}

.footer-grid img {
  background: #fff;
  border-radius: 8px;
  display: block;
  margin-bottom: 16px;
  max-width: 220px;
  padding: 8px;
}

.footer-grid h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 14px;
}

.footer-grid a,
.footer-grid p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
}

@media (max-width: 980px) {
  .pro-hero,
  .escort-panel,
  .service-row,
  .service-row:nth-child(even),
  .service-hero,
  .contact-layout,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .portal-hero {
    padding: 34px 24px;
  }

  .hero-image {
    min-height: 340px;
  }

  .trust-strip,
  .service-grid,
  .service-detail-grid,
  .service-info-grid,
  .footer-grid,
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand img {
    width: 190px;
  }

  main {
    padding: 16px 12px 0;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .trust-strip,
  .feature-grid,
  .service-grid,
  .service-detail-grid,
  .service-info-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .service-section,
  .service-hero,
  .escort-panel div,
  .staff-cta {
    padding: 24px;
  }

  .service-row img {
    min-height: 0;
  }

  .staff-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  footer {
    align-items: flex-start;
  }

  .site-footer {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
