/**
 * Theme Name: TK Power Solutions
 * Theme URI: https://github.com/zhang-jianxiang/marine-generator-prototype
 * Author: TK Power Solutions
 * Author URI: https://tkpower.com
 * Description: A custom WordPress theme for TK Power Solutions - Marine & Industrial Diesel Generators. Features custom post types for products and cases, full blog support, and a modern industrial design.
 * Version: 1.0.0
 * License: MIT
 * Text Domain: tk-power
 * Tags: business, industrial, custom-post-types, featured-images, custom-menu, custom-logo
 */

/* ==========================================================================
   TK Power Solutions - WordPress Theme Styles
   ==========================================================================

   @font-face
   ========================================================================== */
@font-face {
  font-family: 'BigShoulders';
  src: url('assets/fonts/BigShoulders-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'WorkSans';
  src: url('assets/fonts/WorkSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'WorkSans';
  src: url('assets/fonts/WorkSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrainsMono';
  src: url('assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --bg: #0B1426;
  --bg2: #F5F7FA;
  --bg-light: #FFFFFF;
  --ink: #1A2332;
  --muted: #64748B;
  --rule: #E2E8F0;
  --accent: #B87333;
  --accent2: #3B82F6;
  --font-display: 'BigShoulders', 'Arial Black', sans-serif;
  --font-body: 'WorkSans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrainsMono', 'Consolas', monospace;
  --max: 1280px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}
.nav.scrolled .nav-logo,
.nav.scrolled .nav-link { color: var(--ink); }
.nav.scrolled .nav-toggle span { background: var(--ink); }

/* Page Header (dark banner for archive / single pages) */
.page-header {
  background: var(--bg);
  padding: 8rem 2rem 4rem;
  margin-top: 0;
}
.page-header-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-header .breadcrumb {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0;
}
.page-header .breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.page-header .breadcrumb a:hover {
  color: var(--accent);
}
.page-header .breadcrumb span {
  color: rgba(255,255,255,0.4);
  margin: 0 0.5rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: 0.04em;
  color: #fff;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 0.7rem; align-items: center;
  flex-wrap: nowrap;
}
.nav-links > li {
  position: relative; flex-shrink: 0;
}
.nav-links > li > a,
.nav-link {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.85);
  position: relative; display: inline-block;
  white-space: nowrap;
}
.nav-links > li > a::after,
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s;
}
.nav-links > li > a:hover::after,
.nav-link:hover::after { width: 100%; }

/* Caret icon for dropdown items — uses ::before (::after is used for underline) */
.nav-links > li.menu-item-has-children > a {
  padding-right: 16px;
}
.nav-links > li.menu-item-has-children > a::before {
  content: ''; position: absolute; right: 2px; top: 50%;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transform: translateY(-50%); opacity: 0.6;
  transition: transform 0.2s;
}
.nav-links > li.menu-item-has-children:hover > a::before {
  transform: translateY(-50%) rotate(180deg);
}

/* Dropdown sub-menu */
.nav-links .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 220px; background: rgba(11,20,38,0.98);
  border-top: 2px solid var(--accent);
  padding: 0.5rem 0; border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 1000; max-height: 70vh; overflow-y: auto;
}
.nav-links > li:hover > .sub-menu,
.nav-links > li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-links .sub-menu li { position: relative; }
.nav-links .sub-menu li a {
  display: block; padding: 0.5rem 1.25rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.75);
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.nav-links .sub-menu li a:hover {
  background: rgba(184,115,51,0.15); color: var(--accent);
}

/* Nested sub-menu (3rd level) */
.nav-links .sub-menu .sub-menu {
  top: 0; left: 100%; transform: translateY(0);
}
.nav-links .sub-menu li:hover > .sub-menu {
  opacity: 1; visibility: visible;
}

/* Scrolled nav overrides */
.nav.scrolled .nav-links > li > a,
.nav.scrolled .nav-link { color: var(--ink); }
.nav.scrolled .sub-menu { background: rgba(255,255,255,0.98); }
.nav.scrolled .sub-menu li a { color: var(--muted); }
.nav.scrolled .sub-menu li a:hover { background: rgba(184,115,51,0.08); color: var(--accent); }

.nav-cta {
  background: var(--accent); color: #fff;
  padding: 0.6rem 1.25rem; border-radius: 2px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  transition: background 0.2s;
}
.nav-cta:hover { background: #9A5F2A; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none;
}
.nav-toggle span {
  width: 24px; height: 2px; background: #fff;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--ink); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--bg);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,20,38,0.92) 0%, rgba(11,20,38,0.6) 50%, rgba(11,20,38,0.3) 100%);
}
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  opacity: 0.15; pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; }
.hero-wave path {
  stroke: var(--accent); stroke-width: 2; fill: none;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: drawWave 3s ease-out forwards;
}
@keyframes drawWave {
  to { stroke-dashoffset: 0; }
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: 10rem 2rem 6rem;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05; color: #fff;
  max-width: 700px; margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero-title .line { display: block; }
.hero-desc {
  font-size: 1.125rem; color: rgba(255,255,255,0.7);
  max-width: 520px; margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-marine .hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-cta-primary {
  background: var(--accent); color: #fff;
  padding: 1rem 2rem; border-radius: 2px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em;
  transition: transform 0.2s, background 0.2s;
}
.hero-cta-primary:hover { transform: translateY(-2px); background: #9A5F2A; }
.hero-cta-secondary {
  border: 1px solid rgba(255,255,255,0.3); color: #fff;
  padding: 1rem 2rem; border-radius: 2px;
  font-weight: 500; font-size: 0.9rem;
  transition: background 0.2s;
}
.hero-cta-secondary:hover { background: rgba(255,255,255,0.08); }

/* ==========================================================================
   Page Hero (inner page banner — matches homepage hero style)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,20,38,0.82) 0%, rgba(11,20,38,0.65) 45%, rgba(11,20,38,0.95) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  width: 100%;
  padding: 8rem 2rem 3rem;
}
.page-hero-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.page-hero-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.page-hero-breadcrumb a:hover {
  color: var(--accent);
}
.page-hero-breadcrumb span {
  color: rgba(255,255,255,0.3);
  margin: 0 0.5rem;
}
.page-hero-breadcrumb .current {
  color: rgba(255,255,255,0.9);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.page-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .page-hero { min-height: 35vh; }
  .page-hero-inner { padding: 7rem 1.5rem 2.5rem; }
  .page-hero-title { font-size: 2rem; }
  .page-hero-desc { font-size: 0.9rem; }
}

/* Keep old .page-header for backward compatibility */
.page-header {
  background: var(--bg);
  padding: 8rem 2rem 4rem;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff; margin-bottom: 1rem;
}
.page-header p {
  color: rgba(255,255,255,0.65);
  max-width: 600px; margin: 0 auto;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  background: var(--bg-light);
  border-bottom: 1px solid var(--rule);
}
.stats-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 4rem 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--accent); line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.8rem; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ==========================================================================
   Sectors
   ========================================================================== */
.sectors {
  background: var(--bg2); padding: 6rem 2rem;
}
.sectors-inner { max-width: var(--max); margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; color: var(--ink);
  max-width: 600px;
}
/* Centered section header — for sections whose card content is centered */
.section-header.centered { text-align: center; }
.section-header.centered .section-title { max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header.centered .section-eyebrow { margin-left: auto; margin-right: auto; }
.section-header.centered .section-subtitle { margin-left: auto; margin-right: auto; }
.sectors-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.sector-card {
  position: relative; border-radius: 4px; overflow: hidden;
  min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
}
.sector-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s;
}
.sector-card:hover .sector-card-bg { transform: scale(1.05); }
.sector-card-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,20,38,0.88) 0%, rgba(11,20,38,0.2) 60%);
}
.sector-card-content {
  position: relative; z-index: 2; padding: 2.5rem;
}
.sector-card-title {
  font-family: var(--font-display);
  font-size: 1.75rem; color: #fff; margin-bottom: 0.75rem;
}
.sector-card-desc {
  font-size: 0.95rem; color: rgba(255,255,255,0.75);
  line-height: 1.6; margin-bottom: 1.5rem; max-width: 400px;
}
.sector-card-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.sector-card-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.sector-card:hover .sector-card-link svg { transform: translateX(4px); }

