/* ========================================
   FOOTER STYLES - CLEAN STRUCTURE
   ======================================== */

/* FORCE WHITE TEXT IN WHITE CARDS - OVERRIDE PREVIOUS RULES */
.site-footer .latest-article,
.site-footer .latest-article *:not(.footer-button),
.site-footer .contact-form,
.site-footer .contact-form *:not(.footer-button) {
  color: #fff !important;
  background: transparent !important;
  -webkit-text-fill-color: #fff !important;
}

.site-footer .latest-article .footer-button,
.site-footer .contact-form .footer-button {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.site-footer .latest-article p,
.site-footer .contact-form p,
.site-footer .latest-article span:not(.footer-button),
.site-footer .contact-form span:not(.footer-button) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.latest-article h2,
.contact-form h2 {
  color: #fff !important;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Latest Article Content */
.article-content h4 {
  color: #fff !important;
  margin: 0 0 1rem 0;
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.article-content p {
  color: #fff !important;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Footer Hero Image */
.footer-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.footer-hero-image {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

/* Main Footer Container */
.site-footer {
  background: transparent;
  color: #fff;
  margin: 0;
  padding: 0;
}

.footer-main {
  background: #000;
  padding: 3rem 0 2rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

/* Footer Columns */
.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h2 {
  color: #fff;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
}

/* Company Details Column */
.company-details {
  color: #fff;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.company-info strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: #00fff0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00c875;
}

/* Latest Article & Contact Form - Dark Cards with Plan Picker Styling */
.latest-article, 
.contact-form {
  background: linear-gradient(145deg, #1a1f2e, #0f1419) !important;
  color: #fff !important;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 2rem;
  border: 2px solid rgba(0, 255, 240, 0.3);
  position: relative;
  overflow: hidden;
}

/* Add gradient border effect like plan picker */
.latest-article::before,
.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(145deg, #00fff0, #00c875, transparent, transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.latest-article h2,
.contact-form h2 {
  color: #222 !important;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Force all text in white cards to be dark */
.latest-article,
.latest-article *,
.contact-form,
.contact-form * {
  color: #222 !important;
  background: transparent !important;
}

.latest-article h2,
.latest-article h3,
.latest-article h4,
.latest-article h5,
.latest-article h6,
.contact-form h2,
.contact-form h3,
.contact-form h4,
.contact-form h5,
.contact-form h6 {
  color: #222 !important;
}

.latest-article p,
.latest-article span,
.latest-article div,
.contact-form p,
.contact-form span,
.contact-form div {
  color: #555 !important;
}

/* Latest Article Content */
.article-content h4 {
  color: #222 !important;
  margin: 0 0 1rem 0;
  font-weight: 600;
  font-size: 1.2rem;
}

.article-content p {
  color: #555 !important;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

/* Contact Form Styling - White Text */
.form-group {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.form-group label {
  display: block;
  color: #fff !important;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00c875;
  background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Footer Buttons */
.footer-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: linear-gradient(90deg, #00c875 0%, #00fff0 100%) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-top: auto !important;
}

.footer-button:hover {
  background: linear-gradient(90deg, #00fff0 0%, #00c875 100%) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

/* Footer Bottom */
.footer-bottom {
  background: #000;
  border-top: 1px solid #333;
  padding: 1rem 0;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #00fff0;
}

.footer-copyright p {
  color: #fff;
  margin: 0;
  font-size: 0.9rem;
}

.footer-copyright a {
  color: #00fff0;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #00c875;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-menu ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Legacy compatibility - remove broken CSS */
.footer .contact-form h2 {
  margin-bottom: 1.2rem;
  color: linear-gradient(#00c875 0%, #00fff0 100%);
  font-size: 1.5rem;
  text-align: center;
}
.footer .contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer .contact-form label {
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: #222;
}
.footer .contact-form input[type="text"],
.footer .contact-form input[type="email"],
.footer .contact-form textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  background: #fafafa;
  transition: border 0.2s;
}
.footer .contact-form input[type="text"]:focus,
.footer .contact-form input[type="email"]:focus,
.footer .contact-form textarea:focus {
  border: 1.5px solid #00c875;
  outline: none;
}
.footer .contact-form textarea {
  min-height: 90px;
  resize: vertical;
}
.footer .contact-form input[type="submit"],
.footer .contact-form input[type="submit"]:not([disabled]) {
  background: linear-gradient(90deg, #00c875 0%, #00fff0 100%);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, box-shadow 0.2s;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
}
.footer .contact-form input[type="submit"]:hover {
  background: linear-gradient(90deg, #00fff0 0%, #00c875 100%);
  box-shadow: 0 4px 16px rgba(0,200,117,0.12);
}

/* Alleen footer: layout en containers */
.footer .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer .footer-column {
  flex: 1;
  min-width: 200px;
  color: #fff;
}
.footer .footer-logo {
  max-height: 40px;
  margin-bottom: 0.5rem;
}
.footer .footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer .footer-nav li {
  margin-bottom: 0.5rem;
}
.footer .footer-nav a {
  color: #fff;
  text-decoration: none;
}
.footer .footer-nav a:hover {
  color: #00fff0;
}
.footer .social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.footer .social-icon svg {
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(39,174,96,0.08);
}
.footer .social-icon:hover svg {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(39,174,96,0.18);
}
.footer .footer-bottom {
  text-align: center;
  font-size: 0.875rem;
  color: #fff;
  padding-top: 1rem;
  border-top: 1px solid #222;
  margin-top: 2rem;
}
.footer h1, .footer h2, .footer h5, .footer h6, .footer p, .footer label, .footer span, .footer a, .footer-column h1, .footer-column h2, .footer-column h5, .footer-column h6, .footer-column p, .footer-column label, .footer-column span, .footer-column a {
  color: #fff !important;
}
.footer .footer-latest-article h2,
.footer .footer-latest-article h3,
.footer .footer-latest-article h4,
.footer .footer-latest-article p {
  color: #222 !important;
}
.footer .contact-form, .footer-column .contact-form {
  background: #fff;
  color: #222;
}
.footer .contact-form h2, .footer-column .contact-form h2,
.footer .contact-form label, .footer-column .contact-form label,
.footer .contact-form p, .footer-column .contact-form p,
.footer .contact-form input, .footer-column .contact-form input,
.footer .contact-form textarea, .footer-column .contact-form textarea {
  color: #222 !important;
}

/* Zorg dat de footer-menu's netjes afbreken */
.footer .footer-menu, .footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

/* Mobiel & tablet optimalisatie voor de footer */
@media (max-width: 900px) {
  .footer.row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.2rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .footer-company-info,
  .footer-latest-article,
  .footer-column > .contact-form {
    min-width: 0 !important;
    max-width: 98vw !important;
    width: 100% !important;
    margin: 0 auto 1.2rem auto !important;
    box-sizing: border-box !important;
  }
  .footer-latest-article,
  .footer-column > .contact-form {
    border-radius: 1.2rem !important;
  }
  .footer .footer-container > div {
    flex-direction: column !important;
    align-items: stretch !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .footer .footer-bottom {
    text-align: center !important;
    margin-top: 1rem !important;
  }
}
@media (max-width: 600px) {
  .footer .footer-container {
    padding: 0 0.5rem;
  }
  .footer .footer-bottom {
    font-size: 0.8rem;
    margin-bottom: 2rem;
  }
  .footer .footer-menu, .footer .footer-nav {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* === MCP Update: Remove white gap above footer === */
.image-footer{ display:block; width:100%; margin:0; padding:0; line-height:0; }
.image-footer + * { margin-top: 0 !important; }
.footer, .footer * { background-clip: padding-box; }

/* MCP fix: ensure footer doesn't overflow */
html, body { margin:0; padding:0; overflow-x:hidden; }
.footer-main { width:100% !important; left:auto !important; transform:none !important; }
