/* CL24.nl Main Stylesheet */

/* Variables */
:root {
    --cl24-green: #7ab686;
    --cl24-dark-grey: #222222;
    --cl24-light-grey: #f5f5f5;
    --cl24-white: #ffffff;
    --cl24-black: #000000;
    
    --font-primary: 'Open Sans', Arial, sans-serif;
    --font-secondary: 'Montserrat', Helvetica, sans-serif;
    
    --transition-speed: 0.3s;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--cl24-dark-grey);
    background-color: var(--cl24-white);
    overflow-x: hidden; /* prevent horizontal scroll on small screens */
}

a {
    color: var(--cl24-green);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--cl24-dark-grey);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    color: var(--cl24-dark-grey);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--cl24-green);
    color: var(--cl24-white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.btn:hover {
    background-color: var(--cl24-dark-grey);
    color: var(--cl24-white);
}

.btn-secondary {
    background-color: var(--cl24-dark-grey);
    color: var(--cl24-white);
}

.btn-secondary:hover {
    background-color: var(--cl24-green);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--cl24-green);
    color: var(--cl24-green);
}

.btn-outline:hover {
    background-color: var(--cl24-green);
    color: var(--cl24-white);
}

/* Header */
.header {
    background-color: var(--cl24-white);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cl24-dark-grey);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

/* Normalize all nav lists: remove bullets and reset spacing */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ensure no separator dots/pipes are rendered between items */
.nav-menu li+li::before,
nav ul li+li::before {
    content: none !important;
}

/* Dropdown lists should not show bullets either */
.dropdown-menu,
.dropdown-menu li {
    list-style: none;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--cl24-dark-grey);
    font-weight: 600;
    position: relative;
}

.nav-link:hover {
    color: var(--cl24-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cl24-green);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--cl24-white);
    box-shadow: var(--box-shadow);
    min-width: 200px;
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    display: none;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Also open dropdown when the parent has focus (keyboard navigation) */
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--cl24-dark-grey);
}

.dropdown-item:hover {
    background-color: var(--cl24-light-grey);
    color: var(--cl24-green);
}

/* Hero Section / Carousel */
.hero {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    text-align: center;
    color: var(--cl24-white);
    padding: 2rem;
    max-width: 800px;
    background-color: rgba(34, 34, 34, 0.5);
    border-radius: var(--border-radius);
}

.carousel-content h1 {
    color: var(--cl24-white);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    background-color: rgba(248, 240, 240, 0.862);
    color: var(--cl24-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    font-size: 1.5rem;
}

.carousel-prev {
    margin-left: 1rem;
}

.carousel-next {
    margin-right: 1rem;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.carousel-indicator.active {
    background-color: var(--cl24-white);
}

/* Main Content */
.main {
    padding: 3rem 0;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--cl24-green);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--cl24-green);
    margin-bottom: 1rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--cl24-green);
}

/* Page Banner */
.page-banner {
    min-height: 200px;
    background-size: cover;
    background-position: center;
    margin-top: 80px;
    padding: 3rem 0;
    display: flex;
    align-items: center;
}

.page-banner .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--cl24-dark-grey);
    margin-bottom: 1rem;
    position: relative; /* enable underline accent positioning */
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--cl24-dark-grey);
}

/* Add the same short green underline used by section titles to page titles */
.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--cl24-green);
}

/* Footer */
.footer {
    background-color: var(--cl24-dark-grey);
    color: var(--cl24-white);
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--cl24-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.5rem;
}

.footer-link a {
    color: #ccc;
}

.footer-link a:hover {
    color: var(--cl24-green);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--cl24-white);
    transition: background-color var(--transition-speed) ease;
}

.social-icon:hover {
    background-color: var(--cl24-green);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

#goog-gt-tt,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-tooltip,
.goog-te-balloon-frame,
.goog-te-menu-value {
    display: none !important;
}

body {
    top: 0 !important;
    position: static !important;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Contact Popup */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.contact-popup-content {
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: popupSlideIn 0.3s ease-out;
}

.contact-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: var(--cl24-green);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.contact-popup-header h3 {
    margin: 0;
    color: white;
}

.contact-popup-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.contact-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-popup-body {
    padding: 2rem;
}

.contact-popup-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-popup-body .form-group {
    margin-bottom: 1.5rem;
}

.contact-popup-body .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--cl24-dark-grey);
}

.contact-popup-body .form-group input,
.contact-popup-body .form-group textarea,
.contact-popup-body .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-popup-body .form-group input:focus,
.contact-popup-body .form-group textarea:focus,
.contact-popup-body .form-group select:focus {
    outline: none;
    border-color: var(--cl24-green);
}

.contact-popup-body .required {
    color: #d9534f;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
}

.success-content {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: successSlideIn 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out;
}

.success-content h3 {
    color: var(--cl24-green);
    margin-bottom: 1rem;
}

.success-content p {
    margin-bottom: 2rem;
    color: var(--cl24-dark-grey);
}

/* Animations */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(-100px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-popup-content {
        width: 95%;
        margin: 1rem;
    }
    
    .contact-popup-body {
        padding: 1.5rem;
    }
    
    .contact-popup-body .form-row {
        grid-template-columns: 1fr;
    }
    
    .success-content {
        padding: 2rem 1.5rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111;
    color: var(--cl24-white);
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    z-index: 2147483647; /* ensure above any page element */
    display: none; /* shown via JS if no consent cookie */
}

.cookie-banner .cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cookie-banner a {
    color: #9ff0dd;
    text-decoration: underline;
}

.cookie-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.cookie-btn {
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.cookie-btn-essential {
    background-color: #555;
    color: #fff;
}

.cookie-btn-accept {
    background-color: #2b8a3e;
    color: #fff;
}

@media (max-width: 576px) {
    .cookie-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .carousel {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--cl24-white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left var(--transition-speed) ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .carousel {
        min-height: 250px;
        height: auto;
    }
    
    .carousel-content {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }
    
    main {
        padding-top: 90px;
    }
    
    .page-banner {
        margin-top: 80px;
        padding-top: 90px;
        padding-bottom: 40px;
    }
    
    .page-banner .container {
        text-align: center;
        align-items: center;
        padding: 0 1.5rem;
    }
    
    .policy-container {
        padding: 0 1rem;
    }
    
    .policy-section {
        margin-bottom: 1.75rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.9rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .carousel {
        min-height: 200px;
    }
    
    .carousel-content {
        padding: 0.5rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
    }
}