/* EnviroNest Common Styles - Shared across all pages */

/* Global font override & reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

body, 
h1, h2, h3, h4, h5, h6,
p, div, span, a, li, ul, ol,
button, input, textarea, select {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

html, body {
    overflow-x: hidden !important;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Hide WordPress elements - Universal */
.wp-site-blocks h1:first-child,
.wp-block-post-title,
.entry-title,
.page-title,
.site-title,
.site-branding,
.site-branding h1,
.site-branding h2,
body .site-title,
body .site-branding,
body .site-branding h1,
body .site-branding h2,
body header h1:not(.hero h1):not(.custom-header h1),
body header h2:not(.hero h2):not(.custom-header h2),
body .wp-block-site-title,
body .wp-block-site-title a,
body #masthead,
body #masthead h1,
body #masthead h2,
body .site-header,
body .site-header h1,
body .site-header h2,
.wp-singular .site-title,
.page-template .site-title,
body.logged-in .site-title,
.admin-bar .site-title,
#header,
#header h1,
#headerImg,
#headerImg h1,
#header .site-title,
#headerImg .site-title,
div[id="header"],
div[id="headerImg"],
div[id="header"] h1,
div[id="headerImg"] h1,
body h1:not(.environest-landing h1):not(.hero h1):not(.section-title):not(.custom-header h1):not(.content-area h1),
body #header,
body #headerImg,
.site-header,
.wp-block-template-part header,
.wp-block-group.is-layout-constrained > h1,
.wp-block-group h1:first-child {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Shared across all pages */
.custom-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
	overflow-x: hidden !important;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 60px; /* Zorgt voor consistente hoogte */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #333 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0a754f !important;
}

/* Content Areas - Shared */
.content-area {
    padding: 4rem 0;
    background: #fff;
}

.content-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 12px;
}

.content-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0a754f;
    margin-bottom: 1rem;
}

.content-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles - Shared */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #0a754f;
    margin-bottom: 3rem;
    font-weight: bold;
}

/* Buttons - Shared */
.amazon-btn, 
.contact-button,
.cta-button,
.pdf-download {
    display: inline-block;
    background: #0a754f;
    color: white !important;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(10, 117, 79, 0.3);
    margin: 15px 10px;
}

.amazon-btn:hover,
.contact-button:hover,
.cta-button:hover,
.pdf-download:hover {
    background: #085a3d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 117, 79, 0.4);
    color: white !important;
    text-decoration: none;
}

.amazon-btn-secondary {
    font-size: 1rem;
    padding: 12px 25px;
}

.amazon-btn-icon,
.contact-icon,
.pdf-icon {
    margin-right: 8px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.pdf-icon {
    font-size: 1.2em;
}

/* Info Boxes - Shared */
.info-box {
    background: #f8fcf8;
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #0a754f;
}

.info-box h3 {
    color: #0a754f;
    margin-top: 0;
    margin-bottom: 1rem;
}

.warning-box {
    background: #fff8e1;
    border: 2px solid #ffeb3b;
    border-left: 4px solid #ff9800;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box h3 {
    color: #ff9800;
    margin-bottom: 1rem;
}

.tip-box {
    background: #e8f5ff;
    border: 2px solid #b3d9ff;
    border-left: 4px solid #007acc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.tip-box h3 {
    color: #007acc;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Lists with checkmarks - Shared */
.features-list ul,
.info-box ul:not(.no-style),
.tip-box ul {
    list-style: none;
    margin: 1rem 0;
}

.features-list li,
.info-box ul:not(.no-style) li,
.tip-box li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.features-list li:before,
.info-box ul:not(.no-style) li:before,
.tip-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0a754f;
    font-weight: bold;
    font-size: 1.2rem;
}

.tip-box li:before {
    color: #007acc;
}

/* Contact Sections - Shared */
.contact-section {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    padding: 3rem 0;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-button {
    padding: 1.5rem 2rem;
    display: block;
}

/* Footer - Shared across all pages */
.custom-footer {
    background: linear-gradient(135deg, #0a754f 0%, #085a3d 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
}

/* Language Switcher Styling */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.language-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.language-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.language-link.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.language-link .flag {
    font-size: 16px;
}

.language-link .lang-text {
    font-size: 12px;
    font-weight: 600;
}

/* Shimmer effect for language links */
.language-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.language-link:hover::before {
    left: 100%;
}

/* Footer Bottom Layout */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    flex: 1;
}

/* Mobile Language Switcher */
.language-switcher-mobile {
    display: none;
    gap: 8px;
}

.language-link-mobile {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    color: #fff;
}

.language-link-mobile:hover,
.language-link-mobile.active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    color: #fff;
    text-decoration: none;
}

.svg-logo {
    transform: scale(9) !important;
    margin-left: -45px !important;
    margin-top: 25px !important;
    transform-origin: left center !important;
    display: inline-block !important;
}

/* CSS Flag Icons */

/* Base flag styling */
.flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    position: relative;
    font-size: 16px;
}

