/* Global styles */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from layout issues */
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem; /* Desktop */
    margin-bottom: 3rem;
    color: #007bff; /* Primary color for titles */
}

/* Responsive Typography for Headings */
@media (min-width: 1024px) {
    .site-title { font-size: 3.5rem; } /* Example desktop H1 */
    .site-slogan { font-size: 1.75rem; } /* Example desktop P */
    .section-title { font-size: 2.5rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-title { font-size: 2.8rem; } /* Tablet H1 */
    .site-slogan { font-size: 1.5rem; } /* Tablet P */
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 767px) {
    .site-title { font-size: 1.8rem; } /* Mobile H1 */
    .site-slogan { font-size: 1.25rem; } /* Mobile P */
    .section-title { font-size: 1.8rem; }
    .navbar-brand { font-size: 1.25rem !important; } /* Mobile logo/title */
    .call-to-action-btn { font-size: 1rem; padding: 0.75rem 1.5rem; }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('graphics/media/consulting-hero-background_2.webp') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.6), rgba(0, 200, 255, 0.6)); /* Blue gradient overlay */
    z-index: 0;
}

.hero-section .container-fluid {
    z-index: 1;
}

.hero-section .logo-img {
    max-width: 150px;
    height: auto;
    filter: invert(1); /* Makes logo white for dark background */
}

.call-to-action-btn {
    z-index: 1000; /* Ensure it's above other content */
    background-color: #28a745; /* Green */
    border-color: #28a745;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.call-to-action-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.scroll-cue {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem; /* Desktop */
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff;
}

/* Offcanvas for mobile menu */
.offcanvas {
    background-color: #343a40 !important; /* Dark background for offcanvas */
}

.offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas .offcanvas-title {
    color: #fff;
}

.offcanvas .btn-close-white {
    filter: invert(1); /* Makes close button white */
}

.offcanvas-body .nav-link {
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* About Section */
.about-img {
    height: 350px; /* Fixed height for consistency */
    object-fit: cover;
    width: 100%;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #007bff;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border: 3px solid #fff;
}

.timeline-content {
    width: calc(50% - 30px);
    background-color: #fff;
    border-left: 5px solid #007bff;
    padding: 20px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: -50%;
    margin-left: -10px; /* Adjust for dot */
    text-align: right;
    border-left: none;
    border-right: 5px solid #007bff;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 50%;
    margin-left: 10px; /* Adjust for dot */
    text-align: left;
}

@media (max-width: 767px) {
    .timeline::before {
        left: 20px;
        transform: translateX(0);
    }
    .timeline-item {
        justify-content: flex-start;
    }
    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 40px !important;
        text-align: left !important;
        border-left: 5px solid #007bff !important;
        border-right: none !important;
    }
}


/* Services Section */
.accordion-button {
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: #007bff;
    background-color: #e9f5ff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.service-icon {
    font-size: 1.5rem;
    color: #007bff;
}

.service-detail-img {
    height: 200px; /* Fixed height for consistency */
    width: 100%;
    object-fit: cover;
}

/* Compliance Section */
.compliance-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('graphics/media/legal-background_2.jpg') no-repeat center center/cover;
    position: relative;
}

.compliance-section .overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Darker overlay */
    z-index: 0;
}

.compliance-section .container {
    z-index: 1;
}

.compliance-img {
    max-width: 600px;
    height: auto;
    margin-top: 2rem;
}

/* Team Section */
.team-member-card .card {
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}

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

.team-avatar {
    width: 100%;
    height: 250px; /* Fixed height for avatars */
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Industries Section */
.industry-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: default;
    overflow: hidden;
    height: 180px; /* Fixed height for industry cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.industry-card:hover {
    border-color: #007bff;
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.15) !important;
}

.industry-card .industry-hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.9); /* Primary color with transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.industry-card:hover .industry-hover-info {
    opacity: 1;
    visibility: visible;
}

/* Contact Us Section */
.contact-list li {
    font-size: 1.1rem;
}

.contact-link {
    color: #fff;
    text-decoration: underline;
}

.contact-link:hover {
    color: #007bff;
}

/* Footer */
.footer-logo-img {
    max-width: 100px;
    height: auto;
    filter: invert(1); /* Makes logo white for dark background */
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}/*
 * Styles for the main legal content block container.
 * Provides vertical and horizontal padding to separate the content from surrounding elements.
 */
.legalDomeBlock {
    padding: 30px 20px; /* Top/bottom padding 30px, left/right padding 20px */
}

/*
 * Heading styles within the legal content block.
 * Font sizes are kept moderate as requested, not overly large.
 * Margins provide spacing between headings and other content.
 */
.legalDomeBlock h1 {
    font-size: 28px; /* Moderate size for the main heading */
    margin: 1.5em 0 0.8em 0; /* Top, Right, Bottom, Left margins */
    font-weight: bold;
    line-height: 1.2; /* Tighter line height for headings */
}

.legalDomeBlock h2 {
    font-size: 24px;
    margin: 1.4em 0 0.7em 0;
    font-weight: bold;
    line-height: 1.3;
}

.legalDomeBlock h3 {
    font-size: 20px;
    margin: 1.3em 0 0.6em 0;
    font-weight: bold;
    line-height: 1.4;
}

.legalDomeBlock h4 {
    font-size: 18px; /* Similar to paragraph text, but bold */
    margin: 1.2em 0 0.5em 0;
    font-weight: bold;
    line-height: 1.5;
}

.legalDomeBlock h5 {
    font-size: 16px; /* Slightly smaller than paragraph text, bold */
    margin: 1.1em 0 0.4em 0;
    font-weight: bold;
    line-height: 1.6;
}

/*
 * Paragraph styles within the legal content block.
 * Sets a comfortable font size and line height for readability,
 * and adds space between paragraphs.
 */
.legalDomeBlock p {
    font-size: 18px; /* Base font size for general text */
    line-height: 1.7; /* Generous line height for improved readability */
    margin-bottom: 1em; /* Space between paragraphs */
}

/*
 * Unordered list styles within the legal content block.
 * Provides standard bullet points, indentation, and vertical spacing.
 */
.legalDomeBlock ul {
    list-style-type: disc; /* Default bullet points */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 1.5em; /* Indentation for bullet points */
}

/*
 * List item styles within the legal content block.
 * Ensures consistent font size and line height with paragraphs,
 * and adds vertical spacing between list items.
 */
.legalDomeBlock li {
    font-size: 18px; /* Consistent font size with paragraphs */
    line-height: 1.7; /* Consistent line height with paragraphs */
    margin-bottom: 0.5em; /* Space between individual list items */
}


.navbar-brand {
    img {
        width: 30px;
        height: 30px;
    }
}


@media screen and (max-width: 768px){
    .compliance-img {
        max-width: 280px;
    }
}
