/*
© 2025 Hardsjø Marine AS. Design: AltiBedrift.
Theme: Industrial Maritime High-End (Tummin/Anthem Inspired)
Style: Brutalist, Technical, Grid-based, Video-centric
*/

:root {
  /* Palette - Strict Adherence */
  --col-navy: #0A1A3A;        /* Deep Navy */
  --col-navy-trans: rgba(10, 26, 58, 0.95);
  --col-steel: #606A79;       /* Industrial Grey */
  --col-steel-light: #E5E7EB; /* Lighter Grid Lines */
  --col-blue-action: #00509D; /* Signal Blue */
  --col-white: #FFFFFF;
  --col-bg-light: #F9FAFB;
  --col-bg-dark: #ECEFF3;
  
  /* Typography */
  --font-head: 'Barlow', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1700px; /* Ultra wide for high-end feel */
  --header-height: 100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--col-white);
  color: var(--col-navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography Overhaul - Massive & Sharp */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--col-navy);
  line-height: 1.1; /* More breathing room */
  letter-spacing: -0.01em;
  margin: 0;
  hyphens: manual; /* Disable auto hyphenation for pro look */
  overflow-wrap: break-word; /* Only break if word is wider than screen */
}

p {
  color: var(--col-steel);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem; /* Space after period/paragraph */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 88%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* --- Global Grid Lines Background --- */
.background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-size: 100px 100px;
    background-image:
        linear-gradient(to right, rgba(10, 26, 58, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 26, 58, 0.03) 1px, transparent 1px);
    will-change: transform; /* Performance hint */
    content-visibility: auto;
}

/* --- Header (Tummin Style: Pure White, Sharp, Technical) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(10, 26, 58, 0.1);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1800px; /* Wider header content */
  width: 92%;
}

.logo img {
  height: 80px;
  width: 80px;
  display: inline-block;
  line-height: 0;
  padding: 0;
  /* Force dark logo for contrast on white header */
  filter: brightness(0) saturate(100%) invert(8%) sepia(35%) saturate(3000%) hue-rotate(205deg) brightness(95%) contrast(105%);
}

.nav-list {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  list-style: none;
}

.nav-list a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  color: var(--col-navy);
  padding: 2rem 0;
}

/* Technical Hover Line */
.nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--col-blue-action);
    transition: width 0.3s ease;
}

.nav-list a:hover::before {
    width: 100%;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    border-top: 4px solid var(--col-blue-action);
    border-bottom: 1px solid var(--col-navy);
    border-left: 1px solid var(--col-navy);
    border-right: 1px solid var(--col-navy);
    padding: 0;
    list-style: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
    display: block;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--col-steel-light);
    color: var(--col-navy);
    transition: 0.2s;
}
.dropdown-menu li a:hover {
    background: var(--col-bg-light);
    padding-left: 2.5rem;
    color: var(--col-blue-action);
}
.dropdown-menu li a::before { display: none; } /* Remove bottom line from dropdown items */

.mobile-nav-toggle { 
    display: none; 
    background:none; 
    border:none; 
    cursor:pointer;
    padding: 10px;
    /* Ensure it stays right on mobile flex */
    margin-left: auto; 
}
.icon-bar { display:block; width:30px; height:3px; background:var(--col-navy); margin:6px 0; transition: 0.3s;}

/* --- Hero (Anthem Style: Left Aligned, Massive Scale, Depth Glow) --- */
.hero {
  position: relative;
  min-height: 100vh; /* Ensure full height */
  width: 100%;
  display: flex;
  align-items: center; /* Vertically Center */
  justify-content: flex-start; /* Horizontally Left */
  overflow: hidden;
  border-bottom: 1px solid var(--col-navy);
  padding-top: var(--header-height); /* Account for fixed header */
  padding-bottom: 4rem;
}

.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  height: 120%; /* Extra height for parallax */
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradient from left (darker for text) to right (lighter for video) */
    background: linear-gradient(90deg, rgba(10,26,58,0.7) 0%, rgba(10,26,58,0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertical Center */
  align-items: flex-start; /* Left Align Content */
  text-align: left;
}

.hero-content {
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left Align */
}

/* Massive Typography - Left Aligned */
/* Reduced size by ~10% for better flow */
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 6.8rem); 
  color: white;
  margin-bottom: 2.5rem;
  text-align: left;
  /* Deep Navy Glow for Depth */
  text-shadow: 2px 2px 0px rgba(10, 26, 58, 1), 
               0 0 40px rgba(10, 26, 58, 0.8);
  line-height: 1.05;
  letter-spacing: -0.01em;
  hyphens: manual;
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid var(--col-blue-action); /* Left Border Line */
}

