/* ========================================
   NG Kerk / Church Birchleigh
   Global Styles
   ======================================== */

:root {
    --primary:       #1a5276;
    --primary-light: #2980b9;
    --accent:        #c0392b;
    --dark:          #1a252f;
    --text:          #4a4a4a;
    --text-light:    #777;
    --bg-alt:        #f4f6f9;
    --white:         #ffffff;
    --transition:    all 0.3s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    margin: 0;
}

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

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

p { margin-bottom: 1rem; }

/* ---- Utility ---- */
.alt-bg { background-color: var(--bg-alt); }

section.section {
    padding: 80px 0;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-bottom: 12px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.section-title.text-start h2::after {
    left: 0;
    transform: none;
}
.section-title h2 span { color: var(--primary-light); }
.section-title p { color: var(--text-light); margin-top: 8px; }

/* ---- Buttons ---- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 30px;
    padding: 10px 28px;
    transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}
.btn-outline-light {
    border-radius: 30px;
    padding: 10px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* ---- Focus / Validation (Blazor) ---- */
.btn:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 82, 118, 0.25);
}
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

/* ---- Blazor error ---- */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred." }

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
    background: transparent;
    padding: 16px 0;
    transition: var(--transition);
    z-index: 997;
}
.header.scrolled,
.header:hover {
    background: rgba(26, 37, 47, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    padding: 10px 0;
}

.header .logo { text-decoration: none; }
.header .logo i {
    font-size: 1.8rem;
    color: var(--white);
    margin-right: 10px;
}
.header .logo .sitename {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    font-family: 'Raleway', sans-serif;
}
.header .logo .sitename small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Nav links */
.navmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}
.navmenu ul li a {
    color: rgba(255,255,255,0.88);
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: var(--transition);
    display: block;
}
.navmenu ul li a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

/* Mobile toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

@media (max-width: 1199px) {
    .mobile-nav-toggle { display: block; }

    .navmenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 996;
        overflow-y: auto;
    }
    .navmenu.mobile-nav-active { right: 0; }
    .navmenu ul { flex-direction: column; gap: 0; }
    .navmenu ul li a {
        padding: 12px 16px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        border-radius: 0;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,37,47,0.82) 0%, rgba(26,82,118,0.65) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content h1 span {
    color: #aed6f1;
    display: block;
    font-size: clamp(2rem, 5vw, 3.8rem);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.88);
    margin-top: 16px;
    line-height: 1.8;
}
.hero-subtitle em { color: rgba(255,255,255,0.7); }

.service-times-bar {
    color: rgba(255,255,255,0.9);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    padding: 20px 0;
}
.service-time-item i { color: #aed6f1; }
.service-times-bar .vr { border-color: rgba(255,255,255,0.3); }

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-image img {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
}
.about .lead { font-size: 1.1rem; color: var(--dark); font-weight: 500; }

/* ========================================
   GESTUURDES SECTION
   ======================================== */
.gestuurdes-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
    transition: var(--transition);
    height: 100%;
}
.gestuurdes-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.gestuurdes-letter {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Raleway', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(26,82,118,0.3);
}
.gestuurdes-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}
.gestuurdes-card p { font-size: 0.9rem; color: var(--text); }

/* ========================================
   TEAM SECTION
   ======================================== */
.team-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}
.team-img-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid var(--primary-light);
}
.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.team-role {
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 12px;
}
.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition);
}
.team-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-info-item h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.contact-info-item p { margin: 0; color: var(--dark); }
.contact-info-item a { color: var(--primary-light); }
.contact-info-item a:hover { color: var(--primary); }

.contact-form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.09);
}
.contact-form-card .form-control {
    border-radius: 8px;
    border: 1px solid #dce3ec;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.contact-form-card .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}
.contact-form-card .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding-top: 60px;
    font-size: 0.9rem;
}
.footer .sitename {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}
.footer h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-contact p { margin-bottom: 4px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li {
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
}
.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.footer-links ul li a:hover { color: var(--white); padding-left: 4px; }
.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin-right: 8px;
    transition: var(--transition);
}
.footer .social-links a:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}
.footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}
.footer .credits a { color: rgba(255,255,255,0.55); }
.footer .credits a:hover { color: var(--white); }
