/* ============================================================
   RELIANCE SECURITY SERVICES — Main Stylesheet
   Theme: Navy #0B1F3A · Crimson #C8102E · Gold #E8A33D
   ============================================================ */

:root {
  --navy-900: #071429;
  --navy-800: #0b1f3a;
  --navy-700: #12294d;
  --navy-600: #1a3a6b;
  --navy-100: #e8eef7;
  --crimson: #c8102e;
  --crimson-dark: #a30d26;
  --gold: #e8a33d;
  --gold-light: #f4c778;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --grey-100: #eef1f6;
  --grey-300: #cbd4e1;
  --grey-500: #6b7a90;
  --grey-700: #3a4a61;
  --text: #24334a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(7, 20, 41, 0.08);
  --shadow-md: 0 8px 30px rgba(7, 20, 41, 0.12);
  --shadow-lg: 0 20px 60px rgba(7, 20, 41, 0.22);
  --font-head: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(7,20,41,.07);
  transition: box-shadow .3s;
}

.header.scrolled { box-shadow: var(--shadow-md); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 13px; }

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand br { display: none; }

.brand-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  flex-shrink: 0;
}

.brand-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.brand-name {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
  letter-spacing: .5px;
}

.brand-name span { color: var(--crimson); }

.brand-tag {
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--grey-500);
  line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-links a {
  padding: 10px 16px;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy-800);
  border-radius: 8px;
  position: relative;
  transition: color .25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a.active { color: var(--crimson); }

.nav-links a.nav-cta,
.nav-cta {
  margin-left: 10px;
  background: var(--crimson);
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 50px;
  font-weight: 600;
  transition: transform .25s, background .25s;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  background: var(--crimson-dark);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(26,58,107,.55), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(200,16,46,.18), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: stretch;
  padding: 116px 0 84px;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(232, 163, 61, .12);
  border: 1px solid rgba(232, 163, 61, .4);
  color: var(--gold-light);
  font-size: 13.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 40px;
  margin-bottom: 26px;
}

.hero-eyebrow svg { width: 15px; height: 15px; fill: var(--gold); }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.08;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero-sub {
  font-size: 18.5px;
  color: #c3cede;
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16.5px;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: transform .25s, background .25s, color .25s;
}

.btn svg { width: 17px; height: 17px; fill: currentColor; transition: transform .25s; }

.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--crimson);
  color: #fff;
}

.btn-primary:hover {
  background: var(--crimson-dark);
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.btn-navy {
  background: var(--navy-800);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-600);
  transform: translateY(-3px);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 20px 28px;
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-trust-item { display: flex; align-items: center; gap: 13px; }

.ht-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(232, 163, 61, .12);
  border: 1px solid rgba(232, 163, 61, .35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ht-icon svg { width: 23px; height: 23px; fill: var(--gold); }

.ht-text { display: flex; flex-direction: column; }

.ht-num {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.ht-label {
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9fb0c7;
  margin-top: 3px;
  white-space: nowrap;
}

/* Hero imagery */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  position: relative;
}

.hero-visual > .hero-photo { flex: 1.25; min-height: 220px; }

.hero-visual > .hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 20, 41, .65) 0%, rgba(7, 20, 41, .15) 32%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 6s ease;
}

.hero-photo:hover img { transform: scale(1.06); }

.hero-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  flex: 1;
  min-height: 180px;
}

.hero-photo-row .hero-photo { min-height: 0; }

.hero-photo-row .hero-photo img { object-position: center 20%; }



/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }

.section-alt { background: var(--off-white); }

.section-navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
}

.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }

.section-head.left { text-align: left; margin-left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--crimson);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 34px; height: 2px;
  background: var(--crimson);
}

.section-head.center .eyebrow::after,
.section-head:not(.left) .eyebrow::after {
  content: '';
  width: 34px; height: 2px;
  background: var(--crimson);
}

.section-navy .eyebrow { color: var(--gold); }
.section-navy .eyebrow::before,
.section-navy .eyebrow::after { background: var(--gold); }

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  color: var(--navy-800);
  letter-spacing: -0.4px;
}

