/* 
   Logistics Website - Main Stylesheet
   A professional, modern design for a logistics company
*/

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
   /* Primary brand colors - bold navy & clean contrast */
  --primary-color: #0F2D45;        /* Deep navy from the "59" and "NORTH" text */
  --primary-dark: #0C2234;         /* Darker navy for headers, buttons */
  --primary-light: #EAEFF3;        /* Very light grayish blue for backgrounds */

  /* Accent colors - from the truck graphic */
  --accent-color: #737E85;         /* Gray-blue tone from the truck */
  --accent-light: #B7C1C6;         /* Light version for borders or hover effects */

  /* Neutral colors - supporting tones */
  --dark: #1A1A1A;                 /* Near black for strong contrast text */
  --light: #FFFFFF;                /* White for clean backgrounds */
  --gray: #5E5E5E;                 /* Medium gray for muted text */
  --gray-light: #C8C8C8;           /* Lighter gray for UI elements */

  /* Status colors - standard usability cues */
  --success: #20c997;
  --warning: #ffc107;
  --danger:  #dc3545;

  /* Typography */
  --font-family: "Roboto", sans-serif;
  --headings-font-weight: 700;
  --text-font-weight: 400;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 1rem;
    
    /* Transition speeds */
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    
    /* Border radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Box shadows */
    --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --shadow-md: 0 .5rem 1rem rgba(0, 0, 0, .15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);
}

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

body {
    font-family: var(--font-family);
    color: var(--primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--headings-font-weight);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast) ease;
}

a:hover {
    color: var(--primary-dark);
}

input:focus, textarea:focus, select:focus, button:focus {
    outline: none !important;
    box-shadow: none !important;
  }

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--primary-color);
}

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

.btn {
    transition: all var(--transition-fast) ease;
}


.btn:focus {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}


.btn:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

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

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

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

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

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

.btn:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

img {
    max-width: 100%;
}

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--accent-color) !important; }

/* ===== NAVIGATION ===== */
.navbar {
    transition: all var(--transition-fast) ease;
    box-shadow: var(--shadow-sm);
  }
  
  .navbar-brand img {
    width: 120px; /* Original width */
    height: auto; /* Auto height to maintain aspect ratio */
    transition: all var(--transition-fast) ease;
  }
  
  .navbar-scrolled {
    padding: 0.5rem 0;
    background-color: white !important;
    box-shadow: var(--shadow-md);
  }
  
  .navbar-scrolled .navbar-brand img {
    width: 100px;
    height: auto;
  }
  
  .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem;
    position: relative;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-fast) ease;
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    transform: scaleX(1);
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-color) !important;
  }
  
  /* ===== SECTION OFFSETS FOR SMOOTH SCROLLING ===== */
  section[id], header[id] {
    scroll-margin-top: 100px;
  }

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    /* background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/bg1.jpg'); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Adjust for navbar */
}

.privacy-hero-section {
    min-height: 450px;
    /* background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/bg1.jpg'); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Adjust for navbar */
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--section-padding);
}

.truck-bg {
    background-image: url('../img/bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 550px;
    position: relative;
    margin-top: -300px;
    z-index: 0;
    transform: rotate(180deg)
}

/* Section titles and descriptions */
.section-title {
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 1.75rem; 
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Dots */
.dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary-dark);
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 2;
}

.dot-top {
    top: 5.5%;
    left: 53%;
    transform: translateX(-50%);
}

.dot-middle {
    top: 20.5%;
    left: 47%;
    transform: translateX(-50%);
}

.dot-bottom {
    bottom: 62%;
    left: 53%;
    transform: translateX(-50%);
}

/* Horizontal lines connecting titles to dots */
.line-horizontal {
    position: absolute;
    height: 2px;
    background-color: var(--primary-dark);
    z-index: 1;
}

/* Line from "Partial Loads" to dot-top */
.line1-h {
    width: 23%;
    top: 6.5%;
    left: 53%;
}

/* Line from "Dry Van" to dot-middle */
.line2-h {
    width: 47%;
    top: 21.5%;
    left: 0%;
}

/* Line from "Drop and Hook" to dot-bottom */
.line3-h {
    width: 30.5%;
    bottom: 63.5%;
    left: 53%;
}

/* ===========================
   Responsive Styles for Mobile
   =========================== */

@media (max-width: 1399px) {
    /* Show truck on mobile but position it on the right */
    .dot,
    .line-horizontal {
        display: none !important;
    }
    
    /* Update truck styling for mobile */
    .truck-bg {
        display: block !important; /* Ensure it's visible */
        height: 100% !important; /* Full height of the section */
        position: absolute;
        right: -20%; /* Negative right positioning to make it extend outside */
        left: auto;
        top: 50%;
        width: 85%; /* Control width */
        background-position: right center; /* Position image on the right */
        margin-bottom: 0 !important;
        z-index: -99;
    }

    .services-section {
        padding: 2rem 1rem;
        position: relative;
        overflow: hidden;
    }
    
    .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-desc {
        font-size: 0.95rem;
    }
    
    /* Stack columns vertically */
    .row.text-md-start.align-items-center.position-relative {
        flex-direction: column !important;
    }
    
    .col-md-4 {
        max-width: 100%;
        flex: 0 0 100%;
        margin-bottom: 2rem;
        padding-right: 42%; /* Make room for the truck image */
    }
    
    .col-md-4:last-child {
        margin-bottom: 0;
    }
    
    /* Hide the spacer column on mobile */
    .col-md-4:empty {
        display: none !important;
    }
}


/* Extra small screens */
@media (max-width: 575px) {
    .truck-bg {
        right: -55%; /* Further negative positioning for smaller screens */
        width: 100%; /* Wider for better visibility */
    }

    .section-desc {
        margin-right: 40px;
    }
    
    .col-md-4 {
        padding-right: 15%; /* Less room for truck on very small screens */
    }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-padding);
}

.about-section img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}


/* ===== WHY US SECTION ===== */

.whyus-section {
    padding: 4rem 0;
}

.whyus-card {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium) ease;
    padding: 2rem 1.5rem;
}

.whyus-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.whyus-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.whyus-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}


/* ===== STATS SECTION ===== */
.stats-section {
    background-color: var(--accent-color);
    padding: 4rem 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    padding: var(--section-padding);
    background-color: white;
}

.quote-form {
    padding: 2rem;
    background-color: var(--light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.btn-loading {
    position: relative;
    color: transparent !important;
  }
  
  .btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: calc(50% - 0.5rem);
    left: calc(50% - 0.5rem);
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
  }
  
  @keyframes spinner {
    to {
      transform: rotate(360deg);
    }
  }

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--section-padding);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-wrapper {
    border-radius: var(--border-radius-md);
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast) ease;
    outline: none !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    outline: 0px !important;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--accent-color);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast) ease;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast) ease;
    margin-right: 0.5rem;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: var(--border-radius-sm);
        box-shadow: var(--shadow-sm);
    }
    .nav-link::after {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .social-icons {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
}