/* ==========================================================================
   Products
   ========================================================================== */
.products {
  background: var(--bg-light); padding: 6rem 2rem;
}
.products-inner { max-width: var(--max); margin: 0 auto; }
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.product-card {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 2rem; transition: box-shadow 0.3s, border-color 0.3s;
  background: var(--bg-light);
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(11,20,38,0.08);
}
.product-card-image {
  margin: -2rem -2rem 1.5rem; height: 200px;
  background-size: cover; background-position: center;
  border-radius: 4px 4px 0 0;
}
.product-card-tag {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  padding: 0.25rem 0.5rem; border: 1px solid var(--accent);
  display: inline-block; border-radius: 2px;
  align-self: flex-start;
}
.product-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem; color: var(--ink); margin-bottom: 0.75rem;
}
.product-card-desc {
  font-size: 0.9rem; color: var(--muted);
  line-height: 1.6; margin-bottom: 1.5rem;
}
.product-card-specs {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 1.5rem;
}
.product-card-specs li {
  padding-left: 1rem; position: relative;
}
.product-card-specs li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
}
.product-card-link {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: auto;
}

/* ==========================================================================
   Why Us
   ========================================================================== */
.why {
  background: var(--bg); padding: 6rem 2rem;
  position: relative; overflow: hidden;
}
.why-accent-line {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 80px; background: var(--accent);
}
.why-inner { max-width: var(--max); margin: 0 auto; }
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  margin-top: 3.5rem;
}
.why-item {
  padding: 2rem; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; transition: border-color 0.3s;
}
.why-item:hover { border-color: var(--accent); }
.why-icon {
  width: 40px; height: 40px; margin-bottom: 1.25rem;
  color: var(--accent);
}
.why-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem;
}
.why-item-desc {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ==========================================================================
   Cases
   ========================================================================== */
.cases {
  background: var(--bg2); padding: 6rem 2rem;
}
.cases-inner { max-width: var(--max); margin: 0 auto; }
.cases-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.case-card {
  background: var(--bg-light); border-radius: 4px;
  padding: 2.5rem; border: 1px solid var(--rule);
  transition: box-shadow 0.3s;
}
.case-card:hover { box-shadow: 0 4px 20px rgba(11,20,38,0.06); }
.case-tag {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 1rem;
}
.case-title {
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--ink); margin-bottom: 0.75rem;
}
.case-desc {
  font-size: 0.9rem; color: var(--muted); line-height: 1.6;
  margin-bottom: 1.25rem;
}
.case-meta {
  font-size: 0.8rem; color: var(--muted);
  border-top: 1px solid var(--rule); padding-top: 1rem;
  display: flex; justify-content: space-between;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  background: var(--bg); padding: 6rem 2rem;
  text-align: center; position: relative;
}
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 2; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff; margin-bottom: 1rem; line-height: 1.2;
}
.cta-desc {
  font-size: 1.05rem; color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem; line-height: 1.7;
}
.cta-btn {
  background: var(--accent); color: #fff;
  padding: 1.1rem 2.5rem; border-radius: 2px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em;
  display: inline-block; transition: transform 0.2s, background 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); background: #9A5F2A; }