.section-navy .section-title { color: #fff; }

.section-desc { margin-top: 16px; color: var(--grey-500); font-size: 17.5px; }

.section-navy .section-desc { color: #b9c5d8; }

/* ---------- Cards / services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  transition: transform .35s, box-shadow .35s, border-color .35s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--navy-100), #dce7f5);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: background .35s;
}

.card-icon svg { width: 30px; height: 30px; fill: var(--navy-600); transition: fill .35s; }

.card:hover .card-icon { background: linear-gradient(140deg, var(--crimson), var(--crimson-dark)); }
.card:hover .card-icon svg { fill: #fff; }

.card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22.5px;
  color: var(--navy-800);
  margin-bottom: 12px;
  letter-spacing: .3px;
}

.card p { color: var(--grey-500); font-size: 16px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--crimson);
  font-weight: 600;
  font-size: 15.5px;
}

.card-link svg { width: 15px; height: 15px; fill: currentColor; transition: transform .25s; }
.card-link:hover svg { transform: translateX(5px); }

/* ---------- Feature list (why choose us) ---------- */
.features-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-img-stack { position: relative; margin-bottom: 30px; }

.feature-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-img-main img { width: 100%; height: 560px; object-fit: cover; object-position: top; }

.feature-img-accent {
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 46%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}

.feature-img-accent img { width: 100%; height: 230px; object-fit: cover; object-position: top; }

.exp-badge {
  position: absolute;
  top: 26px; left: -24px;
  background: linear-gradient(140deg, var(--crimson), var(--crimson-dark));
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.exp-badge strong { font-family: var(--font-head); font-size: 38px; display: block; line-height: 1; }
.exp-badge span { font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase; }

.feature-item {
  display: flex;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px dashed var(--grey-300);
}

.feature-item:last-child { border-bottom: none; }

.feature-check {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(200,16,46,.09);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.feature-check svg { width: 15px; height: 15px; fill: var(--crimson); }

.feature-item strong { display: block; color: var(--navy-800); font-size: 17.5px; margin-bottom: 3px; }
.feature-item p { color: var(--grey-500); font-size: 15.5px; }

/* ---------- Stats band ---------- */
.stats-band {
  background:
    radial-gradient(700px 340px at 12% 0%, rgba(200,16,46,.22), transparent 60%),
    radial-gradient(700px 340px at 88% 100%, rgba(232,163,61,.14), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  padding: 80px 0;
  color: #fff;
}

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

.stats-grid .stat-item { border-left: 1px solid rgba(255,255,255,.12); padding: 6px 14px; }

.stats-grid .stat-item:first-child { border-left: none; }

.stat-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(232, 163, 61, .12);
  border: 1px solid rgba(232, 163, 61, .35);
  display: grid;
  place-items: center;
}

.stat-icon svg { width: 26px; height: 26px; fill: var(--gold); }

.stat-item strong {
  font-family: var(--font-head);
  font-size: clamp(42px, 4vw, 56px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.05;
  display: block;
}

.stat-item strong span { font: inherit; color: inherit; letter-spacing: inherit; }

.stat-item > span:last-child {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aebbd0;
}

/* ---------- Sectors ---------- */
.sector-pill {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  font-weight: 500;
  color: var(--navy-800);
  font-size: 16px;
}

.sector-pill:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.sector-pill svg { width: 24px; height: 24px; fill: var(--crimson); flex-shrink: 0; }

/* ---------- Clients ---------- */
.client-cat {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  padding: 32px 30px;
  height: 100%;
  transition: transform .3s, box-shadow .3s;
}

.client-cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.client-cat-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--grey-100);
}

.client-cat-head svg { width: 26px; height: 26px; fill: var(--crimson); flex-shrink: 0; }

.client-cat-head h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy-800);
}

.client-cat li {
  padding: 7px 0 7px 24px;
  position: relative;
  color: var(--grey-700);
  font-size: 15.5px;
}

.client-cat li::before {
  content: '';
  position: absolute;
  left: 4px; top: 16px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Marquee — client logo slider */
.marquee {
  overflow: hidden;
  position: relative;
  padding: 30px 0 34px;
  background: #fff;
  border-bottom: 1px solid var(--grey-100);
}

.marquee-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 26px;
}

.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mq-logo {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.mq-flag {
  height: 24px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--grey-100);
}

.mq-item span {
  color: var(--grey-700);
  font-size: 15px;
  font-weight: 500;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .marquee-track { gap: 40px; }
  .mq-logo { height: 28px; }
  .mq-flag { height: 20px; }
  .mq-item span { font-size: 14px; }
}

/* ---------- Photo strip / gallery ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.photo-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-sm);
}

.photo-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .6s;
}

.photo-tile:hover img { transform: scale(1.07); }

.photo-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,20,41,.72) 0%, transparent 50%);
}

.photo-tile figcaption {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  color: #fff;
  font-size: 14.5px;
  z-index: 2;
  line-height: 1.4;
}

/* ---------- Quote / CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 90% 20%, rgba(232,163,61,.16), transparent 55%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border-radius: calc(var(--radius) + 8px);
  padding: 70px 60px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cta-band h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  max-width: 24ch;
  position: relative;
}

.cta-band p { color: #b9c5d8; margin-top: 10px; max-width: 52ch; position: relative; }

.cta-band .btn { position: relative; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    linear-gradient(rgba(7,20,41,.82), rgba(11,31,58,.88)),
    url('../images/guard-benin.jpg') center 22% / cover no-repeat;
  color: #fff;
  padding: 130px 0 100px;
  text-align: center;
  position: relative;
}

.page-hero.services-bg {
  background:
    linear-gradient(rgba(7,20,41,.82), rgba(11,31,58,.88)),
    url('../images/guard-sudan.jpg') center 25% / cover no-repeat;
}

.page-hero.contact-bg {
  background:
    linear-gradient(rgba(7,20,41,.84), rgba(11,31,58,.9)),
    url('../images/guard-gambia.jpg') center 30% / cover no-repeat;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.page-hero p {
  color: #c3cede;
  max-width: 62ch;
  margin: 16px auto 0;
  font-size: 18px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9fb0c7;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Service detail blocks ---------- */
.svc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--grey-100);
}

