html, body {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
}


body {
    font-family: 'IBM Plex Sans', sans-serif;
    margin: 0;
    padding: 0; 
    height: 100dvh;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    background-image: url('../assets/arc-de-triomphe-christo-2.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: 1s scale;
}

/* Add a 20% black overlay */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.35); /* 20% opacity black */
    z-index: -1; /* Keep overlay behind the content */
}

body, body::before {
    height: calc(var(--vh, 1vh) * 100);
}

main {
    display: flex;
    flex-grow: 1; 
    align-items: center; 
    padding: 48px; 
    min-height: 0; 
}

main section {
    margin: 0; /* Remove default margins on sections */
}

main section h1 {
    margin-top: 24px;
}

/* Color Palette */
:root {
    --primary: #0457D2;
    --dark-primary: #00317A;
    --accent: #D9F027;

    /* Greyscale */
    --grey-50: #FAFAFA;
    --grey-100: #F0F0F0;
    --grey-200: #E0E0E0;
    --grey-300: #D0D0D0;
    --grey-400: #BFBFBF;
    --grey-500: #AFAFAF;
    --grey-600: #909090;
    --grey-700: #707070;
    --grey-800: #505050;
    --grey-900: #303030;
}

/* Page container */
.container, .header-container {
    margin: 0;
    padding: 32px;
}

/* Grid system */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow-x: hidden;
}



/* Column layout */
[class^="col-"] {
    box-sizing: border-box;
}

/* 12-column responsive grid */
.col-1  { flex: 0 0 calc(8.33% - 16px);  }
.col-2  { flex: 0 0 calc(16.66% - 16px); }
.col-3  { flex: 0 0 calc(25% - 16px);    }
.col-4  { flex: 0 0 calc(33.33% - 16px); }
.col-5  { flex: 0 0 calc(41.66% - 16px); }
.col-6  { flex: 0 0 calc(50% - 16px);    }
.col-7  { flex: 0 0 calc(58.33% - 16px); }
.col-8  { flex: 0 0 calc(66.66% - 16px); }
.col-9  { flex: 0 0 calc(75% - 16px);    }
.col-10 { flex: 0 0 calc(83.33% - 16px); }
.col-11 { flex: 0 0 calc(91.66% - 16px); }
.col-12 { flex: 0 0 calc(100%);   }

/* Typography */
h1, h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    color: var(--grey-50);
}

h1 {
    font-size: 9rem;
    line-height: 1.07;
}

h1 {
    opacity: 0; /* Start with the text invisible */
    transform: translateX(-5%); /* Start the text from the left */
    transition: opacity 1.5s ease; /* Smooth transition for opacity */
}

/* Add the slide-in animation */
h1.animate {
    opacity: 1; /* Fade in the text */
    transform: translateX(0); /* Move the text to its original position */
    transition: transform 1.7s ease-out, opacity 1.7s ease-in-out; /* Animate both the transform and opacity */
}



h2 {
    font-size: 6rem;
    line-height: 1.12;
}

p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
    line-height: 1.40;
    color: var(--grey-50);
}




.highlight {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 300;
    font-style: italic;
    display: inline-block;  /* Allow transform to work */
    transform: skewX(12deg);  /* Start with a slight negative skew (fake slant) */
    transition: transform 1.5s ease; 
}


.highlight.loaded {
    transform: skewX(0deg);  
}


.header-container {
    padding-top: 32px;
}

.header-container img {
    max-width: 165px;
}

/* Footer container */
footer {
    margin-top: 60px;
    margin-bottom: 32px; /* Ensure 32px space from the bottom of the page */
    background-color: transparent;
}

/* Footer grid system */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* Add gap between columns */
}

footer .container {
    padding: 0 32px;
}

/* Footer columns */
.footer-col {
    box-sizing: border-box;
}

.footer-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}

.city-footer p {
    letter-spacing: 0.03rem;
    color: var(--grey-700);
}

.copyright {
    text-align: right;
}

.footer-container .col-6 {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; 
    }

    .header-container {
        flex-direction: column;
    }

    .newsletter-form-section {
        flex: 0 0 100%; /* Make the form span 100% on mobile */
    }

    /* Stack all columns on mobile */
    [class^="col-"] {
        flex: 0 0 100%;
    }

}

/* Buttons */
.newsletter-form .button {
    background-color: var(--accent);
    color: var(--grey-900);
    border: none;
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    white-space: nowrap; /* Prevents button text from breaking */
}

.newsletter-form .button:hover {
    background-color: rgba(217, 240, 39, 0.7);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left align */
    margin-top: 20px;
}

/* Input & Button in One Line */
.input-group {
    display: flex;
    align-items: center;
    margin: 12px 0;
}

.input-group .email {
    margin-right: 16px;
}

.mc_fieldset {
    border: none; /* Removes default fieldset border */
    padding: 0; /* Ensures no extra space */
    margin: 0; /* Keeps alignment clean */
}

