/*
Theme Name: ProcesAIsering
Theme URI: https://procesaisering.nl
Author: Peter Oosterwal
Author URI: https://procesaisering.nl
Description: Modern AI-process consultancy theme matching the ProcesAIsering brand.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: procesaisering
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bg:          #0f172a;
  --color-bg-alt:      #1e293b;
  --color-surface:     #1e293b;
  --color-surface-2:   #334155;
  --color-accent:      #6366f1;
  --color-accent-dark: #4f46e5;
  --color-accent-glow: rgba(99,102,241,.2);
  --color-green:       #10b981;
  --color-green-light: rgba(16,185,129,.15);
  --color-white:       #ffffff;
  --color-text:        #e2e8f0;
  --color-muted:       #94a3b8;
  --color-border:      rgba(255,255,255,.08);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-card: 0 4px 24px rgba(0,0,0,.4);
  --shadow-glow: 0 0 40px rgba(99,102,241,.3);

  --transition: .2s ease;
  --max-width: 1200px;
  --section-pad: 6rem 1.5rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-white); }

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { color: var(--color-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-pad); }
.section--dark { background: var(--color-bg); }
.section--alt  { background: var(--color-bg-alt); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-accent);
  background: var(--color-accent-glow);
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.section-title { margin-bottom: 1rem; }

.section-intro {
  font-size: 1.15rem;
  max-width: 640px;
  color: var(--color-muted);
  margin-bottom: 3rem;
}

.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--color-white); }
.btn-ghost::after { content: ' →'; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -.03em;
}
.site-logo span { color: var(--color-accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  color: var(--color-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-menu a:hover, .nav-menu a.current-menu-item { color: var(--color-white); }

.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .4rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 7rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-accent-glow);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .8rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 2rem;
}
.hero-badge::before { content: '✦'; font-size: .6rem; }

.hero-title {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.hero-title .accent-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: .3rem;
}

.hero-stat-value.positive { color: var(--color-green); }
.hero-stat-value.negative { color: #f472b6; }

.hero-stat-label {
  font-size: .85rem;
  color: var(--color-muted);
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.problem-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.problem-card:hover { border-color: rgba(99,102,241,.4); }

.problem-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.problem-card h4 { color: var(--color-white); margin-bottom: .5rem; }

/* ============================================================
   SOLUTION / USP
   ============================================================ */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.solution-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(99,102,241,.08) 100%);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.solution-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.solution-number {
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .8rem;
}

.solution-card h3 { color: var(--color-white); margin-bottom: .6rem; }

/* ============================================================
   SERVICES (Custom Post Type)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #8b5cf6);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover { border-color: rgba(99,102,241,.4); }
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.service-card h3 { color: var(--color-white); margin-bottom: .8rem; }

.service-card .btn-ghost { margin-top: auto; padding-top: 1.2rem; }

/* ============================================================
   USE CASES
   ============================================================ */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.usecase-chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition);
  cursor: default;
}
.usecase-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-white);
  background: rgba(99,102,241,.06);
}

.usecase-chip .chip-icon {
  font-size: 1.4rem;
  margin-bottom: .5rem;
  display: block;
}

/* ============================================================
   METHODOLOGY / STEPS
   ============================================================ */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
  max-width: 720px;
}

.step-item {
  display: flex;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
}
.step-item:first-child { padding-top: 0; }
.step-item:last-child  { border-bottom: none; }

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-accent-glow);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--color-accent);
}

.step-content h4 { color: var(--color-white); margin-bottom: .4rem; }
.step-content p  { margin: 0; font-size: .95rem; }

/* ============================================================
   METRICS BAR
   ============================================================ */
.metrics-bar {
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.1));
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  margin: 4rem 0;
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -.04em;
  line-height: 1;
  display: block;
  margin-bottom: .5rem;
}

.metric-label {
  font-size: .9rem;
  color: var(--color-muted);
}

.metric-item:nth-child(1) .metric-value { color: var(--color-accent); }
.metric-item:nth-child(2) .metric-value { color: var(--color-green); }
.metric-item:nth-child(3) .metric-value { color: #f472b6; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.15));
  border: 1px solid rgba(99,102,241,.25);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p  { max-width: 500px; margin: 0 auto 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.footer-brand p { font-size: .9rem; margin-top: .8rem; }

.footer-col h5 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { font-size: .9rem; color: var(--color-muted); }
.footer-col ul li a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--color-muted);
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero {
  padding: 5rem 1.5rem 3rem;
  border-bottom: 1px solid var(--color-border);
}

.entry-content {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.entry-content h2,
.entry-content h3 { color: var(--color-white); margin: 2rem 0 1rem; }

.entry-content p   { color: var(--color-muted); margin-bottom: 1.2rem; }

.entry-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--color-muted);
  margin-bottom: 1.2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 4rem 1rem; }

  .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--color-bg); padding: 1.5rem; border-bottom: 1px solid var(--color-border); gap: 1.2rem; }
  .nav-menu.is-open { display: flex; }
  .hamburger { display: flex; }

  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .metrics-bar { padding: 2rem 1rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
