/* Corporate Security Institute — style.css
   Brand: navy #0C1832, gold #D4AF69, white */

:root {
  --navy: #0C1832;
  --navy-light: #16264d;
  --gold: #D4AF69;
  --gold-dark: #b8934f;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --text: #1d2433;
  --muted: #5a6376;
  --border: #e3e6ec;
  --radius: 10px;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
}

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

a { color: var(--navy); }

.container { width: min(100% - 2.5rem, var(--max-width)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
}

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--white); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; line-height: 1.2; }
.brand-name span { display: block; font-weight: 400; font-size: .72rem; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  padding: .35rem .6rem;
  cursor: pointer;
}

.site-nav ul { display: flex; gap: 1.4rem; list-style: none; }
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 1rem; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.15rem; color: #cdd5e4; max-width: 640px; margin: 0 auto 2rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: rgba(212,175,105,.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.hero .btn + .btn { margin-left: .8rem; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--off-white); }
.section-title { text-align: center; margin-bottom: .6rem; font-size: 1.9rem; color: var(--navy); }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 2.2rem; }
.gold-rule { width: 64px; height: 4px; background: var(--gold); margin: 0 auto 1.6rem; border-radius: 2px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 10px 28px rgba(12,24,50,.12); transform: translateY(-3px); }
.card img.cover { width: 100%; aspect-ratio: 5/8; object-fit: cover; }
.card-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-body h3 { font-size: 1.08rem; color: var(--navy); line-height: 1.35; }
.card-body .subtitle { font-size: .88rem; color: var(--muted); }
.card-body p.desc { font-size: .93rem; color: var(--text); flex: 1; }
.badge {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 999px;
}
.badge.live { background: #e6f4ea; color: #137333; }
.badge.soon { background: #fdf3e0; color: #8a6d1f; }
.btn-block { text-align: center; margin-top: .4rem; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.video-card h3 { color: var(--navy); margin-bottom: .5rem; font-size: 1.15rem; }
.video-card p { color: var(--muted); font-size: .95rem; margin-top: .7rem; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background: #000; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-thumb img { width: 100%; transition: transform .3s ease, opacity .3s ease; }
.video-thumb:hover img, .video-thumb:focus-visible img { transform: scale(1.04); opacity: .82; }
.video-thumb .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; background: rgba(12,24,50,.88); transition: background .3s ease, transform .3s ease; }
.video-thumb .play-btn::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-38%, -50%); border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--gold); }
.video-thumb:hover .play-btn, .video-thumb:focus-visible .play-btn { background: var(--navy); transform: translate(-50%, -50%) scale(1.08); }
.video-thumb { display: block; border-radius: var(--radius); overflow: hidden; position: relative; }
.video-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-thumb::after {
  content: "▶";
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(12,24,50,.85); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; padding-left: 4px;
}
.cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 3rem 0; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { color: #cdd5e4; margin-bottom: 1.4rem; }

/* ---------- About / prose ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { color: var(--navy); margin: 2rem 0 .6rem; font-size: 1.5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.3rem; }
.prose li { margin-bottom: .45rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; max-width: 760px; margin: 0 auto; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--navy); }
.form-group input, .form-group textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--border);
  border-radius: 8px; font: inherit;
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.social-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.social-list a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; color: var(--navy); }
.social-list a:hover { color: var(--gold-dark); }
.social-list svg { width: 22px; height: 22px; fill: var(--navy); flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd5e4; padding: 2.8rem 0 1.6rem; margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: var(--gold); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #cdd5e4; text-decoration: none; font-size: .94rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.2rem; font-size: .85rem; text-align: center; color: #9aa4bb; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .8rem 0; }
  .site-nav li { border-top: 1px solid rgba(255,255,255,.12); }
  .site-nav a { display: block; padding: .7rem 0; border-bottom: none; }
  .hero { padding: 3rem 0 2.6rem; }
  .hero .btn + .btn { margin-left: 0; margin-top: .7rem; }
  .section { padding: 2.5rem 0; }
}