/* German Flag */
.flag-de {
    background: linear-gradient(to bottom, 
        #000000 0%, #000000 33%, 
        #dd0000 33%, #dd0000 66%, 
        #ffce00 66%, #ffce00 100%);
}

/* UK Flag - Realistic Union Jack */
.flag-gb {
    background: #00247d;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

/* White diagonal stripes background */
.flag-gb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 45%, white 45%, white 55%, transparent 55%),
                linear-gradient(-45deg, transparent 45%, white 45%, white 55%, transparent 55%);
    z-index: 1;
}

/* Red cross and diagonal stripes */
.flag-gb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Vertical red stripe */
        linear-gradient(90deg, transparent 44%, #cf142b 44%, #cf142b 56%, transparent 56%),
        /* Horizontal red stripe */
        linear-gradient(0deg, transparent 42%, #cf142b 42%, #cf142b 58%, transparent 58%),
        /* Diagonal red stripes */
        linear-gradient(45deg, transparent 47%, #cf142b 47%, #cf142b 53%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, #cf142b 47%, #cf142b 53%, transparent 53%);
    z-index: 2;
}

/* Dutch Flag */
.flag-nl {
    background: linear-gradient(to bottom, 
        #ae1c28 0%, #ae1c28 33%, 
        #ffffff 33%, #ffffff 66%, 
        #21468b 66%, #21468b 100%);
}

/* Alternative: Simple colored circles if flags don't work */
.flag-simple-de {
    background: #ffce00;
    border: 2px solid #dd0000;
}

.flag-simple-gb {
    background: #012169;
    border: 2px solid #fff;
}

.flag-simple-nl {
    background: #ae1c28;
    border: 2px solid #21468b;
}

/* Fallback: Text-based if all else fails */
.flag-text-de::after { content: 'DE'; }
.flag-text-gb::after { content: 'EN'; }
.flag-text-nl::after { content: 'NL'; }

/* Mobile Language Section */
.mobile-language-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(10, 117, 79, 0.2);
}

.mobile-lang-title {
    color: #0a754f;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-language-switcher {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-lang-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px; /* Meer padding links en rechts */
    background: rgba(10, 117, 79, 0.1);
    border: 1px solid rgba(10, 117, 79, 0.2);
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 0 8px; /* Extra margin voor meer ruimte van de randen */
}

.mobile-lang-link:hover {
    background: rgba(10, 117, 79, 0.15);
    border-color: rgba(10, 117, 79, 0.4);
    transform: translateX(5px);
    color: #0a754f;
    text-decoration: none;
}

.mobile-lang-link.active {
    background: rgba(10, 117, 79, 0.2);
    border-color: #0a754f;
    color: #0a754f;
    font-weight: 600;
}

.mobile-lang-link .flag {
    width: 20px;
    height: 14px;
}

.mobile-lang-link .lang-text {
    font-size: 1rem;
}

/* Mobile Language Section - FIXED VERSION */
.mobile-language-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(10, 117, 79, 0.2);
    text-align: center; /* Centreer de hele sectie */
}

.mobile-lang-title {
    color: #0a754f;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-language-switcher {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centreer de items horizontaal */
    gap: 12px;
    width: 100%;
}

.mobile-lang-link {
    display: flex;
    align-items: center;
    justify-content: center; /* Centreer inhoud van de link */
    gap: 12px;
    padding: 12px 24px;
    background: rgba(10, 117, 79, 0.1);
    border: 1px solid rgba(10, 117, 79, 0.2);
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 80%; /* Vaste breedte voor consistentie */
    max-width: 250px; /* Maximum breedte */
    min-width: 200px; /* Minimum breedte */
    margin: 0 auto; /* Centreer de link zelf */
    text-align: center; /* Extra centrering voor de tekst */
}

.mobile-lang-link:hover {
    background: rgba(10, 117, 79, 0.15);
    border-color: rgba(10, 117, 79, 0.4);
    transform: translateY(-2px); /* Verander van translateX naar translateY voor betere UX */
    color: #0a754f;
    text-decoration: none;
}

.mobile-lang-link.active {
    background: rgba(10, 117, 79, 0.2);
    border-color: #0a754f;
    color: #0a754f;
    font-weight: 600;
}

.mobile-lang-link .flag {
    width: 20px;
    height: 14px;
    flex-shrink: 0; /* Voorkom dat de vlag krimpt */
}

.mobile-lang-link .lang-text {
    font-size: 1rem;
    flex: 1; /* Laat tekst de ruimte vullen */
    text-align: center; /* Centreer de tekst binnen zijn ruimte */
}

/* Mobile nav links ook centreren voor consistentie */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centreer alle nav items */
    gap: 1rem;
    width: 100%;
}

