/* ========================================================== */
/* === ORANJE-ECO - FINAL, CORRECTED STYLING === */
/* ========================================================== */

/* === GLOBALE VARIABELEN & RESET === */
:root {
  /* COLORS */
  --orange: #E57415;
  --orange-hover: #e68900;
  --title-green: #1A3606; /* New Title Color */
  --green-hover: #1b8516;
  --dark: #333333;
  --text-color: #333;
  --bg-light: #F9F6F1;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --link-color: #ADD8E6;
  --border-light: #eee;
  --error-bg: #f8d7da;
  --error-text: #721c24;
  --success-bg: #d4edda;
  --success-text: #155724;

  /* TYPOGRAPHY */
  --font-family-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  
  /* LAYOUT & EFFECTS */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 20px;
  --shadow-light: 0 2px 5px rgba(0,0,0,0.1);
  --shadow-medium: 0 6px 15px rgba(0,0,0,0.15);
  --transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  --transition-fast: 0.3s; /* Adjusted for header */
  --transition-slow: 0.5s;
  --focus-outline: 2px solid #005fcc;

  /* DYNAMIC SPACING & FONT SIZES */
  --padding-s: clamp(0.5rem, 1vw + 0.25rem, 1rem);
  --padding-m: clamp(1rem, 2vw + 0.5rem, 2rem);
  --padding-l: clamp(2rem, 4vw + 1rem, 4rem);
  --font-size-base: 17px; /* Increased base font size */
  --font-size-h1: clamp(1.7rem, 2vw + 1.2rem, 2.5rem);
  --font-size-h2: clamp(1.7rem, 1.5vw + 1.3rem, 2.1rem);
  --font-size-h3: clamp(1.25rem, 1vw + 1rem, 1.5rem);

  /* BREAKPOINTS */
  --bp-desktop: 1200px;
  
  /* Exploded View Specific */
  --stage-h: 100vh;
  --explode-max: 520;
  --label-bg: rgba(20,20,20,.72);
  --label-br: 10px;
  --label-gap: 10px;
  --accent: #43b0ff;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === BASE STYLES & TYPOGRAPHY === */
html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-primary);
  background-color: var(--bg-white);
  color: var(--text-color);
  line-height: 1.6;
  font-size: var(--font-size-base);
  font-weight: 300; /* Lighter base font weight */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
}

main {
    transition: filter 0.3s ease-in-out;
    padding-top: 120px; 
}

body.menu-open main {
    filter: blur(5px);
    pointer-events: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
  box-shadow: none;
  border-radius: var(--radius-xs);
}

p, li, a, h1, h2, h3 {
  overflow-wrap: normal;
  hyphens: none;
}

h1, h2, h3 {
    font-weight: 400; /* Thinner headings */
    text-transform: none; /* remove capitalization */
}

h1 { font-size: var(--font-size-h1); line-height: 1.2; margin-bottom: 1rem; color: var(--title-green); font-weight: 300;} /* Thinner H1 */
h2 { font-size: var(--font-size-h2); line-height: 1.2; color: var(--title-green); text-align: left; margin-top: 2rem; margin-bottom: 1rem; }
h3 { font-size: var(--font-size-h3); line-height: 1.2; margin-bottom: 0.5rem; color: var(--title-green); }
p { font-size: var(--font-size-base); margin-bottom: 1rem; }
strong { font-weight: 600; }
ul { list-style: none; }
hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* === CONTAINERS & LAYOUTS === */
.container {
  width: 90%;
  max-width: 1100px;
  padding: 0 1rem;
  margin: 0 auto;
}

.content-section {
  padding: var(--padding-l) 0;
}

.text-center {
    text-align: center;
}