/* Hide old centered line */
.hero-line { display: none; }

/* NEW HERO TECH POINTS LIST */
.hero-tech-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-tech-list li {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tech-bullet {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--col-blue-action);
    box-shadow: 0 0 10px var(--col-blue-action);
}

.hero-tagline {
    font-family: var(--font-body);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

/* CTA Group - Left Aligned */
.cta-group { 
    margin-top: 3rem; 
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 3.5rem;
    background: var(--col-blue-action);
    color: white;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--col-blue-action);
    cursor: pointer;
    border-radius: 0; /* Sharp */
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--col-navy);
    border-color: var(--col-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid white;
    backdrop-filter: blur(5px);
}

.cta-button.secondary:hover {
    background: white;
    color: var(--col-navy);
}

.hero-lines {
    position: absolute;
    bottom: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1;
}
.hero-lines .line.vertical {
    position: absolute; top:0; bottom:0; width: 1px; background: rgba(255,255,255,0.05);
}
.hero-lines .left { left: 5%; }
.hero-lines .right { right: 5%; }


/* --- NEW: Subtle Tech Box (For paragraph markers) --- */
.subtle-tech-box {
    background: rgba(249, 250, 251, 0.7); /* Very subtle light fill */
    border-left: 3px solid var(--col-blue-action); /* Clean marker line */
    padding: 2rem;
    position: relative;
    /* Subtle cut corner top-right */
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
    margin-bottom: 2rem;
    /* Subtle inner border illusion */
    box-shadow: inset 0 0 0 1px rgba(10,26,58,0.03);
}

.subtle-tech-box p {
    margin-bottom: 1.5rem; /* Breath between paragraphs */
    color: var(--col-navy); 
    font-size: 1.1rem;
}
.subtle-tech-box p:last-child {
    margin-bottom: 0;
}


/* --- "Who We Are" - Tummin Map Style (Layout Fixes) --- */
.promo-section {
    padding: 10rem 0;
    background: var(--col-white);
    position: relative;
    border-bottom: 1px solid var(--col-steel-light);
    overflow: hidden; /* Prevent spillover */
}

/* FIX: Flexible height grid that doesn't collapse */
.map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.map-content-col {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

/* FIX: Map visual column with safe aspect ratio and relative position */
.map-visual-col {
    width: 100%;
    position: relative;
    aspect-ratio: 4/3; /* Enforce shape */
    display: block;
}

.map-image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border: 1px solid var(--col-navy);
    overflow: hidden;
}

.technical-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2);
    opacity: 0.8;
}

.map-overlay-points {
    position: absolute;
    inset: 0;
}

.map-point {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--col-blue-action);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 80, 157, 0.2);
    transform: translate(-50%, -50%);
}

/* Reduced headline sizes */
.million-dollar-heading {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    color: var(--col-navy);
    position: relative;
    padding-top: 2rem;
    border-top: 6px solid var(--col-blue-action);
    text-align: left;
    margin-bottom: 2rem;
    hyphens: manual;
}

.corporate-text {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem); /* Adjusted for mobile readabiltiy */
    line-height: 1.6;
    color: var(--col-navy);
    font-weight: 400;
    text-align: left;
    font-family: var(--font-head);
    margin-bottom: 1.5rem;
}

/* NEW TECH SPEC BOX (Chamfered edge like Private market, but smaller) */
.tech-spec-box {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border: 1px solid var(--col-steel-light);
    position: relative;
    /* Specific Chamfered Edge Styling */
    clip-path: polygon(
        20px 0, 100% 0, 
        100% calc(100% - 20px), calc(100% - 20px) 100%, 
        0 100%, 0 100%, 0 20px
    );
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Inner border effect for chamfer */
.tech-spec-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--col-navy); /* Darker border */
    background: linear-gradient(135deg, transparent 90%, rgba(10,26,58,0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

.spec-grid {
    display: grid;
    gap: 1.5rem;
}

.spec-unit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--col-steel-light);
    padding-bottom: 0.5rem;
}
.spec-unit:last-child { border-bottom: none; }

