/* ============================================================
   LEO JOY — Cybersecurity Consulting
   Responsive stylesheet (light + dark theme)
   ============================================================ */

:root {
  --green: #1eaa4f;
  --green-dark: #178f42;
  --green-light: #e7f6ec;
  --navy: #0a1628;
  --navy-2: #0d1f33;
  --ink: #111827;
  --body: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --card: #ffffff;
  --topbar: #0a1628;
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --shadow-sm: 0 4px 14px rgba(16, 24, 40, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

[data-theme="dark"] {
  --ink: #f3f4f6;
  --body: #c2c9d6;
  --muted: #94a3b8;
  --line: #1f2d40;
  --bg: #0a1424;
  --bg-soft: #0e1b30;
  --card: #0f1d33;
  --green-light: #11321f;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.green { color: var(--green); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: .2s ease;
  font-family: var(--font);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--topbar);
  color: #cbd5e1;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-left i { color: var(--green); }
.topbar-social { display: flex; gap: 16px; }
.topbar-social a:hover { color: var(--green); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  width: 42px; height: 42px;
  display: grid; place-items: center;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.brand-tag { font-size: .72rem; color: var(--muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--body);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--green);
}
.nav-right { display: flex; align-items: center; gap: 18px; }

.theme-toggle {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 1rem;
}
.theme-toggle:hover { color: var(--green); border-color: var(--green); }

.hamburger {
  display: none;
  background: none; border: none;
  font-size: 1.5rem; color: var(--ink); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.eyebrow {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 18px; }
.hero p { font-size: 1.05rem; max-width: 520px; margin-bottom: 26px; }
.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* feature pills under hero */
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.hero-feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.hero-feature i { color: var(--green); font-size: 1.2rem; margin-bottom: 8px; }
.hero-feature h4 { font-size: .92rem; margin-bottom: 2px; }
.hero-feature p { font-size: .78rem; color: var(--muted); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-eyebrow {
  color: var(--green); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: block;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-head p { font-size: 1rem; }

/* ---------- Generic cards grid ---------- */
.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); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--green-light);
  color: var(--green);
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: .92rem; }

.card-list { margin-top: 14px; }
.card-list li {
  font-size: .9rem; padding: 5px 0;
  display: flex; align-items: center; gap: 9px;
}
.card-list li i { color: var(--green); font-size: .85rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); font-weight: 700; font-size: .9rem; margin-top: 16px;
}
.card-link:hover { gap: 11px; }

/* small feature card (centered icon) */
.feature-card { text-align: center; }
.feature-card .card-icon { margin: 0 auto 16px; }

/* ---------- Catalog browser (search + drill-down: training domains / service offerings) ---------- */
.btn-sm { padding: 8px 16px; font-size: .85rem; }

.catalog-search {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.catalog-search-box {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
}
.catalog-search-box i { color: var(--muted); }
.catalog-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--ink);
}
.catalog-search-box input:focus { outline: none; }
.catalog-search-box:focus-within { border-color: var(--green); }

.catalog-card { display: flex; flex-direction: column; }
.catalog-desc { font-size: .92rem; flex: 1; }
.catalog-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.catalog-count { font-size: .85rem; font-weight: 700; color: var(--green); }
.catalog-no-results { text-align: center; color: var(--muted); padding: 30px 0; }

.catalog-detail-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 2px solid var(--green);
}
.catalog-detail-title { display: flex; align-items: center; gap: 14px; }
.catalog-detail-icon { width: 44px; height: 44px; font-size: 1.15rem; margin: 0; }
.catalog-detail-title-text { font-size: 1.2rem; margin-bottom: 2px; }
.catalog-detail-count { font-size: .85rem; color: var(--muted); }