.cta-contact {
  margin-top: 2rem; font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.cta-contact a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #070F1E; padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(184,115,51,0.2);
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display); font-size: 1.5rem; color: #fff;
  margin-bottom: 1rem;
}
.footer-brand span { color: var(--accent); }
.footer-about {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; max-width: 280px;
}
.footer-heading {
  font-family: var(--font-display); font-size: 0.9rem;
  color: #fff; margin-bottom: 1.25rem; letter-spacing: 0.05em;
}
.footer-link {
  display: block; font-size: 0.85rem;
  color: rgba(255,255,255,0.5); margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
}

/* ==========================================================================
   Single Product / Case / Post
   ========================================================================== */
.single-content {
  max-width: var(--max); margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
.single-hero-img {
  width: 100%; height: 400px;
  background-size: cover; background-position: center;
  border-radius: 4px; margin-bottom: 2rem;
}
.single-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--ink); margin-bottom: 1rem;
}
.single-meta {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--muted); margin-bottom: 2rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.single-content-body {
  font-size: 1rem; line-height: 1.8; color: var(--ink);
  overflow-x: auto; word-wrap: break-word;
}
.single-content-body p { margin-bottom: 1.5rem; }
.single-content-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem; margin: 2.5rem 0 1rem;
  color: var(--ink);
}
.single-content-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; margin: 2rem 0 0.75rem;
  color: var(--ink);
}
.single-content-body ul {
  margin-bottom: 1.5rem; padding-left: 1.5rem;
  list-style: disc;
}
.single-content-body table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 0.85rem; display: block; overflow-x: auto; white-space: nowrap;
}
.single-content-body table td,
.single-content-body table th {
  border: 1px solid #ddd; padding: 0.5rem 0.75rem; text-align: left;
}
.single-content-body table th {
  background: var(--bg2); font-weight: 600;
}
.single-content-body img {
  max-width: 100%; height: auto;
}
.single-content-body ul li {
  list-style: disc; margin-bottom: 0.5rem;
}
.single-content-body img {
  border-radius: 4px; margin: 1.5rem 0;
}

