/*
Theme Name: Publiquest
Theme URI: https://publiquest.nl
Author: Publiquest
Description: Custom WordPress thema voor Publiquest
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: publiquest
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --color-primary: #81358b;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text: #1a1a1a;
  --color-bg: #ffffff;

  --font-main: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-footer: 'Inter', sans-serif;

  --max-width: 1440px;
  --content-width: 1100px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

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

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.site-main {
  overflow-x: hidden;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 400;
  color: #2d2d2d;
}

.text-purple { color: var(--color-primary); }
.text-white  { color: var(--color-white); }

/* =============================================
   LAYOUT HELPERS
   ============================================= */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 120px;
  padding-right: 120px;
}

.section {
  padding: var(--spacing-xl) 0;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--color-primary);
  height: 100px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-logo img {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-logo a {
  display: block;
}

.header-contact-btn {
  position: absolute;
  right: 120px;
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.header-contact-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: var(--color-white);
}

@media (max-width: 768px) {
  .header-contact-btn {
    display: none;
  }
}

/* =============================================
   SECTION: WIJ ZIJN
   ============================================= */
.section-wij-zijn {
  padding: 5rem 0;
  background: var(--color-white);
}

.section-wij-zijn h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
  text-align: center;
}

.section-wij-zijn p {
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   SECTION: OPDRACHTGEVERS
   ============================================= */
.section-opdrachtgevers {
  padding: 5rem 0;
  background: var(--color-white);
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.section-opdrachtgevers h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md);
}

.logos-grid img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logos-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* =============================================
   LOGO MARQUEE (scrollend lint)
   ============================================= */
.logo-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: marquee 35s linear infinite;
  /* Breedte wordt bepaald door content, animatie loopt naar -50% */
}

.logo-marquee-wrapper:hover .logo-marquee-track {
  animation-play-state: paused;
}

.logo-marquee-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-marquee-item img {
  height: 90px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.logo-marquee-item img:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(129, 53, 139, 0.5));
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-marquee-partners .logo-marquee-item img {
  height: 55px;
  max-width: 160px;
  transition: filter 0.3s ease;
}

.logo-marquee-partners .logo-marquee-item img:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(129, 53, 139, 0.5));
}

.logo-marquee-partners .logo-marquee-track {
  animation-name: marquee-partners;
}

