:root {
    --casier-green: #086667;
    --casier-red: #cc123a;
    --site-accent: var(--casier-green);
}

body {
    font-family: 'Roboto', sans-serif;
    color: #2b2f33;
}
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

/* ---------- header ---------- */
.header-top {
    background: var(--site-accent);
}
.lang-switch a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-weight: 600;
    padding: 0 .35rem;
}
.lang-switch a.active,
.lang-switch a:hover {
    color: #fff;
}
.navbar .nav-link {
    font-weight: 500;
    color: #2b2f33;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--site-accent);
}
.btn-accent {
    background: var(--casier-red);
    border-color: var(--casier-red);
    color: #fff;
    font-weight: 600;
}
.btn-accent:hover {
    background: #a80e2f;
    border-color: #a80e2f;
    color: #fff;
}
.text-accent { color: var(--site-accent); }
.bg-accent { background: var(--site-accent); }

/* ---------- hero (rotating photo + caption carousel, real Bootstrap slide) ---------- */
.hero {
    position: relative;
    background-color: var(--site-accent);
    color: #fff;
    overflow: hidden;
}
.hero-carousel, .hero-carousel .carousel-inner { height: 100%; }
.hero-carousel .carousel-item {
    min-height: 560px;
    background-size: cover;
    background-position: center;
}
/* Bootstrap hides inactive slides via display:none and only shows .active —
   align-items:center must only apply once a slide is actually the visible
   one, or every slide stacks display:flex on top of each other at once. */
.hero-carousel .carousel-item.active {
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    /* strong, near-opaque teal-black scrim — legible text over any photo */
    background: linear-gradient(115deg, rgba(6,32,32,.92) 0%, rgba(6,40,40,.82) 45%, rgba(6,32,32,.55) 100%);
}
.hero-caption { position: relative; z-index: 2; padding: 4rem 0; }
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}
.hero .separator {
    width: 60px;
    height: 3px;
    background: var(--casier-red);
    margin: 1rem 0 1.5rem;
}
.hero-group-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.hero-group-list li { margin-bottom: .6rem; }
.hero-group-list a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: 1.1rem;
    font-weight: 500;
}
.hero-group-list a:hover { color: var(--casier-red); }
.hero-group-list .icon-badge { width: 36px; height: 36px; font-size: 1rem; flex: none; background: var(--site-accent); border: 2px solid rgba(255,255,255,.4); }