.svc-block:last-of-type { border-bottom: none; }

.svc-block.rev .svc-media { order: 2; }

.svc-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.svc-media img { width: 100%; height: 460px; object-fit: cover; object-position: top; transition: transform .6s; }

.svc-media:hover img { transform: scale(1.05); }

.svc-media-icon {
  width: 100%;
  height: 460px;
  background:
    radial-gradient(500px 300px at 70% 20%, rgba(232,163,61,.15), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-600));
  display: grid;
  place-items: center;
}

.svc-media-icon svg { width: 120px; height: 120px; fill: rgba(255,255,255,.9); }

.svc-num {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--crimson);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.svc-content h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 34px);
  color: var(--navy-800);
  margin-bottom: 16px;
}

.svc-content > p { color: var(--grey-500); margin-bottom: 22px; }

.svc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  color: var(--grey-700);
}

.svc-list svg { width: 16px; height: 16px; fill: var(--crimson); flex-shrink: 0; margin-top: 5px; }

/* ---------- About page ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}

.about-wrap .section-head { margin-bottom: 26px; }

.about-wrap p { color: var(--grey-700); margin-bottom: 18px; }

.chairman-card {
  margin-top: 28px;
  background: var(--off-white);
  border-left: 4px solid var(--crimson);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
}

.chairman-card blockquote {
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--navy-800);
  line-height: 1.6;
  font-style: italic;
}

.chairman-card cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 15px;
  color: var(--grey-500);
}

.chairman-card cite strong { color: var(--crimson); display: block; font-size: 16.5px; }

.value-tile {
  text-align: center;
  padding: 40px 26px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .3s, background .3s, border-color .3s;
  height: 100%;
}

.value-tile:hover {
  transform: translateY(-7px);
  background: rgba(255,255,255,.09);
  border-color: var(--gold);
}

.value-tile .vt-icon {
  width: 70px; height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--crimson), var(--crimson-dark));
  display: grid;
  place-items: center;
}

.value-tile .vt-icon svg { width: 32px; height: 32px; fill: #fff; }

.value-tile h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
}

.value-tile p { color: #b9c5d8; font-size: 15.5px; }

.timeline-item {
  position: relative;
  padding: 0 0 36px 40px;
  border-left: 2px solid var(--grey-300);
  margin-left: 10px;
}

.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--crimson);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--crimson);
}

.timeline-item h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.timeline-item p { color: var(--grey-500); font-size: 16px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.info-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  padding: 26px 26px;
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  transition: transform .3s, box-shadow .3s;
}

.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.info-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--navy-100), #dce7f5);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-icon svg { width: 24px; height: 24px; fill: var(--navy-600); }

.info-card:hover .info-icon { background: linear-gradient(140deg, var(--crimson), var(--crimson-dark)); }
.info-card:hover .info-icon svg { fill: #fff; }

.info-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  color: var(--navy-800);
  margin-bottom: 5px;
}

.info-card p, .info-card a { color: var(--grey-500); font-size: 15.5px; display: block; line-height: 1.6; }

.info-card a:hover { color: var(--crimson); }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-100);
  padding: 44px 42px;
}

.contact-form-card h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.contact-form-card > p { color: var(--grey-500); margin-bottom: 28px; font-size: 16px; }

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

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--navy-800);
  margin-bottom: 7px;
  letter-spacing: .3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--off-white);
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--crimson);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200,16,46,.08);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 13.5px; color: var(--grey-500); margin-top: 14px; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-100);
  margin-top: 60px;
}

.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

.office-tag {
  display: inline-block;
  background: rgba(200,16,46,.08);
  color: var(--crimson);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 8px;
}

/* ---------- Legal pages ---------- */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.legal-updated {
  display: inline-block;
  background: rgba(200,16,46,.08);
  color: var(--crimson);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 34px;
}

.legal-wrap h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  color: var(--navy-800);
  margin: 40px 0 14px;
  padding-top: 8px;
}

.legal-wrap h2:first-of-type { margin-top: 0; }

.legal-wrap p {
  color: var(--grey-700);
  margin-bottom: 16px;
}