.spec-unit .label { 
    color: var(--col-steel); 
    text-transform: uppercase; 
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.spec-unit .value { 
    color: var(--col-navy); 
    font-weight: 700; 
    font-family: var(--font-head);
    font-size: 1.1rem;
}

/* Rest of the structure */
.split-layout {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 6rem;
    align-items: start;
}
.split-header { position: sticky; top: 150px; }


/* --- Services Grid (Technical) --- */
.services-section {
    padding: 8rem 0;
    background: var(--col-bg-light);
}

.services-intro {
    margin-bottom: 6rem;
    max-width: 900px;
}

.section-lead {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--col-steel);
    font-weight: 300;
    line-height: 1.4;
}

.services-grid-technical {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--col-navy);
    border-left: 1px solid var(--col-navy);
}

.service-tech-card {
    background: white;
    padding: 5rem;
    border-right: 1px solid var(--col-navy);
    border-bottom: 1px solid var(--col-navy);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Enhancing Service Card Text for Mobile & Desktop */
.service-tech-card .card-body {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.service-tech-card .card-body p {
    /* Tech box style within card */
    background: var(--col-bg-light);
    border-left: 2px solid var(--col-blue-action);
    padding: 1.5rem;
    font-size: 1.1rem;
    color: var(--col-navy);
}

.service-tech-card:hover {
    background: var(--col-navy);
}

.service-tech-card:hover h3,
.service-tech-card:hover p,
.service-tech-card:hover .tech-id,
.service-tech-card:hover .tech-link {
    color: white;
}

/* Ensure tech box style adapts on hover */
.service-tech-card:hover .card-body p {
    background: rgba(255,255,255,0.1);
    color: white;
}

.tech-id {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--col-blue-action);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
}

.service-tech-card h3 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    hyphens: manual;
}

.tech-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    color: var(--col-navy);
}

/* --- Sticky Video Detail Sections --- */
.service-detail-section {
    position: relative;
    background: var(--col-white);
    padding: 0;
    margin: 0;
}

/* Desktop: Sticky Layout */
@media (min-width: 900px) {
    .sticky-layout {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
    .sticky-visual {
        width: 50%;
        height: 100vh;
        position: sticky;
        top: 0;
        z-index: 1;
        border-right: 1px solid var(--col-navy);
        overflow: hidden;
    }
    .scroll-content {
        width: 50%;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        background: white;
        padding: 6rem;
    }
    
    .sticky-layout.inverted {
        flex-direction: row-reverse;
    }
    .sticky-layout.inverted .sticky-visual {
        border-right: none;
        border-left: 1px solid var(--col-navy);
    }
}

.service-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 58, 0.2); /* Slightly darker for video contrast */
}

.detail-text-block {
    padding: 2rem;
    max-width: 700px;
}

.section-label {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--col-blue-action);
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 2rem;
}

/* Detail Heading */
.detail-text-block h2 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    margin-bottom: 2.5rem;
    line-height: 1.05;
    word-break: break-word; /* Ensure long words like Anleggstransport break */
    hyphens: auto;
}

.service-lead {
    font-size: 1.2rem; /* Adjusted for better reading */
    color: var(--col-navy);
    margin-bottom: 0; /* Box handles padding */
    line-height: 1.6;
    font-weight: 400;
}

/* --- Dark EEAT Section --- */
.dark-theme {
    background: var(--col-navy);
    color: white;
}
.dark-theme .million-dollar-heading { color: white; border-color: white; }

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 3rem;
}

.data-value {
    font-size: 3rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}
.data-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Private Market Section (Chamfered Card Effect) --- */
.private-market-section {
    padding: 10rem 0;
    background: var(--col-bg-dark);
}

.chamfer-card {
    background: var(--col-white);
    padding: 6rem;
    position: relative;
    color: var(--col-navy);
    /* 45-degree cut corners (Chamfer) */
    clip-path: polygon(
        40px 0, 100% 0, 
        100% calc(100% - 40px), calc(100% - 40px) 100%, 
        0 100%, 0 40px
    );
    margin-top: 2rem;
}

.chamfer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, transparent 95%, rgba(10,26,58,0.05) 100%);
    pointer-events: none;
}

.chamfer-card .corporate-text {
    margin-bottom: 4rem;
    max-width: 900px;
}


/* --- Fleet Grid (Strict 3 Column) --- */
.fleet-section {
    background: var(--col-navy);
    color: white;
    padding: 10rem 0;
}
.white-text { color: white !important; }