.about-section, .legal-content, .contact-page-container {
  max-width: 720px;
  margin: 1.5rem auto;
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.grid-2-col, .grid-2-col-reversed, .grid-3-col, .partner-grid {
  display: grid;
  gap: var(--padding-m);
}

.grid-2-col .image-content, .grid-2-col-reversed .image-content {
  order: -1;
}

.product-card img, .about-image, .partner-logo,
.grid-2-col img, .grid-2-col-reversed img, .grid-3-col img {
  width: 100%; 
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.about-image {
    width: 100%;
    max-width: 500px; 
    height: auto;
    margin: 0 auto;
    display: block;
}

.product-card img {
	max-width: 350px;
	align-self: center}

.product-section {
  text-align: center;
}

/* === HEADER & FOOTER === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--padding-m);
  background-color: var(--bg-white);
  color: var(--dark);
  box-shadow: var(--shadow-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform var(--transition-fast) ease-in-out, padding 0.3s ease-in-out;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.site-header .logo {
    height: 80px;
    transition: height 0.3s ease-in-out;
}

.site-header.scrolled .logo {
    height: 60px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 1.5rem;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--dark);
}

h1 .oranje, .brand-name .oranje { color: var(--orange); }

nav.desktop-nav {
  display: none;
}

nav.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(0.4rem, 1vw, 1.5rem);
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

nav.desktop-nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem clamp(0.4rem, 0.6vw, 1rem);
  white-space: nowrap;
  font-size: clamp(0.875rem, 1vw, 1rem);
}

nav.desktop-nav a:hover { color: var(--orange); }

.hamburger-menu {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  position: relative;
  z-index: 1100;
  width: 55px;
  height: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hamburger-menu .bar {
  width: 28px;
  height: 3px;
  background-color: var(--dark);
  margin: 2px 0;
  transition: var(--transition-fast);
  border-radius: var(--radius-xs);
  z-index: 10;
}

.nav-links-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background-color: var(--bg-white);
  z-index: 100;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transform: translateX(100%);
  transition: transform var(--transition-fast) ease-out;
  padding-top: 90px;
  display: none;
  flex-direction: column;
}

.nav-links-mobile.active {
  transform: translateX(0);
  display: flex;
}

.nav-links-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.nav-links-mobile li a {
  display: block;
  padding: 1rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  border-top: 1px solid rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.nav-links-mobile li:first-child a { border-top: none; }
.nav-links-mobile li a:hover { background-color: var(--dark); color: var(--bg-white); }

.site-footer {
  background-color: var(--bg-light); /* Aligns with other light sections */
  color: var(--text-color); /* Dark text for readability */
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
  margin-top: auto;
  text-align: left;
  border-top: 1px solid var(--border-color); /* Adds separation from content */
}

.site-footer a { 
  color: var(--title-green); 
  text-decoration: none; 
  position: relative; /* Required for the pseudo-element */
  padding-bottom: 3px; /* Adds a little space for the underline */
}

/* Creates the underline element but keeps it hidden */
.site-footer a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0); /* Starts with zero width */
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--orange); /* Underline color */
  transform-origin: center; /* Animation starts from the center */
  transition: transform 0.3s ease-out; /* Animation speed */
}

/* Makes the underline visible on hover */
.site-footer a:hover::after {
  transform: scaleX(1); /* Animates to full width */
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-column h3 {
    color: var(--orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* === BUTTONS & LINKS === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: normal;
  text-align: center;
  font-family: inherit;
  font-size: var(--font-size-base);
}

.btn-primary {
    background-color: var(--orange);
    color: var(--bg-white);
    border-color: var(--orange);
    margin: 1rem;
}

.btn-primary:hover {
  background-color: var(--orange-hover);
  border-color: var(--orange-hover);
}

.btn-secondary {
  background-color: var(--title-green);
  color: var(--bg-white);
  border-color: var(--title-green);
}

.btn-secondary:hover {
  background-color: var(--green-hover);
  color: var(--bg-white);
  border-color: var(--green-hover);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--title-green);
  margin-top: auto;
  display: inline-block;
  padding-top: 1rem;
}

/* ========================================================== */
/* === REVISED HERO SECTION (Replaces old .hero styles) === */
/* ========================================================== */

.hero {
  display: flex; /* Fallback and mobile-first approach */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem; /* Flexible padding */
  background-color: var(--title-green);
  color: var(--bg-white);
}

.hero h1, .hero p {
  color: var(--bg-white);
}

.hero-content {
  max-width: 600px;
  width: 100%;
}

.hero .cta-buttons {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

.hero-background-image {
  display: none; /* Hidden on mobile by default */
}


/* === INTERACTIVE HOME FORM === */
#interactive-form-section {
    background-color: var(--bg-light);
    padding: var(--padding-m) 0;
}

#interactive-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: var(--padding-m);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    text-align: center;
}