.legal-wrap ul {
  margin: 0 0 18px;
}

.legal-wrap ul li {
  position: relative;
  padding: 5px 0 5px 26px;
  color: var(--grey-700);
}

.legal-wrap ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 15px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

.legal-wrap a { color: var(--crimson); }
.legal-wrap a:hover { text-decoration: underline; }

.legal-note {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 26px 0;
  color: var(--grey-700);
  font-size: 15.5px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: #a7b4c9;
  padding: 80px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--crimson));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 54px;
}

.footer h4 {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .8px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 38px; height: 2px;
  background: var(--crimson);
}

.footer-about p { font-size: 15.5px; margin: 18px 0 22px; max-width: 40ch; }

.footer .brand-name { color: #fff; }

.footer-links li { margin-bottom: 11px; }

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  transition: color .25s, transform .25s;
}

.footer-links a::before {
  content: '›';
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}

.footer-links a:hover { color: var(--gold); transform: translateX(4px); }

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.55;
}

.footer-contact svg { width: 17px; height: 17px; fill: var(--gold); flex-shrink: 0; margin-top: 4px; }

.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14.5px;
}

.footer-bottom a { color: #c3cede; }
.footer-bottom a:hover { color: var(--gold); }

.footer-legal { display: flex; gap: 22px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s, transform .3s, visibility .3s, background .3s;
  z-index: 900;
  border: none;
  cursor: pointer;
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.to-top:hover { background: var(--navy-800); }

.to-top svg { width: 20px; height: 20px; fill: #fff; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  left: 26px; bottom: 26px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  z-index: 900;
  transition: transform .3s;
}

.wa-float:hover { transform: scale(1.1); }

.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}

.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation-duration: 120s; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .hero-inner { gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(340px, 84vw);
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 34px 40px;
    gap: 4px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.16,1,.3,1), visibility .4s;
    box-shadow: -20px 0 60px rgba(7,20,41,.4);
    z-index: 1001;
  }

  .nav-links.open { transform: translateX(0); visibility: visible; }

  .nav-links::before {
    content: 'RELIANCE SECURITY';
    color: var(--gold);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 2.4px;
    padding: 0 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    width: 100%;
    margin-bottom: 10px;
  }

  .nav-links a {
    color: #fff;
    width: 100%;
    padding: 15px 12px;
    font-size: 17px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .nav-links a.active { color: var(--gold); }

  .nav-links a::after { display: none; }

  .nav-links a.nav-cta,
  .nav-cta {
    margin: 24px 0 0;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    border-radius: 50px;
    border-bottom: none;
  }

  .nav-toggle { z-index: 1002; position: relative; }

  .nav-toggle.open span { background: #fff; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7,20,41,.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s;
    z-index: 999;
  }

  .nav-overlay.show { opacity: 1; visibility: visible; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 0 80px;
  }

  .hero-visual { max-width: 620px; }


  .features-wrap,
  .about-wrap,
  .contact-grid,
  .svc-block { grid-template-columns: 1fr; gap: 44px; }

  .svc-block.rev .svc-media { order: 0; }

  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stats-grid .stat-item:nth-child(odd) { border-left: none; }

  .feature-img-main img { height: 460px; }

  .section { padding: 72px 0; }

  .cta-band { padding: 52px 36px; }
}

@media (max-width: 640px) {

  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }

  .photo-strip { grid-template-columns: 1fr; }
  .photo-tile { height: 380px; }

  .svc-list { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

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

  .footer-bottom { justify-content: center; text-align: center; }

  .hero-trust { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  .hero-trust-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    padding: 16px 8px 14px;
  }

  .ht-text { align-items: center; }
  .ht-icon { width: 40px; height: 40px; border-radius: 50%; }
  .ht-icon svg { width: 19px; height: 19px; }
  .ht-num { font-size: 20px; }
  .ht-label { white-space: normal; font-size: 10.5px; letter-spacing: .8px; margin-top: 4px; }

  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-inner { align-items: start; }
  .hero-visual > .hero-photo { flex: none; height: 240px; min-height: 0; }
  .hero-photo-row { flex: none; min-height: 0; }
  .hero-photo-row .hero-photo { height: 190px; }

  .feature-img-accent { right: 0; }
  .exp-badge { left: 0; }

  .feature-img-main img { height: 380px; }

  .svc-media img, .svc-media-icon { height: 340px; }

  .contact-form-card { padding: 32px 24px; }

  .cta-band { padding: 44px 26px; text-align: center; justify-content: center; }

  .brand-name { font-size: 18px; }
  .brand-tag { letter-spacing: 1.8px; }

  .to-top { right: 18px; bottom: 18px; width: 46px; height: 46px; }
  .wa-float { left: 18px; bottom: 18px; width: 52px; height: 52px; }
}
