/* K Ocean Metrix Marine — navy & gold theme from the client's mockups */
:root {
  --navy: #0b2a4a;
  --navy-2: #071d36;
  --navy-3: #12406e;
  --blue: #1f5fa3;
  --gold: #f2b53a;
  --gold-dark: #d99a1e;
  --ink: #0f2742;
  --body: #4a5866;
  --line: #e3e9f0;
  --soft: #f3f6fa;
  /* legacy names used by older pages/admin */
  --accent: var(--gold);
  --accent-dark: var(--gold-dark);
  --teal: var(--gold);
}
body { font-family: "Open Sans", system-ui, sans-serif; color: var(--body); font-size: 15.5px; background: #fff; }
h1, h2, h3, h4, h5, h6, .brand, .btn { font-family: "Roboto", system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); }
a { color: var(--blue); }
a:hover { color: var(--gold-dark); }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .4rem .8rem; }
.gold { color: var(--gold) !important; }
.bg-soft { background: var(--soft); }
.narrow { max-width: 960px; }

/* utilities kept for older templates */
.bg-navy { background: var(--navy) !important; }
.bg-accent { background: var(--gold) !important; color: var(--navy); }
.text-accent, .text-teal { color: var(--gold-dark) !important; }
.border-accent { border-left: 4px solid var(--gold) !important; }