/* Product specs table */
.spec-table {
  width: 100%; border-collapse: collapse;
  margin: 2rem 0; font-size: 0.9rem;
}
.spec-table th, .spec-table td {
  padding: 0.75rem 1rem; text-align: left;
  border: 1px solid var(--rule);
}
.spec-table th {
  background: var(--bg2); font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  width: 200px;
}
.spec-table td { color: var(--ink); }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--accent); font-weight: 600;
  margin-bottom: 2rem;
}
.back-link svg { width: 16px; height: 16px; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 3rem;
}
.pagination .page-numbers {
  padding: 0.5rem 1rem; border: 1px solid var(--rule);
  border-radius: 2px; font-size: 0.85rem; color: var(--ink);
  transition: all 0.2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ==========================================================================
   Blog / Article list
   ========================================================================== */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: var(--max); margin: 0 auto;
  padding: 4rem 2rem;
}
.blog-card {
  border: 1px solid var(--rule); border-radius: 4px;
  overflow: hidden; transition: box-shadow 0.3s;
  background: var(--bg-light);
}
.blog-card:hover { box-shadow: 0 8px 30px rgba(11,20,38,0.08); }
.blog-card-img {
  height: 200px; background-size: cover; background-position: center;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-date {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--accent); margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem; color: var(--ink); margin-bottom: 0.5rem;
}
.blog-card-excerpt {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.6; margin-bottom: 1rem;
}
.blog-card-link {
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  max-width: var(--max); margin: 0 auto;
  padding: 2rem 2rem 0;
  font-size: 0.8rem; color: var(--muted);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 0.5rem; color: var(--rule); }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.error-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem); color: var(--accent);
}
.error-404 p {
  font-size: 1.1rem; color: var(--muted); margin: 1rem 0 2rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 0; right: 0;
    width: 100%; height: 100vh; background: var(--bg);
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    gap: 0; z-index: 999; padding: 5rem 2rem 2rem; overflow-y: auto;
  }
  .nav-links.active { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a {
    display: block; padding: 0.75rem 0; font-size: 1rem; color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links > li.menu-item-has-children > a::before { position: relative; float: right; top: auto; transform: none; right: auto; }
  .nav-links .sub-menu {
    position: static; min-width: 100%; background: none; border: none;
    box-shadow: none; opacity: 1; visibility: visible; transform: none;
    max-height: 0; overflow: hidden; transition: max-height 0.3s;
  }
  .nav-links > li.menu-item-has-children:hover > .sub-menu,
  .nav-links > li.menu-item-has-children > a:focus + .sub-menu {
    max-height: 500px;
  }
  .nav-links .sub-menu li a { padding: 0.5rem 1.25rem; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
  .nav-toggle { display: flex; z-index: 1001; }
  .hero-inner { padding: 8rem 1.5rem 4rem; }
  .hero-title { font-size: 2.2rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 3rem 1.5rem; }
  .sectors-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .sector-card { min-height: 340px; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ==========================================================================
   Partners Page
   ========================================================================== */
.partners-showcase { margin: 2rem 0; }
.partners-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.partner-card {
  background: var(--bg-light); border: 1px solid var(--rule);
  border-radius: 4px; padding: 2rem; text-align: center;
  transition: all 0.3s;
}
.partner-card:hover {
  border-color: var(--tech-blue);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.08);
  transform: translateY(-4px);
}
.partner-logo-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-display); font-size: 0.9rem;
  color: #fff; letter-spacing: 0.05em;
}
.partner-name {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--ink); margin-bottom: 0.75rem;
}
.partner-desc {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.6; margin-bottom: 1.25rem;
}
.partner-link {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* Brochures */
.brochure-card { transition: all 0.3s; }
.brochure-card:hover {
  border-color: var(--tech-blue);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.06);
}

