/* ==========================================================================
   Harbor Nova Logistics - Stylesheet
   ========================================================================== */

:root {
    /* Colors */
    --primary-navy: #0B1B36; /* Dark blue background */
    --darker-navy: #060e1d; /* Even darker blue for quote/footer */
    --gold: #D0A144; /* Primary accent */
    --gold-hover: #b88b33;
    --light-bg: #F5F7FA;
    --white: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #e0e0e0;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.gold-text { color: var(--gold); }
.dark-bg { background-color: var(--primary-navy); color: var(--white); }
.light-bg { background-color: var(--light-bg); }
.mt-4 { margin-top: 1.5rem; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-navy);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    max-height: 70px; /* Increased logo size */
    width: auto;
    background-color: white;
    padding: 5px 15px;
    border-radius: 8px;
}

.footer-logo-img {
    max-height: 80px;
    margin-bottom: 20px;
}

.logo-mark {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    position: relative;
}

.logo-mark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--gold);
    transform: translateX(-50%);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--text-light);
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-subtitle .line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a:not(.btn) {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sticky Nav class added via JS */
.navbar.sticky {
    position: fixed;
    background-color: var(--primary-navy);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('../img/hero_port.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 27, 54, 0.9) 0%, rgba(11, 27, 54, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-subtitle {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 25px;
    color: var(--white);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: var(--text-light);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Hero Subnav */
.hero-subnav {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    background: linear-gradient(to top, rgba(11, 27, 54, 1) 0%, rgba(11, 27, 54, 0) 100%);
    padding-top: 40px;
}

.subnav-item {
    color: var(--white);
    text-decoration: none;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.8;
}

.subnav-item:hover {
    opacity: 1;
    color: var(--gold);
}

.subnav-item::after {
    content: '|';
    position: absolute;
    right: 0;
    color: rgba(255, 255, 255, 0.3);
}

.subnav-item:last-child::after {
    display: none;
}

.subnav-item.active {
    opacity: 1;
}

.subnav-item.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--gold);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-img {
    position: relative;
    height: 120px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 3px solid var(--white);
}

.service-content {
    padding: 35px 15px 25px;
}

.service-content h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.service-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   About & Why Us Section (Split Layout)
   ========================================================================== */
.about-why-section {
    display: flex;
    flex-wrap: wrap;
}

.about-half, .why-us-half {
    width: 50%;
}

/* About Half */
.about-half {
    display: flex;
}

.about-content {
    padding: 100px 50px 100px 10%;
    width: 60%;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-image-container {
    width: 40%;
    position: relative;
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Why Us Half */
.why-us-half {
    padding: 100px 10% 100px 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 15px;
}

.feature-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-color: var(--primary-navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.feature-text h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--primary-navy);
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Quote Form Section
   ========================================================================== */
.quote-section {
    padding: 100px 0;
    background-color: var(--darker-navy);
}

.quote-form {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-row.full-width {
    flex-direction: row;
    align-items: flex-end;
}

.form-row.full-width .form-group {
    flex: 3;
}

.submit-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    color: var(--white);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: var(--white);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 2px;
}

input::placeholder {
    color: #999;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
}

.submit-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 8px;
    text-align: center;
}

/* ==========================================================================
   Quick Contact Bar
   ========================================================================== */
.quick-contact-bar {
    background-color: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.contact-bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-navy);
}

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

.contact-info .label {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-info .value {
    font-size: 1rem;
    color: var(--primary-navy);
    font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--darker-navy);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo .logo-mark,
.footer-logo .logo-title,
.footer-logo .logo-subtitle {
    color: var(--white);
}

.footer-logo .logo-mark::after {
    background-color: var(--white);
}

.footer-logo .logo-subtitle .line {
    background-color: rgba(255,255,255,0.2);
}

.footer-tagline {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.links-col ul li,
.contact-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a,
.contact-col ul li,
.contact-col ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-col ul li a:hover,
.contact-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.lang-btn:hover, .lang-btn.active {
    opacity: 1;
    color: var(--gold);
}

.lang-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-outline.dark {
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-outline.dark:hover {
    background-color: rgba(0,0,0,0.05);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-why-section {
        flex-direction: column;
    }
    
    .about-half, .why-us-half {
        width: 100%;
    }
    
    .about-content {
        padding: 80px 5%;
        width: 100%;
    }
    
    .about-image-container {
        display: none; /* Hide image on smaller screens to save space */
    }
    
    .why-us-half {
        padding: 80px 5%;
    }
    
    .form-row, .form-row.full-width {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-bar-inner {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding-left: 10%;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-navy);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        gap: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .lang-switcher {
        margin: 10px auto;
        justify-content: center;
        background: transparent;
        border: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subnav {
        display: none; /* Hide on mobile */
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