/* ---------- photo strip (real scrap-metal photography, home + recycling) ---------- */
.photo-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
}
.photo-strip-item {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    transition: transform .3s ease;
}
.photo-strip-item:hover { transform: scale(1.04); z-index: 1; }
@media (max-width: 767px) {
    .photo-strip { grid-template-columns: repeat(3, 1fr); }
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}
.photo-grid a {
    display: block;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: .4rem;
    overflow: hidden;
}
@media (max-width: 767px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
.page-hero-logo {
    display: inline-block;
    background: #fff;
    border-radius: .5rem;
    padding: .5rem 1rem;
}
.page-hero {
    background: var(--site-accent);
    color: #fff;
    padding: 3rem 0;
}

/* ---------- section rhythm ---------- */
section.block {
    padding: 3.5rem 0;
}
section.block.alt {
    background: #f5f7f7;
}
.section-title {
    text-align: center;
    margin-bottom: .5rem;
}
.section-title .separator {
    width: 60px;
    height: 3px;
    background: var(--casier-red);
    margin: .75rem auto 2rem;
}

/* ---------- cards ---------- */
.card-doc, .card-team, .card-company {
    border: 1px solid #e7ebeb;
    border-radius: .5rem;
    height: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}
.card-doc:hover, .card-team:hover, .card-company:hover {
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--site-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ---------- contact fiche (video + company details, real contact.asp layout) ---------- */
.contact-fiche { padding: .5rem 0; }
.contact-fiche .list-icons { list-style: none; padding: 0; margin: 0; }
.contact-fiche .list-icons li { margin-bottom: .6rem; line-height: 1.5; }
.contact-fiche .list-icons i { width: 20px; margin-right: .6rem; color: var(--site-accent); text-align: center; }
.contact-fiche .list-icons a { color: inherit; text-decoration: none; }
.contact-fiche .list-icons a:hover { color: var(--site-accent); }

/* ---------- info cards (contact page: hours / calendar) ---------- */
.info-card {
    background: #fff;
    border: 1px solid #e7ebeb;
    border-radius: .75rem;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.info-card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.info-card-header .icon-badge { width: 44px; height: 44px; font-size: 1.1rem; flex: none; }
.info-card-header h2 { margin: 0; font-size: 1.15rem; }

/* ---------- calendar ---------- */
.month-calendar { width: 100%; border-collapse: separate; border-spacing: 3px; }
.month-calendar th { font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; padding: .3rem; text-align: center; color: #8a9494; }
.month-calendar td {
    text-align: center;
    padding: .5rem .25rem;
    font-size: .9rem;
    background: #f5f7f7;
    border-radius: .35rem;
    vertical-align: top;
    height: 3.2rem;
}
.month-calendar td.today { background: var(--site-accent); color: #fff; font-weight: 700; }
.month-calendar td.has-event { cursor: help; }
.month-calendar td.has-event:hover { background: #e9eeee; }
.month-calendar td.today.has-event:hover { background: var(--site-accent); }
.calendar-nav { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.month-calendar td.today .cal-badge { box-shadow: 0 0 0 2px #fff; }
.cal-badge { display: inline-block; margin-top: 3px; width: 8px; height: 8px; border-radius: 50%; }
.bg-closed { background-color: #ffa3b0; }
.bg-morningonly { background-color: #0e6661; }
.bg-other1 { background-color: #ffa000; }
.bg-other2 { background-color: #621a44; }
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .25rem;
    margin-top: 1.25rem;
}
/* Direct-child combinator, not a bare "span" descendant selector — the
   latter also matches the nested .cal-badge dot and its higher specificity
   (one class + one tag) overrides .bg-closed/.bg-morningonly's background,
   turning the dot the same light-gray as the pill it sits on (invisible). */
.cal-legend > span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    background: #f5f7f7;
    border-radius: 999px;
    font-size: .8rem;
    color: #555;
}
.cal-legend .cal-badge { width: 9px; height: 9px; margin-top: 0; }
.calendar-month-title { font-weight: 600; text-transform: capitalize; }

/* ---------- opening hours ---------- */
.hours-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.hours-table tr { border-bottom: 1px solid #eef1f1; }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: .65rem .25rem; vertical-align: middle; }
.hours-table td:first-child { font-weight: 600; width: 40%; }
.hours-sep { display: inline-block; margin: 0 .6rem; color: #c7d0d0; }
.hours-table tr.today-row { background: color-mix(in srgb, var(--site-accent) 8%, transparent); }
.hours-table tr.today-row td:first-child { color: var(--site-accent); }
.hours-table tr.closed-today td { color: var(--casier-red); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
    background: #12302f;
    color: #fff;
}
.site-footer a:hover { color: #fff !important; }

/* ---------- home slogan ---------- */
.slogan-block { padding: 3rem 0 2.5rem; }
.slogan {
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    color: #1c2b2b;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
}
.slogan strong { color: var(--site-accent); }

/* ---------- announcement bands (home page) ---------- */
.announcement-band { padding: 1.5rem 0; color: #fff; transition: background-color .25s ease; }
.announcement-dark { background: #0a3a3a; }
.announcement-dark:hover { background: #124f4f; }
.announcement-light { background: #6b7676; }
.announcement-light:hover { background: #7d8888; }
.announcement-default { background: var(--site-accent); }
.announcement-default:hover { background: #0a7d7e; }
.announcement-band h2, .announcement-band h3 { color: #fff; }
.announcement-band .btn-outline-light { transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.announcement-band .btn-outline-light:hover { color: var(--site-accent); transform: translateY(-2px); }

/* ---------- team, grouped by department ---------- */
.team-group {
    background: #fff;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20,60,60,.06);
}
.team-group-header {
    background: transparent;
    color: var(--site-accent);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem .5rem;
    border-bottom: 2px solid #eef3f3;
    margin: 0 1.5rem;
    padding-left: 0;
    padding-right: 0;
}
.team-group table { border: none; margin: 0; }
.team-group thead th {
    border: none;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #99a3a3;
    padding: 1rem 1.5rem .25rem;
}
.team-group tbody td {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    vertical-align: middle;
    border-color: #f0f4f4;
}
.team-group tbody tr:first-child td { padding-top: 1.25rem; }
.team-group tbody tr:last-child td { padding-bottom: 1.25rem; }
.team-group tbody td:nth-child(2) { color: #667; }
.team-group tbody td:nth-child(3), .team-group tbody td:nth-child(4) { font-size: .9rem; }
.team-group tbody td:first-child { font-weight: 600; }
.team-group tbody tr:last-child td { border-bottom: none; }
.team-group tbody a { text-decoration: none; white-space: nowrap; }
.team-group tbody a:hover { text-decoration: underline; }

/* ---------- misc ---------- */
.timeline-item { border-left: 3px solid var(--site-accent); padding-left: 1.25rem; margin-bottom: 2rem; }

.hours-intro { color: #6c757d; margin-bottom: .5rem; }
.hours-status { font-size: 1.15rem; margin: .25rem 0 .75rem; }
.hours-extra { color: #6c757d; font-size: .85em; }

/* Opening hours: van / tot columns, voormiddag | namiddag split like the legacy table */
.hours-table thead th { background: var(--site-accent); color: #fff; font-weight: 600; font-size: .9rem; padding: .6rem .75rem; border: 0; }
.hours-table td { padding: .65rem .75rem; white-space: nowrap; }
.hours-table td:first-child { width: auto; }
.hours-table .hours-split { border-left: 2px solid #222; }
.hours-table thead th.hours-split { border-left: 2px solid rgba(0,0,0,.45); }
.hours-card { max-width: 860px; }
.hours-table td:first-child { font-weight: 500; }

/* Plain page title (summary pages: company card + Groep Casier) */
.page-title-plain { font-size: 2rem; font-weight: 700; text-transform: uppercase; margin: 1.5rem 0 .5rem; }
.separator-plain { width: 100%; height: 1px; background: #e7ebeb; margin-bottom: 1rem; }