@media (max-width: 1024px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .brochures-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .partners-grid { grid-template-columns: 1fr; }
  .brochures-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v1 MARINE SYSTEM — 8 SCREEN HOMEPAGE STYLES
   ========================================================================== */

/* --- Screen 1: Marine Hero --- */
.hero-marine {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-marine .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #0B1426;
}
.hero-marine .hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,20,38,0.35) 0%,
    rgba(11,20,38,0.15) 40%,
    rgba(11,20,38,0.45) 70%,
    rgba(11,20,38,0.75) 100%
  );
}
.hero-marine .hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%;
  padding: 0 2rem; text-align: center; color: #fff;
}
.hero-title-marine .line {
  display: block; font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1; letter-spacing: -0.02em;
}
.hero-marine .hero-desc {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.85); max-width: 700px;
  margin: 1.5rem auto 2rem; font-weight: 400;
  letter-spacing: 0.02em;
}
.hero-marine .hero-eyebrow {
  color: var(--accent); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.hero-marine .hero-cta-primary {
  background: var(--accent); color: #fff;
  padding: 0.9rem 2.5rem; border-radius: 2px;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.3s; display: inline-block;
}
.hero-marine .hero-cta-primary:hover {
  background: #9c612b; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184,115,51,0.3);
}
.hero-marine .hero-cta-secondary {
  border: 1px solid rgba(255,255,255,0.4); color: #fff;
  padding: 0.9rem 2.5rem; border-radius: 2px;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.3s; display: inline-block;
  margin-left: 1rem;
}
.hero-marine .hero-cta-secondary:hover {
  border-color: #fff; background: rgba(255,255,255,0.1);
}
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,0.6); font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll-hint svg { width: 20px; height: 20px; animation: scrollBounce 2s infinite; }
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- Screen 2: Solutions --- */
.solutions {
  padding: 6rem 2rem; background: var(--bg-light);
}
.solutions-inner { max-width: var(--max); margin: 0 auto; }
.solutions-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.solution-card {
  position: relative; border-radius: 4px;
  overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.4s;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.solution-card-image {
  width: 100%; height: 220px;
  overflow: hidden; position: relative;
}
.solution-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.solution-card:hover .solution-card-image img {
  transform: scale(1.05);
}
.solution-card-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,20,38,0) 60%, rgba(11,20,38,0.5) 100%);
  pointer-events: none;
}
.solution-card-content {
  text-align: center; color: #fff;
  padding: 1.5rem 1.25rem 1.75rem;
}
.solution-card-title {
  font-family: var(--font-display); font-size: 1.15rem;
  margin-bottom: 0.5rem; line-height: 1.2;
}
.solution-card-desc {
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* --- Screen 3: Engineering Excellence --- */
.engineering {
  position: relative; padding: 6rem 2rem;
  overflow: hidden;
}
.engineering-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #0B1426;
}
.engineering-overlay {
  position: absolute; inset: 0;
  background: rgba(11,20,38,0.88);
}
.engineering-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
}
.engineering-flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.eng-step {
  position: relative; text-align: center; padding: 2.5rem 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; transition: all 0.3s;
}
/* Large translucent step number in the corner — visual sequence anchor */
.eng-step-num {
  position: absolute; top: 0.5rem; right: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.2rem; line-height: 1;
  color: rgba(184,115,51,0.35);
  letter-spacing: 0.02em; pointer-events: none;
  transition: color 0.3s;
}
.eng-step:hover .eng-step-num { color: rgba(184,115,51,0.7); }
/* Connector arrow between steps — desktop only, hidden on the last column of each row */
.eng-step::after {
  content: ''; position: absolute;
  top: 50%; right: -1rem;
  width: 1rem; height: 2px;
  background: rgba(184,115,51,0.4);
  display: none;
}
.eng-step::before {
  content: ''; position: absolute;
  top: 50%; right: -1rem;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(184,115,51,0.4);
  transform: translateY(-50%);
  display: none;
}
@media (min-width: 769px) {
  .eng-step::after, .eng-step::before { display: block; }
  /* Hide connector on the last item of each row (4-col layout on desktop & tablet) */
  .engineering-flow > .eng-step:nth-child(4n)::after,
  .engineering-flow > .eng-step:nth-child(4n)::before,
  .engineering-flow > .eng-step:last-child::after,
  .engineering-flow > .eng-step:last-child::before { display: none; }
}
/* Mobile (<=768px): 2-col grid, connectors hidden — base display:none applies */
.eng-step:hover {
  background: rgba(184,115,51,0.15);
  border-color: rgba(184,115,51,0.4);
  transform: translateY(-4px);
}
.eng-step-icon {
  width: 48px; height: 48px; margin: 0 auto 1rem;
  color: var(--accent);
}
.eng-step-icon svg { width: 100%; height: 100%; }
.eng-step-title {
  font-family: var(--font-display); font-size: 1rem;
  color: #fff; margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.eng-step-desc {
  font-size: 0.8rem; color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* --- Screen 4: Certification --- */
.certification {
  padding: 6rem 2rem; background: var(--bg2);
}
.certification-inner { max-width: var(--max); margin: 0 auto; }
.cert-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; margin-top: 3rem;
}
.cert-card {
  text-align: center; padding: 2rem 1.5rem;
  background: #fff; border: 1px solid var(--rule);
  border-radius: 4px; transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(184,115,51,0.1);
  transform: translateY(-4px);
}
.cert-badge {
  margin-bottom: 1.5rem;
}
.cert-badge-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #0B1426 0%, #1a365d 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; border: 3px solid var(--accent);
}
.cert-badge-text {
  font-family: var(--font-display); font-size: 1.2rem;
  color: #fff; letter-spacing: 0.03em;
}
.cert-title {
  font-family: var(--font-display); font-size: 0.95rem;
  color: var(--ink); margin-bottom: 0.75rem;
  line-height: 1.3;
}
.cert-desc {
  font-size: 0.82rem; color: var(--muted); line-height: 1.5;
}

