/* ==========================================
   MOTUS - FMCSA REGISTRATION WEBSITE V2
   Complete Redesign Based on Mockup
   ========================================== */

:root {
    --color-navy: #314152;
    --color-wine: #983d34;
    --color-grey: #4d4d4d;
    --color-white: #ffffff;
    --color-light-grey: #f5f5f7;
    --color-footer-grey: #F4F5F6;
    
    --font-primary: 'Avenir', 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-grey);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background: var(--color-white);
}

.wine-text {
    color: var(--color-wine);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    background: var(--color-white) !important;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--color-grey);
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.nav-link {
    color: var(--color-grey) !important;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-wine) !important;
}

.contact-hours {
    font-size: 1.2rem;
    color: var(--color-grey);
    line-height: 1.3;
}

.nav-contact {
    text-align: center;
    padding-left: 1.5rem;
    border-left: 1px solid var(--color-light-grey);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-number {
    display: block;
    color: var(--color-wine);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-smooth);
    line-height: 1.2;
    margin-bottom: 0.125rem;
}

.phone-number:hover {
    color: var(--color-navy);
}

.nav-contact-hours {
    font-size: 0.725rem;
    color: var(--color-grey);
    line-height: 1.2;
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
}

.nav-contact-div {
    font-size: 0.85rem;
    color: var(--color-grey);
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

/* ==========================================
   HERO SECTION - SMALLER PHOTO
   ========================================== */
.hero-section {
    position: relative;
    min-height: 80vh; /* Reduced from 100vh */
    max-height: 850px; /* Cap maximum height */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    background: var(--color-white);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    filter: contrast(1.1) brightness(1.05) saturate(1.1);
}

/* White bubble for MOTUS title */
.hero-bubble-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-bubble {
    background: linear-gradient(to bottom, #F4F5F6 0%, #FFFFFF 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem 3rem 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
    display: inline-block;
    text-align: center;
}

.hero-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.hero-title {
    font-size: clamp(4rem, 7vw, 5.5rem);
    font-weight: 900;
    font-family: Avenir, sans-serif;
    color: var(--color-navy);
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 0.75rem;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(1.225rem, 1.5vw, 1.5rem);
    color: var(--color-grey);
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.col-lg-5 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tagline {
    font-size: 0.875rem;
    color: var(--color-grey);
    font-weight: 400;
    text-align: center;
    margin: 0.5rem 0 0;
    z-index: 2;
}

.hero-announcement {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-section .row.align-items-center.min-vh-100 {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -175px;
    min-height: auto; /* Changed from inheriting min-vh-100 */
}

.announcement-label {
    font-size: clamp(1.82rem, 1.56vw, 1.3rem);
    color: var(--color-grey);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.announcement-text {
    font-size: clamp(1.056rem, 1.3vw, 1.219rem);
    color: var(--color-grey);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    animation: bounce 2s infinite;
    text-decoration: none;
    color: var(--color-grey);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.scroll-indicator:hover {
    color: var(--color-navy);
}

.scroll-indicator span {
    display: block;
    font-size: 0.9375rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* CSS-only chevron arrow */
.scroll-indicator svg {
    display: none;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover::after {
    border-color: var(--color-navy);
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ==========================================
   INTRO SECTION
   ========================================== */
.intro-section {
    padding: 4rem 0;
    background: var(--color-white);
}

.intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-grey);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================
   MANDATORY SECTION WITH GRADIENT BUBBLE
   ========================================== */
.mandatory-section {
    padding: 4rem 0 0rem;
    background: var(--color-white);
}

.section-eyebrow {
    font-size: 1.25rem;
    color: var(--color-wine);
    font-weight: 900;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    text-align: center;
}

/* Gradient bubble for DATA MIGRATION */
.data-migration-bubble {
    background: linear-gradient(to bottom, #F5F6F7 0%, #FEFEFE 100%);
    padding: 4rem 3.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.section-title {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    color: var(--color-navy);
    text-align: center;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.2;

}

.section-title strong {
    font-weight: 800;
    letter-spacing: 0.5rem;
}

.migration-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-grey);
    text-align: center;
    margin: 0;
}

.cta-split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    margin-bottom: 5rem;
    padding-left: 10%;
    padding-right: 10%;
    align-items: center;

}

.cta-phone {
    text-align: center;
}

.cta-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
}

.phone-large {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-wine);
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 0rem;
    transition: var(--transition-smooth);
    text-align: center;
}

.phone-large:hover {
    color: var(--color-navy);
}

.cta-hours {
    font-size: 1rem;
    color: var(--color-grey);
    text-align: center;
    letter-spacing: 1.2px;
    margin: -0.25rem;
}

.cta-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 1.375rem 3.25rem;
    border-radius: 20px;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary:hover {
    background: var(--color-wine);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(152, 61, 52, 0.3);
    color: var(--color-white);
}

.motus-branding {
    text-align: center;
    padding: 2rem 0 2rem;
}

.motus-logo {
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--color-navy);
    font-weight: 700;
    letter-spacing: 0.5rem;
    margin-bottom: 0.5rem;
}

.motus-subtitle {
    font-size: 1.1rem;
    color: var(--color-grey);
    font-weight: 400;
}

/* ==========================================
   REQUIREMENTS SECTION WITH WHITE BUBBLE
   ========================================== */
.requirements-section {
    padding: 2rem 0 5rem;
    background: var(--color-white);
}

/* White bubble container */
.requirements-bubble {
    background: rgba(250, 250, 252, 0.7);
    padding: 4rem 3.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}

.requirements-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--color-grey);
    text-align: center;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.requirements-title strong {
    font-weight: 900;
    color: var(--color-navy);
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.875rem 0;
    font-size: 1.5rem;
    color: var(--color-grey);
}

.checkmark {
    flex-shrink: 0;
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(77, 77, 77, 0.7);
    margin: 2rem 0;
}

.automation-text {
    font-size: 1.25rem;
    color: var(--color-grey);
    text-align: center;
    margin-bottom: 1.5rem;
}

.process-headline {
    font-size: clamp(1.5rem, 2.8vw, 2.125rem);
    color: var(--color-grey);
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.process-headline .highlight {
    color: var(--color-wine);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

/* ==========================================
   FINAL CTA SECTION
   ========================================== */
.final-cta-section {
    padding: 5rem 0;
    background: var(--color-white);
}

.final-cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--color-wine);
    font-weight: 900;
    margin-bottom: 1rem;
}

.final-cta-subtitle {
    font-size: 1.3rem;
    color: var(--color-grey);
    margin-bottom: 2.5rem;
}

.phone-final {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-navy);
    font-weight: 400;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.phone-final:hover {
    color: var(--color-wine);
}

.final-contact-info {
    margin-top: 1rem;
}

.contact-label {
    font-size: 1rem;
    color: var(--color-grey);
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

/* ==========================================
   FOOTER - GREY BACKGROUND ONLY
   ========================================== */
.footer {
    background: var(--color-footer-grey);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(77, 77, 77, 0.15);
}

.footer-brand {
    margin-bottom: 2rem;
    align-items: center;
}

.footer-tagline {
    font-size: 0.6875rem;
    color: var(--color-grey);
    letter-spacing: 0.8px;
    margin-top: 0.5rem;
}

.footer-contact {
    margin-bottom: 2rem;
}

.footer-contact p {
    font-size: 1rem;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-contact a {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 3px;
}

.footer-contact a:hover {
    color: var(--color-wine);
}

.footer-contact span {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2rem;
}

.footer-address {
    margin-top: 1.5rem;
}

.footer-section-title {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-navy);
    letter-spacing: 0.5px;
}

.footer-division {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
}

.footer-address p {
    font-size: 0.9125rem;
    color: var(--color-grey);
    line-height: 1.6;
}

.footer-divider {
    width: 100%;
    height: 1px;
    margin-top: 1px;
    margin-bottom: 1.5px;
    background: rgba(77, 77, 77, 0.9);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    padding-left: 10%;
    padding-right: 10%;
}

.footer-links a {
    color: var(--color-grey);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-wine);
}

.footer-legal {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(77, 77, 77, 0.15);
}

.footer-legal p {
    font-size: 0.8125rem;
    text-align: center;
    color: var(--color-grey);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--color-grey);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE - CONSOLIDATED & FIXED
   ========================================== */

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .hero-section .row.align-items-center.min-vh-100 {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        margin-top: -175px;
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: 75vh;
    }
    
    .hero-section .row.align-items-center.min-vh-100 {
        margin-top: -80px;
    }
    
    .cta-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-phone {
        text-align: center;
    }
    
    .hero-announcement {
        text-align: left;
        margin-top: 2rem;
    }
    
    .nav-contact {
        border-left: none;
        padding-left: 0;
        text-align: left;
        margin-top: 1rem;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    /* Hero Section */
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        max-height: none;
    }
    
    .hero-section .row.align-items-center.min-vh-100 {
        margin-top: 0 !important;
        min-height: auto;
        padding: 2rem 0;
        display: flex;
        flex-direction: column;
    }
    
    /* Hero Bubble - Centered */
    .hero-bubble-link {
        display: block;
        text-align: center;
        margin: 0 auto 1rem;
    }
    
    .hero-bubble {
        padding: 2rem 2.5rem 1.5rem 2.5rem;
        max-width: 100%;
    }    
   
    .hero-tagline {
        text-align: center;
        margin: 0.5rem auto 1.5rem;
        font-size: 0.8125rem;
        display: block;
        width: 100%;
    }
    
    /* Hero Announcement - Right after tagline */
    .hero-announcement {
        text-align: center !important;
        margin-top: 0 !important;
        padding: 0 1rem;
        order: 2;
    }
    
    .announcement-label {
        font-size: 1.15rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
    
    .announcement-text {
        font-size: 0.75rem;
    }
    
    /* Scroll Indicator - Move below announcement */
    .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 2rem;
        margin-bottom: 1rem;
        order: 3;
    }
    
    /* Other Sections */
    .data-migration-bubble,
    .requirements-bubble {
        padding: 2.5rem 2rem;
    }
    
    .intro-section,
    .mandatory-section,
    .requirements-section,
    .final-cta-section {
        padding: 3rem 0;
    }
    
    /* CTA Split */
    .cta-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-phone {
        text-align: center;
    }
    
    /* Navigation */
    .nav-contact {
        border-left: none;
        padding-left: 0;
        text-align: left;
        margin-top: 1rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer-brand,
    .footer-contact,
    .footer-address {
        text-align: center;
    }
}

/* ==========================================
   MODAL STYLING - SCROLLABLE VERSION
   ========================================== */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh; /* Limit modal height */
}

.modal-header {
    background: linear-gradient(135deg, var(--color-navy), #002570);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
    flex-shrink: 0; /* Prevents header from shrinking */
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 0;
    background: var(--color-white);
    overflow-y: auto; /* Enable scrolling */
    max-height: calc(90vh - 80px); /* Account for header */
}

.modal-body iframe {
    display: block;
    min-height: 1165px; /* Your iframe height */
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-navy);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-wine);
}