/* =========================================
   Mojaff Custom Styles
   Designed for Extendability & Readability
========================================= */


:root {
    --primary-color: #0b2e59; /* Replace with exact Mojaff brand blue */
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --transition-speed: 0.3s;
}

/* Smooth scrolling adjustment for fixed navbar */
html { 
    scroll-padding-top: 100px; 
    scroll-behavior: smooth;    
    max-width: 100%;
    overflow-x: hidden; 
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth; /* Essential for one-page UX */
    max-width: 100%;
    overflow-x: hidden;
}

/* Parallax & Hero Elements */
.hero-parallax, .section-parallax {
    position: relative;
    background-attachment: fixed;
    background-position: center 0px; 
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}
.hero-parallax .container, .section-parallax .container {
    position: relative;
    z-index: 2;
}
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color); 
}
.btn-primary:hover {
    background-color: #082140;
}

/* Typography & Utilities */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color); 
    transition: all var(--transition-speed) ease;
}
.btn-primary:hover {
    background-color: #082140;
    transform: translateY(-2px);
}
.divider {
    height: 4px;
    width: 60px;
    border-radius: 2px;
}

/* Service Cards Interaction */
.service-card {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.15) !important;
}

/* Secure Form Styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(11, 46, 89, 0.25);
}

.transition-hover {
    transition: color 0.3s ease;
}
.transition-hover:hover {
    color: var(--bs-primary) !important; /* Uses Bootstrap's native primary variable */
}

/* Navigation Hover & Active States */
/* Force the blue text and underline for the active link */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: bold !important;
}

.navbar-nav .nav-link.active::after {
    width: 100% !important;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    position: relative;
    transition: color var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Elegant underline effect for active/hover links */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Form focus accessibility */
.focus-ring-primary:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(11, 46, 89, 0.25); /* Matches Mojaff blue */
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.text-shadow-sm {
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}



/* =========================================
   Corporate Grid Layout Styles
========================================= */

:root {
    --brand-teal: #007fa3; /* Matches the button and icon color in your screenshot */
    --grid-border: #f0f0f0; /* Very light gray for subtle separation */
}

/* Base cell styling */
.service-cell {
    border-right: 1px solid var(--grid-border);
    border-bottom: 1px solid var(--grid-border);
    transition: background-color 0.3s ease;
}

/* Subtle hover effect for the cells */
.service-cell:hover {
    background-color: #fafafa;
}

/* Icon styling to match the screenshot */
.service-icon {
    color: var(--brand-teal);
}

/* Button styling to match the flat, sharp-cornered look */
.btn-brand {
    background-color: var(--brand-teal);
    color: #ffffff;
    border: none;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-brand:hover {
    background-color: #006380;
    color: #ffffff;
    transform: translateY(-2px); /* Slight lift on hover */
}

/* Responsive Border Logic */
@media (min-width: 768px) {
    /* Remove the right border on the 3rd, 6th, and 9th items so it doesn't double up against the image */
    .service-cell:nth-child(3n) {
        border-right: none;
    }
    /* Remove the bottom border on the last row */
    .service-cell:nth-child(7),
    .service-cell:nth-child(8),
    .service-cell:nth-child(9) {
        border-bottom: none;
    }
    /* make the content sit to the left of the person on the bench */
     #about > div.container {
        width:550px;left:-280px;
    }
}

@media (max-width: 767px) {
    /* On mobile, everything stacks vertically, so we only need bottom borders */
    .service-cell {
        border-right: none;
    }
    /* Remove the very last bottom border on mobile */
    .service-cell:last-child {
        border-bottom: none;
    }

    /* make the content smaller to fit center */
    #about > div.container {
   
        h2 {
            font-size:1.5em;
        }

        p.lead {
            font-size: 1em;
        }
    }
}

/* =========================================
   7-Step Process Grid
========================================= */

.process-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    align-items: stretch; /* Ensures all grey bottoms align perfectly */
}

.process-step {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f0f0f0;
    background: #ffffff;
    position: relative;
}

.process-step:last-child {
    border-right: none;
}

.process-header {
    padding: 30px 15px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    transition: transform var(--transition-speed) ease;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    margin-top: 15px;
    color: #a0a0a0; /* Light grey text for default numbers */
}

.process-body {
    background: #f8f9fa; /* The light grey text area */
    padding: 25px 15px;
    flex-grow: 1;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

/* The Magic for the Featured (Blue) Columns */
.process-step.featured {
    z-index: 2; /* Keeps the drop shadow above adjacent columns */
}

.process-step.featured .process-header {
    background-color: var(--primary-color);
    padding-top: 45px; /* Makes the blue box taller */
    margin-top: -15px; /* Pulls it up out of the grid */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.process-step.featured .process-body {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Mobile Responsiveness 
  Stack the steps vertically on smaller screens and remove the tricky margins
*/
@media (max-width: 1199px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr); /* Break into rows of 3 on tablets */
        gap: 20px;
        background: transparent;
        box-shadow: none;
    }
    .process-step {
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    .process-step.featured .process-header {
        margin-top: 0;
        padding-top: 30px;
        box-shadow: none;
    }
}

@media (max-width: 767px) {
    .process-grid {
        grid-template-columns: 1fr; /* Stack 1 on top of another on mobile */
    }
}

/* =========================================
   Horizontal Swipe Carousel (Insights)
========================================= */
.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Buttery smooth scrolling on iOS */
    scrollbar-width: none; /* Hides scrollbar in Firefox */
    padding-bottom: 20px; /* Room for the drop shadow */
}

/* Hides scrollbar in Chrome, Safari, and Edge */
.scrolling-wrapper::-webkit-scrollbar {
    display: none; 
}

/* The individual card container */
.insight-card-wrapper {
    flex: 0 0 auto;
    width: 350px; /* Fixed width for desktop */
    scroll-snap-align: start; /* Snaps the card to the left edge */
    margin-right: 1.5rem;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .insight-card-wrapper {
        width: 85vw; /* Takes up 85% of the screen so the next card peeks out */
        margin-right: 1rem;
    }
}

/* */
h1, h2 {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}