/**
 * Modern CSS voor Plettenburg Dieetadvies
 * Eigentijdse styling met verbeterde leesbaarheid
 */

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hidden { 
    display: none !important; 
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0 none;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: transparent;
    color: transparent;
    padding: 0;
    text-decoration: none;
    font-weight: 600;
    z-index: -1;
    border-radius: 0;
    transition: none;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.skip-link:focus {
    top: -40px;
    outline: none;
}

.slide {
    overflow-y: hidden !important;
    transition: height 0.5s ease-in !important;
}

/* Basic Layout */
html, body { 
    height: 100%; 
    border-top: none !important;
}

/* Verwijder paarse streep bovenaan */
html::before,
body::before,
html::after,
body::after,
#main::before,
#main::after,
.container::before,
.container::after {
    display: none !important;
    border-top: none !important;
}

/* Verwijder alle paarse borders bovenaan */
html,
body {
    border-top: none !important;
    border-top-color: transparent !important;
    outline: none !important;
}

#main,
.container,
.hero-section,
.content-section {
    border-top: none !important;
    border-top-color: transparent !important;
}

/* Verwijder alle paarse backgrounds bovenaan */
html::before,
body::before,
#main::before,
.container::before,
html,
body {
    background-image: none !important;
    background: none !important;
    background-color: transparent !important;
}

/* Specifieke regel om paarse strepen te verwijderen */
html,
body,
#main,
#header,
.container {
    border-top: 0 !important;
    border-top-width: 0 !important;
    border-top-style: none !important;
    border-top-color: transparent !important;
}

body { 
    display: flex; 
    flex-direction: column; 
    font-family: 'Droid Sans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #f8f9fa;
    border-top: none !important;
}

#main { 
    flex: 1 0 auto; 
    background: #ffffff;
    padding: 2rem 0 4rem;
    margin: 0;
    position: relative;
    min-height: calc(100vh - 200px);
    border-top: none !important;
}

#header, #footer { 
    flex: 0 0 auto; 
}

.container {
    max-width: 1200px;
    padding: 0 1.5rem;
    margin: 0 auto;
    border-top: none !important;
}

.widescreen .container { 
    max-width: 1400px; 
}

/* Header Styles */
#header { 
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(123, 68, 242, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: none !important;
    border-bottom: none !important;
}

#header::before,
#header::after {
    display: none !important;
    content: none !important;
}

#header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}

#logo {
    flex-shrink: 0;
}

#logo img {
    max-height: 80px;
    width: auto;
    display: block;
}

#nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

#nav ul li {
    margin: 0;
}

#nav a {
    color: #C394F2;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

#nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F29727;
    transition: width 0.3s ease;
}

#nav a:hover,
#nav a.active {
    color: #F29727;
}

#nav a:hover::after,
#nav a.active::after {
    width: 100%;
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #C394F2;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

#nav-toggle:hover {
    color: #F29727;
}

/* Main Content Styles */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: none !important;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: #7B44F2;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.4rem;
    color: #d6801a;
    font-weight: 500;
    margin: 0;
}

.content-section {
    margin-bottom: 4rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tekst over volle breedte, links uitgelijnd, zonder kader */
.text-content-full-width {
    max-width: 100%;
    width: 100%;
    text-align: left;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.6;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    text-align: left;
}

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

.image-content img {
    width: auto;
    height: auto;
    max-width: min(300px, 100%);
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Behoud originele formaat, voorkom opblazen op grote schermen */
}

.signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-style: italic;
    color: #7B44F2;
}

/* Locations Section */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.location-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(123, 68, 242, 0.15);
}

.location-card h2 {
    font-size: 1.5rem;
    color: #7B44F2;
    margin-bottom: 1rem;
    text-align: center;
}

.location-card img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.location-info p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
}

