/* Font Family */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
    padding-top: 100px;
    /* Offset for fixed navbar */
}

/* Smart Navbar Behavior */
.smart-scroll {
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.scrolled-down {
    transform: translateY(-100%);
}

.scrolled-up {
    transform: translateY(0);
}

/* Color Variables */
:root {
    --primary-orange: rgb(255, 155, 0);
    /* Lighter, yellow-orange from screenshot */
    --hover-orange: rgb(248, 231, 28);
    --light-bg: rgb(255, 246, 231);
    /* SLightly warmer light background */
    --text-dark: #1f2937;
}

/* Utility */
.bg-light-orange {
    background-color: var(--light-bg);
}

.text-orange {
    color: var(--primary-orange);
}

.text-dark {
    color: var(--text-dark) !important;
}

.hero-para {
    word-break: break-word;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    line-height: 28px;
}

.btn-warning {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    padding: 12px 45px 11px !important;
    font-size: 18px;
    font-weight: 500 !important;
    border-radius: 3px;
    box-shadow: none;
    line-height: 28px;
}

.btn-warning:hover {
    background-color: var(--hover-orange);
    border-color: var(--hover-orange);
    color: #1f2937 !important;
}

.btn-light {
    padding: 12px 45px 11px !important;
    font-weight: 500 !important;
    border-radius: 3px;
    box-shadow: none;
    line-height: 28px;
}

.btn-outline-warning {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.btn-outline-warning:hover {
    background-color: var(--primary-orange);
    color: white;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 20px 0;
    /* Taller navbar as per screenshot */
}

.navbar-brand img {
    width: 88px;
    /* Larger logo */
}

.nav-link {
    font-weight: 500;
    font-size: 16px;
    color: #1f2937 !important;
    /* Dark text */
    text-transform: uppercase;
    margin-left: 20px;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary-orange) !important;
}

/* Hero Section */
.hero-section {
    /* Using the requested yellow-orange. 
       Use a slightly flatter color or subtle gradient to match the flat design style. */
    background-color: rgb(255, 155, 0);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 80px 0;
    /* Removed extra top padding since nav is static */
    position: relative;
    overflow: hidden;
}

/* Specific styling for the hero text to match screenshot */
.hero-title {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    word-break: break-word;
    transition: box-shadow 0.1s ease-in-out;
    flex-basis: inherit;
    font-size: 45px;
    color: rgb(22, 22, 22);
    font-family: Montserrat;
    font-style: normal;
    text-align: center;
    line-height: 52px;
    padding: 0px;
}

/* Problem Items */
.problem-item {
    transition: transform 0.3s ease;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.problem-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
}

.feature-card:hover {
    background: #fff;
    border-color: #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

/* Industry Cards */
.industry-card {
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    background: #ffffff;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-orange);
}

/* Step Box */
.step-box {
    padding: 20px;
}

.step-box img {
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s;
}

.step-box:hover img {
    transform: scale(1.1);
}

/* Testimonial Section Adjustments */
.testimonial-section {
    background-color: var(--primary-orange);
    /* Matching hero tone */
    padding: 60px 0;
}

@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid #dee2e6;
    }
}

/* Footer styling */
.footer-section {
    background-color: #fff;
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
}

.footer-link {
    color: #666;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-orange);
}

/* Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.form-control {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(241, 159, 24, 0.15);
    border-color: var(--primary-orange);
}

/* Responsive adjustments - Full Media Query */
@media (max-width: 991px) {
    body {
        padding-top: 80px;
        /* Smaller header adjustment */
    }

    .hero-section {
        padding: 50px 0;
        text-align: center;
    }

    .hero-section .col-lg-7 {
        margin-top: 20px;
    }

    /* Hero title font size reduction for tablet/mobile */
    .display-4,
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-para {
        text-align: center;
        width: 100%;
    }

    .section-title {
        font-size: 32px;
        /* Reduce from 45px */
        line-height: 40px;
    }

    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        margin: 10px 0;
    }

    .ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 15px;
    }
}

@media (max-width: 767px) {

    .display-4,
    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
        line-height: 36px;
    }

    .border-end-md {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .problem-item {
        flex-direction: column;
        text-align: center;
    }

    .problem-item img {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }

    /* Prevent horizontal scroll */
    .container {
        overflow-x: hidden;
    }

    /* Center align mobile footer content */
    .footer-section {
        text-align: center;
    }

    .footer-section .text-start {
        text-align: center !important;
    }
}