/*
Theme Name: NixoWebBuilding
Theme URI: https://www.nixowebbuilding.nl/
Author: Nick - NixoWebBuilding
Author URI: https://www.nixowebbuilding.nl/
Description: Modern WordPress theme voor webdesign/development services. Portfolio showcase met ACF, mobile-first responsive design, en lokale SEO optimalisatie voor de Kempen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nixowebbuilding
Tags: portfolio, business, responsive, mobile-first, modern, clean, custom-post-type

NixoWebBuilding WordPress Theme, Copyright 2026 NixoWebBuilding
NixoWebBuilding is distributed under the terms of the GNU GPL
*/

/* ============================================
   SELF-HOSTED FONTS - Montserrat
   ============================================ */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/montserrat-v25-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/montserrat-v25-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/montserrat-v25-latin-700.woff2') format('woff2');
}

/* ============================================
   DESIGN TOKENS - LIGHT THEME (Modern Agency)
   ============================================ */

:root {
  /* COLORS - BACKGROUNDS */
  --color-bg-white: #FFFFFF;
  /* Primary BG (Hero, Portfolio, Cards) */
  --color-bg-light: #f1f6fb;
  /* Secondary BG (Services, Process, Rhythm) */
  --color-bg-accent: #4bb3ff;
  /* Featured CTA Background */

  /* COLORS - BRAND & ACTIONS */
  --color-primary: #2934c4;
  /* Dark Blue (Primary Buttons, Links, Accents) */
  --color-primary-hover: #1f2596;
  /* Darker Blue (Hover) */
  --color-secondary: #00D9FF;
  /* Cyan (Highlights, Secondary Buttons) */
  --color-secondary-hover: #00b3d6;

  /* COLORS - TEXT */
  --color-text-main: #1a1a1a;
  /* Black (Headings, Body) */
  --color-text-muted: #6B7280;
  /* Gray (Timestamps, Captions) */
  --color-text-white: #FFFFFF;
  /* Text on Accent/Dark BGs */

  /* COLORS - STATUS */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* TYPOGRAPHY */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', 'Open Sans', system-ui, sans-serif;

  /* FONT SIZES (Responsive Scale - Fixed according to PDR) */
  --font-size-h1: clamp(2rem, 6vw, 3.5rem);
  /* 32px - 56px */
  --font-size-h2: clamp(1.75rem, 5vw, 2.625rem);
  /* 28px - 42px */
  --font-size-h3: clamp(1.5rem, 4vw, 2rem);
  /* 24px - 32px */
  --font-size-h4: clamp(1.25rem, 3vw, 1.5rem);
  /* 20px - 24px */
  --font-size-h5: clamp(1.125rem, 2.5vw, 1.25rem);
  /* 18px - 20px */
  --font-size-h6: clamp(1rem, 2vw, 1.125rem);
  /* 16px - 18px */

  --font-size-body: 1rem;
  /* 16px (Base) */
  --font-size-sm: 0.875rem;
  /* 14px (Small) */
  --font-size-tiny: 0.75rem;
  /* 12px (Tiny - Minimum) */
  --font-size-lead: 1.125rem;
  /* 18px (Lead) */
  /* SPACING - Airy & Generous */
  --spacing-xs: 0.5rem;
  /* 8px */
  --spacing-sm: 1rem;
  /* 16px */
  --spacing-md: 2rem;
  /* 32px */
  --spacing-lg: 4rem;
  /* 64px */
  --spacing-xl: 6rem;
  /* 96px (Section spacing) */
  --spacing-3xl: 8rem;
  /* 128px */

  /* BORDER & RADIUS */
  --radius-sm: 4px;
  --radius-md: 8px;
  /* Buttons */
  --radius-lg: 12px;
  /* Cards */
  --radius-full: 9999px;

  --border-subtle: 1px solid rgba(43, 52, 196, 0.08);
  /* Minimalist Blue Tint */

  /* SHADOWS */
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 4px 12px rgba(41, 52, 196, 0.15);
  --shadow-lg: 0 8px 24px rgba(26, 26, 26, 0.12);
  --shadow-cta: 0 4px 12px rgba(41, 52, 196, 0.3);

  /* TRANSITIONS */
  --transition-base: 0.3s ease-in-out;

  /* LAYOUT */
  --container-max-width: 1200px;
  --container-padding: 2rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  font-size: var(--font-size-body);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

h1 {
  font-size: var(--font-size-h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 500;
}

h4 {
  font-size: var(--font-size-h4);
  font-weight: 500;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

/* Container styling is handled by Tailwind config in header.php */

.section {
  padding: var(--spacing-lg) 0;
  /* Mobile default */
}

@media (min-width: 1024px) {
  .section {
    padding: var(--spacing-xl) 0;
    /* Desktop airy spacing */
  }
}

/* Background Utilities */
.bg-white {
  background-color: var(--color-bg-white);
  color: var(--color-text-main);
}

.bg-light {
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
}

.bg-accent {
  background-color: var(--color-bg-accent);
  color: var(--color-text-white);
}

/* Text Utilities */
.text-white {
  color: var(--color-text-white) !important;
}

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

.text-muted {
  color: var(--color-text-muted);
}

.lead {
  font-size: var(--font-size-lead);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto var(--spacing-xl) auto;
  line-height: 1.6;
}

.lead.text-white {
  color: rgba(255, 255, 255, 0.9);
}

/* Grid System helpers (legacy - layout wordt afgehandeld door Tailwind grid-cols-* utilities)
   BELANGRIJK: .grid krijgt GEEN grid-template-columns meer hier – dit conflicteerde met
   Tailwind's responsieve grid-cols-1 / md:grid-cols-3 / lg:grid-cols-4 classes. */
.grid-layout-2 {
  display: grid;
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .grid-layout-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-layout-3 {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-layout-4 {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-layout-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-layout-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  line-height: 1;
  text-align: center;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Primary CTA */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-text-white);
  box-shadow: 0 6px 16px rgba(41, 52, 196, 0.4);
}

/* Secondary CTA */
.btn-secondary {
  background-color: transparent;
  border-color: var(--color-secondary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-white);
  border-color: var(--color-secondary);
}

/* Button variants */
.btn-large {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background-color: #f8fafc;
  color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-link {
  padding: 0;
  background: none;
  color: var(--color-primary);
  font-weight: 600;
  border: none;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-link:hover {
  background: none;
  transform: none;
  color: var(--color-secondary);
  text-decoration: underline;
  text-decoration-color: var(--color-secondary);
  text-underline-offset: 4px;
}

/* Sticky CTA Mobile */
.btn-cta-mobile {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--color-primary);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  font-weight: bold;
  box-shadow: var(--shadow-cta);
  text-decoration: none;
  display: none;
}

@media (max-width: 768px) {
  .btn-cta-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  transition: all var(--transition-base);
  border: var(--border-subtle);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background-color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-sm) 0;
}

.primary-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  margin: 0;
  padding: 0;
}

.primary-menu a {
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 1rem;
}

.primary-menu a:hover {
  color: var(--color-primary);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--color-text-main);
  /* #1a1a1a */
  color: var(--color-text-white);
  padding: 60px 0;
}

.site-footer a {
  color: var(--color-text-white);
}

.site-footer a:hover {
  color: var(--color-secondary);
}

.footer-widgets {
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--spacing-md);
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.img-rounded {
  border-radius: var(--radius-lg);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* Print */
@media print {

  .no-print,
  .btn,
  .site-header,
  .site-footer {
    display: none;
  }

  body {
    font-size: 12pt;
    background: white;
    color: black;
  }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

/* CONTAINER ALIGNMENTS */
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.footer-bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  margin: 0;
}

.footer-menu a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer-menu a:hover {
  color: var(--color-primary);
}

/* Gutenberg alignments */
.alignleft {
  float: left;
  margin-right: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.alignright {
  float: right;
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 100%;
}

.alignfull {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* WordPress core styles */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  margin-top: var(--spacing-xs);
  text-align: center;
}

.sticky {
  /* Sticky post styling */
  border-left: 4px solid var(--color-accent-1);
  padding-left: var(--spacing-md);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent-1);
  color: var(--color-text-light);
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
  transition: box-shadow var(--transition-base);
}

.faq-toggle {
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 6px 12px;
  font-size: 0.95rem;
}

.faq-icon {
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.faq-icon-active {
  transform: rotate(45deg);
  background-color: var(--color-bg-light);
  color: var(--color-primary);
}

.faq-answer {
  transition: max-height 0.3s ease-in-out;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

  .btn-cta-mobile,
  .site-header,
  .site-footer,
  .no-print {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ============================================
   PAGINATION (blog, archive, search) – hoogste prioriteit
   ============================================ */

.pagination-nav {
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.pagination-nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.pagination-nav-inner ul,
.pagination-nav-inner .page-numbers {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pagination-nav-inner ul li,
.pagination-nav-inner .page-numbers li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
}

.pagination-nav a.page-numbers,
.pagination-nav span.page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-white);
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.pagination-nav a.page-numbers:hover {
  color: #fff;
  background: var(--color-bg-accent);
  border-color: var(--color-bg-accent);
  box-shadow: 0 8px 20px rgba(75, 179, 255, 0.3);
}

.pagination-nav span.page-numbers.current {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  cursor: default;
}

.pagination-nav a.prev.page-numbers,
.pagination-nav a.next.page-numbers {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}