.fleet-grid-technical {
    margin-top: 6rem;
    display: grid;
    /* Force 3 columns on desktop, this is crucial */
    grid-template-columns: repeat(4, 1fr); 
    gap: 2rem;
}

.vessel-card {
    background: var(--col-white);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--col-navy);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.vessel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.vessel-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: #ccc;
}

.vessel-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vessel-card:hover .vessel-img-wrapper img {
    transform: scale(1.05);
}

.vessel-info-body {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vessel-info-body h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--col-navy);
}

.vessel-desc {
    font-size: 1rem;
    color: var(--col-steel);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.vessel-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--col-steel-light);
    padding-top: 1.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-key {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--col-steel);
    font-weight: 600;
}

.spec-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--col-navy);
    font-family: var(--font-head);
}

.vessel-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-vessel {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid var(--col-navy);
    transition: 0.3s;
}

.btn-vessel.primary {
    background: var(--col-navy);
    color: white;
}
.btn-vessel.primary:hover {
    background: var(--col-blue-action);
    border-color: var(--col-blue-action);
}

.btn-vessel.outline {
    background: transparent;
    color: var(--col-navy);
}
.btn-vessel.outline:hover {
    background: var(--col-bg-light);
}


/* --- Gallery Marquee --- */
.gallery-section {
    padding: 0;
    background: var(--col-navy);
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.gallery-track {
    display: flex;
    width: max-content;
    animation: marquee 80s linear infinite;
    will-change: transform;
}
.gallery-image {
    width: 30vw;
    height: 60vh;
    flex-shrink: 0;
    border-right: 1px solid var(--col-navy);
}
.gallery-image img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.5s;
}
.gallery-image:hover img { filter: grayscale(0); }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Job Section (Scattered 3D Polaroids) --- */
.job-section {
    padding: 10rem 0;
    background: var(--col-bg-light);
}
.job-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

/* FIX: Ensure container has height so absolutes work */
.job-img-stack {
    position: relative;
    width: 100%;
    min-height: 500px; /* Crucial for desktop stack */
    max-width: 600px;
    margin: 0 auto;
}

/* Stacking 3 Images */
.stack-img {
    position: absolute;
    border: 10px solid white; /* Polaroid style frame */
    box-shadow: 0 10px 30px rgba(10,26,58,0.2);
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    background: var(--col-steel);
}

/* Image 1: Main/Largest */
.stack-img.img-1 {
    width: 85%;
    height: auto;
    aspect-ratio: 4/3;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
}

/* Image 2: Medium/Behind */
.stack-img.img-2 {
    width: 70%;
    height: auto;
    aspect-ratio: 1/1;
    z-index: 2;
    top: 10%;
    left: 10%;
    transform: rotate(5deg);
}

/* Image 3: Smallest/Bottom */
.stack-img.img-3 {
    width: 60%;
    height: auto;
    aspect-ratio: 16/9;
    z-index: 1;
    bottom: 10%;
    right: 10%;
    transform: rotate(10deg);
}

/* Hover Interaction on Desktop */
@media (min-width: 901px) {
    .job-img-stack:hover .stack-img.img-1 {
        transform: translate(-60%, -50%) rotate(-5deg) scale(1.02);
        z-index: 4;
    }
    .job-img-stack:hover .stack-img.img-2 {
        transform: translate(20%, -10%) rotate(8deg) scale(1.02);
        z-index: 3;
    }
    .job-img-stack:hover .stack-img.img-3 {
        transform: translate(10%, 10%) rotate(15deg) scale(1.02);
        z-index: 2;
    }
}


.job-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--col-blue-action);
}

.job-roles ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.job-roles li {
    padding: 1rem;
    border: 1px solid var(--col-navy);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    font-size: 0.9rem;
    transition: 0.3s;
}
.job-roles li:hover {
    background: var(--col-navy);
    color: white;
}


/* --- FAQ Premium Split Layout --- */
.faq-section-premium {
    padding: 10rem 0;
    background: var(--col-white);
    border-bottom: 1px solid var(--col-navy);
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Split: Left Info, Right List */
    gap: 6rem;
}

/* FAQ Left Col */
.faq-header-col {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.faq-header-col .editorial-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 2rem;
}

.faq-header-col .separator-line {
    margin: 2rem 0;
}

/* FAQ Right Col (List) */
.faq-list-col {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--col-steel-light);
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-item:first-child {
    border-top: 1px solid var(--col-steel-light);
}