.location-info strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.notice-box {
    background: linear-gradient(to right, rgba(242, 202, 82, 0.08), #f8f9fa);
    border-left: 4px solid #F2CA52;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.notice-box p {
    margin: 0;
    color: #4a5568;
    font-style: italic;
}

.pricing-box {
    background: linear-gradient(to bottom, rgba(195, 148, 242, 0.05), #f8f9fa);
    border: 2px solid #7B44F2;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.pricing-box h3 {
    color: #7B44F2;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pricing-box p {
    margin: 0;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Certifications Section */
.certifications-section {
    margin-top: 4rem;
    padding: 2rem 0;
    background: #f8f9fa;
    border-radius: 12px;
}

.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.cert-link {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.cert-link:hover {
    transform: translateY(-4px);
}

.cert-link img {
    max-width: 120px;
    height: auto;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.cert-link:hover img {
    filter: grayscale(0%);
}

.cert-link .tooltiptext {
    visibility: hidden;
    opacity: 0;
    padding: 0.5rem 1rem;
    background: #7B44F2;
    color: #ffffff;
    text-align: center;
    border-radius: 8px;
    white-space: nowrap;
    position: absolute;
    z-index: 1000;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.cert-link .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #7B44F2;
}

.cert-link:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer Styles */
#footer {
    background: linear-gradient(135deg, #7B44F2 0%, #C394F2 100%);
    color: #ffffff;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1rem;
}

.footer-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
}

#footer a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

#footer i {
    font-size: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

h1 { 
    font-size: 2.5rem; 
}

h2 { 
    font-size: 2rem; 
    color: #7B44F2;
}

h3 { 
    font-size: 1.75rem; 
    color: #F29727;
}

h4 { 
    font-size: 1.5rem; 
    color: #F2CA52;
}

h5 { 
    font-size: 1.25rem; 
}

h6 { 
    font-size: 1.1rem; 
    font-weight: 500;
    font-style: italic;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

a {
    color: #F29727;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #F27052;
}

img { 
    max-width: 100%; 
    width: auto;
    height: auto;
}

/* Utility Classes */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-content {
        order: -1;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    #header > .container {
        padding: 1rem;
    }
    
    #nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }
    
    #nav.active {
        display: block;
    }
    
    #nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    #nav ul li {
        border-bottom: 1px solid #e9ecef;
    }
    
    #nav ul li:last-child {
        border-bottom: none;
    }
    
    #nav a {
        display: block;
        padding: 1rem;
        border-radius: 4px;
    }
    
    #nav a::after {
        display: none;
    }
    
    #nav-toggle {
        display: block;
    }
    
    .hero-section {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .content-section {
        margin-bottom: 3rem;
    }
    
    .text-content p,
    .lead {
        font-size: 1rem;
    }
    
    .certifications-grid {
        gap: 1.5rem;
    }
    
    .cert-link img {
        max-width: 100px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    #main {
        padding: 1.5rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .certifications-grid {
        gap: 1rem;
    }
    
    .cert-link img {
        max-width: 80px;
    }
    
    .footer-content {
        font-size: 0.9rem;
    }
}

/* Legacy support for old classes */
.imgfloat-right {
    float: none;
}

/* Additional modern improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Contact Form Styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Droid Sans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7B44F2;
    box-shadow: 0 0 0 3px rgba(123, 68, 242, 0.15);
}

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

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

.captcha-group {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.captcha-group label {
    font-size: 1.1rem;
    color: #7B44F2;
}

.captcha-sum {
    font-size: 1.3rem;
    font-weight: bold;
    color: #F29727;
    margin: 0.5rem 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Droid Sans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #7B44F2 0%, #C394F2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6a3ad8 0%, #b084e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 68, 242, 0.35);
}

.btn-secondary {
    background: #e0e0e0;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: #7B44F2;
    margin-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.contact-info-item i {
    color: #F2CA52;
    font-size: 1.2rem;
}

.form-group small,
.captcha-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Print styles */
@media print {
    #header, #footer, #nav-toggle {
        display: none;
    }
    
    #main {
        padding: 0;
        box-shadow: none;
    }
}
