:root {
  --navy: #0b1d33;
  --navy-2: #132a46;
  --navy-3: #1b3a5c;
  --orange: #e67a1f;
  --orange-2: #f39a3a;
  --red: #c0392b;
  --blue: #1d6bb8;
  --blue-2: #2e86c1;
  --text: #1c2a38;
  --muted: #5a6b7c;
  --line: #dce3ea;
  --bg: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(11, 29, 51, 0.1);
  --radius: 16px;
  --header-h: 86px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--orange);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--navy);
  color: #d7e4f2;
  font-size: 0.92rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 40px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.topbar a:hover {
  color: var(--orange-2);
}

.topbar-left,
.topbar-right {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.header.is-scrolled {
  box-shadow: 0 8px 24px rgba(11, 29, 51, 0.08);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--navy-2);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  background: #eef4fb;
  color: var(--blue);
}

.nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--orange);
}

.has-sub {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-parent::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  display: grid;
}

.submenu a {
  display: block;
  border-radius: 10px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(11, 29, 51, 0.86) 0%, rgba(11, 29, 51, 0.52) 46%, rgba(29, 107, 184, 0.28) 100%),
    url("../images/hero-cnc.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  padding: 72px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
  max-width: 14ch;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero p {
  max-width: 58ch;
  margin: 18px 0 28px;
  font-size: 1.12rem;
  color: #e8eef5;
}

.hero-actions,
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(230, 122, 31, 0.32);
}

.btn-primary:hover {
  background: #d36c14;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-whatsapp {
  background: #1f9d58;
  color: #fff;
}

.section {
  padding: 84px 0;
}

.section-muted {
  background: var(--bg);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.kicker {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}

.lede {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card,
.stat,
.machine,
.person,
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.product,
.machine,
.person {
  padding: 24px;
}

.product {
  display: flex;
  flex-direction: column;
}

.product-thumb {
  width: calc(100% + 48px);
  max-width: none;
  height: 200px;
  margin: -24px -24px 16px;
  object-fit: contain;
  background: #f4f7fb;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.product .btn {
  margin-top: auto;
  align-self: flex-start;
}

.icon-dot {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.bg-orange { background: var(--orange); }
.bg-red { background: var(--red); }
.bg-blue { background: var(--blue); }
.bg-navy { background: var(--navy-2); }

.card h3,
.product h3,
.machine h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.card p,
.product p,
.machine p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.photo-frame {
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(11, 29, 51, 0.08), rgba(11, 29, 51, 0.28)),
    url("../images/cnc-closeup.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.photo-frame.alt {
  background:
    linear-gradient(180deg, rgba(11, 29, 51, 0.08), rgba(11, 29, 51, 0.28)),
    url("../images/hero-cnc.jpg") center/cover no-repeat;
}

.checklist {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

.checklist li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  left: 0;
  top: 6px;
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--orange);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  padding: 22px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.2rem;
  color: var(--navy);
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  background:
    linear-gradient(110deg, rgba(11, 29, 51, 0.86), rgba(29, 107, 184, 0.55)),
    url("../images/hero-cnc.jpg") center/cover no-repeat;
  color: #fff;
  padding: 72px 0;
}

.page-hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-hero p {
  max-width: 62ch;
  margin-top: 12px;
  color: #e6eef7;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

tr:nth-child(even) td {
  background: #f8fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person h3 {
  color: var(--navy);
}

.person a {
  color: var(--blue);
  font-weight: 700;
}

.map {
  min-height: 360px;
  border: 0;
  width: 100%;
  border-radius: 16px;
  filter: grayscale(0.15);
}

.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(29, 107, 184, 0.28);
  border-color: var(--blue);
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.success {
  display: none;
  background: #e8f7ee;
  color: #17693b;
  border: 1px solid #b7e3c7;
  padding: 12px 14px;
  border-radius: 12px;
}

.success.show {
  display: block;
}

.cta-band {
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 62%, var(--orange) 140%);
  color: #fff;
  padding: 48px 0;
}

.cta-band .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer {
  background: var(--navy);
  color: #c9d7e6;
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h3 {
  color: #fff;
  margin-bottom: 12px;
}

.footer a:hover {
  color: var(--orange-2);
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}

.copy {
  padding-top: 16px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.float-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 40;
}

.float-actions a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-weight: 800;
}

.call-fab { background: var(--blue); }
.wa-fab { background: #1f9d58; }

.crumb {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.crumb a:hover {
  color: var(--orange-2);
}

.product-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.product-copy p {
  color: var(--muted);
  margin-top: 14px;
}

.product-photo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 110px;
}

.product-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.feature-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--navy);
}

.industry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  background: #eef4fb;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.gst-line {
  font-weight: 700;
  color: #fff;
}

@media (max-width: 980px) {
  .grid-4,
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3,
  .split,
  .contact-grid,
  .product-detail,
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-photo { position: static; }
  .menu-toggle { display: flex; }
  .has-sub { width: 100%; }
  .submenu {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
}

@media (max-width: 700px) {
  .grid-2,
  .form-row,
  .stats { grid-template-columns: 1fr; }
  .hero { min-height: 64vh; }
  .section { padding: 64px 0; }
  .brand-text span { display: none; }
}