.faq-q {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem; /* Slightly smaller for premium clean look */
    font-weight: 500;
    color: var(--col-navy);
    transition: color 0.3s;
}

.faq-item:hover .faq-q {
    color: var(--col-blue-action);
}

.icon-arrow {
    font-family: var(--font-body); /* Or a symbol font */
    font-size: 1.2rem;
    color: var(--col-blue-action);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--col-steel);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    padding-right: 2rem;
}

/* Active State */
.faq-item.active .faq-a {
    max-height: 500px; /* Allow expansion */
    padding-bottom: 2rem;
    opacity: 1;
}

.faq-item.active .icon-arrow {
    transform: rotate(180deg);
}


/* --- Contact Updates (3D Chamfer Card) --- */
.contact-section {
    position: relative;
    padding: 12rem 0;
    background: transparent;
    overflow: hidden;
}

.contact-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: brightness(0.4);
    background-size: cover;
    background-position: center;
    filter: brightness(0.9); /* Contrast for text legibility */
}

.contact-card-3d {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--col-navy);
    /* Heavy 3D Shadow */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    
    /* Re-apply Chamfer Clip Path */
    clip-path: polygon(
        40px 0, 100% 0, 
        100% calc(100% - 40px), calc(100% - 40px) 100%, 
        0 100%, 0 40px
    );
}

/* Inner Border for 3D Card */
.contact-card-3d::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

.contact-card-3d h2 {
    color: var(--col-navy);
    font-size: clamp(2.5rem, 5vw, 4.2rem); /* Slightly smaller */
    margin-bottom: 2rem;
    line-height: 1;
}

.contact-card-3d .contact-lead {
    color: var(--col-steel);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.contact-big-links {
    display: flex; 
    gap: 2rem; 
    justify-content: center;
}

.btn-big {
    font-size: 1.2rem; 
    font-weight: 800; 
    color: white; 
    text-decoration: none;
    padding: 1.5rem 3rem; 
    background: var(--col-navy);
    text-transform: uppercase; 
    letter-spacing: 0.05em;
    border: 1px solid var(--col-navy);
    transition: all 0.3s ease;
}

.btn-big.outline { 
    background: transparent; 
    border-color: var(--col-navy); 
    color: var(--col-navy); 
}

.btn-big:hover { 
    background: var(--col-blue-action); 
    color: white; 
    border-color: var(--col-blue-action); 
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


/* --- Footer (Million Dollar Upgrade) --- */
.site-footer {
    background: var(--col-bg-light); /* Light Grey/White */
    padding: 0; /* Remove default padding for ship line */
    border-top: 1px solid rgba(10,26,58,0.1);
    color: var(--col-navy);
    position: relative;
    overflow: hidden;
}

/* Ship on Horizon Animation */
.ship-animation-container {
    position: relative;
    height: 50px;
    width: 100%;
    background: linear-gradient(to top, rgba(255,255,255,0.5) 0%, transparent 100%);
    border-bottom: 1px solid rgba(10,26,58,0.1);
}

.horizon-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--col-navy); /* Dark line on light background */
}

.ship-svg {
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 30px;
    animation: sailAcross 45s linear infinite;
    opacity: 1;
}
/* Update ship color for light theme */
.ship-svg path { stroke: var(--col-navy); }