@keyframes marquee-partners {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

/* =============================================
   SECTION: FULL-WIDTH IMAGE
   ============================================= */
.section-hero-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.section-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =============================================
   SECTION: SAMENWERKING
   ============================================= */
.section-samenwerking {
  padding: 5rem 0;
  background: var(--color-white);
  text-align: center;
}

.section-samenwerking h2 {
  color: var(--color-primary);
  margin-bottom: 3rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  flex-wrap: wrap;
}

.partners-logos img {
  height: 100px;
  width: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.3s ease;
}

.partners-logos img.in-view {
  opacity: 1;
  transform: translateY(0);
}

.partners-logos img:hover {
  filter: brightness(1.1) drop-shadow(0 4px 16px rgba(129, 53, 139, 0.2));
}

.section-samenwerking h2 {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-samenwerking h2.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   SECTION: QUOTE / COMPLEXE VRAAGSTUKKEN
   ============================================= */
.section-quote {
  background: var(--color-white);
  overflow: hidden;
}

.section-quote-inner {
  display: flex;
  flex-direction: column;
}

.section-quote-tekst {
  background: var(--color-primary);
  padding: 5rem 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-aanhalingsteken {
  font-size: 9rem;
  color: var(--color-white);
  line-height: 0.6;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 1.5rem;
}

.section-quote-tekst h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  max-width: 700px;
}

/* Gradient decoratiebalkjes */
.quote-decoratie-boven,
.quote-decoratie-onder {
  height: 7px;
  width: 200px;
  background: linear-gradient(to right, #81358b 0%, #ffb612 30%, #ffb612 70%, #81358b 100%);
  border-radius: 4px;
  margin-bottom: 2rem;
  animation: balk-slide 4s ease-in-out 1;
}

.quote-decoratie-onder {
  margin-top: 2rem;
  margin-bottom: 0;
  animation-delay: 0.5s;
}

.quote-decoratie-onder-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  margin-top: 2rem;
}

.quote-decoratie-onder-wrapper .quote-decoratie-onder {
  margin-top: 0;
}

.quote-sluitteken {
  font-size: 5rem;
  color: var(--color-white);
  line-height: 0.8;
  font-family: Georgia, serif;
}

@keyframes balk-slide {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(calc(100vw - 200px - 16%)); }
  100% { transform: translateX(0); }
}

.section-quote-foto {
  height: 500px;
  overflow: hidden;
}

.section-quote-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =============================================
   SECTION: SAMENWERKINGSPARTNERS
   ============================================= */
.section-samenwerkingspartners {
  padding: 5rem 0;
  background: var(--color-white);
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.section-samenwerkingspartners h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

/* =============================================
   SECTION: ENTHOUSIAST
   ============================================= */
.section-enthousiast {
  background: var(--color-primary);
  padding: 8rem 0;
}

.section-enthousiast h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 900px;
  line-height: 1.15;
  text-align: center;
  margin: 0 auto;
}

/* =============================================
   SECTION: CONTACT
   ============================================= */
.section-contact {
  background: var(--color-white);
  padding: 5rem 0;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  text-align: left;
}

/* Contact info links */
.contact-info h2 {
  color: var(--color-primary);
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 0.5rem;
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
}

.contact-blokken {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-blok {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.contact-blok p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.contact-blok a {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-blok a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Contact form */
.contact-form-wrapper {
  background: #f7f3f8;
  padding: var(--spacing-lg);
  border-radius: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 1rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-purple:hover {
  background: #6a2873;
}

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

.btn-white:hover {
  background: #f0e0f2;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-primary);
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-copy {
  font-family: var(--font-footer);
  font-size: 0.875rem;
  color: var(--color-white);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }

  .section-hero-image {
    height: 300px;
  }

  .section-quote {
    min-height: auto;
  }

  .section-quote-image {
    display: none;
  }

  .partners-logos {
    gap: var(--spacing-md);
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   RESPONSIVE — MOBIEL (max 768px)
   ============================================= */
@media (max-width: 768px) {

  /* Container */
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Header */
  .site-header {
    height: 70px;
  }

  .site-logo img {
    height: 40px;
  }

  /* Secties algemeen */
  .section-wij-zijn,
  .section-opdrachtgevers,
  .section-samenwerking,
  .section-samenwerkingspartners,
  .section-enthousiast,
  .section-contact {
    padding: 3rem 0;
  }

  /* Wij zijn */
  .section-wij-zijn h2 {
    font-size: 1.75rem;
  }

  .section-wij-zijn p {
    font-size: 1rem;
    text-align: left;
    column-count: 1;
  }

  /* Hero afbeelding */
  .section-hero-image {
    height: 220px;
  }

  /* Samenwerking van */
  .partners-logos {
    gap: 2rem;
  }

  .partners-logos img {
    height: 60px;
  }

  /* Quote sectie */
  .section-quote-tekst {
    padding: 3rem 1.5rem;
  }

  .section-quote-tekst h2 {
    font-size: 1.75rem;
  }

  .section-quote-foto {
    height: 260px;
  }

  .quote-decoratie-boven,
  .quote-decoratie-onder {
    width: 120px;
  }

  /* Enthousiast */
  .section-enthousiast h2 {
    font-size: 1.75rem;
  }

  /* Contact grid → stapelen */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  /* Footer */
  .site-footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Marquee wat kleiner */
  .logo-marquee-item img {
    height: 55px;
    max-width: 180px;
  }

  .logo-marquee-track {
    gap: 2.5rem;
  }
}

/* =============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================= */
@media (max-width: 1024px) and (min-width: 769px) {

  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .partners-logos img {
    height: 80px;
  }

  .section-quote-tekst {
    padding: 4rem 3rem;
  }
}