/* --- Screen 5: Industries --- */
.industries {
  padding: 6rem 2rem; background: linear-gradient(180deg, #0B1426 0%, #0E1B33 100%);
}
.industries-inner { max-width: var(--max); margin: 0 auto; }
.industries .section-title { color: #fff; }
.industries-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.industry-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem 1rem; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
  transition: all 0.3s; text-align: center;
}
.industry-item:hover {
  border-color: var(--accent);
  background: rgba(184,115,51,0.1);
  transform: translateY(-4px);
}
.industry-icon {
  width: 64px; height: 64px; margin-bottom: 0.75rem;
  color: var(--accent);
}
.industry-name {
  font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9);
}

/* --- Screen 6: Technology --- */
.technology {
  padding: 6rem 2rem; background: var(--bg2);
}
.technology-inner { max-width: var(--max); margin: 0 auto; }
.technology .section-eyebrow { color: var(--accent); }
.technology .section-title { color: var(--ink); }
.technology .section-subtitle { color: var(--muted); }
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 3rem;
}
.tech-card {
  position: relative; height: 380px; border-radius: 4px;
  overflow: hidden; border: 1px solid var(--rule);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.tech-card-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #1a365d;
  filter: grayscale(0.3);
  transition: all 0.5s;
}
.tech-card:hover .tech-card-image { filter: grayscale(0); transform: scale(1.05); }
.tech-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,20,38,0.3) 0%, rgba(11,20,38,0.95) 100%);
}
.tech-coming-soon {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 3;
  background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 2px;
}
.tech-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.75rem; color: #fff; z-index: 2;
}
.tech-card-title {
  font-family: var(--font-display); font-size: 1.15rem;
  margin-bottom: 0.5rem; line-height: 1.3;
}
.tech-card-desc {
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
  line-height: 1.5; margin-bottom: 0.85rem;
}
.tech-card-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: all 0.3s;
}
.tech-card-link:hover { color: #fff; border-color: #fff; }

/* --- Screen 7: Projects --- */
.projects {
  padding: 0; background: #0B1426;
  border-top: 2px solid rgba(184,115,51,0.3);
}
.projects-inner { max-width: 100%; margin: 0 auto; }
.project-hero-card {
  position: relative; height: 70vh; min-height: 500px;
  overflow: hidden;
}
.project-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #1a365d;
}
.project-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,20,38,0.5) 0%, rgba(11,20,38,0.85) 100%);
}
.project-hero-content {
  position: absolute; bottom: 3rem; left: 0; right: 0;
  max-width: var(--max); margin: 0 auto;
  padding: 0 2rem; color: #fff;
}
.project-hero-tag {
  display: inline-block; background: var(--accent);
  color: #fff; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 2px;
  margin-bottom: 1.25rem;
}
.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15; max-width: 700px;
  margin-bottom: 1rem;
}
.project-hero-desc {
  font-size: 1rem; color: rgba(255,255,255,0.8);
  max-width: 600px; margin-bottom: 1.5rem; line-height: 1.6;
}
.project-hero-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent); font-weight: 600; font-size: 0.95rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem; transition: all 0.3s;
}
.project-hero-link:hover { color: #fff; border-color: #fff; }

/* --- Screen 8: Final CTA --- */
.cta-final {
  position: relative; padding: 6rem 2rem;
  overflow: hidden; text-align: center;
}
.cta-final-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #B87333 0%, #9A5F2A 60%, #7A4A1F 100%);
}
.cta-final-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(11,20,38,0) 0%, rgba(11,20,38,0.35) 100%);
}
.cta-final-inner {
  position: relative; z-index: 2;
  max-width: 800px; margin: 0 auto;
}
.cta-final-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff; line-height: 1.2;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.cta-final-buttons {
  display: flex; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.cta-btn-primary {
  background: #0B1426; color: #fff;
  padding: 0.9rem 2rem; border-radius: 2px;
  font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.3s;
}
.cta-btn-primary:hover { background: #1A2332; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.cta-btn-secondary {
  border: 1px solid rgba(255,255,255,0.7); color: #fff;
  padding: 0.9rem 2rem; border-radius: 2px;
  font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: transparent;
  transition: all 0.3s;
}
.cta-btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
/* Brochure demoted to a text link below the buttons */
.cta-text-link {
  display: inline-block; margin-top: 1.5rem;
  color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px; transition: all 0.3s;
}
.cta-text-link:hover { color: #fff; border-color: #fff; }

/* --- Shared: Section subtitle --- */
.section-subtitle {
  font-size: 1.05rem; color: var(--muted);
  max-width: 600px; margin: 0.75rem 0 0;
  line-height: 1.6;
}

/* --- Responsive: v1 Marine System --- */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .engineering-flow { grid-template-columns: repeat(4, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-marine .hero-cta-group { display: flex; flex-direction: column; gap: 1rem; }
  .hero-marine .hero-cta-secondary { margin-left: 0; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card-image { height: 180px; }
  .engineering-flow { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-card { height: 300px; }
  .cta-final-buttons { flex-direction: column; }
  .project-hero-card { height: 60vh; min-height: 400px; }
}