.content__gdpr .gdpr {
    accent-color: var(--accent); /* Change default color (modern browsers) */
    cursor: pointer; /* Make it clear it's clickable */
    margin-right: 6px; /* Space between checkbox and text */
    border: none;
}


/* Email Input */
.newsletter-form input {
    padding: 10px;
    border: 1px solid var(--grey-600);
    border-radius: 16px;
    font-size: 1rem;
    color: var(--grey-900);
    outline: none;
    background-color: rgba(255, 255, 255, 0.7)
}
.newsletter-form .input2 {
    width: 0;
    padding: 0;
    border: none;
    display: none;
}

.newsletter-form .gdpr {
border:none;
}

/* Placeholder Styling */
.newsletter-form input::placeholder {
    color: var(--grey-600);
}

/* Submit Button */
.newsletter-form button {
    background-color: var(--accent);
    color: var(--grey-900);
    border: none;
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    white-space: nowrap; /* Prevents button text from breaking */
}


/* Disclaimer */
.newsletter-form .disclaimer {
    font-size: 0.8rem;
    color: var(--grey-200);
    text-align: left;
    max-width: 400px;
    font-weight: 400;
    letter-spacing: 0.02rem;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top: 3px solid #F85026;
    animation: spin 1s linear infinite;
}

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


.input-error {
    border: 2px solid red;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
}

.accent {
    color: var(--accent);
}

/* Background Blur Effect */
.blurred {
    filter: blur(5px);
    transition: filter 0.3s ease-in-out;
}

/* Blur only the main content */
.blurred {
    filter: blur(5px);
    transition: filter 0.3s ease-in-out;
}

/* Ensure the popup itself is not affected */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Success Popup Box */
.success-popup {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 320px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    animation: fadeIn 0.3s ease-in-out;
    backdrop-filter: none; 
}
.success-popup p {
    font-size: 1rem;
    font-weight: 400;
}

/* Button to Close Popup */
.close-popup {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--accent);
    font-weight: 400;
    color: var(--grey-900);
    border: 1px var(--grey-200);
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.close-popup:hover {
    background: rgba(217, 240, 39, 0.7);
}



/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Apply col-12 to all columns */
    [class^="col-"] {
        flex: 0 0 100%;
    }

    /* Set padding/margin for mobile devices */
    body, .main .container, .header-container, .footer-container {
        padding: 12px;
        margin: 0;
    }

    main section h1 {
        margin-bottom: 30px;
    }

    .container {
        padding: 0 12px;
        margin: 48px 0px 60px 0px;
    }

    .main {
        flex-grow: 1;
    }

    footer {
        margin-top: auto;
        margin-bottom: 36px; 
    }

    .city-footer {
        display: none;
    }

    footer .footer-text {
        font-size: 0.85rem;
    }

    .copyright {
        text-align: center;
    }

    /* Adjust font sizes for h1 and h2 */
    h1, h2 {
        font-size: 2.5rem; /* Shrink h1 and h2 to 48px */
        line-height: 1.1; /* Adjust line height for better spacing */
    }

    /* Optional: Adjust other text elements if needed */
    p, .footer-text {
        font-size: 1.2rem; /* Adjust font size for better readability */
    }

    .newsletter-form input {
        padding: 12px;
        width: 100%;
      }
      .content__gdpr .gdpr {
        width: auto;
      }
    .input-group {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .input-group .email {
        margin-right: 0px;
        margin-bottom: 16px;
    }
#line-break {
    display: none;
}
}


@media (max-width: 1240px)  and (min-width: 1025px) {
    h1 {
        font-size: 6rem; /* Shrinks h1 for screens 1240px or smaller */
    }
    #line-break {
        display: none;
    }
}

/* Adjust the font-size of h1 for medium devices like tablets */
@media (max-width: 1024px) and (min-width: 768px) {
    h1 {
        font-size: 4rem; /* Adjust the size for medium screens (tablets) */
    }
    #line-break {
        display: none;
    }
}

@media (min-width: 1600px) {
    /* Adjustments for very large screens */
    body {
        height: 100vh;
        margin: 120px;
        padding: 0 80px;
        overflow: hidden;
        box-sizing: border-box;
    }

    body p {
        font-size: 1.4rem; /* Larger text for readability */
    }

    main {
  
    }

    header {
        margin-bottom: 80px;
    }

    footer {
        margin-top: 120px;
    }

    h1 {
        font-size: 10rem; /* Huge text size for ultra-wide screens */
    }

    button {
        font-size: 1.4rem;
        padding: 20px 40px; /* Larger button for bigger screens */
    }

}


@media screen and (max-height: 500px) and (orientation: landscape) {
    body {
        background-size: 250%;
    }

main section h1 {
    margin: 12px 0px;
    padding-top: 0px;
}

    body::before {
        height: 200%;
    }

}