/* buttons */
.btn { font-weight: 700; border-radius: 6px; }
.btn-gold, .btn-accent, .btn-teal { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover, .btn-gold:focus, .btn-accent:hover, .btn-accent:focus, .btn-teal:hover, .btn-teal:focus { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-3); border-color: var(--navy-3); color: #fff; }
.btn-outline-navy, .btn-outline-teal { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover, .btn-outline-teal:hover { background: var(--navy); color: #fff; }

/* header */
.site-header { background: var(--navy); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.site-header .navbar { padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: radial-gradient(circle at 50% 40%, #1d6fb8, #0a3a68); border: 2px solid #5fb4ff; color: #fff; font-size: 1.3rem; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(242,181,58,.6); }
.brand-text { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; }
.site-header .nav-link { color: rgba(255,255,255,.88); font-weight: 500; font-size: .95rem; padding: .5rem .8rem !important; }
.site-header .nav-link:hover, .site-header .nav-link.active, .site-header .nav-link.show { color: var(--gold); }
.site-header .dropdown-menu { border: 0; border-top: 3px solid var(--gold); border-radius: 0 0 8px 8px; box-shadow: 0 14px 30px rgba(0,0,0,.15); margin-top: 0; }
.site-header .dropdown-item { font-size: .9rem; padding: .32rem 1rem; color: #283848; }
.site-header .dropdown-item:hover { color: var(--blue); background: var(--soft); }
.mega-menu { padding: 1.1rem .5rem .5rem; }
@media (min-width: 992px) {
  .mega { position: static; }
  .mega-menu { left: 50% !important; transform: translateX(-50%); width: min(880px, 95vw); }
}
.mega-title { font-size: .9rem; font-weight: 700; color: var(--navy); padding: 0 1rem .45rem; margin: 0 0 .35rem; border-bottom: 1px solid var(--line); }
.mega-foot { border-top: 1px solid var(--line); margin-top: .7rem; padding: .6rem 1rem 0; font-size: .9rem; }
.mega-foot a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* home hero */
.hero { position: relative; background-size: cover; background-position: center right; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,29,54,.94) 0%, rgba(7,29,54,.75) 40%, rgba(7,29,54,.15) 75%); }
.hero-inner { position: relative; z-index: 1; padding: 4rem 0; }
.hero h1 { color: #fff; font-weight: 900; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.08; margin-bottom: 1rem; }
.hero-sub { color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 560px; margin-bottom: 1.8rem; }

/* feature strip under hero */
.feature-strip { background: var(--navy-2); }
.feature { padding: 1.8rem 1.2rem; text-align: center; color: rgba(255,255,255,.8); border-right: 1px solid rgba(255,255,255,.08); height: 100%; }
.feature i { font-size: 2.2rem; color: var(--gold); }
.feature h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: .7rem 0 .4rem; }
.feature p { font-size: .85rem; margin: 0; }
.feature-light { background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--body); }
.feature-light h3 { color: var(--ink); }

/* sections */
.section { padding: 4rem 0; }
.sec-head { text-align: center; margin-bottom: 2.4rem; }
.sec-head h1, .sec-head h2 { font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ink); margin-bottom: .3rem; }
.sec-head p { color: var(--blue); font-weight: 500; font-size: 1.05rem; margin: 0; }
.sec-title { font-size: 1.7rem; font-weight: 800; display: inline-block; padding-bottom: .5rem; margin-bottom: 1.3rem; border-bottom: 3px solid var(--gold); }

/* service tiles */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.svc-grid-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.svc-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.6rem .8rem; min-height: 150px;
  text-decoration: none; color: var(--ink); box-shadow: 0 2px 8px rgba(11,42,74,.05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.svc-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11,42,74,.14); border-color: var(--gold); color: var(--ink); }
.svc-tile-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #e8f0f9; color: var(--navy); font-size: 1.7rem; transition: background .15s, color .15s; }
.svc-tile:hover .svc-tile-icon { background: var(--navy); color: var(--gold); }
.svc-tile-title { font-family: "Roboto", sans-serif; font-weight: 600; font-size: .95rem; line-height: 1.3; }

/* about teaser */
.about-teaser { background: var(--navy); }
.about-teaser-text { padding: 3.5rem 2.5rem 3.5rem 0; color: rgba(255,255,255,.85); }
.about-teaser-text h2 { color: #fff; font-weight: 900; font-size: 2.3rem; }
.about-teaser-text h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.about-teaser-img { min-height: 320px; background-size: cover; background-position: center; }
@media (max-width: 991px) { .about-teaser-text { padding: 3rem 0; } }

/* about page hero */
.about-hero { position: relative; background-size: cover; background-position: center; }
.about-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,29,54,.96) 0%, rgba(11,42,74,.85) 50%, rgba(11,42,74,.35) 100%); }
.about-hero-inner { position: relative; z-index: 1; padding: 4.5rem 0; max-width: 720px; color: rgba(255,255,255,.9); }
.about-hero-inner h1 { color: #fff; font-weight: 900; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.about-hero-inner h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; margin: .6rem 0 1.2rem; }
.about-hero-inner p { font-size: 1.05rem; line-height: 1.8; }
.pillar { padding: 1rem 1.2rem; }
.pillar h3 { font-weight: 800; font-size: 1.3rem; margin: 1rem 0 .5rem; }
.hex { width: 84px; height: 84px; display: inline-grid; place-items: center; background: var(--gold); color: var(--navy); font-size: 2rem;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }

/* split layout: service pages, team, contact */
.split-hero { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); padding: 2.5rem 0 3rem; }
.split-row { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 34px rgba(11,42,74,.10); }
.split-text { padding: 2.8rem 2.6rem; }
.split-text h1 { font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; color: var(--ink); }
.tagline { color: var(--blue); font-weight: 600; font-size: 1.15rem; margin: .6rem 0 1.1rem; font-family: "Roboto", sans-serif; }
.split-text p { line-height: 1.75; }
.split-img { min-height: 360px; background-size: cover; background-position: center; }
.split-img-art { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--navy-3), var(--navy-2)); color: rgba(242,181,58,.9); font-size: 9rem; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li { position: relative; padding: .45rem 0 .45rem 2.2rem; font-size: 1.05rem; color: #2b3a4a; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .32rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.split-text .breadcrumb a { color: var(--body); text-decoration: none; }
.circle-icon { width: 64px; height: 64px; border-radius: 50%; background: #e8f0f9; color: var(--navy); display: inline-grid; place-items: center; font-size: 1.6rem; }
.circle-icon.sm { width: 44px; height: 44px; font-size: 1.1rem; background: var(--navy); color: #fff; flex-shrink: 0; }
.contact-form .form-control { padding: .7rem .9rem; border-color: #cfd8e3; }
.contact-cards { display: grid; gap: .2rem; padding: 1.4rem 1.8rem; }
.contact-cards > a, .contact-cards > div { display: flex; align-items: center; gap: .9rem; padding: .55rem 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.contact-cards strong { font-family: "Roboto", sans-serif; font-size: 1.05rem; }
@media (max-width: 991px) { .split-text { padding: 2rem 1.4rem; } .split-img { min-height: 260px; } }

/* stats & cta */
.stats { background: var(--soft); }
.counter-num { font-family: "Roboto", sans-serif; font-size: 2.6rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
.counter-label { color: var(--body); font-weight: 600; }
.cta-band { background: linear-gradient(110deg, var(--navy-2), var(--navy-3)); color: rgba(255,255,255,.85); }
.cta-band h2 { color: #fff; font-weight: 800; }

/* inner page header (quote, projects, careers, privacy, track, ports) */
.page-head { background: linear-gradient(110deg, var(--navy-2) 0%, var(--navy) 60%, var(--navy-3) 100%); }
.page-head h1 { color: #fff; font-weight: 900; margin-bottom: .3rem; }
.page-head p, .page-head .text-white-75 { color: rgba(255,255,255,.82); }
.text-white-75 { color: rgba(255,255,255,.8); }

/* cards for projects / careers */
.svc-card, .job-card { border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 1.5rem; background: #fff; }
.svc-card h3, .job-card h3 { font-size: 1.2rem; font-weight: 700; }
.job-card { margin-bottom: 1rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.link-more { color: var(--blue); font-weight: 600; text-decoration: none; font-size: .9rem; }
.policy .sec-title { font-size: 1.3rem; margin-top: 1rem; }

/* values band + footer */
.values-band { background: var(--gold); color: var(--navy); font-family: "Roboto", sans-serif; font-weight: 700; letter-spacing: .3px; }
.values-band .dot { opacity: .6; }
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.78); font-size: .9rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-title { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.foot-links { list-style: none; padding: 0; }
.foot-links li { margin-bottom: .45rem; }
.foot-links li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .65rem; margin-right: .55rem; color: var(--gold); }
.foot-contact { list-style: none; padding: 0; }
.foot-contact li { display: flex; gap: .7rem; margin-bottom: .6rem; line-height: 1.5; }
.foot-contact i { color: var(--gold); margin-top: .1rem; }
.foot-social { display: flex; gap: .5rem; margin-top: 1rem; }
.foot-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.foot-social a:hover { background: var(--gold); color: var(--navy); }
.foot-bottom { background: #04142a; color: rgba(255,255,255,.65); }

/* whatsapp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1050; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); text-decoration: none; }
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* tracking + ports (legacy pages, not linked) */
.route { display: flex; align-items: center; gap: 1rem; }
.route-line { flex: 1; border-top: 2px dashed #b9c6d6; text-align: center; }
.route-line i { position: relative; top: -.85rem; background: #fff; padding: 0 .5rem; color: var(--blue); font-size: 1.3rem; }
.status-active { background: var(--navy); } .status-done { background: #198754; } .status-hold { background: #dc3545; }
.timeline { list-style: none; padding-left: 1.25rem; border-left: 2px solid #d5dde8; }
.timeline li { position: relative; padding: 0 0 1.25rem 1rem; }
.timeline li::before { content: ""; position: absolute; left: -1.72rem; top: .3rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #b9c6d6; }
.timeline li.latest::before { border-color: var(--gold); background: var(--gold); }
#map { height: 460px; }
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); vertical-align: middle; }
.legend-dot.hub { background: var(--gold); }

/* admin */
.admin { font-size: 14px; }
.admin .kpi { text-decoration: none; color: inherit; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.admin .kpi-num { font-size: 1.9rem; font-weight: 700; color: var(--navy); font-family: "Roboto", sans-serif; }
.admin .kpi-label { font-size: .85rem; color: #6b7785; }
.admin .navbar .nav-link { color: rgba(255,255,255,.8); }
.admin .navbar .nav-link.active, .admin .navbar .nav-link:hover { color: var(--gold); }

@media (max-width: 991px) {
  .site-header .navbar-collapse { padding: .5rem 0 1rem; }
  .brand-text { font-size: .95rem; }
}
@media (max-width: 575px) {
  .brand-text { font-size: .85rem; max-width: 190px; line-height: 1.2; }
  .feature { padding: 1.3rem .7rem; }
  #map { height: 320px; }
}
