/*
Theme Name: Koopjesjacht Den Haag
Theme URI: https://pimlicoservices.cloud
Author: Koopjesjacht Team
Author URI: https://pimlicoservices.cloud
Description: A vibrant, responsive theme for the Koopjesjacht scavenger hunt platform featuring The Hague's iconic shopping streets and landmarks.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koopjesjacht
Tags: scavenger-hunt, gaming, responsive, the-hague, shopping

Koopjesjacht Den Haag is a modern theme designed for the interactive scavenger hunt experience
in The Hague's beautiful shopping districts.
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

:root {
    /* The Hague Brand Colors */
    --primary-orange: #FF6B35;      /* Vibrant orange for CTAs */
    --secondary-blue: #004E89;      /* Den Haag blue */
    --accent-gold: #FFD23F;         /* Trophy/achievement gold */
    --success-green: #06A77D;       /* Success states */

    /* Neutrals */
    --dark-navy: #1A2332;
    --medium-gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-navy);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--dark-navy);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

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

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

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.section-hero {
    padding: var(--space-xl) 0 var(--space-2xl);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-navy);
}

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

.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-menu a {
    color: var(--dark-navy);
    font-weight: 500;
    transition: color var(--transition-base);
}

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

.nav-cta {
    display: flex;
    gap: var(--space-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #E55A2B;
    border-color: #E55A2B;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.btn-secondary:hover {
    background: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-2xl) 0;
}

.hero-text h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: var(--space-md);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--medium-gray);
    margin-bottom: var(--space-md);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .main-navigation {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .nav-menu {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .section {
        padding: var(--space-lg) 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }

    .hero-text h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* Guided City Tours homepage section (2026-07-31) */
.tours-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tour-feature-card {
    background: #fff;
    border: 1px solid var(--light-gray, #e0e0e8);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}

.tour-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tour-feature-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.tours-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Nature-walk content blocks (wandelen) */
.tour-nature .nature-habitat, .tour-nature .nature-geology { line-height: 1.6; margin-bottom: 8px; }
.tour-nature .nature-lookfor { font-weight: 700; margin-top: 6px; }
.tour-nature .nature-species { margin: 6px 0 0 18px; line-height: 1.6; }
.tour-waymark .waymark-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; vertical-align: -2px; border: 1px solid rgba(0,0,0,0.25); }
.tour-waymark .waymark-white-red { background: linear-gradient(to bottom, #fff 0 50%, #d32f2f 50% 100%); }
.tour-waymark .waymark-yellow-red { background: linear-gradient(to bottom, #f9c22e 0 50%, #d32f2f 50% 100%); }

/* ---------------------------------------------------------------------------
   Self-guided / land-access notice (wandelen)

   Deliberately attention-grabbing, deliberately not hostile:
   - pulse is ~1Hz, well under the WCAG 2.3.1 three-flashes-per-second threshold
   - prefers-reduced-motion stops the pulse and keeps a solid, equally readable panel
   - the warning does NOT depend on hue: it carries a ⚠ glyph, the word IMPORTANT,
     a heavy left rule and diagonal hazard striping, and uses white on dark maroon
     so the contrast is luminance-based and survives any colour vision deficiency
     or greyscale printing
--------------------------------------------------------------------------- */
.kj-selfguided-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #6b0f16;                 /* dark maroon: ~9:1 against white text */
    color: #ffffff;
    border-left: 10px solid #ffd166;     /* luminance contrast, not hue contrast */
    border-radius: 10px;
    padding: 16px 18px;
    margin: 20px 0;
    line-height: 1.55;
    position: relative;
    overflow: hidden;
    animation: kj-sg-pulse 1s steps(1, end) infinite;
}

/* Diagonal hazard striping — a pattern, so it reads without colour perception */
.kj-selfguided-notice::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.10) 0 10px,
        rgba(255, 255, 255, 0) 10px 20px
    );
}

@keyframes kj-sg-pulse {
    0%, 49%   { background: #6b0f16; box-shadow: 0 0 0 rgba(107, 15, 22, 0); }
    50%, 100% { background: #a01722; box-shadow: 0 0 0 4px rgba(160, 23, 34, 0.35); }
}

.kj-sg-glyph {
    font-size: 26px;
    line-height: 1.1;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.kj-sg-text { position: relative; z-index: 1; }

.kj-sg-label {
    display: block;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    text-transform: none;
}

.kj-sg-body { display: block; font-size: 14.5px; }

.kj-selfguided-notice a { color: #ffe08a; text-decoration: underline; }

/* Compact variant for the in-walk card */
.kj-selfguided-card { padding: 12px 14px; margin: 12px 0; }
.kj-selfguided-card .kj-sg-glyph { font-size: 20px; }
.kj-selfguided-card .kj-sg-body { font-size: 13.5px; }

/* Motion sensitivity must not cost anyone the warning: freeze the pulse at the
   high-contrast state rather than hiding or softening the panel. */
@media (prefers-reduced-motion: reduce) {
    .kj-selfguided-notice {
        animation: none;
        background: #8a131d;
        box-shadow: 0 0 0 3px rgba(138, 19, 29, 0.3);
    }
}

/* Windows High Contrast / forced colours: keep a real border so the panel does
   not collapse into the page background. */
@media (forced-colors: active) {
    .kj-selfguided-notice {
        animation: none;
        border: 3px solid;
        forced-color-adjust: none;
    }
}
