/*
Theme Name: FranZZ Custom Theme
Theme URI: https://www.franzz.nl
Author: MTD CONSULTANCY	
Author URI: https://www.mtd-consultany.nl
Description: Custom WordPress theme voor FranZZ B.V.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: franzz
*/

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --franzz-purple: #4f116e;
  --franzz-purple-light: #5a2890;
  --franzz-cyan: #4be8e4;
  --franzz-cyan-dark: #3dd8d4;
}

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

html, body {
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== ANIMATIONS (exact van React) ===== */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
  100% { border-color: #67e8f9; }
}

@keyframes blinkAndHide {
  0%, 90% { border-color: transparent; }
  45% { border-color: #67e8f9; }
  95%, 100% { border-color: transparent; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.animate-typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #67e8f9;
  animation: typewriter 3s steps(30) forwards, blinkAndHide 0.7s step-end 8;
}

.animation-delay-1000 { animation-delay: 1000ms; }
.animation-delay-2000 { animation-delay: 2000ms; }

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.animate-scroll {
  animation: scroll-left 40s linear infinite;
}

/* Scrollbar hide */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ===== FORM STYLING (exact van React) ===== */
.franzz-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  transition: all 0.2s;
  outline: none;
}

.franzz-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--franzz-cyan);
}

.franzz-input-lg {
  padding: 1rem;
  font-size: 1rem;
}

.franzz-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  background-color: white;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.franzz-select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--franzz-cyan);
}

.franzz-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--franzz-purple);
  margin-bottom: 0.5rem;
}

.franzz-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, var(--franzz-purple), var(--franzz-purple-light));
  color: white;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.franzz-btn-primary:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0.95;
}

.franzz-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.franzz-btn-full {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--franzz-purple);
  color: white;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  min-height: 48px;
}

.franzz-btn-full:hover {
  background-color: rgba(79, 17, 110, 0.9);
}

/* ===== FILE UPLOAD (exact van React) ===== */
.franzz-file-upload {
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.franzz-file-upload:hover {
  border-color: var(--franzz-cyan);
  background-color: rgba(75, 232, 228, 0.05);
}

.franzz-file-upload.has-file {
  border-color: var(--franzz-purple);
  background-color: rgba(79, 17, 110, 0.05);
}

/* ===== SECTION CARDS (exact van React) ===== */
.franzz-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.franzz-card-header {
  background: linear-gradient(to right, var(--franzz-purple), var(--franzz-purple-light));
  padding: 2rem;
  color: white;
}

.franzz-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(79, 17, 110, 0.1);
}

.franzz-section-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--franzz-purple);
}

.franzz-section-header svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--franzz-purple);
}

/* ===== HERO SECTIONS ===== */
.franzz-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.franzz-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(79, 17, 110, 0.95), rgba(79, 17, 110, 0.85), rgba(79, 17, 110, 0.7));
}

.franzz-hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== ALERTS ===== */
.franzz-alert-success {
  padding: 0.75rem 1rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
}

.franzz-alert-success p {
  color: #166534;
  font-size: 0.875rem;
}

.franzz-alert-error {
  padding: 1rem;
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 0.5rem;
}

.franzz-alert-info {
  padding: 1rem;
  background-color: rgba(79, 17, 110, 0.1);
  border: 1px solid rgba(79, 17, 110, 0.3);
  border-radius: 0.75rem;
}

/* ===== DRAFT NOTIFICATION ===== */
.franzz-draft-notice {
  background-color: rgba(79, 17, 110, 0.1);
  border: 1px solid rgba(79, 17, 110, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* ===== PRIVACY MODAL ===== */
.franzz-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.franzz-modal {
  background: white;
  border-radius: 1rem;
  max-width: 48rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.franzz-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #6b7280;
}

.franzz-modal-close:hover {
  color: var(--franzz-purple);
}

/* ===== CALCULATOR SECTION ===== */
.franzz-calculator {
  border-top: 1px solid rgba(79, 17, 110, 0.1);
  background-color: rgba(79, 17, 110, 0.03);
  padding: 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 640px) {
  .franzz-card-header {
    padding: 1.5rem;
  }

  .franzz-hero {
    min-height: 45vh;
  }
}

/* ===== WORDPRESS ADMIN BAR FIX ===== */
body.admin-bar .sticky-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .sticky-header {
    top: 46px;
  }
}
