@font-face {
    font-family: 'Antropos';
    src: url('Antropos.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #00357A;
    /* Deep Blue from Vrijescholen */
    --accent-color: #930032;
    /* Waldorf Red */
    --link-color: #0072CE;
    --text-dark: #1a1a1a;
    --text-muted: #4a4a4a;
    --bg-warm: #fffbfc;
    /* Subtle pinkish-white tint */
    --font-main: 'Exo 2', sans-serif;
    --font-heading: 'Antropos', serif;
    --container-max: 1280px;
    --page-heptagon-image-size: 58vw;
}

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

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography Refinement */
h1,
h2,
h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: normal;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: none;
    display: block;
    padding-bottom: 0;
}

h3 {
    font-size: 1.5rem;
}

/* SVG Filters for "Gooey" Corners */
.rounded-gooey {
    filter: url(#rounded-lg);
}

/* Header: Clean & Floating */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 1.2rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: normal;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section: Modern Split Layout */
.hero-v2 {
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 75px); /* Adapts to window height minus header */
}

.hero-v2 .container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-v2-bg-wrap {
    position: absolute;
    bottom: -80px; /* Shifted lower */
    right: -20px;
    width: var(--page-heptagon-image-size);
    height: var(--page-heptagon-image-size);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: roll-in-element-image 1.2s 0.8s forwards ease-out;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: url(#image-heptagon-clip-round);
}

.hero-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.hero-content-v2 {
    text-align: left;
    max-width: 620px;
}

.hero-v2 h1 {
    font-size: 3.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.hero-v2 .desc-area p {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    max-width: 550px;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Heptagonal Mask for Subpage Heroes */
.mask-hexagon {
    width: 480px;
    height: 480px;
    background-size: cover;
    background-position: center;
    clip-path: url(#image-heptagon-clip-round);
    filter: url(#rounded-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.cta-link {
    display: inline-flex;
    padding: 1.5rem 3.8rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.cta-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--primary-color);
    z-index: -1;
    /* Subtler organic shape */
    border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%;
    transform: rotate(-1deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-link:after {
    content: '→';
    font-size: 1.2rem;
}

.cta-link:hover {
    color: #fff;
}

.cta-link:hover::before {
    background-color: var(--accent-color);
    transform: scale(1.05) rotate(0.5deg);
    /* Subtler morphing */
    border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cta-link.inverted {
    color: var(--primary-color);
}

.cta-link.inverted::before {
    background-color: #fff;
}

.cta-link.inverted:hover {
    color: #fff;
}

.cta-link.outlined::before {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-link.outlined:hover::before {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}


/* Articles Section: Warm Backdrops */
.bg-section-warm {
    background-color: #fff5f6;
    /* Very light pink/warm white */
    padding: 120px 0;
    clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 calc(100% - 80px));
}

/* Focus Section: Modern & Destructured (Vrijescholen Style) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
    align-items: start;
}

.article-card-wrapper {
    filter: url(#rounded-lg);
    transition: box-shadow 0.4s ease, opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: filter, opacity, transform;
    opacity: 0;
}

/* Specific starting positions to allow consistent +30px upward movement */
.article-card-wrapper:nth-child(1) { transform: translateY(50px); }
.article-card-wrapper:nth-child(2) { transform: translateY(0px); }
.article-card-wrapper:nth-child(3) { transform: translateY(70px); }

.article-card-wrapper.is-visible {
    opacity: 1;
}

/* Final states maintaining the Waldorf staggered design */
.article-card-wrapper.is-visible:nth-child(1) { transform: translateY(20px); }
.article-card-wrapper.is-visible:nth-child(2) { transform: translateY(-30px); }
.article-card-wrapper.is-visible:nth-child(3) { transform: translateY(40px); }

.article-card {
    background: #fff;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Asymmetrical Shape: top peak shifted right, bottom peak shifted left */
    clip-path: polygon(0 40px, 75% 0, 100% 40px, 100% calc(100% - 40px), 25% 100%, 0 calc(100% - 40px));
}

/* Static Vertical Offsets moved to wrapper */
.article-card-wrapper:nth-child(1) {
    transform: translateY(20px);
}

.article-card-wrapper:nth-child(2) {
    transform: translateY(-30px);
}

.article-card-wrapper:nth-child(3) {
    transform: translateY(40px);
}

/* Base reveal class for other elements (fade + bottom-up) */
.reveal {
    opacity: 0;
    transform: translateY(40px); /* Marked movement from bottom */
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: delay for a secondary reveal */
.reveal-delay {
    transition-delay: 0.3s;
}

.article-card .img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-content {
    padding: 30px 40px 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-card-content span {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.article-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.25;
}

.article-card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Organic Hero-style Buttons for Cards */
.article-card-link {
    display: inline-flex;
    padding: 1rem 2.4rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.article-card-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--primary-color);
    z-index: -1;
    /* Macchia (Stain) shape */
    border-radius: 41% 59% 41% 59% / 54% 39% 61% 46%;
    filter: url(#rounded-sm);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-card-link:hover {
    color: #fff;
}

.article-card-link:hover::before {
    background-color: var(--accent-color);
    transform: scale(1.08) rotate(-2deg);
    /* Morph and scale */
    border-radius: 54% 46% 59% 41% / 46% 61% 39% 54%;
}

/* Footer: Modern & Sparse */
footer {
    padding: 100px 0;
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
}

footer .logo {
    margin-bottom: 2rem;
    display: block;
}

footer h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 1rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Responsive Optimization & Mobile Menu --- */

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.menu-toggle span {
    width: 28px;
    height: 2.5px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Active State for Hamburger */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Generic Split Grid for responsive sections */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-v2 {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-v2 h1 {
        font-size: 2.8rem;
    }

    .hero-v2-bg-wrap {
        position: relative;
        width: 100vw;
        height: 300px;
        top: 0;
        right: 0;
        margin: -60px 0 40px;
        /* Offset the padding to the header */
        order: -1;
    }

    .hero-bg-image {
        clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    }

    .hero-v2-grid,
    .split-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 40px;
    }

    .hero-content-v2,
    .split-grid>div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-v2 .desc-area p {
        margin: 0 0 3rem;
    }

    .mask-hexagon {
        width: 480px;
        height: 480px;
        margin: 0 auto;
    }

    .article-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
    }

    .article-card-wrapper:nth-child(n) {
        transform: none !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .img-block {
        order: -1;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}

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

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1500;
        backdrop-filter: blur(10px);
    }

    header nav.active {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    header nav ul li a {
        font-size: 1.5rem;
    }

    .hero-v2 h1 {
        font-size: 2.6rem;
    }

    .mask-hexagon {
        width: 320px;
        height: 320px;
    }

    .bg-section-warm {
        padding: 80px 0;
        clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 calc(100% - 40px));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
        margin-top: 60px;
    }
}

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

    h2 {
        font-size: 1.8rem;
    }

    .mask-hexagon {
        width: 280px;
        height: 280px;
    }

    .article-card-content {
        padding: 30px 20px 45px;
    }
}

/* Animations for Waldorf Elements */
@keyframes roll-in-element-image {
    0% {
        opacity: 0;
        transform: translate3d(80px, 40px, 0) rotate(8deg) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
}

/* --- Form and Booking Premium Styles --- */
.booking-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.booking-form-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
    border: 1px solid #f6eff1;
    filter: url(#rounded-lg);
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #fffbfc;
    border: 2px solid #f0e6e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(147, 0, 50, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

/* Open Days Calendar Widget */
.dates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.date-row {
    background: #fff;
    padding: 25px 35px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-left: 5px solid var(--accent-color);
    transition: all 0.3s ease;
    filter: url(#rounded-sm);
}

.date-row:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-left-color: var(--primary-color);
}

.date-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.date-badge {
    background: var(--bg-warm);
    border: 2px solid #f6eff1;
    color: var(--accent-color);
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    min-width: 90px;
}

.date-badge span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
}

.date-details h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--font-main);
    font-weight: 700;
}

.date-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.date-action .btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.date-action .btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Success Message Overlay */
.form-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 10;
    border-radius: 30px;
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .date-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .date-action {
        width: 100%;
        text-align: right;
    }
}