/* =========================================================
   VPS MARINE CARGO BV — design system v2
   ========================================================= */

:root {
    --ink:    #16213A;   /* deep, slightly warm navy-black */
    --navy:   #26314A;
    --red:    #9C2B27;   /* muted brick/flag red — classic, not neon */
    --red-dk: #7A211D;
    --cream:  #F7F4EC;   /* warm paper background */
    --paper:  #FFFFFF;
    --ash:    #545F6C;   /* body copy */
    --line:   #E1DACB;   /* hairline on cream */
    --line-2: #D8D1C1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--cream);
    color: var(--ink);
    font-family: 'Source Sans 3', Georgia, sans-serif;
    line-height: 1.65;
    font-size: 16.5px;
}

h1, h2, h3, h4 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.22;
}

a { color: inherit; }

.eyebrow {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 12px;
}

/* --- Top utility bar --- */
.top-bar {
    background-color: var(--ink);
    font-size: 12.5px;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 50px;
    gap: 30px;
    flex-wrap: wrap;
}

.top-bar-container a {
    color: #A9B0BC;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.2s;
}

.top-bar-container a:hover { color: #ffffff; }
.top-bar-container a.active { color: #ffffff; border-bottom: 1px solid var(--red); padding-bottom: 2px; }

/* --- Main header --- */
.main-header {
    background-color: var(--paper);
    padding: 0 50px;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
}

.header-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-container img { max-height: 58px; width: auto; display: block; }

.logo-text {
    font-family: 'Source Serif 4', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--ink);
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-decoration: none;
    border: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); display: block; }

.main-nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }

.main-nav ul li a {
    display: block;
    color: var(--ink);
    text-decoration: none;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 15px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.main-nav ul li a:hover { color: var(--red); }
.main-nav ul li a.active { color: var(--red); border-bottom-color: var(--red); }

/* thin brand rule beneath the header — restrained, appears once */
.header-rule { height: 3px; background: var(--red); width: 100%; }

/* --- Hero (home page) --- */
.hero {
    position: relative;
    min-height: 74vh;
    background-color: var(--ink);
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.bg-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(22,33,58,0.96) 38%, rgba(22,33,58,0.6) 72%, rgba(22,33,58,0.3) 100%);
    z-index: 1;
}

/* the draught scale — a quiet nod to how a survey is actually read off a hull */
.draught-scale {
    position: relative;
    z-index: 2;
    display: none;
    flex-direction: column-reverse;
    padding: 60px 0 60px 50px;
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    color: #5A6C82;
    font-size: 15px;
    flex-shrink: 0;
}

@media (min-width: 1041px) {
    .draught-scale { display: flex; }
}

.draught-scale .mark { display: flex; align-items: center; gap: 12px; height: 42px; }
.draught-scale .mark .tick { width: 16px; height: 1px; background: #3C4B63; }
.draught-scale .mark.waterline { color: var(--red); }
.draught-scale .mark.waterline .tick { background: var(--red); width: 26px; }

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6vw 0 20px;
    max-width: 700px;
    color: var(--paper);
}

.hero-content .eyebrow {
    color: #D99490;
    font-style: italic;
    font-family: 'Source Serif 4', serif;
    text-transform: none;
    letter-spacing: 0.3px;
    font-size: 16px;
}

.hero-content h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.3rem);
    font-weight: 600;
    line-height: 1.18;
    margin-bottom: 22px;
    color: var(--paper);
}

.hero-content p {
    font-size: 1.1rem;
    color: #C7CDD8;
    margin-bottom: 34px;
}

.btn-call {
    display: inline-flex;
    align-self: flex-start;
    background-color: transparent;
    color: var(--paper);
    padding: 15px 34px;
    text-decoration: none;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--red);
    background: var(--red);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-call:hover { background-color: transparent; border-color: var(--paper); }

/* --- Interior page header band --- */
.page-header-simple {
    background-color: var(--ink);
    color: var(--paper);
    padding: 64px 50px 38px;
    text-align: center;
}

.page-header-simple .eyebrow { color: #D99490; }

.page-header-simple h1 {
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    font-weight: 600;
    color: var(--paper);
}

/* --- Content --- */
.content-section { padding: 76px 50px; max-width: 1160px; margin: 0 auto; }

.content-section h2 { font-size: 2rem; margin-bottom: 22px; }
.content-section h3 { font-size: 1.25rem; font-weight: 600; }

.content-section p {
    font-size: 1.08rem;
    color: var(--ash);
    margin-bottom: 20px;
    max-width: 740px;
}

/* editorial pull-quote / lede — a line, not a box */
.lede {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 1.55rem !important;
    font-weight: 500;
    color: var(--ink) !important;
    line-height: 1.45;
    padding-left: 24px;
    border-left: 2px solid var(--red);
    max-width: 760px;
    margin-bottom: 46px !important;
}

/* --- Numbered index list (replaces boxed service cards) --- */
.index-list { margin-top: 48px; }

.index-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 24px;
    padding: 30px 0;
    border-top: 1px solid var(--line-2);
}

.index-list .index-item:last-child { border-bottom: 1px solid var(--line-2); }

.index-item .num {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: var(--red);
}

.index-item h3 { margin-bottom: 8px; }
.index-item p { margin-bottom: 0; max-width: 640px; }

/* --- Industrial / plain list --- */
.industrial-list { list-style: none; margin-top: 22px; }

.industrial-list li {
    margin-bottom: 14px;
    padding-left: 24px;
    position: relative;
    font-weight: 600;
    font-size: 1.06rem;
    color: var(--ink);
}

