/* ===== J&N LOGISTICS & MARINE SERVICES - CSS ===== */
/* Pulse Logistics design • Blue, Yellow & White */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #3b82f6;
    --yellow: #eab308;
    --yellow-dark: #ca8a04;
    --yellow-light: #facc15;
    --secondary: #1f2937;
    --text-dark: #111827;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    font-size: 16px;
    letter-spacing: 0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 100px;
    width: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header.scrolled .logo-image {
    border-color: rgba(37, 99, 235, 0.2);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header.scrolled .logo-text h1 {
    color: var(--primary);
    text-shadow: none;
}

.logo-text .tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header.scrolled .logo-text .tagline {
    color: var(--text-light);
    text-shadow: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header.scrolled .nav-link {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--yellow-light);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--blue);
}

.header.scrolled .nav-link.active::after {
    background: var(--primary);
}

/* Mobile Menu */
.mobile-menu-toggle,
.mobile-menu-close {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header.scrolled .hamburger {
    background: var(--text-dark);
    box-shadow: none;
}

.mobile-menu-close {
    font-size: 2rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header.scrolled .mobile-menu-close {
    color: var(--text-dark);
    text-shadow: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?w=1920&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.65) 0%, rgba(234, 179, 8, 0.35) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.hero-tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 600;
    color: var(--yellow-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--blue);
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--blue);
    margin: 0 auto 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* About Section */
.about {
    background: var(--gray-50);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-mission-vision {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 1.75rem;
}

.mission-vision-block {
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--blue-primary);
}

.mission-vision-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.mission-vision-block p {
    margin-bottom: 0.5rem;
}

.mission-vision-block ul {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.mission-vision-block li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

/* Services Section */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-light);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.freight-networks {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--blue-primary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.freight-networks-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.freight-networks-intro {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.freight-networks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.freight-networks-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.freight-networks-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--blue-primary);
    font-weight: 700;
}

/* Reviews Section */
.reviews {
    background: var(--gray-50);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.review-stars {
    color: var(--yellow);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.review-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.review-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.review-content p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
    font-style: italic;
}

.review-author {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.review-author strong {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.125rem;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.business-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 2px solid var(--gray-100);
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.detail-badge .detail-icon {
    opacity: 0.9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-details a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--blue);
}

.contact-form {
    background: var(--gray-50);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-100);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1e3a8a 0%, #1d4ed8 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--yellow-light);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--yellow-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        padding: 5rem 2rem 2rem;
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav.active .nav-link {
        color: var(--text-dark);
        text-shadow: none;
    }

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

    .nav.active .nav-link.active::after {
        background: var(--primary);
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-menu-toggle,
    .mobile-menu-close {
        display: flex;
    }

    .mobile-menu-close {
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        z-index: 1000;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        background-attachment: scroll;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .logo-image {
        height: 70px;
        width: 70px;
    }

    .logo-text h1 {
        font-size: 1.25rem;
    }

    .logo-text .tagline {
        font-size: 0.75rem;
    }
}