#interactive-form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

#hero-form {
    overflow: hidden;
}

.progress-bar-container {
    width: 100%;
    background-color: var(--border-light);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--orange);
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
}

.form-step {
    display: none;
    opacity: 0;
    animation-duration: 0.4s;
    animation-fill-mode: both;
}

.form-step.active {
    display: block;
    animation-name: formStepFadeIn;
}

.form-step.exiting {
    display: block;
    animation-name: formStepFadeOut;
}

@keyframes formStepFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes formStepFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.form-group-slider {
    margin: 2rem 0;
}

.slider-value {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-value input[type="number"] {
    width: 80px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.slider-value span {
    font-size: 1.2rem;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: var(--border-light);
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 5px;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: var(--orange);
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: var(--orange);
    cursor: pointer;
    border-radius: 50%;
}

.form-group-adjuster {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.kwh-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}
#kwh-input {
    width: 100px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    border: none;
    padding: 0;
    margin-bottom: 0;
}
#kwh-input:focus {
    outline: none;
    box-shadow: none;
}
.kwh-input-wrapper span {
    font-size: 1.2rem;
}

.adjust-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    background-color: var(--bg-white);
    color: var(--orange);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adjust-btn:hover {
    background-color: var(--orange);
    color: var(--bg-white);
}

#kwh-unknown {
    color: var(--dark);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

.form-navigation {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.form-navigation .btn {
    flex-grow: 1;
}

/* === PROMISE SECTION STYLES === */
.promise-section {
    padding: 1rem 0.33rem;
    background-color: var(--bg-light);
    text-align: left;
}

.promise-header {
    max-width: 80%;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.promise-header p {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: left;
}

.promise-grid {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: 1fr;
}

.promise-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    justify-content: space-between;
    min-height: 160px;
}
.promise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.promise-icon {
    width: 35%;
    height: auto;
    margin-bottom: 0.5rem;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.promise-card:hover .promise-icon {
    transform: scale(1.4) rotate(5deg);
}

.promise-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--title-green);
    margin-bottom: 0;
}

#producten .grid-3-col {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.product-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: var(--transition);
  height: 100%;
  flex: 0 0 80%;
  scroll-snap-align: center;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.about-text {
  flex: 1;
  min-width: auto;
}

.about-text strong {
  color: var(--title-green);
}

.testimonials, .faq {
  margin-bottom: 2rem;
}

.testimonials blockquote {
  font-style: italic;
  border-left: 3px solid var(--orange);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.faq details {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.faq summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  padding-right: 1rem;
  position: relative;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  content: '−';
}

.faq p {
  padding-top: 1rem;
  margin-bottom: 0;
}

/* Partner Page */
.partner-category h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--title-green);
  text-align: left;
}

.partner-category .icon {
  height: 30px;
  width: 30px;
  fill: var(--title-green);
}

/* Forms & Contact Page */
.contact-info-bar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

  .contact-details-box a,
  .contact-details-box a:visited,
  .contact-details-box a:hover,
  .contact-details-box a:active {
    color: inherit;
    text-decoration: none;
   }

.contact-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: var(--title-green);
}

