/*
 * Royal DS International — brand override
 * Flips the shared Royal DS yellow accent to the International red accent.
 * Loaded AFTER style.css so the red values win the cascade.
 */

:root {
    --rds-red: #e30613;
    --rds-red-dark: #b20000;
    --rds-red-soft: #fa878f;
}

/* Text + link accent */
a { color: var(--rds-red); }
a:hover { color: var(--rds-red-soft); }

.royalds-yellow,
#hero h1,
.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a,
.about .icon-boxes .icon-box i,
.services .icon-box .icon i,
.section-title h2::after,
.counts .count-box i,
.contact .info i,
.footer-top .social-links a:hover,
.footer-top .footer-links ul a:hover,
.footer-top .footer-newsletter form input[type=submit]:hover {
    color: var(--rds-red) !important;
}

/* Solid backgrounds that used yellow */
.back-to-top,
.about .content .about-btn,
.footer-top .footer-newsletter form input[type=submit],
.glowing-button {
    background: var(--rds-red) !important;
}

/* Hero section */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#hero.international {
    /* Subtle red gradient overlay instead of the sibling's yellow overlay */
    background: linear-gradient(rgba(68, 68, 68, 0.55), rgba(227, 6, 19, 0.25));
}

#hero.international video {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

/* Dark translucent overlay on top of the video so the hero text stays readable */
#hero.international::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(20, 20, 20, 0.45), rgba(227, 6, 19, 0.25));
    z-index: 0;
}

#hero .hero-container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    color: #ffffff !important;
    text-shadow: -1px 0 6px rgba(0, 0, 0, 0.6);
}

#hero h2 {
    color: #ffffff;
    text-shadow: -1px 0 6px rgba(0, 0, 0, 0.6);
}

/* Glowing CTA: re-tint to red */
.glowing-button {
    background-color: var(--rds-red) !important;
    box-shadow: 0 0 8px var(--rds-red-dark);
}

@keyframes glowing {
    0%   { background-color: var(--rds-red-dark); box-shadow: 0 0 4px var(--rds-red-dark); }
    50%  { background-color: var(--rds-red);      box-shadow: 0 0 16px var(--rds-red); }
    100% { background-color: var(--rds-red-dark); box-shadow: 0 0 4px var(--rds-red-dark); }
}

/* Hero "scroll down" arrow */
#hero .btn-get-started {
    border-color: #fff;
    color: #fff;
}

/* Dev-only video-missing hint: if the video fails to load, show the brand colour. */
#hero.international video:not([src]),
#hero.international video[src=""] {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--rds-red-dark) 100%);
}

/* Language switcher zit uiterst rechts — open het dropdown-menu naar links
   zodat het niet buiten de viewport valt. */
.navbar .dropdown.lang-switcher ul {
    left: auto;
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
}

/* Placeholder-banner voor talen waarvoor de vertaling nog niet af is.
   Verschijnt boven de fixed header — content wordt iets opgeschoven. */
.lang-placeholder-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 8px 16px;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    font-size: 13px;
    border-bottom: 2px solid var(--rds-red);
}
.lang-placeholder-banner strong {
    color: var(--rds-red-soft);
}
body:has(.lang-placeholder-banner) #header {
    top: 36px;
}
body:has(.lang-placeholder-banner) {
    padding-top: 36px;
}

/* Service-tegel hover: gradient-overlay (rood→donkerrood) faded in via ::before,
   tekst en icoon worden wit. has-photo-tegels krijgen extra een foto onder de
   overlay (transparenter zodat de foto zichtbaar blijft). */
.services .icon-box {
    transition: background-color 0.4s ease;
}
.services .icon-box::before {
    inset: 0;
    top: 0;
    background: linear-gradient(180deg, var(--rds-red) 0%, var(--rds-red-dark) 100%);
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.services .icon-box.has-photo--bemiddeling::before {
    background-image:
        linear-gradient(rgba(20, 20, 20, 0.75), rgba(178, 0, 0, 0.75)),
        url('../img/photos/bemiddeling.jpg');
}
.services .icon-box.has-photo--consultancy::before {
    background-image:
        linear-gradient(rgba(20, 20, 20, 0.75), rgba(178, 0, 0, 0.75)),
        url('../img/photos/consultancy.jpg');
}
.services .icon-box.has-photo--huisvesting::before {
    background-image:
        linear-gradient(rgba(20, 20, 20, 0.75), rgba(178, 0, 0, 0.75)),
        url('../img/photos/huisvesting.jpg');
}
.services .icon-box.has-photo--compliance::before {
    background-image:
        linear-gradient(rgba(20, 20, 20, 0.75), rgba(178, 0, 0, 0.75)),
        url('../img/photos/compliance.jpg');
}
.services .icon-box.has-photo--werving::before {
    background-image:
        linear-gradient(rgba(20, 20, 20, 0.75), rgba(178, 0, 0, 0.75)),
        url('../img/photos/werving-en-selectie.jpg');
}
.services .icon-box.has-photo--uitleen::before {
    background-image:
        linear-gradient(rgba(20, 20, 20, 0.55), rgba(178, 0, 0, 0.55)),
        url('../img/photos/uitleen.jpg');
}
.services .icon-box:hover {
    background-color: transparent;
}
.services .icon-box:hover::before {
    opacity: 1;
}
.services .icon-box:hover .title,
.services .icon-box:hover .description {
    color: #fff;
}
.services .icon-box:hover .icon i {
    color: #fff !important;
}
.services .icon-box:hover .service-more {
    color: #fff;
}
.services .icon-box:hover .service-more:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* Service-tegels: alles links uitlijnen, gelijke kaarthoogte, en "Lees meer"
   altijd onderaan ongeacht beschrijvingslengte. min-height op description
   zorgt dat alle kaarten dezelfde tekstruimte krijgen, ook als de tekst korter is. */
.services .icon-box {
    display: flex;
    flex-direction: column;
}
.services .icon-box .description {
    text-align: left;
    min-height: calc(3 * 28px);
}

/* "Lees meer" link onderaan elke service-kaart — opent de bijbehorende modal. */
.services .icon-box .service-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rds-red);
    text-decoration: none;
}
.services .icon-box .service-more:hover {
    color: var(--rds-red-dark);
    text-decoration: underline;
}
.services .icon-box .service-more i {
    font-size: 14px;
    vertical-align: -2px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}
