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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fafafa;
}

/* Top Header */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.topbar.transparent {
    background: rgba(255, 255, 255, 0.6);
    border-color: transparent;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px; /* keep padding the same */
    height: 110px; /* increase header height a bit more */
}

.brand { /* keep large logo aligned within header */
    position: relative;
    display: block;
    height: 110px;
}

.brand-logo {
    height: 274px; /* keep current size */
    width: auto;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.main-nav a {
    color: #2c3e50;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 600;
}

.main-nav a:hover {
    color: #667eea;
}

.hamburger {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 767px) {
    .topbar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 110px; /* Aligns with header height */
        left: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        margin: 0;
        padding: 15px 24px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: center;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .brand-logo {
        height: 100px; /* Adjust logo size for mobile */
        width: auto;
        position: static;
        transform: none;
    }

    .brand {
        height: auto;
    }
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.highlight {
    background: linear-gradient(120deg, #a8e6cf 0%, #ffd93d 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
    font-weight: 600;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.cta-button.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

.cta-button.full-width {
    width: 100%;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 168px 0 80px; /* keep content clear of taller header */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* removed inline logo next to headline per request */

.hero-headline {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
    text-align: justify; /* justify while staying in left column */
}

.hero-cta {
    margin-top: 2rem;
}

.cta-subtext {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: left;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-photo {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.hero-photo:hover {
    transform: rotate(0deg) scale(1.02);
}

.floating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: #667eea;
    padding: 12px 16px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-badge span {
    font-size: 1.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Service Sections */
.service-section {
    padding: 100px 0;
    position: relative;
}

.service-section.alternate {
    background: #fff7cc; /* pastel yellow */
    color: #2c3e50;
}

.service-section.alternate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='m0 40l40-40h-40z'/%3E%3Cpath d='m0 40l40-40h-40z' transform='matrix(-1 0 0 1 40 0)'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.service-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.service-photo {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.service-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.service-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-description strong {
    color: #ff6b6b;
    font-weight: 600;
}

.service-section.alternate .service-description strong {
    color: #2c3e50; /* black-like */
    font-weight: 700; /* make it bold */
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.check {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-section.alternate .check {
    color: #ffd93d;
}

/* Final CTA Section */
.final-cta {
    background: #e6f7ec; /* pastel green */
    color: #2c3e50;
    padding: 100px 0;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-align: center;
}

.cta-text > p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0.95;
    line-height: 1.8;
}

/* Trust Elements */
.trust-elements {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stars {
    color: #ffd93d;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #a8e6cf;
}

.credentials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch; /* make all items equal height */
}

.credential-item {
    display: flex;
    flex-direction: column; /* stack title, subtext, image */
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    height: 100%;
}

.credential-item .icon { display: none; }

.credential-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.credential-item small {
    color: #2c3e50; /* make these subheadings black */
    font-size: 0.9rem;
}

.credential-image {
    display: block;
    margin-top: 0.75rem;
    width: 100%;
    max-width: 240px; /* consistent width */
    height: 150px; /* consistent height */
    object-fit: cover; /* keep aspect while filling */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Contact Form */
.contact-form-container {
    display: grid;
    grid-template-columns: 1fr; /* default single column on mobile */
    gap: 2rem;
    justify-items: center;
    align-items: center;
}

.madelein-photo-container {
    position: relative;
    text-align: center;
}

.madelein-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.photo-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.contact-form {
    background: rgba(255, 255, 255, 0.75);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 560px;
    margin: 0 auto; /* center horizontally */
    justify-self: center; /* ensure grid centers it */
}

.form-side-image-container {
    display: none; /* hidden on mobile */
}

.form-side-image {
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

@media (min-width: 992px) {
    .contact-form-container {
        grid-template-columns: 1fr 1fr; /* form left, image right */
        align-items: start;
    }
    .form-side-image-container { display: block; }
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    color: #2c3e50;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a8e6cf;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(168, 230, 207, 0.1);
}

.form-group select option {
    background: #2c3e50;
    color: white;
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: #1a252f;
    color: white;
    padding: 0.15rem 0 0.08rem; /* roughly half previous height */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* left logo, right CTA */
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.3rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center; /* center slogan under logo */
    justify-content: center;
    text-align: center;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-slogan {
    opacity: 0.85;
    margin-top: 0.4rem;
    max-width: 28ch; /* narrow to two lines */
}

.footer-tagline {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-logo { display: none; }

.footer-logo-img {
    height: 200px; /* keep visual balance within shorter footer */
    width: auto;
    position: static; /* inline */
    transform: none;
    margin-bottom: 0.1rem; /* less spacing under logo */
}

.footer-logo p {
    opacity: 0.8;
    margin-bottom: 0;
}

.footer-contact h4 {
    margin-bottom: 1rem;
    color: #a8e6cf;
}

.footer-cta {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 18px; /* tighter to fit shorter footer */
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.footer-cta:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.2rem; /* reduced */
    text-align: center;
    opacity: 0.6;
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .hero-headline {
        font-size: 3.2rem;
    }
    
    .service-content.left-image {
        grid-template-columns: 1fr 1.2fr;
    }
    
    .service-content.right-image {
        grid-template-columns: 1.2fr 1fr;
    }
    
    .trust-elements {
        grid-template-columns: 1fr 1fr;
    }
    
    .credentials {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-form-container {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .cta-text {
        text-align: left;
    }
    
    .cta-text h2,
    .cta-text > p {
        text-align: center;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    
    .hero-headline {
        font-size: 4rem;
    }
    
    .service-text h2 {
        font-size: 2.5rem;
    }
    
    .cta-text h2 {
        font-size: 3rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.cta-button.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.cta-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-badge {
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
.cta-button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #a8e6cf;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .highlight {
        background: yellow;
        color: black;
    }
}
