/* =========================================================
   KAWI SHIPYARD — Static Theme
   Fonts: Bebas Neue (heading), Lato (body), Playfair Display (ISO)
   ========================================================= */
:root {
  --navy: #031533;
  --navy-2: #0a1f44;
  --navy-3: #1e3a52;
  --orange: #e5492d;
  --light: #f4f6f9;
  --gray: #6b7280;
  --text: #1f2937;
  --white: #ffffff;
  --font-head: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --container: 1140px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Cover image helper */
.cover { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled {
  background: rgba(3, 21, 51, .96);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  height: 64px;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
}
.logo { display: flex; align-items: center; gap: 14px; color: var(--white); }
.logo img { width: 28px; height: 28px; }
.logo-text {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .5em;
  font-weight: 700;
  white-space: nowrap;
}
.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--white);
  transition: width .25s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,21,51,.45) 0%, rgba(3,21,51,0) 35%, rgba(3,21,51,.55) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: 13vh; width: 100%; }
.hero-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: .02em;
  text-shadow: 3px 3px 0 rgba(0,0,0,.55), 0 6px 24px rgba(0,0,0,.45);
}
.hero-title span { display: block; }
.hero-title span:nth-child(2) { padding-left: .1em; }
.hero-title span:nth-child(3) { padding-left: .2em; }

/* Inner page hero */
.page-hero {
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,21,51,.5), rgba(3,21,51,.15) 60%, rgba(3,21,51,.35)); }
.page-hero .inner { position: relative; z-index: 2; padding-top: 30px; }
.page-hero h1 { font-size: clamp(44px, 6vw, 66px); text-shadow: 0 4px 20px rgba(0,0,0,.35); }
.breadcrumb { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 4px; }

/* =========================================================
   SECTION BASICS
   ========================================================= */
.section { padding: 90px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--light); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); color: var(--navy); }
.section-dark .section-head h2 { color: var(--white); }
.section-head p { font-size: 14px; font-weight: 700; margin: 4px 0 0; color: var(--gray); }
.section-dark .section-head p { color: rgba(255,255,255,.8); }
.section-head p.lead { max-width: 420px; margin: 12px auto 0; color: var(--navy-2); }

/* =========================================================
   HOME — INTRO VIDEO
   ========================================================= */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; max-width: 980px; margin: 0 auto; }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  box-shadow: 16px 16px 0 var(--white);
  cursor: pointer;
  overflow: hidden;
  border: 0; padding: 0; width: 100%;
  background: var(--navy-2);
}
.video-thumb img { transition: transform .6s; }
.video-thumb:hover img { transform: scale(1.05); }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  width: 70px; height: 70px; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  background: rgba(3,21,51,.25);
  display: grid; place-items: center;
  transition: transform .3s, background .3s;
}
.play-btn::before {
  content: '';
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}
.video-thumb:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); background: rgba(255,255,255,.2); }
.video-caption { font-size: 12px; margin: 34px 0 0; text-align: center; color: rgba(255,255,255,.85); }
.intro h2 { font-size: clamp(40px, 4.4vw, 58px); line-height: 1.15; }
.intro p { font-size: 13px; font-weight: 700; margin-top: 18px; }

/* Services grid (home) */
.services-home { padding-top: 70px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}
.service-card {
  position: relative;
  aspect-ratio: 16/11;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy-2);
}
.service-card img { position: absolute; inset: 0; transition: transform .6s; }
.service-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,21,51,.1) 30%, rgba(3,21,51,.7)); transition: background .4s; }
.service-card h3 { position: relative; z-index: 2; font-size: 27px; padding: 0 12px 22px; text-align: center; letter-spacing: .04em; }
.service-card:hover img { transform: scale(1.07); }
.service-card:hover::after { background: linear-gradient(180deg, rgba(3,21,51,.35) 20%, rgba(3,21,51,.85)); }

/* =========================================================
   CLIENTS
   ========================================================= */
.clients {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 18px;
  max-width: 520px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}
.clients img { width: 100%; max-width: 76px; height: 76px; object-fit: contain; transition: transform .3s; }
.clients img:hover { transform: scale(1.1); }
.clients .last-row { grid-column: 1 / -1; display: flex; gap: 22px; justify-content: center; align-items: center; }
.clients .last-row img.wide { max-width: 170px; height: 44px; }

/* =========================================================
   CONTACT CTA (world map)
   ========================================================= */