@keyframes sailAcross {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

.site-footer .container {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.footer-grid-4 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Larger first column */
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo { 
    height: 130px; 
    margin-bottom: 2rem; 
    filter: none; /* Keep original colors or use dark version */
}

/* SHARP FOOTER TYPOGRAPHY */
.footer-col h4 { 
    font-family: var(--font-head);
    font-weight: 800; /* Extra Bold */
    font-size: 1.1rem; 
    margin-bottom: 2rem; 
    color: var(--col-blue-action); /* Action color for headers */
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links li, .footer-list li { 
    margin-bottom: 1rem; 
    font-family: var(--font-body);
    font-size: 1.1rem; 
    color: var(--col-navy); 
    font-weight: 500; /* Sharper */
}

.footer-links a:hover { 
    color: var(--col-blue-action); 
    padding-left: 5px; 
}

.footer-contact-info a {
    border-bottom: 1px solid rgba(10,26,58,0.1);
    padding-bottom: 2px;
}

/* NEW SLIM BOTTOM BAR */
.footer-bottom { 
    border-top: 1px solid rgba(10,26,58,0.1); 
    padding: 1.5rem 0; /* Minimal padding */
    background: #fff;
    width: 100%;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem; /* Small text */
    color: var(--col-steel);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.footer-bottom a {
    color: var(--col-navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer-bottom a:hover {
    color: var(--col-blue-action);
    border-bottom-color: var(--col-blue-action);
}

/* --- EDITORIAL / ABOUT SECTION (NEWSPAPER STYLE) --- */
.editorial-section {
    padding: 10rem 0;
    background: #fdfdfd; /* Paper white */
    border-bottom: 1px solid var(--col-navy);
}

.editorial-paper {
    background: var(--col-white);
    padding: 6rem;
    border: 1px solid var(--col-steel-light);
    box-shadow: 0 20px 60px rgba(0,0,0,0.03); /* Softer shadow */
}

.editorial-header {
    border-bottom: 4px solid var(--col-navy); /* Bold divider */
    padding-bottom: 3rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.meta-label {
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--col-steel);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.editorial-title {
    font-size: clamp(3.5rem, 5vw, 5.5rem); /* Reduced */
    line-height: 0.9;
    color: var(--col-navy);
    letter-spacing: -0.03em;
    text-align: left;
    max-width: 800px;
    hyphens: manual;
}

.editorial-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 columns for text, 1 for sidebar */
    gap: 6rem;
}

.main-article h3 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--col-navy);
    border-bottom: 1px solid var(--col-steel-light);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.main-article p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--col-navy);
    text-align: left;
}

/* DROP CAP */
.lead-paragraph::first-letter {
    font-family: var(--font-head);
    font-size: 7rem;
    font-weight: 800;
    float: left;
    line-height: 0.8;
    padding-right: 1.5rem;
    padding-top: 0.8rem;
    color: var(--col-navy);
}

.editorial-sidebar {
    border-left: 1px solid var(--col-steel-light);
    padding-left: 3rem;
}

.sidebar-box h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--col-blue-action);
}

.sidebar-box p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--col-navy);
}

.separator-line {
    height: 1px;
    background: var(--col-steel-light);
    margin: 2rem 0;
    width: 100%;
}

.sidebar-link {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--col-navy);
    font-size: 1rem;
    border-bottom: 2px solid var(--col-blue-action);
}


/* --- Mobile Responsiveness --- */
@media (max-width: 1100px) {
    /* Tablet tweak for fleet if needed, but keeping 3 as requested */
}

