/* ============================================================
   IT Security Group (ITSG) — Main Stylesheet
   ============================================================ */

:root {
  --navy-900: #0a1628;   /* primary deep navy */
  --navy-700: #12294a;
  --navy-600: #1a3a5c;   /* secondary medium navy */
  --navy-500: #244b73;
  --gold: #c9a84c;       /* accent gold */
  --gold-bright: #e0c063;
  --text-light: #e8edf5; /* text on dark */
  --text-muted: #a9b6c9;
  --text-dark: #1a1a2e;  /* text on light */
  --bg-light: #f5f7fa;
  --bg-card: #ffffff;
  --border: #d8dee8;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.10);
  --shadow-md: 0 4px 14px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 12px 32px rgba(10, 22, 40, 0.18);
  --maxw: 1200px;
  --header-h: 68px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--navy-900); color: var(--text-light); }
.section-navy { background: var(--navy-600); color: var(--text-light); }
.text-center { text-align: center; }
.eyebrow {
  color: var(--gold); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-lead { color: var(--text-muted); max-width: 640px; margin: 0 auto 8px; }
.section-dark .section-lead { color: var(--text-muted); }
body:not(.section-dark) .section-lead { color: #55637a; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text-light); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy-900); }
.btn-navy { background: var(--navy-600); color: #fff; }
.btn-navy:hover { background: var(--navy-500); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { background: var(--navy-900); box-shadow: var(--shadow-md); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-light); }
.brand svg, .brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .5px; }
.brand-text span { font-size: 0.66rem; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-light); padding: 8px 12px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--text-light); text-align: center;
  padding: 110px 0 96px;
  background:
    linear-gradient(135deg, rgba(10,22,40,.92), rgba(26,58,92,.86)),
    radial-gradient(circle at 20% 20%, rgba(201,168,76,.14), transparent 45%),
    var(--navy-900);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted); max-width: 680px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero {
  color: var(--text-light); text-align: center; padding: 72px 0 56px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--navy-700); color: var(--text-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 0; text-align: center; }
.stat .num { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--gold); }
.stat .label { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--navy-900); }
.card p { color: #55637a; font-size: 0.95rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius); margin-bottom: 16px;
  display: grid; place-items: center; background: rgba(26,58,92,.10); color: var(--navy-600);
}
.card-icon svg { width: 26px; height: 26px; }

