/* Cookie Banner Styles */
#cookie-banner {
    transition: transform 0.5s ease-out;
}

#cookie-banner.translate-y-full {
    transform: translateY(100%);
}

/*
    Custom Styles for Apex Finance
    -------------------------------
    Most styling is handled by Tailwind CSS utility classes in the HTML.
    This file is for custom components or overrides that are not easily
    achieved with Tailwind's default configuration.
*/

.hero-bg {
    background-image: linear-gradient(rgba(10, 35, 66, 0.8), rgba(10, 35, 66, 0.8)), url('/assets/modern_office_building.webp');
    background-size: cover;
    background-position: center;
}

.service-hero-bg {
    background-image: linear-gradient(rgba(10, 35, 66, 0.8), rgba(10, 35, 66, 0.8)), var(--service-bg-url, url('/assets/team_collaboration.webp'));
    background-size: cover;
    background-position: center;
}

/* Utility for glassy header effect */
.bg-apex-white\/80 {
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
}

/* Custom shadow for cards */
.shadow-xl, .shadow-2xl, .shadow-lg {
    box-shadow: 0 10px 25px 0 rgba(10,35,66,0.08), 0 2px 4px 0 rgba(10,35,66,0.04);
}

/* Button hover effect for teal */
.bg-apex-teal:hover, .hover\:bg-apex-teal:hover {
    opacity: 0.9;
}

/* Dropdown menu for services */
/* The dropdown visibility is now controlled by JavaScript */

/* Responsive container override if needed */
.container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Step circle utility for cash flow solutions */
.step-circle {
    background-color: #fff;
    border: 2px solid #2CA58D;
    color: #2CA58D;
    font-weight: 700;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-sizing: border-box;
}

/* Footer styles */
footer {
    background-color: #1e293b; /* apex-gray-800 */
    color: #e2e8f0; /* apex-gray-200 */
}
footer h3, footer h4 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
}
footer a {
    color: #e2e8f0;
    transition: color 0.2s;
    text-decoration: none;
}
footer a:hover {
    color: #2CA58D; /* apex-teal */
}
footer .border-t {
    border-top: 1px solid #475569; /* apex-gray-600 */
}
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer ul li {
    margin-bottom: 0.5rem;
}

/* Navbar styles */
header nav a {
    transition: color 0.2s;
    text-decoration: none;
    font-weight: 500;
}
header nav a:hover {
    color: #2CA58D;
}
header nav a.font-bold, header nav a.active {
    color: #2CA58D;
    font-weight: 700;
}
header .font-heading {
    letter-spacing: 0.02em;
}

/* Mobile menu button */
#mobile-menu-button {
    cursor: pointer;
}

/* Contact Us form styles */
.contact-form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px 0 rgba(10,35,66,0.08), 0 2px 4px 0 rgba(10,35,66,0.04);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}
.contact-form-container h2 {
    color: #0A2342; /* apex-navy */
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}
.contact-form-container p {
    color: #475569; /* apex-gray-600 */
}
.contact-form input,
.contact-form select {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0; /* apex-gray-200 */
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #0A2342;
}
.contact-form input:focus,
.contact-form select:focus {
    outline: 2px solid #2CA58D;
    border-color: #2CA58D;
}
.contact-form button[type="submit"] {
    background: #2CA58D;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px 0 rgba(44,165,141,0.15);
    transition: background 0.2s, box-shadow 0.2s;
}
.contact-form button[type="submit"]:hover {
    background: #24977c;
    box-shadow: 0 6px 18px 0 rgba(44,165,141,0.18);
}

/* Ensure consistent spacing for nav/footer columns */
footer .grid > div {
    margin-bottom: 0;
}

/* Responsive tweaks for nav/footer */
@media (max-width: 1024px) {
    footer .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    footer .grid > div:first-child {
        grid-column: auto; /* Override md:col-span-2 on smaller screens */
    }
    footer .footer-accordion-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 1.5rem;
    }
    footer .footer-accordion-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    footer .footer-accordion-header {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    footer .footer-accordion-content {
        padding-top: 0.5rem;
    }
    footer .footer-accordion-icon {
        transform: rotate(-90deg); /* Initial state: closed */
    }
    footer .footer-accordion-icon.open {
        transform: rotate(0deg); /* Open state */
    }
    header nav {
        display: none !important;
    }
}

/* Tablet-specific styles for mobile menu */
@media (min-width: 768px) and (max-width: 1023px) {
    #mobile-menu {
        max-width: 70%; /* Adjust as needed */
        margin-left: auto;
        margin-right: auto;
        padding-left: 2rem; /* Increase horizontal padding */
        padding-right: 2rem; /* Increase horizontal padding */
    }
}

/* Main container for page content */
.main-container {
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}
@media (max-width: 1279px) {
    .main-container {
        padding-left: 10%;
        padding-right: 10%;
    }
}
@media (max-width: 767px) {
    .main-container {
        padding-left: 4vw;
        padding-right: 4vw;
    }
}
@media (max-width: 640px) {
    .main-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Sector Card Styles */
.sector-card {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 35, 66, 0.15);
}

.sector-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.8) 0%, rgba(10, 35, 66, 0.6) 100%);
    z-index: 1;
}

.sector-card .relative {
    z-index: 2;
    position: relative;
}
