﻿/* --- SHARED CSS (Consistent with other pages) --- */
:root {
    --primary-color: #0056b3; /* Deep Sea Blue */
    --accent-color: #ff6b35; /* Vibrant Orange */
    --dark-blue: #0f172a; /* Corporate Dark */
    --light-bg: #f4f8fb;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
}

a {
    text-decoration: none;
}

/* Navigation */
nav {
    background: var(--white);
    padding: 5px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: inline-block;
}

    .logo img {
        max-height: 60px;
        width: auto;
        display: block;
    }

.nav-links a {
    color: var(--text-dark);
    margin-left: 25px;
    font-weight: 600;
    transition: 0.3s;
}

    .nav-links a:hover {
        color: var(--primary-color);
    }

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}

/* --- B2B HOMEPAGE STYLES --- */

/* Hero Section with FERRY IMAGE BACKGROUND */
.b2b-hero {
    /* Updated Image to a Ferry */
    background: linear-gradient(rgba(0, 30, 80, 0.7), rgba(0, 30, 80, 0.6)), url('https://images.unsplash.com/photo-1605281317010-fe5ffe798166?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.b2b-hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.b2b-hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 18px 40px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

    .btn-primary:hover {
        background-color: #e55a2b;
        transform: translateY(-3px);
    }

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 16px 35px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
}

    .btn-outline:hover {
        background-color: white;
        color: var(--primary-color);
    }

/* Ferry Search Widget Preview */
.hero-widget-preview {
    position: absolute;
    right: 5%;
    bottom: 50px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none; /* Hidden on mobile, visible on desktop */
}

.widget-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.widget-label {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

.widget-val {
    font-weight: bold;
    color: #333;
}

@media (min-width: 1024px) {
    .hero-widget-preview {
        display: block;
    }
}

/* Features Grid */
.section-padding {
    padding: 80px 5%;
}

.text-center {
    text-align: center;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

    .section-header h2 {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .section-header p {
        color: var(--text-light);
        font-size: 1.1rem;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
    transition: 0.3s;
    border: 1px solid transparent;
}

    .service-card:hover {
        background: white;
        box-shadow: var(--shadow);
        transform: translateY(-5px);
        border-color: #eee;
    }

.icon-box {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Fleet Section */
.fleet-strip {
    background: var(--dark-blue);
    padding: 60px 5%;
    color: white;
    text-align: center;
}

.fleet-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
    opacity: 0.7;
    align-items: center;
}

.fleet-name {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1544644181-1484b3fdfc62?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 40px;
        opacity: 0.9;
    }

/* Search Widget */
.search-container {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1100px;
    position: relative;
    top: 30px; /* Slight overlap effect */
}

.search-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab {
    cursor: pointer;
    padding-bottom: 5px;
    color: var(--text-light);
    font-weight: 600;
}

    .tab.active {
        color: var(--primary-color);
        border-bottom: 3px solid var(--primary-color);
    }

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-size: 0.9rem;
        color: var(--text-light);
        margin-bottom: 5px;
        font-weight: 600;
    }

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #f9f9f9;
}

    .input-wrapper i {
        color: var(--primary-color);
        margin-right: 10px;
    }

    .input-wrapper input, .input-wrapper select {
        border: none;
        background: transparent;
        width: 100%;
        font-size: 1rem;
        outline: none;
    }

.btn-search {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

    .btn-search:hover {
        background-color: #e55a2b;
        transform: translateY(-2px);
    }

/* Features / Why Choose Us */
.features {
    margin-top: 80px;
    padding: 60px 5%;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

.feature-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* Popular Ferries Section */
.popular-ferries {
    background-color: #fff;
    padding: 60px 5%;
}

.ferry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ferry-card {
    border: 1px solid #eee;
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

    .ferry-card:hover {
        box-shadow: var(--shadow);
    }

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.ferry-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ddd; /* Placeholder color */
}

.ferry-details {
    padding: 20px;
}

.ferry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ferry-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.route {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

    .price span {
        font-size: 0.9rem;
        color: var(--text-light);
        font-weight: 400;
    }

.btn-book {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-book:hover {
        background-color: var(--primary-color);
        color: var(--white);
    }

/* Schedule Table Section */
.schedule-section {
    padding: 60px 5%;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

    .schedule-table th {
        background-color: var(--primary-color);
        color: var(--white);
        padding: 15px;
        text-align: left;
    }

    .schedule-table td {
        padding: 15px;
        border-bottom: 1px solid #eee;
        color: var(--text-dark);
    }

    .schedule-table tr:last-child td {
        border-bottom: none;
    }


















/* Footer reused */
footer {
    background-color: #1a2b49;
    color: #d1d5db;
    padding: 60px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

    .footer-col ul li {
        margin-bottom: 10px;
    }

.footer-col a {
    color: #d1d5db;
    text-decoration: none;
    transition: 0.2s;
}

    .footer-col a:hover {
        color: var(--accent-color);
    }

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .b2b-hero h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-widget-preview {
        display: none;
    }
}
