/*
Theme Name: PietenOnTour
Theme URI: https://www.pietenontour.nl
Author: Stichting PietenonTour
Author URI: https://www.pietenontour.nl
Description: Official theme for Stichting PietenonTour – Sinterklaas booking site.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: pietenontour
Tags: custom
*/

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

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    background: #f5f5f5 url('assets/img/background-pattern.jpg') repeat fixed;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #8300e9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #6200b0;
}

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

ul, ol {
    list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

strong { font-weight: 700; }

/* =============================================
   LAYOUT WRAPPER
   ============================================= */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */
#masthead {
    background-color: #8300e9;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

.site-branding {
    flex-shrink: 0;
}

.site-branding a {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 60px;
    width: auto;
}

#primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

#primary-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

#primary-nav .nav-menu li a {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

#primary-nav .nav-menu li a:hover {
    background-color: rgba(255,255,255,0.15);
    text-decoration: none;
}

/* =============================================
   PAGE CONTENT AREA
   ============================================= */
#primary {
    padding: 0;
}

.entry-content {
    background: #fff;
    padding: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.entry-header h1,
.entry-header h2 {
    color: #8300e9;
    border-bottom: 2px solid #8300e9;
    padding-bottom: 10px;
    margin-bottom: 24px;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #8300e9;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* =============================================
   PRODUCT GRID
   ============================================= */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8300e9;
    padding: 14px 16px 4px;
    margin: 0;
}

.product-card .price {
    padding: 4px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
}

.product-card .button {
    display: block;
    margin: 12px 16px 16px;
}

/* =============================================
   BUTTONS
   ============================================= */
.button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    background-color: #8300e9;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    line-height: 1.4;
    text-decoration: none !important;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: #6200b0;
    transform: translateY(-1px);
}

.button:focus,
button:focus,
input[type="submit"]:focus {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
}

.button.alt {
    background-color: #f5a623;
}

.button.alt:hover {
    background-color: #d48c10;
}

/* =============================================
   FORMS
   ============================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #8300e9;
    box-shadow: 0 0 0 2px rgba(139,0,0,0.1);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.form-row {
    margin-bottom: 16px;
}

.required {
    color: #8300e9;
    font-weight: 700;
}

/* =============================================
   NOTICES & MESSAGES
   ============================================= */
.notice,
.notice-success,
.notice-info,
.notice-error {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notice-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* =============================================
   COUNTDOWN WIDGET
   ============================================= */
.countdown-container {
    background: #8300e9;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.countdown-container h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 1.6rem;
    font-weight: 700;
}

.countdown-timer .unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-timer .unit span.label {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer .separator {
    padding-top: 4px;
    opacity: 0.6;
}

/* =============================================
   FOOTER
   ============================================= */
#colophon {
    background-color: #8300e9;
    color: #fff;
    padding: 28px 0 16px;
    margin-top: auto;
}

.footer-info {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.footer-info strong {
    font-weight: 700;
}

.footer-info a {
    color: #f5c6c6;
    text-decoration: underline;
}

.footer-info a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.footer-social a {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.75;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 12px;
}

.footer-copyright a {
    color: #f5c6c6;
}

/* =============================================
   MOBILE MENU
   ============================================= */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #masthead {
        position: relative;
    }

    #primary-nav .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #8300e9;
        flex-direction: column;
        padding: 10px 20px;
        gap: 4px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    #primary-nav .nav-menu.is-open {
        display: flex;
    }
}

/* =============================================
   ACCESSIBILITY
   ============================================= */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
