/* JSK Ship Spare Parts - homepage demo
   Plain CSS, no framework. Colours and fonts are set once in :root below,
   so a change there updates the whole page. */

:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --slate: #334155;
  --blue: #0369a1;
  --blue-dark: #075985;
  --sky: #e0f2fe;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --green: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Preview ribbon (remove this block when the site goes live) */
.preview-bar {
  background: var(--navy); color: #cbd5e1; text-align: center;
  font-size: 14px; padding: 8px 16px;
}
.preview-bar strong { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 10px; border: 2px solid transparent;
  font: 600 16px/1 var(--font-head); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-whatsapp { background: #128c4a; color: #fff; }
.btn-whatsapp:hover { background: #0e6f3a; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--slate); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--blue); }
.header-phone { display: flex; align-items: center; gap: 8px; font: 600 15px var(--font-head); color: var(--navy); text-decoration: none; }
.header-phone svg { width: 18px; height: 18px; color: var(--blue); }
.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--border);
  background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Hero */
.hero {
  position: relative; color: #fff; isolation: isolate;
  background: var(--navy) url("../img/job-mt-vantage.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(15,23,42,.95) 0%, rgba(15,23,42,.84) 48%, rgba(15,23,42,.45) 100%);
}
.hero-inner { padding: 96px 0 104px; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--font-head);
  letter-spacing: .06em; text-transform: uppercase; color: #7dd3fc; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: #38bdf8; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
.hero p.lead { font-size: 1.2rem; color: #dbe5f1; max-width: 600px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; font-size: 15px; color: #b6c4d6; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 26px 18px; border-left: 1px solid var(--border); }
.trust-item:first-child { border-left: 0; }
.trust-item svg { width: 34px; height: 34px; color: var(--blue); flex: none; }
.trust-item strong { display: block; font: 600 16px/1.3 var(--font-head); color: var(--navy); }
.trust-item span { font-size: 15px; color: var(--muted); }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { font: 600 14px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.alt { background: #fff; border-block: 1px solid var(--border); }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #bfdbfe; }
.card-img { aspect-ratio: 4 / 3; background: var(--navy-2); position: relative; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.card ul { margin: 0 0 18px; padding: 0; list-style: none; font-size: 15px; color: var(--slate); }
.card li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg) translateY(-3px);
}
.card .link { margin-top: auto; font: 600 15px var(--font-head); text-decoration: none; color: var(--blue); display: inline-flex; gap: 8px; align-items: center; }
.card .link:hover { text-decoration: underline; }

/* Why us */
.why { background: var(--navy); color: #cbd5e1; }
.why h2, .why h3 { color: #fff; }
.why .section-head p { color: #b6c4d6; }
.why .kicker { color: #7dd3fc; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item { padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.why-item svg { width: 36px; height: 36px; color: #38bdf8; margin-bottom: 14px; }
.why-item h3 { font-size: 1.2rem; }
.why-item p { margin: 0; font-size: 16px; }

/* Jobs */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.job { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.job-img { aspect-ratio: 16 / 10; background: var(--navy-2); position: relative; overflow: hidden; }
.job-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.job-body { padding: 18px 20px 22px; }
.tag { display: inline-block; font: 600 12px var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--blue-dark); background: var(--sky); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }
.job h3 { font-size: 1.1rem; margin-bottom: 6px; }
.job p { margin: 0; font-size: 15px; color: var(--muted); }
.more { margin-top: 32px; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; border: 1px solid var(--border); border-radius: 999px; font: 500 15px var(--font-head); color: var(--navy); }
.chip svg { width: 20px; height: 20px; color: var(--blue); }

/* Client logos */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-tile { height: 92px; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; }
.logo-tile.dark { background: #05070d; border-color: #05070d; }
.logo-tile img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* Quote */
.quote { background: linear-gradient(180deg, var(--sky), #f1f9ff); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 26px; height: 26px; color: var(--blue); flex: none; margin-top: 2px; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--navy); }
.contact-list a { color: var(--slate); text-decoration: none; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form h3 { font-size: 1.35rem; }
.form .sub { color: var(--muted); font-size: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font: 600 15px var(--font-head); margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid #cbd5e1; border-radius: 10px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: 3px solid rgba(3,105,161,.2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; }
.form-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.form-ok { display: none; padding: 16px; border-radius: 10px; background: #dcfce7; color: #14532d; margin-top: 16px; font-weight: 600; }
.form-ok.show { display: block; }

/* Map */
.map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 21 / 7; min-height: 280px; background: var(--border); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Address card (replaces the map for now) */
.map-card { margin-top: 56px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.map-card > svg { width: 36px; height: 36px; color: var(--blue); flex: none; }
.map-card > div { flex: 1; min-width: 220px; }
.map-card strong { font: 600 1.1rem var(--font-head); color: var(--navy); }
.map-card p { margin: 4px 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #b6c4d6; padding: 64px 0 28px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 10px; margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #b6c4d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #128c4a; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Tablet and phone */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .jobs { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 14px; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero-inner { padding: 64px 0 72px; }
  .hero-cta .btn { width: 100%; }
  .cards, .jobs { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--border); padding: 18px 4px; }
  .trust-item:first-child { border-top: 0; }
  .row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .map { aspect-ratio: auto; height: 300px; min-height: 0; }
  .brand img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
