/* ==========================
   Pre-Footer Styles
   ========================== */

   .pre-footer {
    background-color: #fff8f0; /* Light beige/off-white */
    padding: 40px 0;
    text-align: center;
}

.footer-img {
    width: 100%;
    max-width: 400px; /* Adjust as needed */
    height: auto;
    display: block;
    margin: 0 auto; /* Center the image horizontally */
    padding: 1rem 0;
    object-fit: contain; /* Ensures the image fits well within boundaries */
}

.prefooter-top{
    height: 50px;
    background-color: #2D88C3;
    ;
}

.pre-footer-container {
   /* Standard container width */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pre-footer-logo {
    max-width: 250px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 10px; /* Space if there was text below */
}

/* Style for the text below logo if it's separate HTML */
/* .pre-footer-text {
    color: #3498db;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}
.pre-footer-text span {
     color: #f1c40f;
} */


/* ==========================
   Site Footer Styles
   ========================== */

.site-footer {
    background: linear-gradient(90deg, #2D88C3 0%, #15415D 100%);
    padding: 60px 0;
    color: #e0f2f7; /* Light blueish-white text */
    font-size: 0.9rem;
}

.footer-container {
   /* Standard container width */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    /* Adjust column ratios if needed, e.g., contact/newsletter wider */
    grid-template-columns: repeat(4, 1fr);
    /* Or try: grid-template-columns: 1.5fr 1fr 1fr 1.5fr; */
    gap: 30px; /* Space between columns */
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
    text-transform: capitalize;
    position: relative;
    padding-bottom: 8px;
}
/* Optional underline effect for headings */
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #f1c40f; /* Accent color */
}

/* Column 1: Reach Us */
.reach-us .contact-item {
    display: flex;
    align-items: flex-start; /* Align items to top */
    margin-bottom: 15px;
    line-height: 1.6;
}

.reach-us .contact-icon {
    font-size: 1.1rem; /* Adjust icon font size */
    color: #fff; /* Icon color */
    margin-right: 12px;
    margin-top: 3px; /* Align icon slightly better with first line */
    width: 20px; /* Give icon fixed width */
    text-align: center;
}
/* Style if using image icons */
.reach-us .contact-icon-img {
     width: 25px; /* Adjust image icon size */
     height: 25px;
     margin-right: 12px;
}

.reach-us span {
    flex: 1; /* Allow text to take remaining space */
}
.reach-us a {
    color: #e0f2f7;
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
}
.reach-us a:hover {
    color: #fff;
}


/* Columns 2 & 3: Company & Legal Links */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column li a {
    color: #e0f2f7;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column li a:hover {
    color: #fff;
    padding-left: 5px; /* Slight indent on hover */
}


/* Column 4: Newsletter */
.footer-newsletter {
    background-color: #f1c40f;
    padding: 10px;
    border-radius: 8px;
    color:white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-newsletter:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.footer-newsletter .cinematic-tagline {
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.6;
    color: white;
    margin: 0;
    font-weight : 700;
}

.footer-newsletter h4 {
    color: #333; /* Darker heading */
}
/* Remove underline for newsletter heading */
.footer-newsletter h4::after {
    display: none;
}

.newsletter-input-group {
    display: flex;
    margin-bottom: 10px;
}

.newsletter-input-group input[type="email"] {
    flex-grow: 1; /* Take available space */
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px; /* Round left corners */
    font-size: 0.9rem;
    min-width: 100px; /* Prevent input becoming too small */
}
.newsletter-input-group input[type="email"]:focus {
     outline: none;
     border-color: #aaa;
}

.newsletter-input-group button {
    padding: 10px 15px;
    background-color: #3498db; /* Blue button */
    color: white;
    border: none;
    border-radius: 0 4px 4px 0; /* Round right corners */
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.newsletter-input-group button:hover {
    background-color: #2980b9; /* Darker blue */
}

.newsletter-note {
    font-size: 0.75rem;
    color: #665421; /* Dark brownish-yellow */
    line-height: 1.4;
    margin: 0;
}

/* footer bottom */

.footer-bottom {
    background-color: #101F33; /* Elegant legal blue */
    text-align: center;
    padding: 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Soft separator */
}

.copyright-line {
    color: #D3D3D3; /* Traditional light gray legal text */
    font-size: 0.85em;
    margin-bottom: 8px;
    margin-top: 0;
    font-weight: 400;
    line-height: 1.5;
    opacity: 1;
}

.designed-by-line {
    color: rgba(211, 211, 211, 0.75); /* Slightly transparent for contrast */
    font-size: 0.75em;
    margin: 0;
    font-weight: 400;
}

.designed-by-line a {
    color: rgba(211, 211, 211, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.designed-by-line a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/*footer logo medialoop*/
.footer-logo {
    height: 40px;
    max-height: 100%;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
    margin-left: 4px;
}



/* Responsive Adjustments */
@media (max-width: 992px) {
    .footer-grid {
        /* Stack to 2 columns */
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px; /* Adjust gaps */
    }
    
}

@media (max-width: 768px) {
     .footer-grid {
        /* Stack to 1 column */
        grid-template-columns: 1fr;
        gap: 40px; /* Vertical gap only */
        display: flex;
        flex-wrap: wrap;
    }
     .footer-column {
         text-align: center; /* Center content when stacked */
     }
     /* Adjust heading underline */
     .footer-column h4::after {
         left: 50%;
         transform: translateX(-50%);
     }
     .reach-us .contact-item { /* Center contact items */
         text-align: left; /* Keep text left-aligned within the centered item */
     }
      /* Center newsletter content */
     .footer-newsletter {
          text-align: center;
     }
      .newsletter-input-group {
         justify-content: center;
     }
      .newsletter-input-group input[type="email"] {
          flex-grow: 0; /* Don't grow input */
          width: 60%; /* Example fixed width */
      }
}

@media (max-width: 426px) {
    .pre-footer-logo {
        max-width: 180px;
    }
}

@media (max-width: 321px) {
    .pre-footer-logo {
        max-width: 180px;
    }
    
    .reach-us .contact-icon-img {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }
    
    .reach-us{
        font-size: 13px;
    }
}

/* ==========================
   Modal Styles
   ========================== */

   .modal-overlay {
    position: fixed; /* Cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    z-index: 999; /* Below the modal, above everything else */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Start hidden */
    transition: opacity 0.3s ease, visibility 0s linear 0.3s; /* Fade transition */
    cursor: pointer; /* Indicate it's clickable to close */
}

.modal {
    position: fixed; /* Position relative to viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95); /* Center and slightly scale down */
    background-color: #ffffff; /* White background */
    padding: 30px 40px; /* Internal spacing */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Above the overlay */
    max-width: 600px; /* Max width */
    width: 90%; /* Responsive width */
    max-height: 85vh; /* Max height */
    overflow-y: auto; /* Allow scrolling if content exceeds height */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Start hidden */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s; /* Fade and scale transition */
}

/* Active State - Show Modal and Overlay */
.modal-overlay.active,
.modal.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s; /* Remove delay when becoming visible */
}

.modal.active {
    transform: translate(-50%, -50%) scale(1); /* Scale to normal size */
}

.modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px; /* Make X bigger */
    font-weight: bold;
    color: #888;
    cursor: pointer;
    padding: 5px;
    line-height: 1; /* Ensure consistent height */
    transition: color 0.2s ease;
}

.modal-close-button:hover {
    color: #333;
}

.modal-content {
    font-size: 16px;
    color: #222;
    line-height: 1.8;
    padding: 10px;
}

.modal-content h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 5px;
    color: white;
    text-transform: uppercase;
    background-color: #3498db;
}

.hr-privacy {
    height: 8px;
    background-color: #f1c40f;
    margin-bottom: 20px;
    margin-top: 5px;
}

.modal-content p {
    margin-bottom: 18px;
    text-align: justify;
}
.modal-content p:last-child {
    margin-bottom: 0;
}

.modal-content strong {
    color: #3498db;
    font-weight: bold;
    
}

.modal-content a {
    color: #1a0dab; /* Legal-style blue link */
    text-decoration: underline;
    font-weight: normal;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* ===================================== */
/* Pre-Footer & Footer Animations        */
/* ===================================== */

/* --- Initial Hidden State --- */

/* Pre-Footer Logo Area */
.pre-footer {
    opacity: 0;                     /* Start invisible */
    transform: translateY(30px);    /* Start 30px lower */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Define animation */
    will-change: opacity, transform; /* Performance hint (optional) */
}

/* Individual Footer Columns */
/* Target each column directly for its initial state */
.footer-column {
    opacity: 0;                     /* Start invisible */
    transform: translateY(30px);    /* Start 30px lower */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Define animation */
    will-change: opacity, transform; /* Performance hint (optional) */
    /* NOTE: transition-delay is added below for the visible state */
}


/* --- Visible State (Triggered by .is-visible class via JS) --- */

/* Pre-Footer Becomes Visible */
.pre-footer.is-visible {
    opacity: 1;                     /* Fade in */
    transform: translateY(0);       /* Slide up to original position */
}

/* Footer Columns Become Visible (when parent .site-footer gets .is-visible) */
.site-footer.is-visible .footer-column {
    opacity: 1;                     /* Fade in */
    transform: translateY(0);       /* Slide up to original position */
}

/* Add STAGGERING delays to the footer columns */
/* Delay starts when the parent (.site-footer) is visible */
.site-footer.is-visible .footer-column:nth-child(1) {
    transition-delay: 0.2s; /* First column waits 0.1s */
}
.site-footer.is-visible .footer-column:nth-child(2) {
    transition-delay: 0.3s; /* Second column waits 0.2s */
}
.site-footer.is-visible .footer-column:nth-child(3) {
    transition-delay: 0.4s; /* Third column waits 0.3s */
}
.site-footer.is-visible .footer-column:nth-child(4) {
    transition-delay: 0.5s; /* Fourth column waits 0.4s */
}