.contact-cta {
  position: relative;
  padding: 40px 0 50px;
  text-align: center;
}
.contact-cta .map {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.contact-cta .map::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../img/world-map.png') center / contain no-repeat;
  opacity: .45;
}
.contact-cta .map > * { position: relative; }
.contact-cta h2 { font-size: 34px; color: var(--navy); margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 10px 30px;
  background: var(--navy); color: #fff;
  border: 2px solid var(--navy);
  transition: background .3s, color .3s;
  text-transform: uppercase;
}
.btn img { width: 14px; height: 14px; transition: filter .3s; }
.btn:hover { background: transparent; color: var(--navy); }
.btn:hover img { filter: invert(9%) sepia(54%) saturate(2700%) hue-rotate(208deg) brightness(92%); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: #fff; padding: 64px 0 56px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 50px; max-width: 920px; margin: 0 auto; }
.footer-about p { margin-top: 18px; max-width: 290px; color: rgba(255,255,255,.85); font-size: 12.5px; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 22px; height: 22px; display: grid; place-items: center; opacity: .85; transition: opacity .2s, transform .2s; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.socials svg, .socials img { width: 17px; height: 17px; fill: #fff; }
.footer-col h4 { font-size: 16px; margin-bottom: 14px; letter-spacing: .04em; }
.footer-col ul li { margin-bottom: 3px; font-size: 12.5px; }
.footer-col ul.dots li::before { content: '•'; margin-right: 8px; }
.footer-col a:hover { text-decoration: underline; }
.find-item { display: flex; gap: 10px; margin-bottom: 14px; }
.find-item svg { width: 14px; height: 14px; fill: #fff; flex: none; margin-top: 3px; }
.find-item strong { display: block; font-size: 13px; }
.find-item span { display: block; font-size: 11.5px; color: rgba(255,255,255,.8); line-height: 1.5; }

/* Floating call button */
.float-call {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 0 0 3px #fff, 0 6px 20px rgba(3,21,51,.35);
  transition: transform .3s;
}
.float-call:hover { transform: scale(1.08); }
.float-call img { width: 30px; height: 30px; }
.float-call::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(3,21,51,.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(3,21,51,0); } 100% { box-shadow: 0 0 0 0 rgba(3,21,51,0); } }

/* =========================================================
   LINE OF SERVICES
   ========================================================= */
.los-intro { background: var(--light); padding: 50px 0 40px; text-align: center; }
.los-intro p { max-width: 900px; margin: 0 auto 16px; font-size: 13.5px; color: var(--gray); }
.los-intro strong { color: var(--navy); }

.los-list { padding: 30px 0 60px; }
.los-item { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); margin-bottom: 60px; }
.los-item .media { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 16/11; }
.los-item .media img { transition: transform .8s; }
.los-item:hover .media img { transform: scale(1.04); }
.los-item .box {
  position: relative; z-index: 2;
  background: var(--navy);
  color: #fff;
  padding: 44px 40px;
  text-align: center;
  align-self: start;
}
.los-item .box h3 { font-size: clamp(28px, 2.7vw, 36px); margin-bottom: 18px; letter-spacing: .05em; }
.los-item .box p, .los-item .box li { font-size: 12.5px; color: rgba(255,255,255,.92); }
.los-item .box ul { margin-bottom: 0; }
.los-item .box ul li { margin-bottom: 1px; }

/* image left, box right */
.los-item.left .media { grid-column: 1 / 7; grid-row: 1; }
.los-item.left .box { grid-column: 6 / 13; grid-row: 1; margin-top: 70px; }
/* box left, image right */
.los-item.right .media { grid-column: 6 / 13; grid-row: 1; }
.los-item.right .box { grid-column: 1 / 8; grid-row: 1; margin-top: 60px; }

/* Shipbuilding: box drops under image, materials band at bottom */
.los-item.ship .box { padding-bottom: 30px; }
.materials {
  display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 26px;
}
.materials img { height: 22px; width: auto; max-width: 30%; object-fit: contain; }

/* =========================================================
   CAREERS
   ========================================================= */
.careers-wrap { position: relative; padding: 0 0 40px; }
.careers-wrap::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 18%; height: 180px; background: var(--light);
}
.careers-panel {
  position: relative;
  background: var(--navy-3);
  color: #fff;
  width: 88%;
  padding: 44px 0 56px 6%;
}
.careers-panel .photo { width: 108%; max-width: 860px; aspect-ratio: 16/10.4; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.careers-panel .txt { padding-right: 8%; max-width: 780px; }
.careers-panel h2 { font-size: clamp(34px, 4vw, 48px); margin: 40px 0 16px; }
.careers-panel p { font-size: 13px; color: rgba(255,255,255,.9); }
.careers-panel a.mail { text-decoration: underline; font-weight: 700; }

/* =========================================================
   ABOUT US
   ========================================================= */
.about-gallery { padding: 22px 0 0; background: linear-gradient(180deg, var(--light) 0 72%, #fff 72% 100%); }
.about-gallery .stack { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.about-gallery .g { overflow: hidden; }
.about-gallery .g1 { aspect-ratio: 16/9; }
.about-gallery .g2 { aspect-ratio: 16/6.6; width: 97%; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; text-align: center; max-width: 860px; margin: 0 auto; }
.vm-grid h2 { font-size: 34px; color: var(--navy); margin-bottom: 18px; }
.vm-grid p { font-size: 13px; }

.iso-section { position: relative; padding-top: 10px; }
.iso-section::before { content: ''; position: absolute; left: 0; right: 0; top: 34%; bottom: 0; background: var(--navy); }
.iso-card {
  position: relative; z-index: 2;
  max-width: 760px; margin: 0 auto;
  background: var(--orange);
  color: #fff;
  padding: 40px 36px 40px 10px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-items: center;
}
.iso-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 78px; line-height: .92;
  padding: 26px 0 26px 30px;
  background-image: radial-gradient(rgba(255,255,255,.55) 1.2px, transparent 1.3px);
  background-size: 9px 9px;
  background-position: 0 50%;
  background-repeat: repeat-y;
  background-size: 9px 9px;
}
.iso-title span { display: block; }
.iso-badges { height: 62px; width: auto; margin-bottom: 14px; }
.iso-card p, .iso-card li { font-size: 12px; line-height: 1.6; }
.iso-card ol { list-style: decimal; padding-left: 18px; margin: 0 0 12px; }

.since { background: var(--navy); color: #fff; text-align: center; padding: 60px 0 90px; }
.since .label { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.since .year { height: clamp(70px, 9vw, 100px); width: auto; margin: 0 auto 34px; }
.since p { max-width: 720px; margin: 0 auto 16px; font-size: 13px; color: rgba(255,255,255,.88); }

.credibility { text-align: center; padding-bottom: 30px; }
.credibility p { max-width: 720px; margin: 14px auto; font-size: 13px; }
.credibility .note { font-size: 12px; font-weight: 700; color: var(--navy-2); max-width: 340px; }
.cert-label { font-weight: 700; color: var(--navy-2); margin-top: 22px !important; }
.certs { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.certs img { height: 62px; width: auto; }
.certs img.bki { height: 44px; }

/* =========================================================
   VIDEO MODAL
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-inner { width: 100%; max-width: 960px; aspect-ratio: 16/9; position: relative; background: #000; }
.modal-inner iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: -46px; right: 0;
  background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; line-height: 1;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .float-call::before { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .main-nav ul { gap: 18px; }
}
@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--navy);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .site-header.scrolled .main-nav { top: 64px; }
  .nav-open .main-nav { max-height: 440px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 6px 20px 20px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a::after { display: none; }
  .nav-open .site-header { background: var(--navy); }

  .intro { grid-template-columns: 1fr; gap: 40px; }
  .intro .text { text-align: center; }

  .los-item { display: block; margin-bottom: 50px; }
  .los-item .box { margin: -50px 16px 0 !important; padding: 34px 24px; }

  .careers-panel { width: 100%; padding: 30px 20px 40px; }
  .careers-panel .photo { width: 100%; }
  .careers-panel .txt { padding-right: 0; }
  .careers-wrap::before { display: none; }

  .vm-grid { grid-template-columns: 1fr; gap: 40px; }
  .iso-card { grid-template-columns: 1fr; padding: 30px 24px; margin: 0 16px; }
  .iso-title { font-size: 60px; padding-left: 20px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
  :root { --header-h: 64px; }
  .section { padding: 60px 0; }
  .logo-text { font-size: 11px; letter-spacing: .35em; }
  .service-grid { grid-template-columns: 1fr; }
  .page-hero { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
  .clients img { height: 60px; }
  .materials img { height: 18px; }
  .certs img { height: 50px; }
  .float-call { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .float-call img { width: 26px; height: 26px; }
}
