:root {
    --navy-blue: #003366;
    --signal-red: #CC0000;
    --steel-grey: #708090;
    --light-grey: #F4F6F7;
    --white: #ffffff;
    --text-color: #333;
    
    --font-head: 'Roboto Condensed', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--white);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Water Ticker */
.water-ticker { background: var(--navy-blue); color: var(--white); font-family: var(--font-head); padding: 5px 0; font-size: 0.85rem; border-bottom: 2px solid var(--signal-red); }
.ticker-flex { display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; }
.live-indicator { color: var(--signal-red); font-weight: bold; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* Header */
.marine-header { background: var(--white); padding: 20px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.header-row { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--navy-blue); display: flex; align-items: center; gap: 10px; }
.red { color: var(--signal-red); }
.anchor { font-size: 1.8rem; transform: rotate(15deg); }

.deck-nav a { margin-left: 25px; text-transform: uppercase; font-weight: 600; font-size: 0.9rem; color: var(--steel-grey); }
.deck-nav a:hover, .deck-nav a.active { color: var(--navy-blue); border-bottom: 2px solid var(--navy-blue); }

.btn-navy { background: var(--navy-blue); color: var(--white) !important; padding: 10px 25px; border-radius: 4px; font-weight: bold; }
.btn-navy:hover { background: var(--signal-red); }

/* Mobile Menu */
.mobile-toggle { display: none; cursor: pointer; font-weight: bold; color: var(--navy-blue); border: 2px solid var(--navy-blue); padding: 5px 10px; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: var(--navy-blue); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.4s; }
.mobile-menu.open { right: 0; }
.close-btn { position: absolute; top: 20px; right: 20px; background: none; border: 2px solid var(--white); color: var(--white); font-size: 2rem; cursor: pointer; padding: 0 10px; }
.mobile-menu a { font-family: var(--font-head); font-size: 2rem; color: var(--white); margin: 15px 0; }

/* Hero */
.hero-river { height: 80vh; background-size: cover; background-position: center; position: relative; }
.hero-overlay { width: 100%; height: 100%; background: linear-gradient(to right, rgba(0, 51, 102, 0.85) 0%, rgba(0, 51, 102, 0.2) 100%); display: flex; align-items: center; }
.hero-content { margin-left: 10%; color: var(--white); max-width: 600px; }
.code { font-family: 'Courier New', monospace; background: rgba(0,0,0,0.5); padding: 5px; font-size: 0.9rem; border: 1px solid var(--white); display: inline-block; margin-bottom: 15px; }
.hero-content h1 { font-family: var(--font-head); font-size: 4rem; line-height: 1.1; margin-bottom: 20px; text-shadow: 2px 2px 0 rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; }

.freight-calc { background: var(--white); padding: 25px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-top: 5px solid var(--signal-red); }
.freight-calc h3 { color: var(--navy-blue); font-family: var(--font-head); margin-bottom: 15px; }
#freightForm { display: flex; flex-wrap: wrap; gap: 10px; }
.input-grp { flex: 1; min-width: 150px; }
.input-grp input, .input-grp select { width: 100%; padding: 12px; border: 1px solid #ccc; font-family: var(--font-body); color: var(--text-color); }
.btn-calc { background: var(--navy-blue); color: var(--white); border: none; padding: 12px 25px; font-weight: bold; cursor: pointer; transition: 0.3s; flex: 0 0 auto; }
.btn-calc:hover { background: var(--signal-red); }

/* Services */
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-family: var(--font-head); font-size: 2.5rem; color: var(--navy-blue); margin-bottom: 10px; }
.red-bar { width: 80px; height: 5px; background: var(--signal-red); margin: 0 auto; }
.red-bar.left { margin: 20px 0; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--light-grey); padding: 30px; border: 1px solid #ddd; text-align: center; transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); border-color: var(--navy-blue); }
.service-card.highlight { background: var(--navy-blue); color: var(--white); }
.service-card.highlight p { color: #ddd; }
.icon { font-size: 3rem; margin-bottom: 15px; }
.service-card h3 { font-family: var(--font-head); margin-bottom: 10px; font-size: 1.4rem; }

/* Data Strip */
.data-strip { background: var(--steel-grey); color: var(--white); padding: 40px 0; margin-top: 50px; }
.data-flex { display: flex; justify-content: space-around; text-align: center; }
.data-item strong { display: block; font-family: var(--font-head); font-size: 3rem; line-height: 1; margin-bottom: 5px; }
.data-item span { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* About & Contact */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.text-side h1 { font-family: var(--font-head); font-size: 3rem; color: var(--navy-blue); }
.fleet-list { list-style: none; margin-top: 30px; font-weight: bold; color: var(--text-color); }
.fleet-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.fleet-list li::before { content: '✓'; color: var(--signal-red); position: absolute; left: 0; font-weight: bold; }
.img-side img { width: 100%; border: 5px solid var(--white); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.caption { background: var(--navy-blue); color: var(--white); text-align: center; padding: 5px; font-size: 0.8rem; font-weight: bold; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; background: var(--light-grey); padding: 50px; border-radius: 4px; }
.contact-info h2 { font-family: var(--font-head); color: var(--navy-blue); margin-bottom: 20px; }
.details p { margin-bottom: 10px; font-size: 1.1rem; }

.logistics-form .form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.col { flex: 1; }
.logistics-form label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; color: var(--navy-blue); }
.logistics-form input, .logistics-form select, .logistics-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; font-family: var(--font-body); background: var(--white); }
.btn-submit { width: 100%; background: var(--signal-red); color: var(--white); border: none; padding: 15px; font-weight: bold; cursor: pointer; transition: 0.3s; font-family: var(--font-head); letter-spacing: 1px; }
.btn-submit:hover { background: var(--navy-blue); }

/* Ref & Legal */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ref-box { background: var(--white); padding: 30px; border: 1px solid #ccc; border-left: 5px solid var(--navy-blue); }
.ref-box.highlight { border-left-color: var(--signal-red); background: #fffdfd; }
.ref-box h4 { font-family: var(--font-head); color: var(--navy-blue); margin-bottom: 15px; }
.ref-box p { font-style: italic; margin-bottom: 20px; color: #555; }
.author { font-weight: bold; font-size: 0.8rem; text-align: right; }

.legal-doc { max-width: 800px; margin: 0 auto; background: var(--white); padding: 50px; border: 1px solid #eee; }
.legal-doc h1 { font-family: var(--font-head); color: var(--navy-blue); }
.legal-doc h3 { color: var(--signal-red); margin-top: 30px; }

/* Footer */
.marine-footer { background: var(--navy-blue); color: #ccc; padding: 60px 0 20px; margin-top: 80px; border-top: 5px solid var(--signal-red); }
.footer-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; margin-bottom: 20px; }
.f-col h4 { color: var(--white); font-family: var(--font-head); margin-bottom: 5px; }
.f-col.right a { color: #aaa; margin-left: 20px; }
.f-col.right a:hover { color: var(--white); }
.copyright { text-align: center; font-size: 0.8rem; }

/* Cookie */
.cookie-nav { position: fixed; bottom: 20px; left: 20px; background: var(--white); border: 2px solid var(--navy-blue); padding: 15px 25px; display: flex; align-items: center; gap: 20px; z-index: 9999; display: none; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.cookie-nav.active { display: flex; animation: slideUp 0.5s; }
.cookie-nav button { background: var(--signal-red); color: var(--white); border: none; padding: 5px 15px; font-weight: bold; cursor: pointer; }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (max-width: 900px) {
    .deck-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero-content h1 { font-size: 3rem; }
    #freightForm { flex-direction: column; }
    .input-grp { width: 100%; }
    .service-grid, .about-grid, .contact-wrapper, .ref-grid, .stats-flex, .logistics-form .form-row { grid-template-columns: 1fr; }
    .stats-flex { gap: 30px; }
    .footer-row { flex-direction: column; text-align: center; gap: 20px; }
}