/* Header / Nav */
.site-header{position:sticky;top:0;z-index:50;box-shadow:0 14px 34px rgba(0,0,0,.22);background:linear-gradient(180deg, #21361c 0%, #182814 100%);border-bottom:1px solid rgba(255,255,255,0.10)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:var(--s-4) 0}

/* === Header layout (desktop) === */
/* Prevent 'bunching' when viewport is tight (desktop) */
  /* Prevent 'bunching' when viewport is tight (desktop) */
  @media (max-width: 1180px){
    .site-header .nav-links{ gap: var(--s-4); }
    .site-header .nav-cta .btn{ padding: 10px 14px; }
  }

  /* Header container should be wider than content to avoid 'clustered center' look */
  .site-header .container{
    max-width: 1680px;
    padding-left: 56px;
    padding-right: 56px;
  }
  @media (max-width: 1200px){
    .site-header .container{
      padding-left: 24px;
      padding-right: 24px;
    }
  }

.site-header .nav{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  column-gap: var(--s-6);
  padding: var(--s-4) 0;
  position: relative;
}

/* Brand stays hard-left */
.site-header .brand{
  flex: 0 0 auto;
}

/* Push links toward the right (not centered) */
.site-header .nav-links{
  flex: 0 1 auto;
  margin-left: auto;
  justify-content: flex-end;
  min-width: 0;
}

/* CTA stays at far-right */
.site-header .nav-cta{
  flex: 0 0 auto;

  justify-self: end;
}

  /* Header CTA sizing: align with nav rhythm */
  .site-header .nav-cta .btn.btn-primary{padding:8px 12px;font-size:var(--fs-400);line-height:1.1;white-space:nowrap}
/* Make the division line readable + keep lockup tidy */
.site-header .brand-sub{
  color:rgba(255,255,255,0.72);
  font-weight: 800;
}

  /* Header nav readability */
  .site-header .nav-links a{font-size:0.98rem;}
/* === Brand text lockup (Security Solutions) === */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand-logo{
  height:44px;
  width:auto;
  display:block;
  max-width:220px;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand-title{
  font-weight:900;
  font-size:1.05rem;
  letter-spacing:0.3px;
  color:rgba(255,255,255,0.95);
}

.brand-sub{
  font-size:0.78rem;
  font-weight:800;
  color:rgba(255,255,255,0.72);
  margin-top:2px;
  border:none;          /* remove divider */
  padding-left:0;       /* remove divider spacing */
}

/* Keep header clean on mobile */
@media (max-width:900px){
  .brand-text{display:none;}
}

.brand-mark{width:36px;height:36px;border-radius:var(--r-1);background:rgba(201,162,39,.16);border:1px solid rgba(36,48,31,.18);display:grid;place-items:center;color:var(--brand-olive-900);font-weight:900}
.nav-links{display:flex;gap:var(--s-6);align-items:center}
.nav-links a{font-size:var(--fs-400);font-weight:800;color:rgba(255,255,255,0.82)}
.nav-links a:hover{color:var(--accent-gold-300)}
.nav-cta{display:flex;gap:var(--s-2);align-items:center}
.burger{display:none;border:1px solid rgba(255,255,255,0.18);background:rgba(255,255,255,0.06);color:rgba(255,255,255,0.88);padding:10px 12px;border-radius:var(--r-1);font-weight:900}
@media (max-width:1180px){.burger{display:inline-flex;border:1px solid var(--border-soft);background:rgba(36,48,31,0.06);color:var(--text-900)}.nav-links{display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;background:rgba(251,244,230,.94);z-index:60;border-bottom:1px solid var(--border-soft);padding:var(--s-6);flex-direction:column;align-items:flex-start;gap:var(--s-4)}.nav-links[data-open="true"]{display:flex}.nav-links[data-open="true"] a{color:var(--text-900)}.nav-links[data-open="true"] a:hover{color:var(--brand-olive-900)}}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:var(--r-2);border:1px solid transparent;font-weight:900;cursor:pointer}
.btn-primary{background:var(--brand-olive-700);color:var(--sand-50);border:1px solid rgba(255,255,255,0.15);border-radius:12px;padding:12px 18px;font-weight:600}
.btn-primary:hover{background:var(--brand-olive-900)}
.btn-ghost{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18);color:rgba(255,255,255,.92)}

/* Utilities: layout helpers (no inline styles) */
.grid-align-center{align-items:center}
.grid-gap-12{gap:12px}
.grid-gap-s4{gap:var(--s-4)}
.grid-gap-s6{gap:var(--s-6)}
.flex-actions{display:flex;gap:12px;flex-wrap:wrap}
.flex-actions.mt-16{margin-top:16px}
.flex-actions.mt-18{margin-top:18px}
.mw-46ch{max-width:46ch}
.mw-70ch{max-width:70ch}
.mw-75ch{max-width:75ch}
.mw-80ch{max-width:80ch}
.mt-10{margin-top:10px}
.mt-12{margin-top:12px}
.mt-14{margin-top:14px}
.mt-s6{margin-top:var(--s-6)}

.container-narrow{max-width:980px}

.hero-right-stack{gap:12px}
.proof-placeholder{
  height:180px;
  background:rgba(36,48,31,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:rgba(58,58,54,0.60);
}

/* Footer helpers */

/* Trust rows spacing helpers */
.trust-row.mt-10{margin-top:10px}
.trust-row.mt-12{margin-top:12px}

/* Hero CTA row */
.hero-actions{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Cards */
.card{border:1px solid #d8ccb1;border-radius:var(--r-3);background:#f3ede0;box-shadow:var(--shadow-1);padding:var(--s-8)}
.card-muted{background:#ebe5d8;border:1px solid #d8ccb1;box-shadow:none}

/* Forms */
.form{display:grid;gap:var(--s-4)}
.field{display:grid;gap:8px}
label{font-size:var(--fs-400);font-weight:900;color:var(--ink-800)}
input,textarea,select{padding:12px 14px;border-radius:var(--r-2);border:1px solid var(--slate-200);font:inherit}
textarea{min-height:140px}

/* Footer */
.list-plain{margin:0;padding-left:18px;color:rgba(71,85,105,0.95);font-weight:700;line-height:1.9}

.hr-footer{background:rgba(255,255,255,0.12);border:0;margin:var(--s-8) 0}
.footer-meta{font-size:var(--fs-400);margin:0;line-height:1.7}
.footer-meta-spaced{margin-top:var(--s-6)}

/* Utilities (layout hygiene; avoid inline styles) */
.m-0{margin:0}
.mw-920{max-width:920px}

/* ===== Image cards (real photos with controlled corporate treatment) ===== */
.img-card{
  position:relative;
  overflow:hidden;
  border-radius:var(--r-3);
  border:1px solid rgba(203,213,225,.70);
  background:#fff;
  box-shadow:0 10px 28px rgba(0, 15, 23, .10);
}
.img-card img{
  width:100%;
  height:auto;
  display:block;
  filter: saturate(1.05) contrast(1.05) brightness(1.02) sepia(0.08);
}

.img-card:after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(36,48,31,0.08), rgba(36,48,31,0.55));
  pointer-events:none;
}
.img-card figcaption{
  position:absolute;
  left:14px;
  right:14px;
  bottom:12px;
  color:rgba(255,255,255,.95);
  font-weight:900;
  letter-spacing:.2px;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
  font-size:var(--fs-400);
}

/* Corporate treatment: slightly cooler overlay, keep humans warm */
.img-corp img{filter:saturate(.82) contrast(1.06)}
.img-corp:after{
  background:
    linear-gradient(180deg, rgba(47,171,226,.10), rgba(16,34,47,.38));
}

/* Replace old placeholder look if any remain */
.proof-placeholder{display:none !important;}

/* =========================================================
   ISS Training Academy — Olive / Sand / Gold theme
   Single source of truth (no inline styling)
   ========================================================= */

/* (Removed duplicate early theme block; authoritative theme block remains below.) */

/* =========================================================
   TRAINING THEME AUTHORITY (olive / sand / gold)
   Single source of truth for: page marble, header surface, hero
   ========================================================= */

/* =========================================================
   HERO CLEAN (Canonical)
   Single source of truth for service-page hero sections.
   ========================================================= */

.hero-clean{
  min-height: 60vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 520px at 18% 10%, rgba(201,162,39,0.18), transparent 60%),
    linear-gradient(180deg, #21361c 0%, #182814 100%);
  color: var(--sand-50);
}

.hero-clean .container{
  max-width: 1320px;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 1200px){
  .hero-clean .container{
    padding-left: 24px;
    padding-right: 24px;
  }
}

.hero-clean h1,
.hero-clean h2,
.hero-clean h3{
  color: rgba(251,244,230,0.98);
}

.hero-clean p{
  color: rgba(242,227,199,0.92);
}

/* =========================================================
   FOOTER (Canonical)
   Single source of truth.
   ========================================================= */
.site-footer{
  padding: 36px 0 18px;
  background: linear-gradient(180deg, #21361c 0%, #182814 100%);
  color: rgba(251,244,230,0.92);
  border-top: 1px solid rgba(255,255,255,0.10);
}

.site-footer a{ color: rgba(251,244,230,0.92); }
.site-footer a:hover{ color: var(--accent-gold-300); }

.site-footer .muted{ color: rgba(242,227,199,0.78); }

.site-footer .footer-row{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: var(--s-8);
  align-items:start;
}

.site-footer .footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s-6);
  padding-top: 8px;
}

.site-footer .footer-social{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.site-footer .btn.btn-ghost{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
}

.site-footer .btn.btn-ghost:hover{
  background: rgba(255,255,255,0.10);
  color: var(--accent-gold-300);
}

.site-footer .footer-h3{
  color: rgba(251,244,230,0.95);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
}

.site-footer .footer-brandline{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 10px;
}

.site-footer .footer-logo{
  height: 44px;
  width: auto;
  display: block;
  max-width: 220px;
}

.site-footer .footer-links{
  font-size: var(--fs-400);
  margin-top: 10px;
}

.site-footer .hr-footer{
  background: rgba(255,255,255,0.12);
  border: 0;
  margin: var(--s-8) 0;
}

@media (max-width: 980px){
  .site-footer .footer-row{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .site-footer .footer-row{ grid-template-columns: 1fr; }
  .site-footer .footer-bottom{ flex-direction:column; align-items:flex-start; }
}

.site-footer .footer-social .btn.btn-ghost{
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.site-footer .footer-social .btn.btn-ghost svg{
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: rgba(251,244,230,0.92);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .footer-social .btn.btn-ghost:hover svg{
  stroke: var(--accent-gold-300);
}

/* =========================================================
   HERO WARMTH OVERRIDE (reduce green strip under nav)
   Appended override so it always wins.
   ========================================================= */

/* create a warm fade directly under the header */
/* warm “parchment” band at the very top of the hero */
/* keep the photo but shift overlay from olive-green to neutral/warm */
/* warm the hero photo slightly (reduces “blue-ish” feel) */
/* ensure content sits above the new top fade */
/* ======================================
   HERO – CINEMATIC SYSTEM (Canonical)
   Single source of truth for homepage hero.
   ====================================== */

.hero-cinematic .hero-inner{
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 6%;
}

.hero-cinematic .hero-title{
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.2;
  color: #f2e6d4;
  margin-bottom: 1.2rem;
}

.hero-cinematic .hero-subtitle{
  font-size: 1.15rem;
  color: #e6d8c2;
  margin-bottom: 2rem;
}

/* Homepage-only header integration */
.page-home .site-header{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
}

.page-home .site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20,16,10,0.78) 0%,
    rgba(20,16,10,0.46) 55%,
    rgba(20,16,10,0.00) 100%
  );
  pointer-events: none;
}

.page-home .site-header .container,
.page-home .site-header .nav{
  position: relative;
  z-index: 2;
}

/* Canonical homepage hero */
.hero-cinematic{
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-image: url('/assets/images/hero/hero-security-training.png');
  background-size: cover;
  background-position: 85% center;
  background-repeat: no-repeat;
  background-color: transparent;
}

.hero-cinematic::before,
.hero-cinematic::after{
  content: none;
  display: none;
  background: none;
  opacity: 0;
}

.hero-cinematic,
.hero-cinematic *{
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-cinematic .hero-title,
.hero-cinematic .hero-subtitle{
  text-shadow: 0 2px 18px rgba(0,0,0,0.30);
}

/* Hero CTA contrast fix */
.hero-cinematic .btn-ghost{
  color: var(--sand-50);
  border-color: rgba(255,255,255,0.45);
}

.hero-cinematic .btn-ghost:hover{
  background: rgba(255,255,255,0.12);
}


/* =========================================================
   HERO CTA VISIBILITY (Homepage only)
   Ensures CTA text remains readable over hero imagery
   Scoped ONLY to .hero-cinematic to avoid global overrides
   ========================================================= */

.hero-cinematic .btn{
  color:#ffffff;
}

.hero-cinematic .btn-ghost{
  color:#ffffff;
  border-color:rgba(255,255,255,0.7);
  background:rgba(255,255,255,0.08);
}

.hero-cinematic .btn-ghost:hover{
  background:rgba(255,255,255,0.18);
}


.section-soft{
  background:
    linear-gradient(180deg, rgba(201,162,39,0.06), rgba(201,162,39,0.03)),
    url("/assets/textures/sandstone-grain.png"),
    var(--bg-soft);
  background-size: auto, 260px, auto;
}

.bg-soft{
  background:
    linear-gradient(180deg, rgba(201,162,39,0.08), rgba(201,162,39,0.04)),
    url("/assets/textures/sandstone-soft.jpg"),
    var(--bg-soft);
  background-size:auto,480px,auto;
  background-repeat:repeat,repeat,repeat;
  background-blend-mode:multiply,normal,normal;
}

/* =========================================================
   BG-SOFT CARD READABILITY
   Warm card tones + readable text/buttons on sandstone sections
   ========================================================= */

.bg-soft .card,
.bg-soft .card-muted{
  color:#2f3827;
}

.bg-soft .card p,
.bg-soft .card li,
.bg-soft .card .mini-note,
.bg-soft .card-muted p,
.bg-soft .card-muted li,
.bg-soft .card-muted .mini-note{
  color:#4e5a46;
}

.bg-soft .card h3,
.bg-soft .card-muted h3{
  color:#26311f;
}

.bg-soft .btn-ghost{
  color:#324126;
  border:1px solid #b9ab8a;
  background:rgba(243,237,224,0.72);
}

.bg-soft .btn-ghost:hover{
  color:#24301c;
  background:rgba(243,237,224,0.92);
  border-color:#9f916f;
}

.bg-soft .btn-primary{
  color:#ffffff;
}


/* =========================================================
   HERO TEXT COLOUR BRIDGE (connect hero with sandstone section)
   ========================================================= */

.hero p{
  color:#f3ede0;
}

.hero .mini-note{
  color:#e9e2d2;
}

.hero-actions .btn-ghost{
  color:#f3ede0;
}


/* =========================================================
   TRUST BAND (Homepage credibility strip)
   ========================================================= */

.trust-band{
  background: linear-gradient(180deg,#182814,#21361c);
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trust-band-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
}

.trust-pill{
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.14);
  padding:8px 16px;
  border-radius:999px;
  font-weight:700;
  font-size:0.9rem;
  color:#f2e6d4;
  letter-spacing:0.02em;
}


/* =========================================================
   SECTION DIVIDERS (homepage rhythm)
   ========================================================= */

.section{
  position: relative;
}

.section + .section{
  border-top: 2px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.bg-soft + .bg-soft{
  border-top: 2px solid rgba(120,100,60,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.section-title{
  margin-bottom: 10px;
}


/* =========================================================
   PAGE HERO IMAGE
   ========================================================= */

.hero-image{
  margin-top: 18px;
}

.hero-image img{
  display: block;
  width: 100%;
  max-width: 760px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}


/* =========================================================
   COURSE PATHWAY IMAGES
   ========================================================= */

.pathway-image{
  margin: 12px 0 16px;
}

.pathway-image img{
  display:block;
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow:0 12px 28px rgba(0,0,0,0.12);
}








/* =========================================================
   PAGE IMAGE SYSTEM
   Canonical treatment for inner-page images
   ========================================================= */
.pathway-image-img{
  display:block;
  width:100%;
  height:auto;
}

.content-image-frame{
  max-width:560px;
  margin:24px auto;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(70,58,38,0.18);
  box-shadow:0 8px 18px rgba(0,0,0,0.10);
  background:rgba(255,255,255,0.18);
}

.content-image-frame .pathway-image-img{
  display:block;
  width:100%;
  height:320px;
  object-fit:cover;
  object-position:center 12%;
}

/* =========================================================
   ABOUT IMAGE MAT (replaces border approach)
   ========================================================= */

.content-image-frame{
  max-width:560px;
  margin:24px auto;
  padding:12px;
  border-radius:14px;
  background:#ffffff;
  box-shadow:0 10px 22px rgba(0,0,0,0.12);
}

.content-image-frame img{
  display:block;
  width:100%;
  height:320px;
  object-fit:cover;
  object-position:center 12%;
  border-radius:10px;
}