.contact-page-container {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
}

.contact-form-intro .form-pre-title {
    color: var(--title-green);
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.contact-form-intro h1 {
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  box-sizing: border-box;
  margin-bottom: 1rem;
  background-color: var(--bg-white);
  font-weight: 300;
}
textarea {
    min-height: 150px;
}
input[type="checkbox"] { margin-right: 0.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group:last-of-type { margin-bottom: 0; }

.form-result-message {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  font-weight: 500;
}

.form-result-message.form-success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--border-color);
}

.form-result-message.form-error {
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--border-color);
}

/* Modal & Chat */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast) ease-out, visibility var(--transition-fast) ease-out;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

#cart-modal, #loading-overlay {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loading-overlay .spinner {
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid var(--orange);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#chat-widget {
  display: none !important;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: white;
  padding: 1rem;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100%);
  transition: transform var(--transition-slow) ease-out;
}

.cookie-banner.cookie-visible { transform: translateY(0); }
.cookie-banner.cookie-hidden { display: none; }
.cookie-banner .cookie-btn {
  background-color: var(--orange);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
}
.cookie-banner a { color: var(--link-color); }

/* Error 404 */
.error-404 {
  max-width: 700px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
}

.error-404 h2 {
  color: var(--orange);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.error-404 a {
  color: var(--title-green);
  text-decoration: underline;
  font-weight: 500;
}

/* ========================================================== */
/* === RESTORED AND CORRECTED STYLES FOR TECHNIEK PAGE === */
/* ========================================================== */
/* ========================================================== */
/* === TECHNIEK PAGE (Replaces all old .tech- and .comparison- styles) === */
/* ========================================================== */

.tech-section {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: single column */
    gap: 2rem;
    align-items: start;
}

.tech-intro h3 {
    color: var(--title-green);
    text-align: left;
    margin-bottom: 1rem;
}

.tech-intro ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 1.5rem;
}

.tech-intro ul li {
    margin-bottom: 0.75rem;
}

.tech-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-gallery-main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden; /* Keeps arrows contained */
    border: 1px solid var(--border-color);
}

.tech-gallery-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.gallery-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.next {
    right: 10px;
}

.tech-gallery-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 1rem; /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--orange) var(--border-light);
}

.tech-gallery-thumbnails::-webkit-scrollbar {
  height: 8px;
}
.tech-gallery-thumbnails::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}
.tech-gallery-thumbnails::-webkit-scrollbar-thumb {
  background-color: var(--orange);
  border-radius: 4px;
}

.tech-gallery-thumb {
    width: 100px;
    height: 75px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s ease;
}

