/*
Theme Name: HSSecure Demo Theme
Theme URI: https://www.hssecure.nl
Author: HSSecure
Author URI: https://www.hssecure.nl
Description: Professioneel cybersecurity thema voor de HSSecure demo omgeving. Donker navy design passend bij de HSSecure huisstijl.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hssecure-theme
*/

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --dark:    #0D1B2A;
    --navy:    #1a2535;
    --blue:    #1B3A5C;
    --accent:  #2E6DA4;
    --light:   #EAF4FB;
    --white:   #FFFFFF;
    --text:    #2C3E50;
    --muted:   #7F8C8D;
    --border:  #DDE3EC;
    --bg:      #F4F6F9;
    --crit:    #C0392B;
    --high:    #E67E22;
    --font:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Grid overlay achtergrond ──────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(46,109,164,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,109,164,.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.site-wrapper { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.site-content  { flex: 1; }
.container     { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Header / Nav ───────────────────────────────────────────────── */
.site-header {
    background: rgba(13,27,42,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(46,109,164,.3);
    position: sticky; top: 0; z-index: 1000;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px; gap: 24px;
}
.site-logo {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.site-logo img  { height: 36px; width: auto; }
.site-logo span { color: #fff; font-size: 1.2em; font-weight: 700; letter-spacing: .5px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    color: #8fa8c8; padding: 8px 14px; border-radius: 6px;
    font-size: .88em; font-weight: 500; transition: all .15s;
    text-decoration: none;
}
.site-nav a:hover, .site-nav a.active {
    color: #fff; background: rgba(46,109,164,.2);
}
.nav-cta {
    background: var(--accent) !important; color: #fff !important;
    padding: 8px 18px !important; border-radius: 6px;
    font-weight: 600 !important;
}
.nav-cta:hover { background: #1B5A8A !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ── Hero sectie ─────────────────────────────────────────────────── */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(160deg, #0D1B2A 0%, #1B3A5C 60%, #0D1B2A 100%);
    position: relative; overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
    background: var(--bg);
    clip-path: ellipse(60% 100% at 50% 100%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(46,109,164,.2); border: 1px solid rgba(46,109,164,.4);
    color: #8fa8c8; padding: 6px 14px; border-radius: 20px; font-size: .8em;
    margin-bottom: 20px;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 { color: #fff; font-size: 2.6em; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p  { color: #8fa8c8; font-size: 1.05em; margin-bottom: 32px; line-height: 1.7; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 8px; font-weight: 600; font-size: .95em; cursor: pointer; border: none; transition: all .2s; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1B5A8A; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,109,164,.4); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero stats */
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 32px; }
.hero-stat  { background: rgba(255,255,255,.05); border: 1px solid rgba(46,109,164,.2); border-radius: 10px; padding: 16px; text-align: center; }
.hero-stat-num { color: var(--accent); font-size: 1.8em; font-weight: 700; }
.hero-stat-lbl { color: #8fa8c8; font-size: .78em; margin-top: 4px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(46,109,164,.25);
    border-radius: 16px; padding: 24px;
    backdrop-filter: blur(8px);
}
.hero-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hero-card-title  { color: #fff; font-weight: 600; font-size: .95em; }
.severity-badges  { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sev-badge { padding: 4px 10px; border-radius: 6px; font-size: .75em; font-weight: 700; }
.sev-crit  { background: #C0392B22; color: #E74C3C; border: 1px solid #C0392B44; }
.sev-high  { background: #E67E2222; color: #E67E22; border: 1px solid #E67E2244; }
.sev-med   { background: #F1C40F22; color: #B7950B; border: 1px solid #F1C40F44; }
.sev-low   { background: #27AE6022; color: #27AE60; border: 1px solid #27AE6044; }
.progress-bar { background: rgba(255,255,255,.08); border-radius: 4px; height: 6px; margin: 6px 0; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 1s ease; }

/* ── Hoofdinhoud ─────────────────────────────────────────────────── */
.site-main { background: var(--bg); }

/* ── Pakketten sectie ────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-dark { background: var(--navy); }
.section-darker { background: var(--dark); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge { display: inline-block; background: rgba(46,109,164,.15); color: var(--accent); border: 1px solid rgba(46,109,164,.3); padding: 5px 14px; border-radius: 20px; font-size: .78em; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { color: #fff; font-size: 2em; font-weight: 700; margin-bottom: 12px; }
.section-title.dark { color: var(--text); }
.section-sub   { color: #8fa8c8; font-size: 1em; max-width: 560px; margin: 0 auto; }
.section-sub.dark { color: var(--muted); }

/* Pakket kaarten */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.plan-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(46,109,164,.2);
    border-radius: 16px; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(46,109,164,.2); }
.plan-card.featured { border-color: var(--accent); background: rgba(46,109,164,.08); }
.plan-header { padding: 24px; position: relative; }
.plan-badge-pop { position: absolute; top: 16px; right: 16px; background: var(--high); color: #fff; font-size: .7em; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.plan-name  { color: #fff; font-size: 1.1em; font-weight: 700; margin-bottom: 8px; }
.plan-price { color: var(--accent); font-size: 1.5em; font-weight: 700; }
.plan-price small { font-size: .55em; color: #8fa8c8; font-weight: 400; }
.plan-body  { padding: 0 24px 24px; flex: 1; }
.plan-desc  { color: #8fa8c8; font-size: .88em; line-height: 1.6; margin-bottom: 16px; }
.plan-features { list-style: none; }
.plan-features li { color: #8fa8c8; font-size: .85em; padding: 5px 0; display: flex; gap: 8px; align-items: flex-start; }
.plan-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.plan-footer { padding: 16px 24px 24px; }
.plan-cta { display: block; text-align: center; background: var(--accent); color: #fff; padding: 11px; border-radius: 8px; font-weight: 600; font-size: .9em; transition: background .15s; text-decoration: none; }
.plan-cta:hover { background: #1B5A8A; text-decoration: none; color: #fff; }
.plan-card.featured .plan-cta { background: #fff; color: var(--accent); }
.plan-card.featured .plan-cta:hover { background: var(--light); }

/* ── Features ────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.feature-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(46,109,164,.15);
    border-radius: 12px; padding: 28px;
    transition: border-color .2s, background .2s;
}
.feature-card:hover { border-color: var(--accent); background: rgba(46,109,164,.06); }
.feature-icon { font-size: 2em; margin-bottom: 14px; }
.feature-title { color: #fff; font-weight: 700; margin-bottom: 8px; font-size: 1em; }
.feature-desc  { color: #8fa8c8; font-size: .88em; line-height: 1.6; }

/* ── Content pagina's ─────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--blue) 100%);
    padding: 48px 0 40px;
}
.page-hero h1 { color: #fff; font-size: 2em; margin-bottom: 8px; }
.page-hero p  { color: #8fa8c8; font-size: .95em; }
.breadcrumb   { color: #8fa8c8; font-size: .82em; margin-bottom: 12px; }
.breadcrumb a { color: var(--accent); }

.content-area { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.content-area h1, .content-area h2, .content-area h3 { color: var(--text); margin: 1.5em 0 .5em; }
.content-area p  { color: var(--text); margin-bottom: 1em; line-height: 1.7; }
.content-area ul { margin: 1em 0 1em 1.5em; color: var(--text); }
.content-area li { margin-bottom: .4em; line-height: 1.7; }

/* Portaal pagina (lichte achtergrond) */
.is-portal .site-main { background: var(--bg); }
.is-portal body { background: var(--bg); }

/* ── CTA banner ──────────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
    padding: 56px 0; text-align: center;
}
.cta-banner h2 { color: #fff; font-size: 1.8em; margin-bottom: 12px; }
.cta-banner p  { color: #cce0f5; margin-bottom: 28px; font-size: 1em; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
    background: #080F18;
    border-top: 1px solid rgba(46,109,164,.2);
    padding: 48px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p  { color: #8fa8c8; font-size: .88em; line-height: 1.7; margin-top: 12px; }
.footer-col h4   { color: #fff; font-size: .9em; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px; }
.footer-col ul   { list-style: none; }
.footer-col li   { margin-bottom: 8px; }
.footer-col a    { color: #8fa8c8; font-size: .85em; transition: color .15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-contact  { display: flex; align-items: center; gap: 8px; color: #8fa8c8; font-size: .85em; margin-bottom: 8px; }
.footer-bottom   { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: #8fa8c8; font-size: .8em; }
.footer-logo img { height: 28px; }

/* ── WordPress basis ─────────────────────────────────────────────── */
.wp-block-image { margin: 1.5em 0; }
.aligncenter { margin: 0 auto; }
.alignleft  { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82em; color: var(--muted); text-align: center; margin-top: 6px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero .container   { grid-template-columns: 1fr; }
    .hero-visual       { display: none; }
    .footer-grid       { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .hero h1           { font-size: 1.8em; }
    .section-title     { font-size: 1.5em; }
    .plans-grid        { grid-template-columns: 1fr; }
    .features-grid     { grid-template-columns: 1fr; }
    .footer-grid       { grid-template-columns: 1fr; }
    .footer-bottom     { flex-direction: column; text-align: center; }
    .site-nav          { display: none; }
    .site-nav.open     { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 16px; border-bottom: 1px solid rgba(46,109,164,.2); }
    .nav-toggle        { display: block; }
    .hero-stats        { grid-template-columns: 1fr 1fr; }
}
