/* ========================================
   Materesta — Brand Styles
   ======================================== */

:root {
    --brand-blue: #2B5EA7;
    --brand-blue-dark: #1E4A85;
    --brand-dark: #2D2D2D;
    --brand-light: #F8F9FA;
    --brand-border: #E9ECEF;
    --bg: #FFFFFF;
    --bg-card: #FFFFFF;
    --text: #2D2D2D;
    --text-muted: #6c757d;
    --footer-bg: #F8F9FA;
}

[data-theme="dark"] {
    --brand-blue: #4A8FD9;
    --brand-blue-dark: #3A7BC8;
    --brand-dark: #E0E0E0;
    --brand-light: #16213E;
    --brand-border: #2A2A4A;
    --bg: #1A1A2E;
    --bg-card: #1E1E38;
    --text: #E0E0E0;
    --text-muted: #B0B8C4;
    --footer-bg: #141428;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text);
}

/* ---- Navbar ---- */
.navbar {
    padding: 0.75rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    background-color: var(--bg);
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text);
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

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

.navbar .nav-link.active {
    border-bottom: 3px solid var(--brand-blue);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 480px;
    background: var(--bg);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 5rem 0 4rem;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: url('/images/hero.jpg') center/cover no-repeat;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-diagonal-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hero-diagonal-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-blue);
    /* Image edge runs from (45% + 15%*55% = 53.25%) at top to 45% at bottom.
       Line is 4px wide, offset 8px to the left of that edge. */
    clip-path: polygon(
        calc(45% - 8px) 100%,
        calc(45% - 4px) 100%,
        calc(53.25% - 4px) 0,
        calc(53.25% - 8px) 0
    );
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1rem;
}

.hero-accent {
    width: 60px;
    height: 3px;
    background: var(--brand-blue);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

/* ---- Buttons ---- */
.btn {
    border-radius: 4px;
}

.btn-brand {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
    padding: 0.6rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-brand:hover {
    background-color: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
    color: #fff;
}


/* ---- Section Styling ---- */
.section {
    padding: 4rem 0;
}

.section-light {
    background-color: var(--brand-light);
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.75rem;
}

.section-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--brand-blue);
    margin: 0.75rem auto 0;
}

/* ---- Service Cards (Home) ---- */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.service-card .icon {
    font-size: 2rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.service-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.service-card[role="button"] {
    cursor: pointer;
}

.service-card .card-detail {
    margin-top: 0.5rem;
}

.service-card .card-detail hr {
    border-color: var(--brand-border);
}

.service-card .card-detail p {
    text-align: left;
    color: var(--text-muted);
    margin-bottom: 1rem;
}


/* ---- Diensten Images ---- */
.dienst-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel {
    border-radius: 8px;
    overflow: hidden;
}

/* ---- Accordion (Diensten) ---- */
.accordion-button:not(.collapsed) {
    background-color: var(--brand-light);
    color: var(--brand-blue);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--brand-border);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--brand-blue);
}

.accordion-item {
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-item:first-of-type .accordion-button,
.accordion-item:last-of-type .accordion-button.collapsed {
    border-radius: 8px;
}

.accordion-body {
    line-height: 1.8;
}

.accordion-body li {
    margin-bottom: 0.25rem;
}

.accordion-body .about-section-heading {
    margin-top: 2rem;
}

.accordion-body .about-section-heading:first-child {
    margin-top: 0;
}

.accordion-body strong {
    color: var(--text);
}

/* ---- Page Header ---- */
.page-header {
    padding: 3rem 0 2rem;
    background: var(--brand-light);
    margin-bottom: 0;
    border-bottom: 1px solid var(--brand-border);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

/* ---- News ---- */
.news-item {
    border-left: 3px solid var(--brand-blue);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.news-item .news-date {
    font-weight: 600;
    color: var(--brand-blue);
    font-size: 0.9rem;
}

/* ---- Contact Card ---- */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    padding: 2.5rem;
}

.contact-card .contact-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.contact-card .contact-item i {
    color: var(--brand-blue);
    font-size: 1rem;
    margin-right: 1rem;
    min-width: 1rem;
}

/* ---- Map ---- */
.map-embed {
    border: 0;
    border-radius: 8px;
    min-height: 300px;
}

/* ---- Footer ---- */
.site-footer {
    background-color: var(--footer-bg);
    border-top: 3px solid var(--brand-blue);
    color: var(--text);
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.footer-heading {
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--brand-blue);
}

.site-footer i {
    color: var(--text-muted);
}

/* ---- About Page ---- */
.founder-photo {
    width: 100%;
    max-width: 180px;
    border-radius: 8px;
    display: block;
}

.founder-name {
    font-weight: 600;
    color: var(--text);
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.founder-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.about-section-heading {
    font-size: 1.3rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.text-brand {
    color: var(--brand-blue);
}

/* ---- Links ---- */
a {
    color: var(--brand-blue);
}

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

/* ---- Dark Mode ---- */
[data-theme="dark"] .navbar {
    border-bottom-color: var(--brand-border);
}

[data-theme="dark"] .navbar .nav-link {
    color: var(--text);
}

[data-theme="dark"] .navbar .nav-link:hover,
[data-theme="dark"] .navbar .nav-link.active {
    color: var(--brand-blue);
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: inline;
}

[data-theme="dark"] .accordion-button {
    background-color: var(--bg-card);
    color: var(--brand-blue);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--brand-light);
}

[data-theme="dark"] .accordion-item {
    background-color: var(--bg-card);
    border-color: var(--brand-border);
}

[data-theme="dark"] .accordion-body {
    background-color: var(--bg-card);
    color: var(--text);
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--text-muted);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    background-color: transparent;
}

[data-theme="dark"] hr {
    border-color: var(--brand-border);
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 300px;
        background-position: center bottom;
        order: -1;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
    }

    .hero-content {
        padding: 2.5rem 0 3rem;
    }

    .hero-diagonal-line {
        display: none;
    }

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

    .section {
        padding: 3rem 0;
    }

    .navbar .nav-link.active {
        border-bottom: none;
        color: var(--brand-blue);
    }
}