.mobile-nav-links > a:not(.mobile-lang-link) {
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 80%; /* Zelfde breedte als language links */
    max-width: 250px;
    min-width: 200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links > a:not(.mobile-lang-link):hover {
    background: #e9ecef;
    color: #0a754f;
    transform: translateY(-2px); /* Consistente hover effect */
    text-decoration: none;
}

/* Extra specifieke styling voor perfecte centrering */
.mobile-menu .mobile-language-switcher {
    align-items: center !important;
    justify-content: center !important;
}

.mobile-menu .mobile-lang-link {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Reset voor eventuele conflicterende WordPress theme styles */
.mobile-language-switcher * {
    box-sizing: border-box;
}

/* Voor als je WordPress theme conflicterende styles heeft */
.mobile-language-switcher .mobile-lang-link {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

.mobile-language-switcher .mobile-lang-link:hover {
    transform: translateY(-2px) !important;
}

/* Alternative hamburger styling - WORKING VERSION */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    margin-left: auto;
    outline: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 6px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.hamburger:hover span {
    background: #0a754f;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

/* Mobile Responsive - Shared */
@media (max-width: 768px) {
    .content-header h1 {
        font-size: 2rem;
    }
    
    .content-header p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
        margin-left: auto; /* Zorgt ervoor dat hamburger rechts blijft */
    }
    
    /* Zorg ervoor dat nav container flexbox blijft */
    .nav {
        justify-content: space-between;
    }
    
    .contact-buttons {
        grid-template-columns: 1fr;
    }
    
    .amazon-btn,
    .contact-button,
    .cta-button {
        display: block;
        text-align: center;
        margin: 1rem 0;
        font-size: 1rem;
        padding: 15px 25px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Language Switcher Mobile Responsive */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .language-switcher {
        justify-content: flex-start;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .language-switcher-mobile {
        display: flex;
        order: -1;
    }
    
    /* Hide desktop language switcher on mobile */
    .footer-section:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .language-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-link .flag {
        font-size: 14px;
    }
    
    .language-link .lang-text {
        font-size: 11px;
    }
    
    .mobile-menu {
        width: 280px;
        padding: 1.5rem;
    }
    
    .mobile-lang-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .mobile-lang-link .flag {
        width: 18px;
        height: 12px;
    }
}

/* HEADER SCROLLBAR FIX */
.custom-header {
    overflow-x: hidden !important;
}

html, body {
    overflow-x: hidden !important;
}