/* dark cards */
.section-dark .card, .section-navy .card {
  background: rgba(255,255,255,.04); border-color: rgba(201,168,76,.22); color: var(--text-light);
}
.section-dark .card h3, .section-navy .card h3 { color: #fff; }
.section-dark .card p, .section-navy .card p { color: var(--text-muted); }
.section-dark .card-icon, .section-navy .card-icon { background: rgba(201,168,76,.14); color: var(--gold); }

/* ---------- Event / list cards ---------- */
.event-card { display: flex; flex-direction: column; }
.event-date {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--navy-600); color: #fff; border-radius: var(--radius);
  width: 60px; height: 60px; margin-bottom: 14px;
}
.event-date .d { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.event-date .m { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 3px 10px; border-radius: 999px;
  background: rgba(201,168,76,.15); color: var(--gold-bright); margin-bottom: 10px;
}
.section-dark .tag { background: rgba(201,168,76,.18); }
body:not(.section-dark) .card .tag { background: rgba(26,58,92,.10); color: var(--navy-600); }

/* ---------- Testimonials ---------- */
.quote { font-style: italic; color: #3c4a63; }
.section-dark .quote { color: var(--text-light); }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; background: var(--gold); color: var(--navy-900); flex: none;
}
.quote-author .meta strong { display: block; font-size: 0.92rem; }
.quote-author .meta span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Sponsors ---------- */
.sponsors { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.sponsor-badge {
  padding: 14px 26px; border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 700; letter-spacing: .5px; color: #6a7794; background: #fff;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--text-light); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); padding: 5px 0; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center; background: rgba(255,255,255,.06); }
.social a:hover { background: var(--gold); }
.social a:hover svg { fill: var(--navy-900); }
.social svg { width: 18px; height: 18px; fill: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--text-muted); font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--text-dark);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.2);
}
.form-field .error-msg { color: #c0392b; font-size: 0.8rem; margin-top: 5px; display: none; }
.form-field.invalid input, .form-field.invalid textarea, .form-field.invalid select { border-color: #c0392b; }
.form-field.invalid .error-msg { display: block; }
.form-note { font-size: 0.85rem; color: #55637a; }
.form-success {
  display: none; background: rgba(39,174,96,.12); border: 1px solid #27ae60;
  color: #1e8449; padding: 16px; border-radius: var(--radius); margin-bottom: 18px;
}
.form-success.show { display: block; }
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-md);
}

/* ---------- Member directory ---------- */
.filters {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.filters form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.result-count { color: #55637a; margin-bottom: 18px; font-size: 0.95rem; }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.member-card .avatar { width: 50px; height: 50px; font-size: 1rem; }
.member-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.member-card .m-title { color: var(--navy-600); font-size: 0.85rem; font-weight: 600; }
.member-card .m-org { color: #55637a; font-size: 0.85rem; }
.member-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 0.72rem; background: rgba(26,58,92,.08); color: var(--navy-600); padding: 2px 9px; border-radius: 999px; }
.chip.gold { background: rgba(201,168,76,.18); color: #8a6d18; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 34px; }
.pagination a, .pagination span {
  min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; color: var(--navy-600); font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.data th { background: var(--navy-600); color: #fff; font-weight: 600; }
table.data tbody tr:hover, table.data tbody tr:hover { background: #f0f3f8; }
table.data .check { color: #27ae60; font-weight: 700; }
table.data .dash { color: #b9c2d0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0 auto; max-width: 760px; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--gold); opacity: .5; }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before { content: ''; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--navy-900); }
.section-dark .timeline-item::before { border-color: var(--navy-900); }
.timeline-item .year { color: var(--gold); font-weight: 800; }

/* ---------- Accordion ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.accordion-header {
  width: 100%; text-align: left; padding: 16px 20px; background: #fff; border: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; color: var(--navy-900);
}
.accordion-header .ico { color: var(--gold); font-size: 1.3rem; transition: transform .2s; }
.accordion-item.open .accordion-header .ico { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-body .inner { padding: 0 20px 18px; color: #55637a; }

/* ---------- Pricing ---------- */
.price-card { text-align: center; position: relative; }
.price-card.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.price-card .badge-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy-900); font-size: 0.72rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 1px; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--navy-900); margin: 10px 0 2px; }
.price span { font-size: 0.9rem; font-weight: 500; color: #55637a; }
.price-features { text-align: left; margin: 18px 0; }
.price-features li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: #3c4a63; }
.price-features li::before { content: '✓'; color: var(--gold); font-weight: 800; margin-right: 8px; }

/* ---------- Misc ---------- */
.map-placeholder {
  height: 200px; border-radius: var(--radius); border: 1px dashed var(--gold);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: grid; place-items: center; color: var(--text-muted); position: relative; overflow: hidden;
}
.map-placeholder::after { content: '📍'; font-size: 2rem; }
.office-card h3 { color: var(--navy-900); margin-bottom: 6px; }
.office-card p { color: #55637a; font-size: 0.9rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; align-items: end; }
.filter-bar .form-field { margin-bottom: 0; min-width: 170px; flex: 1; }
.lead-block { max-width: 760px; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.badge-level { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.level-Beginner { background: rgba(39,174,96,.15); color: #1e8449; }
.level-Intermediate { background: rgba(201,168,76,.2); color: #8a6d18; }
.level-Advanced { background: rgba(192,57,43,.15); color: #c0392b; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--header-h); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 12px 20px 24px;
    transform: translateY(-120%); transition: transform .28s ease;
    border-bottom: 1px solid rgba(201,168,76,.2); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: 1fr; }
  .filters form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero-actions, .filters, .pagination, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .member-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .section { padding: 20px 0; }
}
