/* ============================================================
   Satu Teknik Sdn Bhd — satuteknik.com
   Shared stylesheet
   ============================================================ */
@font-face {
  font-family: "Neuropol";
  src: url("../fonts/neuropol.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #06121f;
  --navy-800: #0a1d33;
  --navy-700: #10294a;
  --navy-600: #16365f;
  --teal-500: #3aebf6;
  --teal-400: #3aebf6;
  --teal-100: #d6f5fc;
  --ink: #12263a;
  --ink-soft: #46607a;
  --bg-light: #f5f9fc;
  --white: #ffffff;
  --border: #dbe7f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 18, 31, 0.10);
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.18;
  color: var(--navy-800);
  letter-spacing: -0.015em;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-500); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 18, 31, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}
.brand-mark {
  width: 42px; height: 42px; flex: none;
}
.brand-name {
  font-family: "Neuropol", "Sora", sans-serif;
  font-weight: normal;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-family: "Neuropol", "Inter", sans-serif;
  font-weight: normal;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-400);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: #cfe0ee;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-400); text-decoration: none; }
.nav-cta {
  background: var(--teal-500);
  color: #04202b !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--teal-400); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(6,18,31,0.82) 0%, rgba(6,18,31,0.55) 50%, rgba(6,18,31,0.18) 100%),
    url("../img/hero-bg.jpg") center / cover no-repeat;
  background-color: var(--navy-900);
  color: #eaf4fb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-inner {
  padding: 96px 0 110px;
  max-width: 780px;
}
.hero > .container { width: 100%; }
/* On desktop, size the hero to the image's own 3:2 shape so the full
   scene is visible — boat at the top, seabed scan at the bottom. */
@media (min-width: 961px) {
  .hero { aspect-ratio: 3 / 2; }
  .hero-inner { padding: 40px 0 60px; }
}
.hero .kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-400);
  border: 1px solid rgba(47,208,238,0.35);
  border-radius: 999px;
  /* right padding trimmed by one letter-space: uppercase letter-spacing adds
     an invisible gap after the last letter, so this keeps both sides equal */
  padding: 7px calc(16px - 0.24em) 7px 16px;
  margin-bottom: 26px;
}
/* Hero kicker: one line on desktop; on narrow screens break into two
   lines at the bullet so the pill wraps the text with no empty gap. */
.kicker-br { display: none; }
.kicker-dot { display: none; }
@media (max-width: 640px) {
  .hero .kicker { border-radius: 18px; text-align: center; }
  .hero .kicker .kicker-sep { display: none; }
  .kicker-br { display: block; }
  .kicker-dot { display: inline; }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal-400);
}
.hero p.lead {
  font-size: 1.07rem;
  color: #b9cfdf;
  max-width: 600px;
  margin-bottom: 36px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-500); color: #04202b; }
.btn-primary:hover { background: var(--teal-400); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: var(--teal-400); color: var(--teal-400); }

.hero-wave { display: block; width: 100%; position: absolute; bottom: -1px; left: 0; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--navy-700);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px 0;
  text-align: center;
}
.stat b {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.7rem;
  color: var(--teal-400);
}
.stat span { font-size: 0.88rem; color: #b9cfdf; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-light); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-500);
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 10px 0 14px; }
.section-head p { color: var(--ink-soft); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 3px 14px rgba(6,18,31,0.05);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--teal-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card ul { margin: 10px 0 0 18px; font-size: 0.95rem; color: var(--ink-soft); }
.card ul li { margin-bottom: 6px; }

/* ---------- Media showcase (video + photo grids) ---------- */
.showcase { margin-bottom: 64px; }
.showcase:last-child { margin-bottom: 0; }
.showcase-title {
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: center;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.video-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
/* Placeholder look until real media is supplied */
.media-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  border: 2px dashed #b6cadb;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 10px;
}
.video-frame .media-ph { position: absolute; inset: 0; border-radius: var(--radius); }
.photo-grid .media-ph { aspect-ratio: 4 / 3; }
.media-ph small { color: #8aa2b5; font-size: 0.68rem; letter-spacing: 0.02em; }

@media (max-width: 960px) {
  .showcase-grid, .video-duo { grid-template-columns: 1fr; }
}

/* ---------- Two-column feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 18px; }
@media (min-width: 901px) {
  .split.story { grid-template-columns: 0.8fr 1.2fr; }
}
.staff-link {
  color: #6f8699;
  text-decoration: none;
  font-size: 0.85rem;
}
.staff-link:hover { color: #3aebf6; text-decoration: underline; }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .mv-grid { grid-template-columns: 1fr; }
}
.split.story p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.split p { color: var(--ink-soft); margin-bottom: 14px; }
.checklist { list-style: none; margin-top: 8px; }
.checklist li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 13px;
  color: var(--ink);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-500);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center/70% no-repeat, linear-gradient(#000,#000);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center/70% no-repeat, linear-gradient(#000,#000);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

/* Card photo — centered above the service description */
.card-img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  margin: 0 auto 20px;
  border-radius: 10px;
}

/* Services page: center the text under each service photo */
#rov .card { text-align: center; }
#rov .card .card-img { margin-bottom: 22px; }

/* Photo in a two-column split section */
.split-img {
  width: 100%;
  min-height: 340px;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Placeholder image panels — replace with real photos */
.img-placeholder {
  border-radius: var(--radius);
  min-height: 340px;
  background:
    radial-gradient(600px 300px at 70% 20%, rgba(0,180,216,0.35), transparent 65%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow);
}

/* ---------- Client logo wall ---------- */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.logo-cell {
  flex: none;
  width: 204px;
  height: 116px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  transition: transform .2s, box-shadow .2s;
}
.logo-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-cell img { max-height: 88px; max-width: 100%; object-fit: contain; }
@media (max-width: 720px) {
  .logo-cell { width: 44%; height: 92px; }
}

/* ---------- Client / cert strips ---------- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-700);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(0,180,216,0.25), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: #fff;
  text-align: center;
  padding: 76px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.cta-band p { color: #b9cfdf; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.form-row input, .form-row textarea {
  width: 100%;
  font: inherit;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-light);
  transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: #fff;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-info h3 { margin-bottom: 6px; font-size: 1.05rem; }
.contact-info .info-block { margin-bottom: 26px; }
.contact-info p { color: var(--ink-soft); }
.contact-info a.big-link { font-weight: 700; font-size: 1.05rem; }

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #06301b !important;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: transform .15s;
}
.wa-btn:hover { transform: translateY(-2px); }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.social-row a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none !important;
  transition: border-color .2s, color .2s;
}
.social-row a:hover { border-color: var(--teal-500); color: var(--teal-500); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #9db4c6;
  padding: 64px 0 30px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.5fr 1.2fr 1.15fr;
  gap: 36px;
  margin-bottom: 44px;
}
@media (min-width: 961px) {
  .footer-address { white-space: nowrap; }
  .site-footer .footer-grid > div:nth-child(3) a { white-space: nowrap; }
}
.site-footer .footer-grid > div:first-child p { max-width: 297px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #9db4c6; text-decoration: none; }
.site-footer a:hover { color: var(--teal-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: #6f8699;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(0,180,216,0.2), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 72px 0 64px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin: 10px 0 12px; }
.page-hero p { color: #b9cfdf; max-width: 640px; font-size: 1.08rem; }
.page-hero .kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-400);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 22px 22px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-links a.nav-cta { display: block; text-align: center; padding: 12px 20px; margin-top: 10px; }
  .nav-toggle { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 66px 0 80px; }
}
