/* =====================================================
   Kinderdagverblijf Het Begin - Main Stylesheet
   ===================================================== */

:root {
    --primary-color: #f18e6a;
    --primary-dark: #d45a32;
    --primary-light: #faaf9d;
    --secondary-color: #5a9a8a;
    --secondary-dark: #4a8277;
    --accent-color: #ffd166;
    --dark-color: #2d3748;
    --light-color: #f8f9fa;
    --text-color: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* Typography */
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
}

/* Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
}

/* =====================================================
   Header
   ===================================================== */
.site-header {
    position: relative;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color) !important;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
}

.brand-logo {
    height: 70px;
    width: auto;
}

@media (min-width: 992px) {
    .brand-logo {
        height: 90px;
    }
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--dark-color);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: auto;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}

.min-vh-75 {
    min-height: auto;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline-light {
    background: rgba(255,255,255,0.15);
    border: 2px solid white;
    color: white;
    font-weight: 600;
}

.hero-buttons .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* Hero Image */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-image-circle {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid rgba(255,255,255,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder i {
    font-size: 5rem;
    color: rgba(255,255,255,0.4);
}

/* =====================================================
   USP Section
   ===================================================== */
.usp-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.usp-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.usp-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.usp-icon i {
    font-size: 2rem;
    color: white;
}

.usp-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.usp-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* =====================================================
   Section Styles
   ===================================================== */
.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.check-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* About Preview */
.about-image-wrapper {
    position: relative;
}

.about-image-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    opacity: 0.3;
}

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-lg);
}

.about-image-placeholder {
    position: relative;
    border-radius: var(--radius-xl);
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.about-image-placeholder i {
    font-size: 6rem;
    color: rgba(255,255,255,0.5);
}

/* About Slider (4:5 aspect ratio) */
.about-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    background: var(--light-color);
}

.about-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.about-slider-slide.active {
    opacity: 1;
}

.about-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.about-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.about-slider-dot:hover,
.about-slider-dot.active {
    background: white;
}

/* =====================================================
   News Section
   ===================================================== */
.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-body {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.news-link {
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link:hover i {
    transform: translateX(5px);
}

.news-link i {
    transition: transform 0.2s;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

.cta-box {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 3rem;
}

.cta-box h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
}

/* =====================================================
   Contact Info Section
   ===================================================== */
.contact-info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-info-card a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-info-card a:hover {
    color: var(--primary-color);
}

/* =====================================================
   Page Header
   ===================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 4rem 0 3rem;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: white;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.page-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* =====================================================
   Page Content
   ===================================================== */
.content-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.content-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body p {
    margin-bottom: 1.25rem;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

/* Sidebar */
.page-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.sidebar-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.sidebar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.sidebar-card-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.sidebar-card-primary h4,
.sidebar-card-primary p {
    color: white;
}

/* =====================================================
   Forms
   ===================================================== */
.form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.form-section {
    background: var(--light-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(232, 115, 74, 0.25);
}

/* =====================================================
   Staff Cards
   ===================================================== */
.staff-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.staff-photo {
    height: 250px;
    overflow: hidden;
    background: var(--light-color);
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.staff-photo-placeholder i {
    font-size: 5rem;
    color: white;
}

.staff-info {
    padding: 1.5rem;
}

.staff-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.staff-function {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.staff-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.staff-location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =====================================================
   Contact Page
   ===================================================== */
.contact-info-wrapper {
    background: var(--light-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item .contact-info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin: 0;
}

.contact-info-item .contact-info-content h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-info-item .contact-info-content p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
    background-color: #1a202c !important;
}

.site-footer h5,
.site-footer h6 {
    color: var(--primary-color);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

/* =====================================================
   Article
   ===================================================== */
.article-meta {
    display: flex;
    gap: 1.5rem;
    color: rgba(255,255,255,0.8);
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

/* =====================================================
   Error Page
   ===================================================== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .usp-section {
        margin-top: 0;
    }

    .cta-box {
        padding: 2rem;
        text-align: center;
    }
}

/* =====================================================
   Content Image Alignment (from CMS editor)
   ===================================================== */
.page-content img,
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.page-content img.img-left,
.news-content img.img-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.page-content img.img-right,
.news-content img.img-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.page-content img.img-center,
.news-content img.img-center {
    display: block;
    margin: 1.5rem auto;
    float: none;
}

.page-content img.img-small,
.news-content img.img-small {
    max-width: 25%;
}

.page-content img.img-medium,
.news-content img.img-medium {
    max-width: 50%;
}

.page-content img.img-large,
.news-content img.img-large {
    max-width: 75%;
}

.page-content img.img-full,
.news-content img.img-full {
    max-width: 100%;
}

/* Clear float after images */
.page-content::after,
.news-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive image alignment */
@media (max-width: 767.98px) {
    .page-content img.img-left,
    .page-content img.img-right,
    .news-content img.img-left,
    .news-content img.img-right {
        float: none;
        display: block;
        margin: 1rem auto;
        max-width: 100%;
    }

    .page-content img.img-small,
    .page-content img.img-medium,
    .news-content img.img-small,
    .news-content img.img-medium {
        max-width: 100%;
    }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: #fff;
    z-index: 9999;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-banner-link {
    color: var(--primary-light);
    text-decoration: underline;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cookie-banner-link:hover {
    color: #fff;
}

@media (max-width: 767.98px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
}