.industrial-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 12px; height: 2px;
    background: var(--red);
}

/* --- Core values (about us) — definition list, no panel --- */
.values-list { max-width: 780px; margin-top: 28px; }

.values-list .value-row {
    padding: 22px 0;
    border-top: 1px solid var(--line-2);
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 20px;
}
.values-list .value-row:last-child { border-bottom: 1px solid var(--line-2); }

.values-list h3 {
    font-size: 1.05rem;
    color: var(--red);
}

.values-list p { margin-bottom: 0; }

@media (max-width: 700px) {
    .values-list .value-row { grid-template-columns: 1fr; gap: 6px; }
}

/* --- Contact --- */
.contact-columns { display: flex; gap: 70px; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 280px; }
.contact-info h3 { margin-top: 32px; margin-bottom: 10px; font-size: 1.05rem; }
.contact-info h3:first-of-type { margin-top: 8px; }
.contact-info p { color: var(--ink); }

.contact-form { flex: 2; min-width: 360px; max-width: 620px; }

.form-group { margin-bottom: 26px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 1.2px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 2px;
    border: none;
    border-bottom: 1px solid var(--line-2);
    background-color: transparent;
    font-family: inherit;
    font-size: 15.5px;
    color: var(--ink);
    transition: border-color 0.2s;
}

.form-group textarea { padding: 10px 2px; }

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--red);
}

.btn-submit {
    background-color: var(--ink);
    color: var(--paper);
    padding: 14px 34px;
    border: none;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.25s;
}

.btn-submit:hover { background-color: var(--red); }

/* spam honeypot — hidden from real visitors without display:none (which some bots detect) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* contact form success/error banner */
.form-banner {
    display: none;
    padding: 16px 20px;
    margin-bottom: 26px;
    font-size: 0.95rem;
    border-left: 3px solid;
}

.form-banner-success {
    display: block;
    background: #EEF3EC;
    border-color: #4C7A4C;
    color: #2E4C2E;
}

.form-banner-error {
    display: block;
    background: #F7EAE8;
    border-color: var(--red);
    color: var(--red-dk);
}

/* --- News --- */
.news-item { padding: 28px 0; border-top: 1px solid var(--line-2); max-width: 720px; }
.news-date {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--ash);
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* --- Stories: project gallery --- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 34px;
    margin-top: 48px;
}

.story-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    color: var(--ink);
}

.story-thumb {
    display: block;
    width: 100%;
    min-height: 190px;
    aspect-ratio: 4 / 3;
    background: #EAE5D8;
    overflow: hidden;
    position: relative;
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.story-card:hover .story-thumb img { transform: scale(1.045); }

.story-thumb-empty::after {
    content: 'Photos coming soon';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    color: var(--ash);
    font-size: 0.9rem;
}

.story-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 2px 0;
    border-top: 1px solid var(--line-2);
    margin-top: 16px;
}

.story-title {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.story-view {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--red);
    white-space: nowrap;
}

/* --- Lightbox gallery --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(16, 22, 36, 0.94);
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-stage {
    max-width: 86vw;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-stage img {
    max-width: 86vw;
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.lightbox-counter {
    color: #C7CDD8;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-top: 16px;
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 30px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 10px 22px;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.lightbox-nav:hover { opacity: 1; }

@media (max-width: 640px) {
    .lightbox-nav { font-size: 2.2rem; padding: 8px 12px; }
    .lightbox-close { top: 14px; right: 16px; font-size: 1.8rem; }
    .story-caption { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* --- Footer --- */
.site-footer { background-color: var(--ink); color: var(--paper); padding: 60px 50px 26px; }

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 44px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: 'Source Serif 4', serif;
    color: var(--paper);
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 600;
}

.footer-col p { color: #9AA1AD; margin-bottom: 10px; font-size: 0.94rem; }

.footer-col a {
    color: #9AA1AD;
    text-decoration: none;
    display: block;
    margin-bottom: 9px;
    font-size: 0.94rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: #6B7280;
    font-size: 12px;
}

.footer-bottom a {
    color: #9AA1AD;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom a:hover { color: #ffffff; }

body { overflow-x: hidden; }

/* --- Responsive --- */
@media (max-width: 1040px) {
    .top-bar-container { justify-content: center; padding: 9px 20px; gap: 16px 22px; }
    .main-header { padding: 0 20px; }
    .nav-toggle { display: flex; }
    .main-nav { display: none; width: 100%; order: 3; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
    .main-nav ul li a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
    .hero { min-height: 82vh; }
    .hero-content { padding: 40px 24px 56px; max-width: 100%; }
    .content-section { padding: 50px 24px; }
    .page-header-simple { padding: 46px 24px 30px; }
    .index-item { grid-template-columns: 44px 1fr; }
    .contact-form { max-width: 100%; }
}

@media (max-width: 480px) {
    .top-bar-container { font-size: 11px; gap: 10px 16px; padding: 8px 16px; }
    .header-container { padding: 6px 0; }
    .logo-container img { max-height: 46px; }
    .logo-text { font-size: 1.02rem; }
    .hero-content h1 { font-size: 1.9rem; }
    .hero-content p { font-size: 1rem; }
    .btn-call { width: 100%; justify-content: center; padding: 15px 20px; }
    .content-section h2 { font-size: 1.6rem; }
    .lede { font-size: 1.25rem !important; padding-left: 16px; }
    .values-list .value-row { grid-template-columns: 1fr; }
    .contact-columns { gap: 40px; }
}