@media (max-width: 900px) {
    :root { --header-height: 80px; }
    
    /* Ensure mobile nav is hidden by default and styled correctly when open */
    .nav-list { 
        display: none; /* Controlled by JS */
        flex-direction: column;
        position: fixed; /* Fixed to cover screen */
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1001;
        overflow-y: auto;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .nav-list a {
        padding: 1rem 0;
        font-size: 1.5rem;
        border-bottom: 1px solid var(--col-steel-light);
        width: 100%;
        display: block;
    }

    .mobile-nav-toggle { display: block; z-index: 1002; position: relative; } 
    
    /* Hero Mobile */
    .hero { min-height: auto; padding-top: calc(var(--header-height) + 2rem); padding-bottom: 4rem; }
    .hero .container { align-items: flex-start; padding-left: 0; }
    .hero-content { padding: 0 1rem; }
    /* Smaller hero font for mobile */
    .hero h1 { 
        font-size: 2.5rem; 
        margin-bottom: 1.5rem; 
        text-shadow: none; 
        color: white; 
        background: rgba(10,26,58,0.6); 
        backdrop-filter: blur(5px); 
        padding: 0.5rem; 
        word-break: break-word; /* Ensure it breaks if huge */
    }
    .hero-text-wrapper { padding-left: 1rem; border-left-width: 3px; }
    .cta-group { flex-direction: column; width: 100%; align-items: stretch; margin-top: 2rem; }
    .cta-button { width: 100%; padding: 1.2rem; }

    /* Layout stacking for ALL sections */
    .split-layout, 
    .services-grid-technical, 
    .sticky-layout, 
    .sticky-layout.inverted, 
    .job-container, 
    .map-layout, 
    .footer-grid-4, 
    .editorial-content-grid,
    .faq-layout { 
        grid-template-columns: 1fr;
        display: block;
    }
    
    /* Ensure Private Market stacks correctly on mobile */
    .split-layout {
        display: flex;
        flex-direction: column;
    }
    
    /* Map Layout Mobile - Proper Stacking */
    .map-content-col { margin-bottom: 2rem; }
    .map-visual-col { margin-top: 2rem; }
    
    /* Editorial Mobile */
    .editorial-header { flex-direction: column; align-items: flex-start; }
    .editorial-sidebar { border-left: none; padding-left: 0; border-top: 3px solid var(--col-navy); padding-top: 3rem; margin-top: 3rem; }
    .editorial-paper { padding: 2rem 1.5rem; }
    .editorial-title { font-size: 2.2rem; }
    .main-article p { font-size: 1rem; }
    .lead-paragraph::first-letter { font-size: 4rem; padding-right: 1rem; }
    
    /* Fleet Mobile: Stacks vertically */
    .fleet-grid-technical { grid-template-columns: 1fr; display: flex; flex-direction: column; gap: 3rem; }
    .vessel-card { min-height: auto; }
    
    /* Promo Sections */
    .promo-section { padding: 4rem 0; height: auto; }
    /* Fix Private Market clipping on mobile */
    .chamfer-card { 
        padding: 3rem 1.5rem; 
        clip-path: none; 
        border: 1px solid var(--col-steel-light); 
        margin-top: 2rem; 
        height: auto;
    }
    
    /* Contact Mobile */
    .contact-card-3d { padding: 3rem 1.5rem; clip-path: none; border: none; }
    .contact-card-3d h2 { font-size: 2.5rem; }
    
    /* Service Card Mobile adjustments */
    .service-tech-card { padding: 3rem 1.5rem; }
    
    /* ISSUE 5 FIX: Smaller, professional text on mobile */
    .service-tech-card .card-body p { 
        font-size: 0.95rem; /* Smaller font */
        padding: 1rem; 
        line-height: 1.5;
    }
    
    /* Services Sticky becomes linear on mobile */
    .service-detail-section { display: flex; flex-direction: column; }
    .sticky-visual {
        width: 100%; height: 40vh; position: relative; top: auto;
        border-right: none; border-bottom: 1px solid var(--col-navy);
    }
    .scroll-content { width: 100%; min-height: auto; padding: 3rem 1.5rem; border-left: none; }
    
    /* ISSUE 3 & 4 FIX: Handle Long Words on Mobile */
    .detail-text-block h2 {
        font-size: 2rem; /* Reduce size */
        overflow-wrap: break-word; /* Force break */
        hyphens: manual;
        line-height: 1.1;
    }
    
    .service-tech-card h3 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .service-tech-card { min-height: auto; border-right: 1px solid var(--col-navy); margin-bottom: -1px; }
    
    .gallery-image { width: 80vw; height: 40vh; }
    
    /* FIX Contact CTA on mobile */
    .contact-big-links { flex-direction: column; gap: 1rem; }
    .btn-big { 
        font-size: 1.1rem; /* Reduced to fit number */
        padding: 1rem 2rem; 
        white-space: nowrap; /* Prevent line break */
    }
    
    .footer-col { margin-bottom: 3rem; }
    
    /* Job Stack Mobile Optimization */
    .job-section { padding: 4rem 0; }
    .job-container { display: flex; flex-direction: column; gap: 3rem; }
    .job-img-stack { 
        min-height: auto; 
        height: auto; 
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }
    .stack-img, .stack-img.img-1, .stack-img.img-2, .stack-img.img-3 {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        transform: none !important;
        top: auto; left: auto; right: auto; bottom: auto;
        margin: 0;
        border-width: 5px;
        z-index: 1;
    }
    
    /* Data Grid (Why Us) Mobile */
    .data-grid { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 1rem; /* Tighter gap */
    }
    
    /* ISSUE 2 FIX: Resize "Why Us" text for mobile */
    .data-value { font-size: 1.5rem; }
    .data-label { font-size: 0.8rem; }
    
    /* FAQ Mobile */
    .faq-layout { display: flex; flex-direction: column; gap: 3rem; }
    .faq-header-col { position: relative; top: auto; margin-bottom: 2rem; }
    .faq-item { border-bottom: 1px solid var(--col-steel-light); }

    /* Footer Bottom Mobile Stack */
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0 1rem;
    }
    .hidden-mobile { display: none; }
}

/* ISSUE 1 FIX: Discrete Sticky Icon CTA */
.sticky-cta {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 999;
    width: 60px;
    height: 60px;
    background: var(--col-blue-action);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid white;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.sticky-cta:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--col-navy);
}