/* style.css */

/* Custom Color Variables */
:root {
    --primary-blue: #0d6efd; /* Bootstrap primary blue, conveys trust */
    --primary-blue-hover: #0b5ed7;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #212529;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

/* Hero Section */
.hero-section {
    background-color: #0a2540;
    background-image: url('../Resources/Images/reversemfltruck.png?v=20260315');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Fix for iOS Safari background-attachment: fixed issue */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Primary Button Customization */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.15);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.2);
}

/* Glare Hover Effect */
.glare-hover {
    position: relative;
    overflow: hidden;
}

.glare-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        -45deg,
        hsla(0, 0%, 0%, 0) 40%,
        rgba(255, 255, 255, 0.4) 50%,
        hsla(0, 0%, 0%, 0) 60%,
        hsla(0, 0%, 0%, 0) 100%
    );
    transition: 650ms ease;
    background-size: 250% 250%;
    background-repeat: no-repeat;
    background-position: -150% -150%;
    pointer-events: none;
    border-radius: inherit;
}

.glare-hover:hover::before {
    background-position: 150% 150%;
}

/* Form Card Customization */
.form-card {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Inline Validation Styling */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
    background-image: none; /* Removing default bootstrap icon to keep it clean */
}

.invalid-feedback {
    font-size: 0.875em;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Service & Testimonial Cards */
.service-card, .testimonial-card, .hover-lift {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card {
    overflow: hidden;
}

.service-card:hover, .testimonial-card:hover, .hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-card-image-wrap {
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
    background-color: #e9eef5;
}

.service-card-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(10, 37, 64, 0.18);
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem !important;
}

.service-card .card-title {
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.service-card .card-text {
    margin-bottom: 0;
    line-height: 1.5;
}

.about-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.founder-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background-color: #ffffff;
    overflow: hidden;
    height: 100%;
}

.founder-photo {
    display: block;
    width: 100%;
    flex-shrink: 0;
    height: 340px;
    object-fit: cover;
    object-position: center top;
}

.founder-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
    padding: 1rem 1.25rem 1.25rem;
}

.founder-card .card-body h5 {
    line-height: 1.2;
}

/* Trust Icons */
.trust-icon i {
    transition: transform 0.3s ease;
}

.trust-icon:hover i {
    transform: scale(1.1);
}

/* Footer Hover Links */
.hover-white:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Navbar adjustments */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.phone-link {
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: var(--primary-blue) !important;
}