/* =========================================================
   JRD Secure System — common stylesheet
   Brand: navy + red + gold (from the eagle logo)
   ========================================================= */
:root {
  --navy: #14286E;
  --navy-deep: #0A1843;
  --navy-soft: #1F3A8A;
  --red: #D0121B;
  --red-dark: #A80D14;
  --gold: #C8952C;
  --paper: #F3F5FA;
  --white: #FFFFFF;
  --ink: #121A2E;
  --muted: #56607A;
  --line: #DCE1EC;

  --font-head: "Saira Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --r-s: 4px;
  --r-m: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #D5DCF0; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #B9C4E4; }

/* Heading with the red brand bar */
.head { margin-bottom: 2.5rem; max-width: 720px; }
.head h2::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: .6rem;
  background: linear-gradient(90deg, var(--red) 0 70%, var(--gold) 70% 100%);
}
.head--center { margin-inline: auto; text-align: center; }
.head--center h2::after { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  padding: .85rem 1.5rem; border-radius: var(--r-s);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--paper); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #C3CCE6; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: .5rem 1.5rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; margin-right: 1.2rem; }
.topbar a:hover { color: var(--white); }
.topbar i { color: var(--gold); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { text-decoration: none; font-weight: 600; color: var(--navy); padding: .4rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--red); }
.nav a.active { border-bottom-color: var(--red); }
.nav .btn { color: var(--white); border-bottom-width: 2px; padding: .65rem 1.1rem; }
.nav .btn:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--navy); padding: .5rem; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: .5rem 1.25rem 1.25rem; box-shadow: 0 10px 20px rgba(10,24,67,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a.active { color: var(--red); border-bottom-color: var(--line); }
  .nav .btn { margin-top: 1rem; }
  .topbar .hide-sm { display: none; }
  .logo img { height: 52px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--navy-deep) url("../images/swing-gate.jpg") center 40% / cover no-repeat;
}
.hero::before { /* navy wash, strong on the left for text */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,24,67,.96) 0%, rgba(10,24,67,.88) 42%, rgba(10,24,67,.35) 100%);
}
.hero::after { /* brand stripe from the print material */
  content: ""; position: absolute; right: -60px; bottom: 0; width: 360px; height: 14px;
  background: linear-gradient(90deg, transparent 0 12%, var(--red) 12% 62%, var(--gold) 62% 100%);
  transform: skewX(-30deg);
}
.hero .wrap { position: relative; z-index: 1; padding: clamp(4rem, 9vw, 7rem) 0; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero-tag {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  color: var(--gold); margin-bottom: 1rem;
}
.hero p.hero-sub { font-size: 1.22rem; color: #D5DCF0; max-width: 50ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-creds { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.6rem; align-items: center; }
.hero-creds img { height: 64px; width: auto; border-radius: var(--r-s); background: var(--white); padding: 4px; }
.hero-creds span { font-size: .95rem; color: #B9C4E4; max-width: 22ch; line-height: 1.35; }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--white); }
.trust .wrap { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; align-items: center; padding: 1.8rem 0; }
.trust-label { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.trust img { max-height: 96px; width: auto; }
.trust img[src*="brands"] { max-height: 60px; }
@media (max-width: 720px) { .trust .wrap { grid-template-columns: 1fr; } }

/* ---------- Solution cards ---------- */
.solutions { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }
.sol {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; transition: border-color .2s, transform .2s;
}
.sol:hover { border-color: var(--navy-soft); transform: translateY(-3px); }
.sol-img { height: 130px; display: grid; place-items: center; background: var(--white); padding: .6rem; }
.sol-img img { max-height: 100%; width: auto; object-fit: contain; }
.sol-img i { font-size: 2.6rem; color: var(--navy); }
.sol-body { padding: .9rem 1.1rem 1.1rem; border-top: 3px solid var(--navy); flex: 1; }
.sol:hover .sol-body { border-top-color: var(--red); }
.sol-body h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.sol-body p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.photo { border-radius: var(--r-m); overflow: hidden; box-shadow: 0 20px 40px rgba(10,24,67,.16); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.photo-pair .photo:first-child { grid-column: 1 / -1; }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; }
.checklist li { display: flex; gap: .75rem; padding: .45rem 0; }
.checklist i { color: var(--red); margin-top: .32rem; }
.section--navy .checklist i { color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.6rem; }
.chip { padding: .4rem .9rem; border-radius: 100px; background: var(--paper); color: var(--navy); font-weight: 600; font-size: .95rem; }
.section--paper .chip { background: var(--white); }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem 1.5rem; }
.why-item i {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold); font-size: 1.4rem; margin-bottom: 1rem;
}
.why-item h3 { font-size: 1.2rem; }
.why-item p { color: #B9C4E4; font-size: 1rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: var(--white); padding: 2.8rem 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; left: -40px; top: 0; bottom: 0; width: 220px;
  background: var(--navy); transform: skewX(-30deg);
}
.cta-band .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-left: 150px; }
.cta-band .wrap::before {
  content: "\f095"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-size: 2.6rem; color: var(--white);
}
.cta-band h2 { color: var(--white); margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: .25rem 0 0; color: #FFE1E2; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 640px) {
  .cta-band::before, .cta-band .wrap::before { display: none; }
  .cta-band .wrap { padding-left: 0; }
}

/* ---------- Page banner ---------- */
.page-banner { position: relative; background: var(--navy); color: #C3CCE6; padding: clamp(2.8rem, 6vw, 4.2rem) 0; overflow: hidden; }
.page-banner::after {
  content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 180px;
  background: linear-gradient(90deg, var(--red) 0 55%, var(--gold) 55% 62%, transparent 62%);
  transform: skewX(-30deg); opacity: .95;
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner h1 { color: var(--white); margin-bottom: .3rem; }
.crumbs a { color: var(--gold); text-decoration: none; }
@media (max-width: 640px) { .page-banner::after { width: 80px; right: -30px; } }

/* ---------- Services page ---------- */
.svc-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-nav a { text-decoration: none; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 100px; font-weight: 600; color: var(--navy); background: var(--white); }
.svc-nav a:hover { border-color: var(--red); color: var(--red); }
.svc { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 2.4rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc:last-child { border-bottom: 0; }
.svc-img { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); display: grid; place-items: center; padding: 1rem; min-height: 160px; }
.svc-img i { font-size: 3.2rem; color: var(--navy); }
.svc h3 { font-size: 1.6rem; }
.svc p { color: var(--muted); max-width: 70ch; }
.svc ul { columns: 2; column-gap: 2rem; padding-left: 1.1rem; margin: 0; }
.svc li { padding: .2rem 0; break-inside: avoid; }
.svc li::marker { color: var(--red); }
@media (max-width: 720px) { .svc { grid-template-columns: 1fr; } .svc ul { columns: 1; } .svc-img { max-width: 260px; } }

/* ---------- About ---------- */
.founder { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: center; }
.founder-card { background: var(--white); border-radius: var(--r-m); padding: 1.5rem; border: 1px solid var(--line); text-align: center; }
.founder-card img { margin: 0 auto 1rem; max-height: 220px; width: auto; }
.founder-card strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); }
.founder-card span { color: var(--red); font-weight: 600; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } }

.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.cred { display: flex; gap: 1.2rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.2rem; }
.cred img { width: 130px; flex: none; }
.cred p { margin: 0; color: var(--muted); font-size: .98rem; }
.cred strong { color: var(--navy); display: block; font-family: var(--font-head); font-size: 1.1rem; }

.brand-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.brand-list span { padding: .6rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-s); font-family: var(--font-head); font-weight: 700; color: var(--navy); background: var(--white); }

.client-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.client { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; background: var(--white); border-left: 4px solid var(--navy); border-radius: 0 var(--r-m) var(--r-m) 0; font-weight: 600; }
.client i { color: var(--red); }

/* ---------- Gallery ---------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter { font: inherit; font-weight: 600; cursor: pointer; padding: .5rem 1.15rem; border-radius: 100px; border: 1px solid var(--line); background: var(--white); color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.gallery { columns: 3 280px; column-gap: 1.2rem; }
.g-item { break-inside: avoid; margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--white); cursor: zoom-in; padding: 0; display: block; width: 100%; text-align: left; font: inherit; }
.g-item[hidden] { display: none; }
.g-item img { width: 100%; }
.g-item span { display: block; padding: .7rem 1rem; font-weight: 600; color: var(--navy); border-top: 1px solid var(--line); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10,24,67,.92); display: none; place-items: center; padding: 1.2rem; }
.lightbox.show { display: grid; }
.lightbox img { max-height: 88vh; width: auto; border-radius: var(--r-s); }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.c-item { display: flex; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.c-item i { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--navy); color: var(--white); border-radius: 50%; }
.c-item strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.c-item a { text-decoration: none; }
.c-item a:hover { color: var(--red); }
.form { background: var(--paper); padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: var(--r-m); border-top: 4px solid var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #C5CDE0; border-radius: var(--r-s); background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(31,58,138,.18); }
.field textarea { min-height: 130px; resize: vertical; }
.map { margin-top: 3rem; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

.popup { position: fixed; inset: 0; z-index: 130; background: rgba(10,24,67,.6); display: none; place-items: center; padding: 1.25rem; }
.popup.show { display: grid; }
.popup-box { background: var(--white); border-radius: var(--r-m); padding: 2.2rem; max-width: 420px; text-align: center; border-top: 5px solid var(--red); }
.popup-box i { font-size: 2.8rem; color: #1E8E4E; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #B9C4E4; font-size: .98rem; position: relative; }
.footer::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--red) 0 60%, var(--gold) 60% 70%, var(--navy) 70%); }
.footer .wrap { padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1.3fr; gap: 2.5rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { background: var(--white); border-radius: var(--r-m); padding: .6rem .8rem; display: inline-block; }
.footer-logo img { height: 64px; width: auto; }
.footer h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: .3rem 0; display: flex; gap: .6rem; }
.footer li i { color: var(--gold); margin-top: .3rem; width: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer-tagline { font-family: var(--font-head); color: var(--white); font-size: 1.1rem; margin: 1rem 0 .4rem; }
.footer-bottom { margin-top: 3rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; font-size: 1.8rem; display: grid; place-items: center; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.wa-float:hover { background: #1EBE5A; }
