/* =========================================================
   Castor Cyber Risk — Stylesheet
   Brand colors:
     #061b33  primary navy
     #c8a45a  primary gold
     #2e68b2  secondary blue
     #536372  secondary slate
   ========================================================= */

:root {
  --navy: #061b33;
  --navy-deep: #040f1f;
  --gold: #c8a45a;
  --gold-soft: #d9bd84;
  --blue: #2e68b2;
  --slate: #536372;
  --slate-light: #8b95a0;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --border: #e3e6ea;
  --text: #1a2433;
  --text-muted: #536372;
  --shadow-sm: 0 1px 2px rgba(6, 27, 51, 0.06);
  --shadow-md: 0 4px 16px rgba(6, 27, 51, 0.08);
  --shadow-lg: 0 12px 40px rgba(6, 27, 51, 0.12);
  --radius: 6px;
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
  background-color: var(--navy-deep);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
/* Variant for subpages: compass rose image */
.hero--alt {
  background-image: url('../images/hero-bg-2.jpg');
}
/* Dark overlay on the left for text legibility */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(4, 15, 31, 0.92) 0%,
    rgba(4, 15, 31, 0.75) 35%,
    rgba(4, 15, 31, 0.35) 65%,
    rgba(4, 15, 31, 0.15) 100%
  );
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  max-width: 760px;
}
.hero h1 .accent { color: var(--gold); }
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 1.25rem;
}
.lead-emphasis {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: #fff;
  margin: 1.5rem 0 2rem;
  line-height: 1.4;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero .eyebrow {
  padding: 0.4rem 0.9rem;
  background: rgba(200, 164, 90, 0.12);
  border: 1px solid rgba(200, 164, 90, 0.3);
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Section base ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: var(--navy);
  color: #fff;
}
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.8); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Pillars (Home) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.pillar {
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.pillar-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(200, 164, 90, 0.12);
  color: var(--gold);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Service cards (Diensten) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleY(1); }
.service-card h3 { color: var(--navy); margin-bottom: 0.75rem; }
.service-card p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-grid h2 + p { font-size: 1.1rem; }
.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.value-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: start;
}
.value-list li:last-child { border-bottom: 0; }
.value-list .label {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.value-list .number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.quote-block {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
}
.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  background-image: url('../images/hero-bg-2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 27, 51, 0.92) 0%,
    rgba(6, 27, 51, 0.78) 60%,
    rgba(6, 27, 51, 0.55) 100%
  );
  pointer-events: none;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.cta-band h2 {
  color: #fff;
  margin: 0;
  max-width: 600px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.contact-item .value {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 500;
}
.contact-item a.value:hover { color: var(--blue); }

/* ---------- Blog ---------- */
.blog-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.blog-card .date {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.blog-card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.blog-card p { color: var(--text-muted); flex: 1; margin-bottom: 1rem; }
.blog-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}
.blog-card .read-more::after { content: ' →'; }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* Article page */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.article .date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.article h1 { margin-bottom: 1.5rem; }
.article p, .article ul, .article ol { font-size: 1.05rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 3rem;
  color: var(--slate);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo img { height: 40px; margin-bottom: 1rem; }
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 0.5rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: 0; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reveal-on-scroll utility (disabled — always visible) ---------- */
.reveal { opacity: 1; transform: none; }