.services .icon-box .service-more:hover i {
    transform: translateX(3px);
}

/* Service-detail modal styling. */
.service-modal .modal-header {
    border-bottom: 2px solid var(--rds-red);
    align-items: center;
}
.service-modal .modal-hero {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}
.service-modal .modal-title {
    color: var(--rds-red);
    font-weight: 700;
    margin: 0;
}
.service-modal .modal-body h5 {
    color: var(--rds-red);
    font-weight: 700;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
}
.service-modal .modal-body h5:first-child,
.service-modal .modal-body > p:first-child + h5 {
    margin-top: 0.5rem;
}
.service-modal .modal-body table th {
    background: rgba(227, 6, 19, 0.05);
}
.service-modal .modal-body ul,
.service-modal .modal-body ol {
    padding-left: 1.2rem;
}
.service-modal .modal-body li {
    margin-bottom: 0.4rem;
}

/* ======= Footer-info white card =======
   Witte kader met adres-gegevens, sticht boven de footer-logos band uit
   (overgenomen patroon van Royal DS Holding). */
#footer .footer-info {
    background: #fff;
    color: #2f4d5a;
    border-top: 4px solid var(--rds-red);
    text-align: center;
    padding: 26px 24px;
    margin-bottom: 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
#footer .footer-info img {
    display: block;
    margin: 0 auto 6px;
}
#footer .footer-info p {
    font-size: 14px;
    line-height: 1.6;
    margin: 6px 0;
    color: #2f4d5a;
}
#footer .footer-info p em {
    color: #555;
    font-weight: 500;
}
#footer .footer-info a {
    color: var(--rds-red);
    text-decoration: none;
}
#footer .footer-info a:hover {
    text-decoration: underline;
}

/* ======= Sister-site logos band =======
   Donkere strip onder de footer-top met 4 zustersite-logo's, ronddraaiende
   linker-gear per logo. */
#footer-logos {
    background: #ffffff;
    padding: 30px 0;
}
#footer-logos .count-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 8px;
}
#footer-logos .count-box a {
    display: inline-flex;
    align-items: center;
}
#footer-logos .count-box img {
    height: auto;
}
#footer-logos .count-box a:first-child img {
    margin-right: 5px;
}

/* Ronddraaiende gears — staggered start-rotaties zodat ze verschillend lopen. */
@keyframes concern-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#footer-logos #logo-gear-0,
#footer-logos #logo-gear-1,
#footer-logos #logo-gear-2,
#footer-logos #logo-gear-3 {
    animation: concern-spin 10000ms linear infinite;
    transform-origin: 50% 50%;
}
#footer-logos #logo-gear-1 { animation-delay: -2500ms; }
#footer-logos #logo-gear-2 { animation-delay: -5000ms; }
#footer-logos #logo-gear-3 { animation-delay: -7500ms; }

/* Gear + wordmark in het witte kader van footer-info — naast elkaar, gecentreerd. */
#footer .footer-info .footer-info-gear,
#footer .footer-info .footer-info-gear + img {
    display: inline-block;
    vertical-align: middle;
}
.footer-info-gear {
    animation: concern-spin 10000ms linear infinite;
    transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
    #footer-logos #logo-gear-0,
    #footer-logos #logo-gear-1,
    #footer-logos #logo-gear-2,
    #footer-logos #logo-gear-3,
    .footer-info-gear { animation: none; }
}

/* Social-icons in de copyright-rij (verhuisd uit de footer-info kolom). */
#footer .copyright .social-links {
    margin-bottom: 12px;
}
#footer .copyright .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 0 4px;
    background: var(--rds-red);
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    text-align: center;
    transition: background 0.3s ease;
}
#footer .copyright .social-links a:hover {
    background: #444;
    color: #fff;
    text-decoration: none;
}

/* Newsletter — verborgen honeypot tegen bots, en inline status-melding. */
.footer-newsletter .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.footer-newsletter .newsletter-status {
    margin-top: 10px;
    font-size: 13px;
    min-height: 1.2em;
    color: #ccc;
}
.footer-newsletter .newsletter-status.ok  { color: #6dd96d; }
.footer-newsletter .newsletter-status.err { color: var(--rds-red-soft); }