.catalog-item-card { display: flex; flex-direction: column; }
.catalog-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.catalog-item-top .card-icon { margin-bottom: 0; }
.catalog-item-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  font-size: .78rem; font-weight: 800;
  display: grid; place-items: center;
}
.catalog-item-card h3 { font-size: 1rem; flex: 1; margin-bottom: 18px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.stat h3 { font-size: 2.2rem; color: var(--green); }
.stat p { font-size: .9rem; color: var(--muted); }

/* ---------- Two-column about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.split-stats h3 { color: var(--green); font-size: 1.7rem; }
.split-stats p { font-size: .82rem; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.timeline-item { text-align: center; position: relative; }
.timeline-dot {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
  position: relative; z-index: 2;
}
.timeline-item:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: 60%;
  width: 80%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  z-index: 1;
}
.timeline-item h4 { color: var(--green); font-size: 1.2rem; margin-bottom: 8px; }
.timeline-item p { font-size: .82rem; }

/* ---------- Dark methodology band ---------- */
.band-dark {
  background: var(--navy);
  color: #cbd5e1;
  padding: 72px 0;
  position: relative;
}
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.method {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.method-item { text-align: center; position: relative; }
.method-dot {
  width: 70px; height: 70px; border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green);
  display: grid; place-items: center; font-size: 1.4rem;
  margin: 0 auto 16px;
}
.method-item:not(:last-child)::after {
  content: "→"; position: absolute; top: 24px; right: -8px;
  color: var(--green); font-size: 1.1rem;
}
.method-item h4 { font-size: .98rem; margin-bottom: 8px; }
.method-item p { font-size: .8rem; color: #94a3b8; }

/* ---------- Contact layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}
.form-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--green); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: .92rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field textarea { resize: vertical; min-height: 130px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; margin-bottom: 20px; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.contact-card .ico {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px; background: var(--green-light); color: var(--green);
  display: grid; place-items: center; font-size: 1.1rem;
}
.contact-card h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-card p { font-size: .88rem; margin: 1px 0; }
.contact-card a { color: var(--green); font-weight: 600; }

.social-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.social-icons { display: flex; gap: 12px; margin-top: 14px; }
.social-icons a {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
}
.social-icons a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.cta-banner p { color: #94a3b8; max-width: 520px; }
.cta-left { display: flex; align-items: center; gap: 22px; }
.cta-shield {
  width: 70px; height: 70px; flex-shrink: 0;
  border: 2px solid var(--green); border-radius: 16px;
  display: grid; place-items: center; color: var(--green); font-size: 1.8rem;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Logos / partners ---------- */
.logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 40px; margin-bottom: 18px;
}
.logos .logo {
  font-weight: 800; color: var(--muted); font-size: 1.3rem;
  opacity: .8; filter: grayscale(1); transition: .2s;
}
.logos .logo:hover { opacity: 1; filter: none; color: var(--ink); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--green); }

/* ---------- Check list (why it matters) ---------- */
.check-list li { display: flex; gap: 10px; padding: 7px 0; font-size: .95rem; align-items: flex-start; }
.check-list li i { color: var(--green); margin-top: 4px; }

.info-box {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 28px;
}
.info-box h3 { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-brand .brand-name { color: #fff; }
.footer p { font-size: .9rem; margin: 14px 0; }
.footer-links li { padding: 6px 0; }
.footer-links a { font-size: .9rem; }
.footer-links a:hover { color: var(--green); }
.footer-contact li { display: flex; gap: 10px; padding: 7px 0; font-size: .9rem; align-items: flex-start; }
.footer-contact i { color: var(--green); margin-top: 4px; }
.footer .social-icons a { border-color: rgba(255,255,255,.15); color: #cbd5e1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  text-align: center;
  font-size: .85rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .stats, .timeline, .method, .split-stats { grid-template-columns: repeat(2, 1fr); }
  .timeline-item::after, .method-item::after { display: none; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 118px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform .3s ease;
    max-height: calc(100vh - 118px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .hamburger { display: block; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6,
  .hero-features, .stats, .timeline, .method, .split-stats, .field-row {
    grid-template-columns: 1fr;
  }
  .topbar-left { gap: 12px; font-size: .78rem; }
  .topbar-left .hide-sm { display: none; }
  .section { padding: 52px 0; }
  .cta-left { flex-direction: column; text-align: center; align-items: center; }
}
