/* 5. FOOTER STYLES */

#main-footer {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
    padding: 1.5rem 0;
    font-size: 0.8rem;
    margin-top: 0;
}

.footer-container {
    width: 100%;
    max-width: 1200px; /* Matching the header's alignment */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* Small nudge to match the header's logo alignment */
    padding-right: 1rem;
}

/* Make sure footer links are white */
#main-footer a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 400; /* Override global bold setting */
    transition: opacity 0.2s ease;
}

#main-footer a:hover,
#main-footer a:active,
#main-footer a:focus {
    text-decoration: underline !important;
    opacity: 0.8;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem; /* Reduced from 1.5rem to pull divider up */
    align-items: start;
}

.footer-col {
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
}

.footer-col:last-child {
    border-right: none;
    padding-right: 0;
}

.footer-col h4 {
    font-family: var(--font-h2);
    font-weight: 700;
    font-size: 0.9rem; /* Scaled down heading */
    margin-bottom: 0.4rem; /* Reduced space below heading */
    color: var(--color-white);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.35rem; /* Slightly tighter list items */
}

.footer-col ul li a {
    font-family: var(--font-main);
    font-size: 0.75rem; /* Smaller link text */
    line-height: 1.3;
    display: block;
}

/* Specific styling for Column 6 */
.footer-tagline {
    font-style: italic;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.footer-cta-button {
    display: inline-block;
    background-color: var(--color-teal-medium);
    color: var(--color-white) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem; /* Kept larger as requested */
    text-align: center;
}

.footer-cta-button:hover {
    background-color: var(--color-teal-light);
    text-decoration: none !important;
    color: var(--color-white) !important;
}

/* Horizontal Divider */
.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem; /* Reduced from 1.5rem to pull logo row up */
}

/* Bottom Bar */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.75rem; /* Smaller text for bottom bar */
}

/* Logo Section */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers Logo over Tagline */
    text-align: center;
    max-width: 300px; /* Allow enough width for the tagline */
}

.footer-logo {
    height: 60px; /* Increased to match header logo */
    width: auto;
    margin-bottom: 0; /* Tight spacing */
    filter: brightness(0) invert(1); /* Force white */
}

.footer-logo-section p {
    font-style: italic;
    opacity: 0.9;
    margin-top: -0.2rem; /* Matching the header's adjusted spacing */
    font-size: 0.75rem; /* Matched to header tagline */
    line-height: 1.2;
    white-space: nowrap; /* Keep tagline on one line */
}

/* Center Info */
.footer-center-info {
    text-align: center;
}

.footer-center-info p {
    margin-bottom: 0; /* Single spacing */
    line-height: 1.4;
}

.linkedin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-top: 0.25rem; /* Small gap before LinkedIn */
}

.linkedin-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    background-color: white;
    color: var(--color-teal-dark);
    font-weight: 900;
    font-family: sans-serif;
    border-radius: 2px;
    font-size: 12px;
}

.linkedin-icon-reverse {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    background-color: var(--color-teal-dark);
    color: white;
    font-weight: 900;
    font-family: sans-serif;
    border-radius: 2px;
    font-size: 12px;
}

/* Legal Section */
.footer-legal {
    text-align: right;
}

.footer-legal p {
    margin-bottom: 0.25rem;
}