.tech-gallery-thumb.active,
.tech-gallery-thumb:hover {
    border-color: var(--orange);
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table thead {
    background-color: var(--bg-light);
}

/* --- Responsive Layout for Techniek Page --- */

@media (min-width: 768px) {
    .tech-section {
        grid-template-columns: 1fr 1fr; /* Two columns on desktop */
    }
    
    .tech-section.reversed .tech-intro {
        order: 2; /* Flips the text to the right column */
    }

    .comparison-table {
        font-size: 1rem;
    }
}

/* ========================================================== */
/* === NEW: EXPLODED BATTERY VIEW STYLES === */
/* ========================================================== */

.exploded-view-wrapper {
  padding: var(--padding-l) 0;
  background-color: #111;
  color: #eaeaea;
}

.exploded-view-wrapper h2 {
    color: #fff;
    text-align: center;
}

.exploded-view-container {
  height: calc(var(--stage-h) + 160vh);
  background: linear-gradient(#1b1b1b,#0f0f0f);
}

.exploded-view-container .stage {
  position: sticky;
  top: 0;
  height: var(--stage-h);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
}

.exploded-view-container .canvas {
  position: relative;
  width: min(92vw, 1100px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 60%, #0c0c0c 0%, #000 70%);
  box-shadow: 0 30px 80px rgba(0,0,0,.6) inset, 0 10px 40px rgba(0,0,0,.45);
}

.exploded-view-container .layer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  pointer-events: none;
}

.exploded-view-container .layer img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.exploded-view-container .layer.base { z-index: 1; }
.exploded-view-container .layer.white { z-index: 2; }
.exploded-view-container .layer.black2 { z-index: 3; }
.exploded-view-container .layer.grey { z-index: 4; }
.exploded-view-container .layer.black1 { z-index: 5; }
.exploded-view-container .layer.pad { z-index: 6; filter: drop-shadow(0 8px 20px rgba(0,0,0,.55)); }
.exploded-view-container .layer.lid { z-index: 7; filter: drop-shadow(0 12px 28px rgba(0,0,0,.6)); }

.exploded-view-container .legend {
  position: absolute;
  right: 14px;
  top: 14px;
  max-width: 38%;
  display: flex;
  flex-direction: column;
  gap: var(--label-gap);
  pointer-events: none;
}

.exploded-view-container .tag {
  pointer-events: auto;
  background: var(--label-bg);
  border: 1px solid rgba(255,255,255,.08);
  padding: 10px 12px;
  border-radius: var(--label-br);
  backdrop-filter: blur(6px);
}

.exploded-view-container .tag h4 {
  margin: 0 0 2px 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
}

.exploded-view-container .tag p {
  margin: 0;
  font-size: 12.5px;
  opacity: .9;
}

.exploded-view-container .credit {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 12px;
  opacity: .7;
}


/* === RESPONSIVE STYLES === */
@media (min-width: 480px) {
    .promise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .promise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 2fr 2fr 1fr 1fr;
    }
    .tech-section {
        grid-template-columns: 1fr 1fr;
    }
    .tech-section.reversed .tech-intro {
        order: 2;
    }
    .comparison-table {
        font-size: 1rem;
    }
    .contact-info-bar {
        flex-direction: row;
        justify-content: space-around;
    }
    .contact-page-container {
        grid-template-columns: 1fr 1.5fr;
        align-items: center;
    }
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .exploded-view-container .legend { max-width: 60%; }
    .exploded-view-container .canvas { width: min(96vw, 800px); }
}

@media (max-width: 768px) {
  .comparison-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  .comparison-table tr {
    display: block;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
  }
  
  .comparison-table td {
    display: block;
    text-align: right;
    padding-left: 50%;
    position: relative;
    border-bottom: 1px solid var(--border-light);
  }

  .comparison-table td:last-child {
    border-bottom: none;
  }
  
  .comparison-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    color: var(--title-green);
  }
}

@media (min-width: 992px) {
  .hero {
    display: grid;
    grid-template-columns: 55% 45%; /* 55% for image, 45% for text */
    padding: 0; /* Remove padding from the container */
    background-color: transparent; /* Remove the green background */
    color: var(--dark); /* Text color changes to dark on light background */
  }

  .hero h1, .hero p {
    color: inherit; /* Inherit the new dark text color */
  }
  
  .hero-background-image {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/hero.webp');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
  }
  
  .hero-content {
    text-align: left;
    padding: clamp(3rem, 6vw, 6rem); /* Add padding to the text column instead */
  }

  .hero .cta-buttons {
    justify-content: flex-start;
  }
}


