/* ============================================================================
 * Sriniwas Logistics - P & P Transport
 * Main Stylesheet (modern logistics theme)
 * =========================================================================== */

:root {
    --primary: #0B5FDB;
    --primary-glow: #1D7AF2;
    --accent: #F97316;
    --accent-glow: #FB921C;
    --navy: #12263F;
    --navy-light: #1B3A6B;
    --header-bg: #FFFFFF;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --text: #1F2A44;
    --text-secondary: #4B5563;
    --shadow-sm: 0 1px 4px rgba(18, 38, 63, 0.06);
    --shadow-md: 0 6px 20px rgba(11, 95, 219, 0.12);
    --shadow-lg: 0 12px 40px rgba(11, 95, 219, 0.16);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-full: 50%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Base ---------- */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    font-weight: 400;
}

::selection {
    background-color: rgba(11, 95, 219, 0.18);
    color: var(--navy);
}

/* ---------- Navbar ---------- */
#mainNav {
    background-color: var(--white) !important;
    padding: 0.7rem 0;
    box-shadow: 0 1px 8px rgba(18, 38, 63, 0.06);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#mainNav.scrolled {
    box-shadow: 0 2px 16px rgba(18, 38, 63, 0.10);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--navy) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img.logo {
    height: 150px;
    width: auto;
    display: block;
}

.navbar-brand .brand-mark {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--navy) !important;
    background-color: rgba(11, 95, 219, 0.06) !important;
}

.navbar-nav .nav-link.active {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    box-shadow: 0 2px 8px rgba(11, 95, 219, 0.25) !important;
}

.navbar-nav .nav-link:focus-visible {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: #fff !important;
}

.navbar-toggler {
    border-color: var(--primary);
    color: var(--navy);
    padding: 0.4rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(11, 95, 219, 0.35);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%2312263F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h22M4 16h22M4 24h22'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1E4E8C 100%);
    color: var(--white);
    padding: 110px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 30%, rgba(249, 115, 22, 0.18) 0%, transparent 45%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23ffffff22' stroke-width='0.5'%3E%3Ccircle cx='10' cy='10' r='0.5'/%3E%3Ccircle cx='90' cy='30' r='0.5'/%3E%3Ccircle cx='30' cy='85' r='0.5'/%3E%3Ccircle cx='80' cy='70' r='0.5'/%3E%3Ccircle cx='60' cy='20' r='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-section .container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(11, 95, 219, 0.05), transparent 60%);
    pointer-events: none;
}

.hero-section .logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-section .brand-mark {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-section .subtitle {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-section .supporting {
    font-size: 1.05rem;
    max-width: 660px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-section .badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-section .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-section .btn {
    padding: 0.85rem 2rem;
    font-weight: 700;
    border-radius: 999px;
    margin: 0.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-section .btn-light {
    color: var(--navy);
    background: var(--white);
    border: 2px solid var(--white);
}

.hero-section .btn-light:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-section .btn-outline-light {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.hero-section .btn-outline-light:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ---------- Sections ---------- */
.section { padding: 85px 0; scroll-margin-top: 90px; }

.section-light { background-color: var(--light-gray); }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* ---------- Service Cards ---------- */
.service-card {
    background: var(--white);
    border: 1px solid rgba(18, 38, 63, 0.08);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.service-card .icon {
    width: 78px;
    height: 78px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.25rem;
}

.service-card.hover-accent:hover .icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.service-card h5 {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.service-card .btn { border-radius: 999px; font-weight: 600; }

/* ---------- About ---------- */
.about-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.feature-item .icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(11, 95, 219, 0.12), rgba(249, 115, 22, 0.12));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.feature-item h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- Why Choose Us ---------- */
.why-card {
    background: var(--white);
    border: 1px solid rgba(18, 38, 63, 0.08);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.why-card .icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(11, 95, 219, 0.15), rgba(249, 115, 22, 0.15));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

.why-card h5 {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--white);
    border: 1px solid rgba(18, 38, 63, 0.08);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.testimonial-card .stars {
    color: #FFC107;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.testimonial-card .name {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0;
}

.testimonial-card .designation {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ---------- Contact Form ---------- */
.contact-form-card {
    background: var(--white);
    border: 1px solid rgba(18, 38, 63, 0.08);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item .icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(11, 95, 219, 0.12), rgba(249, 115, 22, 0.12));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-info-item h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy) !important;
    color: var(--white);
}

.site-footer a { color: rgba(255, 255, 255, 0.85); }

.site-footer a:hover { color: var(--accent) !important; }

.site-footer .footer-col h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }

.site-footer .footer-col li { margin-bottom: 0.6rem; }

.site-footer .footer-col a { text-decoration: none; }

.site-footer .footer-col p, .site-footer .footer-col li { font-size: 0.9rem; }

.site-footer hr { border-color: rgba(255, 255, 255, 0.12); }

.site-footer .copyright { color: rgba(255, 255, 255, 0.7); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpFast {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.fade-up-fast {
    opacity: 0;
    animation: fadeUpFast 0.4s ease forwards;
}

/* ---------- Accessibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-section { padding: 90px 0 70px; }
    .hero-section h1 { font-size: 2.25rem; }
    .hero-section .subtitle { font-size: 1.15rem; }
}

@media (max-width: 767.98px) {
    .hero-section { padding: 70px 0 60px; }
    .hero-section h1 { font-size: 1.85rem; }
    .hero-section .subtitle { font-size: 1.05rem; }
    .hero-section .badge-row { gap: 0.5rem; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }
    .contact-form-card, .service-card, .why-card, .testimonial-card { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .hero-section .btn { display: block; width: 100%; margin: 0.5rem 0; }
    .hero-section .supporting { font-size: 1rem; }
}

/* ---------- Utilities ---------- */
.img-responsive {
    width: 100%;
    height: auto;
    display: block;
}

.img-responsive.loaded { opacity: 1; }

.img-responsive.lazy { opacity: 0.55; }

/* ---------- Hero imagery ---------- */
.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 280px;
}

.hero-img-wrapper .hero-truck {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.hero-truck-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 38, 63, 0.05) 0%, rgba(18, 38, 63, 0.45) 100%);
    pointer-events: none;
}

.hero-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(11, 95, 219, 0.92);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(11, 95, 219, 0.35);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-content {
    max-width: 560px;
}

@media (max-width: 991.98px) {
    .hero-img-wrapper { min-height: 220px; }
    .hero-img-wrapper .hero-truck { min-height: 220px; }
}

@media (max-width: 767.98px) {
    .hero-section .row { flex-direction: column-reverse; }
    .hero-img-wrapper { min-height: 180px; }
    .hero-img-wrapper .hero-truck { min-height: 180px; }
    .hero-section { padding: 70px 0 50px; }
    .hero-section h1 { font-size: 1.85rem; }
    .hero-content { max-width: 100%; }
}
/* ---------- Text utilities ---------- */
.text-light {
    color: #fff !important;
}

.fade-up {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.fade-up-fast {
    opacity: 0;
    animation: fadeUpFast 0.4s ease forwards;
}
.hero-img-wrapper img {
    width: 100%;
}
