/*
* C Livingston Roofing LTD - Main Stylesheet
* Version: 1.0 - Reproduced under license from canData Limited, Copyright 2025 All Rights Reserved.
*/

/* ===== GENERAL STYLES ===== */
:root {
    --primary: #1a5276;
    --primary-dark: #154360;
    --secondary: #f39c12;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --success: #34495e; /* Changed from green to deep navy blue */
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    /* Add padding-bottom to make room for mobile call buttons */
    padding-bottom: 0;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px;  /* Space for mobile call buttons */
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Custom softer red button */
.btn-danger {
    background-color: #8e44ad; /* Changed from red #e74c3c to purple #8e44ad */
    border-color: #8e44ad;
}

.btn-danger:hover {
    background-color: #7d3c98; /* Darker purple for hover */
    border-color: #7d3c98;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.btn-text:hover {
    color: var(--primary-dark);
}

/* ===== TOP BAR ===== */
.top-bar {
    font-size: 0.9rem;
}

.top-bar a {
    text-decoration: none;
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 0.75rem 0;
    background-color: #2c3e50 !important; /* Dark blue-grey color for header */
}

.navbar-light .navbar-nav .nav-link {
    color: #fff; /* White text for better contrast */
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.2s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary); /* Highlight text on hover/active with secondary color */
}

.navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.sticky-top {
    transition: all 0.3s;
}

/* Remove bg-white class from HTML navbar element as we're now using the dark background */
/* Update box-shadow for better depth on dark background */
nav.navbar.sticky-top {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: var(--primary);
}

.sticky-top {
    transition: all 0.3s;
}

/* Mobile menu slide-in from right */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        padding: 2rem 1rem;
        transition: all 0.3s ease;
        background-color: white;
        box-shadow: -0.5rem 0 1rem rgba(0, 0, 0, 0.15);
        z-index: 1050;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav {
        margin-top: 1rem;
    }

    .navbar-toggler {
        z-index: 1051;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    background-color: var(--dark);
}