@media (min-width: 1200px) {
  /* Layouts */
  .grid-2-col, .grid-2-col-reversed {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2-col-reversed .image-content {
    order: 1;
  }
  #producten .grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    padding: 0;
    width: auto;
    position: static;
    left: auto;
    transform: none;
  }
  
  /* Product card redesign for desktop */
  .product-card {
    flex-direction: column; /* Vertical layout */
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
    flex: auto;
  }
  .product-card img {
      max-width: 100%; /* Larger image */
      order: -1; /* Image on top */
  }
  .product-card h3 {
      margin-top: 0;
  }
  .product-card .btn-link {
      display: none; /* Hide button */
  }
  
  .about-section, .legal-content {
    flex-direction: row;
    gap: 2rem;
  }
  .about-image {
    max-width: 300px;
    margin-bottom: 0;
  }

  .promise-grid {
      grid-template-columns: repeat(6, 1fr);
  }
  
  /* Header */
  .site-header { padding: 1rem 2rem; }
  nav.desktop-nav { display: flex; }
  .hamburger-menu { display: none; }

  /* General */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.1rem; margin-bottom: 2rem; }
  h3 { font-size: 1.5rem; }
  main {
     padding-top: 120px;
  }
  
  /* Other components */
  .cookie-banner { flex-direction: row; }
  .cookie-banner p { margin-bottom: 0; }
  
}

.partner-grid {
  display: none; 
}

/* BEGIN OranjeEco Tech Gallery Stable + LeftRight */
/* Restores the intended left/right split and prevents image-jump on swap */

/* --- Left/Right section layout --- */
.tech-section {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 2rem;
}
.tech-section.reversed {
  flex-direction: row-reverse;
}

/* --- Text column --- */
.tech-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

/* --- Gallery column --- */
.tech-gallery-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  position: relative;
}

/* Stable main viewport (does NOT change size per image) */
.tech-gallery-main {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Fixed thumbnail strip height so viewport doesn't jump */
.tech-gallery-thumbnails {
  margin-top: 10px;
  flex: 0 0 60px;
  height: 60px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
}
.tech-gallery-thumb {
  height: 100%;
  width: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.tech-gallery-thumb.active, .tech-gallery-thumb:hover {
  opacity: 1;
}

/* Mobile: stack */
@media (max-width: 768px) {
  .tech-section,
  .tech-section.reversed {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
  }
  .tech-gallery-container {
    width: 100%;
    aspect-ratio: 4/3;
    margin-top: 1rem;
  }
}
/* END OranjeEco Tech Gallery Stable + LeftRight */

/* 1) Prevent flex children from forcing overflow (global-safe) */
.values-grid .value-item,
.values-grid .value-item > div {
  min-width: 0;
}

/* 2) Mobile: stack expertise cards to 1 column + smaller icons */
@media (max-width: 768px) {

  /* Inline style sets 2 columns; override it */
  .values-grid {
    grid-template-columns: 1fr !important;
  }

  /* Make each item readable on narrow screens */
  .values-grid .value-item {
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  /* Inline style sets 100px; override it */
  .values-grid .value-item svg.icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px;
  }

  /* Extra safety for long tokens */
  .values-grid strong,
  .values-grid div {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* 3) Optional global mobile “tables never break the page” safety */
@media (max-width: 768px) {
  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

  :root { --header-h: 90px; } /* fallback */

  /* Mobile menu starts BELOW header and fills remaining height */
  .nav-links-mobile{
    top: var(--header-h);
    height: calc(100% - var(--header-h));
    padding-top: 0;              /* overrides your old 90px */
  }
/* Product Card Image Fix */
.product-card img {
    width: 100%;           /* Full width of the card */
    height: 250px;         /* Fixed height for alignment */
    object-fit: cover;     /* Crops image to fill area without stretching */
    /* object-fit: contain;   <-- Use this instead if you don't want ANY cropping */
    border-radius: 8px 8px 0 0; /* Optional: matches card styling */
    background-color: #f0f0f0; /* Optional: background for 'contain' mode */
}
/* Add this to your styles */
.promise-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Forces flex items (like the button) to the left */
    text-align: left;        /* Forces text to the left */
}

/* OE_SCROLL_HOVER_CSS_V2 */
@media (max-width: 1199.98px) {
  .promise-card.is-active { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
  .promise-card.is-active .promise-icon { transform: scale(1.4) rotate(5deg); }
  .product-card.is-active { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
}

