/*
Theme Name: CANMC Theme Child
Theme URI: https://example.com/canmc-theme-child
Description: Child theme for CANMC Theme.
Author: Your Name
Author URI: https://example.com
Template: canmc-theme
Version: 1.0.0
Text Domain: canmc-theme-child
*/

/* ==========================================================================
   HEADER BASE STYLES (MATCHING 1280px CARD CONTAINER)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

.site-header {
    width: 100%;
    background-color: #F7F7F5;
    border-bottom: none;
    position: relative;
    z-index: 999;
}

/* Base Header Container (Desktop First) */
.header-container {
    max-width: 1350px !important;    /* Forces 1280px on desktop */
    width: 100% !important;
    min-height: 90px;
    margin: 0 auto !important;        /* Keeps header centered */
    padding: 16px 0px !important;    /* 0px side padding for desktop edge alignment */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Logo Sizing */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img,
.site-logo .custom-logo {
    width: auto;
    height: 58px;
    object-fit: contain;
    display: block;
}

/* WordPress Navigation Menu */
.main-navigation .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.main-navigation .nav-menu li {
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu li a {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation .nav-menu li a:hover,
.main-navigation .nav-menu li.current-menu-item > a {
    color: #011936;
}

/* CTA Header Button */
.btn-book-consultation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 204px;
    height: 53px;
    background-color: #011936;
    border-radius: 7px;
    padding: 16px 28px 15px 24px;
    
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-book-consultation:hover {
    background-color: #00234d;
}

/* Mobile Toggle Icon Base */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #011936;
    border-radius: 2px;
}

/* ==========================================================================
   HEADER RESPONSIVE MEDIA QUERIES (OVERRIDDEN WITH !important FOR SAFETY)
   ========================================================================== */

/* Laptop & Tablet Viewports (Below 1320px down to 769px) */
@media screen and (max-width: 1320px) {
    .header-container {
        max-width: 100% !important;
        padding: 16px 20px !important; /* Adds safety horizontal padding */
    }
    
    .main-navigation .nav-menu {
        gap: 20px;
    }
}

/* Mobile Devices (768px and below) */
@media screen and (max-width: 768px) {
    .header-container {
        max-width: 100% !important;
        padding: 16px 20px !important;
        min-height: 70px !important;
    }

    .site-logo img,
    .site-logo .custom-logo {
        height: 44px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        padding: 20px 0;
    }

    .main-navigation.is-active {
        display: block;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* ==========================================================================
   FOOTER EXACT STYLES (MATCHING 1280px CONTAINER ALIGNMENT)
   ========================================================================== */
.site-footer {
    background-color: #ECECEC;
    color: #666666;
    padding-top: 60px;
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0 50px 0;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    box-sizing: border-box;
    width: 100%;
}

.footer-col {
    flex: 1;
}

.footer-brand {
    flex: 1.3;
}

/* Logo Sizing: 196px width x 70px height */
.footer-logo img {
    width: 196px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin-bottom: 24px;
}

/* Tagline Typography */
.footer-tagline {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    color: #666666;
    margin: 0 0 28px 0;
    max-width: 320px;
}

/* Social Icons */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #BEBEBE;
    color: #011936;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #011936;
    color: #FFFFFF;
    border-color: #011936;
}

/* Column Headings */
.footer-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 20px !important;
    line-height: 28px;
    color: #011936;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Links & List Items */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links li a {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 10px !important;
    line-height: 36px;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #011936;
}

/* Contact Details */
.footer-contact-info {
    font-style: normal;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 28px;
    color: #666666;
}

.footer-contact-info p {
    margin: 0 0 14px 0;
}

.footer-contact-info a {
    color: #666666;
    text-decoration: none;
    line-height: 36px;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #011936;
}

/* Footer Bottom Divider Line */
.footer-bottom {
    border-top: 1px solid #BEBEBE;
    padding: 24px 0;
}

.footer-bottom-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.copyright-text,
.legal-links,
.legal-links a {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 14px !important;
    line-height: 31px;
    color: #666666;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #011936;
}

.legal-links .sep {
    margin: 0 8px;
    color: #BEBEBE;
}

/* ==========================================================================
   FOOTER RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media screen and (max-width: 1320px) {
    .footer-container,
    .footer-bottom-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 1024px) {
    .footer-container,
    .footer-bottom-container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .footer-container {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-col {
        flex: 1 1 40%;
    }
}

@media screen and (max-width: 768px) {
    .footer-container,
    .footer-bottom-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Clean Header/Hero Separators */
.site-header,
.site-header * {
    border-bottom: none !important;
    box-shadow: none !important;
}

.site-header + *,
main {
    border-top: none !important;
}

/* Country Selector Button Reset */
.site-header button.country-selected-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    height: 53px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    color: #011936 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.site-header button.country-selected-btn:hover,
.site-header button.country-selected-btn:focus,
.site-header button.country-selected-btn:active,
.site-header button.country-selected-btn:focus-visible {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}