/* assets/css/styles.css
   Full stylesheet for Public Safety Cloud Standards
   Includes: global theme, layout, nav + Services dropdown, cards, sections, embeds, footer
*/

/* =========================
   Theme / Resets
========================= */
:root{
  --bg: #0b1220;
  --panel: rgba(30,41,59,.45);
  --panel2: rgba(15,23,42,.55);
  --text: #e5e7eb;
  --muted: rgba(229,231,235,.72);
  --muted2: rgba(229,231,235,.62);
  --line: rgba(148,163,184,.22);
  --accent: rgba(59,130,246,.95);
  --shadow: 0 12px 30px rgba(0,0,0,.34);
  --radius: 14px;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(59,130,246,.15), transparent 55%),
              radial-gradient(1000px 500px at 80% 10%, rgba(99,102,241,.10), transparent 55%),
              linear-gradient(180deg, #0b1220, #070b14 75%);
  line-height: 1.5;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
p{ margin: 0; }
section{ margin: 34px 0; }

.container{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.small-note{
  color: var(--muted);
  font-size: .95rem;
}

.description{
  color: var(--muted2);
  font-size: 1.05rem;
}

h1, h2, h3{
  margin: 0;
  letter-spacing: .2px;
}

h1{
  font-size: clamp(2.0rem, 3.6vw, 3.0rem);
  line-height: 1.12;
}

h2{
  font-size: 1.55rem;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid rgba(59,130,246,.75);
}

h3{
  font-size: 1.1rem;
  margin-bottom: 8px;
}

hr{
  border: none;
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* =========================
   Navigation (incl. dropdown)
========================= */
nav{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(7,11,20,.70);
  border-bottom: 1px solid var(--line);
}

.nav-inner{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo{
  font-weight: 800;
  letter-spacing: .35px;
  color: rgba(229,231,235,.96);
  white-space: nowrap;
}

.nav-inner ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-inner li{ position: relative; }

.nav-inner a{
  text-decoration: none;
  color: rgba(229,231,235,.86);
  font-weight: 650;
  font-size: .96rem;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
  border: 1px solid transparent;
}

.nav-inner a:hover{
  color: rgba(255,255,255,.95);
  background: rgba(59,130,246,.10);
  border-color: rgba(59,130,246,.22);
}

.nav-inner a.active{
  color: rgba(255,255,255,.98);
  background: rgba(59,130,246,.14);
  border-color: rgba(59,130,246,.28);
}

/* Dropdown label */
.nav-dropdown > a::after{
  content: " ▾";
  font-weight: 800;
  opacity: .9;
}

/* Invisible hover bridge to prevent dropdown from disappearing */
.nav-dropdown::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

/* Dropdown menu */
.dropdown-menu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10,16,30,.96);
  box-shadow: var(--shadow);
  z-index: 999;
}

.dropdown-menu a{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.dropdown-menu a:hover{
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.18);
}

/* Show dropdown on hover and keyboard focus */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu{
  display: block;
}

/* Mobile-ish handling: if the nav wraps, keep it usable */
@media (max-width: 920px){
  .nav-inner{
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo{
    width: 100%;
    text-align: center;
  }
  .nav-inner ul{
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .dropdown-menu{
    left: 50%;
    transform: translateX(-50%);
  }
}

/* =========================
   Hero / Page Titles
========================= */
.hero{
  padding: 56px 0 34px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}

.hero p{
  color: var(--muted2);
  font-size: 1.08rem;
  max-width: 900px;
  margin: 10px auto 0;
}

.page-title{
  padding: 42px 0 22px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}

.page-title p{
  margin-top: 10px;
  color: var(--muted2);
  font-size: 1.08rem;
  max-width: 920px;
}

/* =========================
   Cards / Layout blocks
========================= */
.card{
  background: linear-gradient(145deg, var(--panel), var(--panel2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card p{
  color: var(--muted2);
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px){
  .card-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .card-grid{ grid-template-columns: 1fr; }
}

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
}

/* Bullets */
.bullets{
  margin: 10px 0 0 18px;
  color: var(--muted2);
}
.bullets li{ margin: 7px 0; }

/* =========================
   Buttons / CTAs
========================= */
.cta{
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
  color: rgba(255,255,255,.95);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(59,130,246,.38);
  background: rgba(59,130,246,.14);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.cta:hover{
  transform: translateY(-2px);
  background: rgba(59,130,246,.18);
  border-color: rgba(59,130,246,.55);
}

/* =========================
   PDF Viewer Wrap
========================= */
.pdf-wrap{
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,.25);
  box-shadow: var(--shadow);
  min-height: 70vh;
}

.pdf-wrap embed{
  width: 100%;
  height: 70vh;
  display: block;
  border: none;
}

/* =========================
   Flag / Verse Section
========================= */
.flag-section{
  margin-top: 52px;
  padding: 44px 0;
  background: radial-gradient(900px 340px at 50% 0%, rgba(59,130,246,.14), transparent 60%),
              linear-gradient(180deg, rgba(15,23,42,.35), rgba(7,11,20,.50));
  border-top: 1px solid rgba(148,163,184,.12);
  border-bottom: 1px solid rgba(148,163,184,.12);
}

.flag-content{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.flag-content h2{
  border-left-color: rgba(59,130,246,.55);
}

.flag-content p{
  margin-top: 10px;
  max-width: 900px;
  color: rgba(229,231,235,.72);
  font-size: 1.06rem;
}

/* =========================
   Footer
========================= */
footer{
  padding: 22px 0;
  text-align: center;
  color: rgba(229,231,235,.58);
  font-size: .95rem;
}

/* =========================
   Utility
========================= */
.tight p + p{ margin-top: 12px; }

/* Optional nicer selection */
::selection{
  background: rgba(59,130,246,.28);
}