/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #1e4278;
    --text-dark: #333333;
    --text-light: #6c757d;
    --navbar-bg: #ffffff;
    --navbar-text: #333333;
    --navbar-text-hover: #2c5aa0;
    --footer-bg: #f8f9fa;
    --footer-text: #333333;
    --border-color: #e9ecef;
}

/* ===== FONT FACE ===== */
@font-face {
    font-family: 'Gismonda';
    src: url('/fonts/gismonda/gismonda-regular.woff2') format('woff2'), url('/fonts/gismonda/gismonda-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    padding-top: 80px; /* Account for fixed header */
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* ===== FIXED HEADER STYLES ===== */
.navbar-custom {
    background-color: var(--navbar-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 80px;
}

/* Mobile header layout */
.mobile-header {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Logo on the left */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    margin-right: auto; /* Push everything else to the right */
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Right side icons container - pushed to far right */
.navbar-right-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto; /* This pushes it to the far right */
}

/* Phone icon */
.phone-icon {
    font-size: 20px;
    color: var(--navbar-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .phone-icon:hover {
        background-color: rgba(0, 0, 0, 0.1);
        color: var(--navbar-text-hover);
    }

/* Hamburger menu on the far right */
.sidenav-toggle {
    font-size: 24px;
    color: var(--navbar-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

    .sidenav-toggle:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

/* Navigation items aligned to left */
.navbar-nav.main-nav {
    margin-left: 2rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--navbar-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        color: var(--navbar-text-hover);
    }

    /* Active state with underline only */
    .navbar-nav .nav-link.active {
        color: var(--navbar-text);
        font-weight: 600;
    }

        .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 1rem;
            right: 1rem;
            height: 2px;
            background: var(--navbar-text-hover);
        }

/* Right-aligned buttons */
.navbar-nav.right-nav {
    margin-left: auto;
}

.btn-quote {
    background-color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 6px;
    color: white;
    white-space: nowrap;
}

    .btn-quote:hover {
        background-color: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
        color: white;
    }

/* ===== FULL SCREEN SIDE NAVIGATION ===== */
.sidenav {
    height: 100%;
    width: 100%; /* Full screen width */
    position: fixed;
    z-index: 1040;
    top: 0;
    left: 0;
    background-color: var(--navbar-bg);
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 80px;
    box-shadow: none; /* Remove shadow since it's full screen */
}

    .sidenav.open {
        transform: translateX(0);
    }

.sidenav-brand {
    font-family: 'Gismonda', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    color: var(--navbar-text);
    text-decoration: none;
    display: block;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 2rem;
}

.sidenav-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidenav-item {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
}

.sidenav-link {
    display: block;
    padding: 15px 20px;
    color: var(--navbar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

    .sidenav-link:hover,
    .sidenav-link.active {
        color: var(--navbar-text-hover);
        background: rgba(44, 90, 160, 0.05);
        border-left-color: var(--navbar-text-hover);
    }

    /* Full screen button in side nav */
    .sidenav-link.btn-quote {
        background-color: var(--primary-color);
        color: white;
        border: none;
        margin: 1rem auto;
        max-width: 200px;
    }

        .sidenav-link.btn-quote:hover {
            background-color: var(--accent-color);
            transform: translateY(-2px);
        }

/* ===== COMPACT FOOTER STYLES ===== */
.footer-custom {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-heading {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

    .footer-links a:hover {
        color: var(--primary-color);
    }

/* Compact brand section */
.footer-brand-section {
    text-align: left;
}

.brand-title {
    font-family: 'Gismonda', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.brand-tagline {
    color: var(--primary-color);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.brand-description {
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Essential contact info in footer */
.essential-contact {
    background: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.essential-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

    .essential-contact-item:last-child {
        margin-bottom: 0;
    }

/* PERFECTLY ALIGNED ICONS */
.essential-contact-icon {
    color: var(--primary-color);
    width: 16px;
    margin-right: 0.75rem;
    margin-top: 0.2rem; /* Perfect vertical alignment */
    flex-shrink: 0;
}

.essential-contact-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.4; /* Better text alignment */
}

    .essential-contact-link:hover {
        color: var(--primary-color);
    }

/* IMPROVED OPERATING HOURS LAYOUT */
.operating-hours {
    line-height: 1.4;
}

    .operating-hours div {
        margin-bottom: 0.2rem;
    }

        .operating-hours div:last-child {
            margin-bottom: 0;
            font-size: 0.8rem;
            color: var(--text-light);
            font-style: italic;
        }

.map-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

    .map-link:hover {
        text-decoration: underline;
    }

/* RESTORED ORIGINAL FOOTER BOTTOM STYLES */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    background: #f8f9fa;
}

.compliance-info-main {
    text-align: center;
    margin-bottom: 1.5rem;
}

.copyright {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.compliance-details {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.fais-compliance,
.fais-contact {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

    .fais-contact strong {
        color: var(--text-dark);
    }

.footer-legal-links {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

    .footer-legal-links a {
        color: var(--text-dark);
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 0.9rem;
    }

        .footer-legal-links a:hover {
            color: var(--primary-color);
        }

.separator {
    color: var(--text-light);
    margin: 0 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199.98px) {
    .navbar-logo {
        height: 45px;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }

    .navbar-custom {
        height: 70px;
    }

    .navbar-logo {
        height: 40px;
    }

    .sidenav {
        padding-top: 70px;
    }

    .brand-title {
        font-size: 1.3rem;
    }

    /* Hide desktop navigation on mobile */
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .footer-custom {
        text-align: center;
    }

    .footer-brand-section {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .navbar-logo {
        height: 35px;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .essential-contact-item {
        justify-content: center;
        text-align: center;
    }

    /* Stack navigation items vertically on mobile */
    .navbar-nav {
        text-align: center;
    }

        .navbar-nav .nav-link {
            padding: 0.75rem 1rem;
            display: block;
        }

    .btn-quote {
        display: block;
        margin: 0.5rem auto;
        text-align: center;
    }

    /* Compact footer on mobile */
    .footer-custom {
        padding: 1.5rem 0 0;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 60px;
    }

    .navbar-custom {
        height: 60px;
        padding: 0.25rem 0;
    }

    .navbar-logo {
        height: 30px;
    }

    .sidenav {
        padding-top: 60px;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .copyright {
        font-size: 0.85rem;
    }

    .sidenav-toggle,
    .phone-icon {
        padding: 8px;
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .navbar-logo {
        height: 25px;
    }

    .sidenav-brand {
        font-size: 1.5rem;
    }

    .brand-title {
        font-size: 1rem;
    }
}

/* Ensure interactive contact links maintain proper styling */
.essential-contact-item a.essential-contact-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

    .essential-contact-item a.essential-contact-link:hover {
        color: var(--primary-color);
    }

/* Style for the compliance section links */
.fais-contact a.essential-contact-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .fais-contact a.essential-contact-link:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

/* ===================================================================
   WHATSAPP STYLES FOR FOOTER - MATCHING EXISTING DESIGN
   =================================================================== */

/* WhatsApp icon styling - match other icons */
.whatsapp-icon {
    color: var(--primary-color); /* Match other icons, not green */
    width: 16px;
    margin-right: 0.75rem;
    margin-top: 0.2rem; /* Perfect vertical alignment like other icons */
    flex-shrink: 0;
    font-size: 0.95rem; /* Match other icons size */
}

/* WhatsApp link styling - match other contact links */
.whatsapp-link {
    color: var(--text-dark); /* Match other links, not green */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.4; /* Match other links */
    font-weight: 500; /* Match other links */
    padding-left: 0; /* Remove extra padding */
}

    .whatsapp-link:hover {
        color: var(--primary-color); /* Match other links on hover */
        text-decoration: none; /* No underline on hover */
        transform: none; /* Remove translate effect */
    }

    /* Remove the green underline animation */
    .whatsapp-link::after {
        display: none;
    }

/* WhatsApp number styling - show it's WhatsApp on hover */
.essential-contact-item:hover .whatsapp-icon {
    transform: none; /* Remove scale effect */
    transition: color 0.3s ease; /* Only color transition */
}

/* Optional: Add subtle WhatsApp hint on hover */
.whatsapp-link {
    position: relative;
}

/* Optional tooltip for WhatsApp */
.whatsapp-link-tooltip {
    position: absolute;
    top: -25px;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.whatsapp-link:hover .whatsapp-link-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsiveness for WhatsApp link */
@media (max-width: 768px) {
    .whatsapp-link {
        font-size: 0.85rem; /* Match other links */
    }

    .whatsapp-icon {
        font-size: 0.95rem; /* Match other icons */
    }

    /* Center align on mobile */
    .essential-contact-item {
        justify-content: center;
        text-align: center;
    }
}

/* ===================================================================
   WHATSAPP FLOATING BUTTON - Clean design
   =================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .whatsapp-float-btn:hover {
        background-color: #128C7E;
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-float-btn i {
        color: white;
        font-size: 28px;
    }

/* WhatsApp tooltip for floating button */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsive floating button */
@media (max-width: 768px) {
    .whatsapp-float-btn {
        width: 55px;
        height: 55px;
    }

    .whatsapp-tooltip {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
}


/* ===== MOBILE-FRIENDLY CONTACT SECTION ===== */
/* Desktop layout - align left */
.essential-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-align: left;
}

/* Container for contact content */
.contact-content {
    flex: 1;
    word-break: break-word; /* Prevent long text from breaking layout */
}

/* Map link styling to match other contact links */
.map-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
    display: inline;
}

    .map-link:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    /* Center align on mobile */
    .essential-contact {
        padding: 1.5rem;
        text-align: center;
    }

    /* Stack contact items vertically on mobile */
    .essential-contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        margin-bottom: 0.5rem;
    }

        .essential-contact-item:last-child {
            border-bottom: none;
        }

    /* Center icons on mobile */
    .essential-contact-icon {
        margin: 0 0 0.5rem 0;
        width: auto;
        font-size: 1.2rem;
        display: block;
    }

    /* Ensure links are easily tappable on mobile */
    .essential-contact-link {
        display: inline-block;
        padding: 0.25rem 0;
        font-size: 0.95rem; /* Slightly larger for mobile */
        line-height: 1.4;
    }

    /* Make map link match other contact links exactly on mobile */
    .map-link {
        font-size: 0.95rem; /* Match mobile link size */
        padding: 0; /* Remove all padding */
        background: transparent; /* Remove background */
        color: var(--text-dark); /* Match other links */
        border-radius: 0;
        display: inline;
        font-weight: 500;
        margin-top: 0;
    }

        .map-link:hover {
            background: transparent;
            color: var(--primary-color);
            text-decoration: underline;
        }

    /* Better spacing for operating hours on mobile */
    .operating-hours {
        font-size: 0.9rem;
        line-height: 1.5;
    }

        .operating-hours div {
            margin-bottom: 0.35rem;
        }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 991.98px) {
    .essential-contact {
        padding: 1rem;
    }

    .essential-contact-item {
        flex-wrap: wrap;
    }

    .essential-contact-link {
        font-size: 0.9rem;
    }
}

/* Ensure long email addresses don't break layout */
.essential-contact-link[href^="mailto:"] {
    word-break: break-all;
}

/* Larger tap targets for mobile */
@media (max-width: 768px) {
    .essential-contact-item a {
        min-height: 44px; /* Minimum touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-content {
        width: 100%;
    }
}

/* WhatsApp specific mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-link {
        font-size: 0.95rem;
        padding: 0.5rem;
    }
}

/* Compact mobile footer */
@media (max-width: 576px) {
    .essential-contact {
        padding: 1rem 0.75rem;
        margin: 0.5rem 0;
    }

    .essential-contact-item {
        padding: 0.75rem 0;
    }

    .footer-heading {
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
    }
}