/* Klaren Subsidieadvies - Custom Theme CSS */

/* ========================================
   1. RESET & TWENTY TWENTY-FIVE OVERRIDES
   ======================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
  color: #333 !important;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide default Twenty Twenty-Five elements - CRITICAL */
header.wp-block-template-part,
footer.wp-block-template-part,
.wp-block-template-part[data-area="header"],
.wp-block-template-part[data-area="footer"] { display: none !important; }

/* Also hide via structural selectors */
.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part { display: none !important; }

.wp-site-header,
header.wp-site-header,
.site-title, .site-description { display: none !important; }

/* Hide WP admin bar on frontend for clean view */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* Override content area */
.entry-content,
.wp-block-post-content,
.post-content,
.page-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Remove global padding & constrain from TT25 */
.has-global-padding,
.is-root-container,
.wp-site-blocks,
.wp-block-group__inner-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Force wp-site-blocks full width no padding */
.wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Block spacing reset */
.wp-block-group,
.wp-block-columns,
.wp-block-column,
.wp-block-cover,
.wp-block-spacer {
  margin: 0 !important;
}

/* Background */
body, .wp-site-blocks, .is-root-container { background: #ffffff !important; }

/* FULL-WIDTH override for all custom sections - CRITICAL */
.site-header,
.hero-section,
.services-section,
.about-section,
.process-section,
.cta-banner,
.site-footer,
.entry-content > .site-header,
.entry-content > .hero-section,
.entry-content > .services-section,
.entry-content > .about-section,
.entry-content > .process-section,
.entry-content > .cta-banner,
.entry-content > .site-footer,
.wp-block-post-content > .site-header,
.wp-block-post-content > .hero-section,
.wp-block-post-content > .services-section,
.wp-block-post-content > .about-section,
.wp-block-post-content > .process-section,
.wp-block-post-content > .cta-banner,
.wp-block-post-content > .site-footer {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Content width - only for non-section elements */
.entry-content > *:not(.site-header):not(.hero-section):not(.services-section):not(.about-section):not(.process-section):not(.cta-banner):not(.site-footer),
.wp-block-post-content > *:not(.site-header):not(.hero-section):not(.services-section):not(.about-section):not(.process-section):not(.cta-banner):not(.site-footer) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Full-width elements */
.entry-content > .alignfull,
.wp-block-post-content > .alignfull {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Typography overrides */
h1, h2, h3, h4, h5, h6 {
  color: #0f2b46 !important;
  font-family: 'Inter', sans-serif !important;
}

p { font-family: 'Inter', sans-serif !important; }

/* ========================================
   2. CSS VARIABLES
   ======================================== */

:root {
  --primary: #0f2b46;
  --primary-dark: #0a1e32;
  --secondary: #3498db;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border: #e0e0e0;
  --max-width: 1200px;
}

/* ========================================
   3. UTILITY
   ======================================== */

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

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

::selection { background: var(--secondary); color: var(--white); }

/* ========================================
   4. SITE HEADER
   ======================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  z-index: 9999;
  height: 80px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
}

.logo-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.logo-badge {
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

/* Navigation */
.main-navigation .nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s;
}

.main-navigation a:hover { color: var(--accent); }

/* Dropdown */
.menu-item-has-children { position: relative; }

.menu-item-has-children > a::after {
  content: ' \25BE';
  font-size: 0.7em;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 12px 0;
  min-width: 220px;
  list-style: none;
  z-index: 10000;
}

.menu-item-has-children:hover .sub-menu { display: block; }

.sub-menu li { margin: 0; }

.sub-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.sub-menu a:hover {
  background: var(--light-gray);
  color: var(--accent);
}

/* Header CTA */
.header-cta .btn { margin: 0; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

/* ========================================
   5. BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,126,34,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ========================================
   6. HERO SECTION
   ======================================== */

.hero-section {
  background: linear-gradient(135deg, #0f2b46 0%, #1a4d6f 50%, #0f2b46 100%);
  padding: 160px 24px 100px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(52,152,219,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section .container {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; }

.hero-image {
  flex: 0 0 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-icon { font-size: 1.1rem; }

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin-bottom: 1.25rem !important;
  color: var(--white) !important;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-cta .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.hero-cta .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ========================================
   7. SERVICES SECTION
   ======================================== */

.services-section {
  padding: 100px 24px;
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 0.75rem !important;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: var(--accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.service-icon svg { stroke: var(--white); }

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.service-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.service-link:hover { gap: 10px; }

.service-link svg { stroke: var(--accent); }

/* ========================================
   8. ABOUT SECTION
   ======================================== */

.about-section {
  padding: 100px 24px;
  background: var(--white);
}

.about-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-image {
  flex: 0 0 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.about-content { flex: 1; }

.about-title {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 1rem !important;
}

.about-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-top: 0.75rem;
  border-radius: 2px;
}

.about-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.credentials-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.credentials-list svg { stroke: var(--accent); flex-shrink: 0; }

.about-signature {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-top: 1.5rem;
}

.signature-text {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.signature-name strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
}

.signature-name span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ========================================
   9. PROCESS SECTION
   ======================================== */

.process-section {
  padding: 100px 24px;
  background: var(--light-gray);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.process-step {
  text-align: center;
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.step-arrow {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  z-index: 1;
}

.step-arrow svg { stroke: var(--accent); }

.process-cta { text-align: center; }

/* ========================================
   10. CTA BANNER
   ======================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4d6f 100%);
  padding: 80px 24px;
  color: var(--white);
}

.cta-banner .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.cta-content { flex: 1; }

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  margin-bottom: 1rem !important;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 550px;
}

.cta-image {
  flex: 0 0 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.cta-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* ========================================
   11. SITE FOOTER
   ======================================== */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 1rem;
}

.footer-logo .logo-main {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.footer-logo .logo-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

.footer-contact { margin-top: 1rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.6);
}

.contact-item svg { stroke: var(--accent); flex-shrink: 0; }

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-contact-info .address {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.contact-links a {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  transition: color 0.3s;
}

.contact-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s;
}

.footer-bottom a:hover { color: var(--accent); }

.kvk { margin: 0; }

/* ========================================
   12. RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .process-grid { grid-template-columns: repeat(2, 1fr); }

  .step-arrow { display: none; }

  .hero-section .container { flex-direction: column; text-align: center; }
  .hero-content { order: 1; }
  .hero-image { flex: none; order: 0; width: 100%; max-width: 500px; }
  .hero-image img { height: 200px; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }

  .about-grid { flex-direction: column; }
  .about-image { flex: none; width: 100%; max-width: 500px; }
  .about-image img { height: 300px; }

  .cta-banner .container { flex-direction: column; text-align: center; }
  .cta-image { flex: none; width: 100%; max-width: 500px; }
  .cta-subtitle { margin-left: auto; margin-right: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-navigation { display: none; }
  .mobile-menu-toggle { display: flex; }

  .hero-section { padding: 120px 24px 60px; }
  .hero-title { font-size: 2rem !important; }
  .hero-stats { flex-direction: column; gap: 1.25rem; }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }

  .section-title { font-size: 1.5rem !important; }

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

/* ========================================
   13. ACCESSIBILITY
   ======================================== */

a:focus, button:focus, input:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ========================================
   14. ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeInUp 0.8s ease-out; }
.hero-image { animation: fadeInUp 0.8s ease-out 0.2s both; }

/* ========================================
   15. PRINT
   ======================================== */

@media print {
  .site-header, .site-footer, .hero-cta, .cta-banner { display: none !important; }
  .hero-section { background: white !important; color: black !important; padding: 20px !important; }
  .hero-title, .hero-subtitle { color: black !important; }
}