.hero #heroCarousel,
.hero .carousel-inner,
.hero .carousel-item {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* New Trust Badges Styling */
.trust-badges {
    margin-top: 1.5rem;
}

.trust-badge {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Trust bar is no longer needed as we've moved its content to badges */
.trust-bar {
    display: none;
}

@media (max-width: 767.98px) {
    .hero, .hero .carousel-item {
        height: 500px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 0.5rem;
    }

    .trust-badge {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SERVICES SECTION ===== */
.service-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s;
}

.service-card:hover {
    color: inherit;
    transform: translateY(-5px);
}

.service-card .card {
    transition: all 0.3s;
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.service-card img {
    height: 200px;
    object-fit: cover;
}

.services {
    margin-top: 0; /* Remove the top margin we added earlier */
    padding-top: 1.5rem; /* Use consistent section padding instead */
}

/* ===== FEATURE BOX ===== */
.feature-box {
    padding: 1.5rem;
    transition: all 0.3s;
    height: 100%;
}

.feature-icon {
    height: 60px;
    width: 60px;
    margin: 0 auto;
    background-color: rgba(26, 82, 118, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ===== PROJECT CARDS ===== */
.project-card img {
    height: 200px;
    object-fit: cover;
}

.project-card .location {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

/* ===== RISK MAP SECTION ===== */
.map-preview {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.risk-features {
    list-style: none;
    padding-left: 0;
}

.risk-features li {
    margin-bottom: 0.5rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    height: 100%;
}

.testimonial-text {
    font-style: italic;
}

.stars {
    color: var(--warning);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* ===== FINANCE CALCULATOR ===== */
.finance-feature {
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ===== BLOG CARDS ===== */
.card .post-meta {
    font-size: 0.8rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1a1a1a;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-contact li {
    color: #bbb;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.2s;
}

.social-link:hover {
    background-color: var(--primary);
    color: #fff;
}

.footer-newsletter .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--dark);
    color: #fff;
    padding: 1rem 0;
    z-index: 9998;
    display: none;
}

.cookie-consent a {
    color: #fff;
}

/* ===== CHATBOT ===== */
.chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 99;
    overflow: hidden;
    display: none;
}

.chatbot-header {
    background-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.chatbot-body {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    margin-bottom: 0.75rem;
    display: flex;
}

.message.sent {
    justify-content: flex-end;
}

.message-content {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
}

.message.received .message-content {
    background-color: #f1f0f0;
}

.message.sent .message-content {
    background-color: var(--primary);
    color: #fff;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.chat-input .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.chat-input .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.chatbot-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    z-index: 100;
}

/* ===== CONTACT PAGE ===== */
.contact-info-box {
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.25rem;
    height: 100%;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(26, 82, 118, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-form .form-control {
    padding: 0.75rem 1.25rem;
    border: 1px solid #e9ecef;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

/* ===== ABOUT PAGE ===== */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* ===== PROJECTS PAGE ===== */
.project-filter {
    margin-bottom: 2rem;
}

.project-filter .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-gallery .project-item {
    margin-bottom: 2rem;
}

.project-image-container {
    display: flex;
    gap: 1rem;
}

.project-image-wrapper {
    position: relative;
    flex: 1;
}

.project-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.project-image-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* ===== SERVICES PAGE ===== */
.service-header {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

.service-process {
    position: relative;
    padding: 2rem 0;
}

.process-step {
    display: flex;
    margin-bottom: 3rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
}

.process-content {
    flex: 1;
}

/* ===== FINANCE PAGE ===== */
.calculator-container {
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.loan-slider .form-range::-webkit-slider-thumb {
    background-color: var(--primary);
}

/* ===== RISK MAP PAGE ===== */
.risk-map-container {
    height: 600px;
    background-color: #f8f9fa;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.risk-info-box {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* ===== MOBILE CALL BUTTONS ===== */
.mobile-call-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-call-buttons .btn {
    font-weight: bold;
    font-size: 1rem;
    border-radius: 0;
    padding: 15px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-call-buttons .btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.mobile-call-buttons .btn i {
    font-size: 1.2rem;
}

/* ===== SECTION STYLING ===== */
section {
    padding: 1.7rem 0; /* Reduced from 2.5rem to 1.7rem (about 1/3 less) */
    position: relative;
    margin-bottom: 0.5rem; /* Reduced from 0.75rem to 0.5rem */
    overflow: visible;
}

.section-container {
    max-width: 1080px; /* Make sections thinner */
    margin: 0 auto !important;
    padding: 1.3rem; /* Reduced from 2rem to 1.3rem (about 1/3 less) */
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
    position: relative;
    z-index: 1;
}

/* Visually distinctive alternating section backgrounds */
.services .section-container {
    background-color: #fff !important;
    border-top: 4px solid var(--primary) !important;
}

.why-choose-us .section-container {
    background-color: #f4f8fb !important; /* Light blue-tinted background */
    border-top: 4px solid var(--secondary) !important;
}

.projects .section-container {
    background-color: #fff !important;
    border-top: 4px solid var(--success) !important;
}

.testimonials .section-container {
    background-color: #f8f7f2 !important; /* Warm beige background */
    border-top: 4px solid #e49516 !important;
}

.areas-section .section-container {
    background-color: #f2f7f5 !important; /* Light mint background */
    border-top: 4px solid #2ca680 !important;
}

.blog-preview .section-container {
    background-color: #fff !important;
    border-top: 4px solid var(--primary) !important;
}

/* Trust bar styling - ensure it doesn't overlap with content */
.trust-bar {
    position: relative;
    background-color: rgba(255, 255, 255, 0.97) !important;
    padding: 1.25rem 0;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
    margin-top: 0;
    margin-bottom: 1rem;
    border-radius: 0 0 16px 16px;
}

/* Improved section spacing */
section + section {
    margin-top: 1rem; /* Reduced from 1.5rem to 1rem (about 1/3 less) */
}

/* Extra spacing after hero section */
.hero + section {
    margin-top: 0; /* Reduced from 2rem to 1.3rem (about 1/3 less) */
}

/* Space between featured items in a section */
.row.g-4 {
    --bs-gutter-y: 1rem; /* Reduced from 1.5rem to 1rem (about 1/3 less) */
}

/* Section headings with emphasis */
.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    position: relative;
    font-size: 2rem; /* Reduced from 2.25rem */
    color: var(--dark);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.05rem; /* Slightly reduced from 1.1rem */
    margin-bottom: 1.7rem; /* Reduced from 2.5rem (about 1/3 less) */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BLOG POSTS ===== */
/* Add this to your existing CSS to ensure blog posts have clear boundaries */
.blog-card {
    transition: transform 0.3s ease;
    border-radius: 10px !important;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* Replace dates with tags styling - improve Firefox visibility */
.post-tag {
    display: inline-block !important;
    background-color: var(--primary) !important;
    color: #fff !important;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px;  /* Space for mobile call buttons */
    }

    .section-title {
        font-size: 1.75rem;
    }

    .process-step {
        flex-direction: column;
    }

    .process-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .chatbot {
        width: calc(100% - 40px);
    }

    /* Adjust back to top button to not overlap with mobile call buttons */
    .back-to-top {
        bottom: 70px;
        right: 15px;
        width: 35px;
        height: 35px;
    }

    /* Adjust cookie consent to account for mobile call buttons */
    .cookie-consent {
        bottom: 60px;
    }

    /* Adjust chatbot toggle position */
    .chatbot-toggle {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    /* Make chatbot take up most of the screen */
    .chatbot {
        height: calc(100% - 160px);
        bottom: 70px;
    }

    .chatbot-body {
        height: calc(100% - 50px);
    }

    /* Improve hero text readability on mobile */
    .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .hero-overlay p.lead {
        font-size: 1rem;
    }

    /* Make service items more readable on mobile */
    .service-item {
        text-align: center;
    }

    .service-meta {
        justify-content: center;
    }

    /* Better spacing for mobile project cards */
    .project-card {
        margin-bottom: 20px;
    }

    /* Enhance mobile navigation */
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f1f1f1;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

@media (max-width: 575.98px) {
    .hero-overlay h1 {
        font-size: 1.6rem;
    }

    /* Ensure buttons are easier to tap on mobile */
    .btn-sm {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    /* Better form elements on small screens */
    .form-control, .form-select {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Make logo responsive */
    .navbar-brand img {
        height: 50px;
    }

    /* Improve tap target sizes */
    .nav-link {
        padding: 0.75rem 0.5rem;
    }
}

/* Center header menu items horizontally and vertically */
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.navbar-nav .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    white-space: nowrap;
}

/* Ensure .btn inside navbar-nav fills height for vertical centering */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Fix for .btn vertical alignment in navbar */
.navbar-nav .btn {
    height: 100%;
    line-height: normal;
}
