/* Custom styles for De Cleyne Taefel */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1C1C1C;
}

::-webkit-scrollbar-thumb {
    background: #AB8F54;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #AB8F54;
    opacity: 0.8;
}

/* Typography improvements */
.font-display {
    letter-spacing: -0.02em;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Image lazy loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

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

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

/* Parallax effect for hero */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Form styling */
.form-input {
    background: rgba(56, 28, 17, 0.8);
    border: 1px solid #AB8F54;
    color: #F8F5F0;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #AB8F54;
    box-shadow: 0 0 0 3px rgba(171, 143, 84, 0.1);
    background: rgba(56, 28, 17, 0.9);
}

.form-input::placeholder {
    color: rgba(248, 245, 240, 0.6);
}

/* Date input: zichtbaar kalendericoon op donkere achtergrond */
input[type="date"].form-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.85;
    cursor: pointer;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(171, 143, 84, 0.3);
    border-radius: 50%;
    border-top-color: #AB8F54;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error messages */
.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-weight: 500;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #AB8F54;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-cream {
        color: white !important;
    }
    
    .bg-dark-gray {
        background-color: black !important;
    }
    
    .border-dark-gold {
        border-color: #FFD700 !important;
    }
}

/* Google Doc menu content: eigen style-parsing (regel start met * = bold, _ = onderstreept, / = cursief) */
#hero-menu-card-content .menu-bold {
    font-weight: bold;
}
#hero-menu-card-content .menu-underline {
    text-decoration: underline;
}
#hero-menu-card-content .menu-italic {
    font-style: italic;
}
/* Lege regel: alleen padding bepaalt de hoogte (geen line-box door tekst) */
#hero-menu-card-content p.menu-spacer {
    margin: 0;
    padding-block: 0.15em;
    padding-inline: 0;
    line-height: 0;
    min-height: 0;
    overflow: hidden;
}

