/* ==========================================================================
   Vraj Polyraw Industries — design tokens & shared styles
   Palette derived from brand mark: deep industrial navy + injection-drop orange.
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (spec-plate data)
   Signature motif: the machine spec-plate — a riveted metal nameplate, the way
   a real injection-moulding machine wears its tonnage and model on its body.
   ========================================================================== */

:root {
  /* Brand colors — sourced from logo.svg */
  --navy-950: #0F2952;
  --navy-900: #163A73;
  --navy-700: #1F4B92;
  --orange-500: #F2790A;
  --orange-600: #D9660A;
  --orange-100: #FDE9D3;

  --ink-900: #12161F;
  --ink-600: #4A5568;

  --paper-0: #FFFFFF;
  --steel-100: #F5F6F8;
  --steel-200: #E7E9ED;
  --steel-300: #D3D7DE;
  --steel-400: #A7AEBB;

  --plate-face: linear-gradient(155deg, #EEF0F3 0%, #DCE0E6 100%);
  --plate-edge: #C3C9D2;
  --rivet: radial-gradient(circle at 35% 32%, #FFFFFF 0%, #AEB5C2 55%, #757E8D 100%);

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1160px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-card: 0 1px 2px rgba(15, 41, 82, 0.05), 0 10px 28px rgba(15, 41, 82, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-0);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--orange-500);
  display: inline-block;
}
.eyebrow--on-dark { color: var(--orange-500); }
.eyebrow--muted { color: var(--steel-400); }
.eyebrow--muted::before { background: var(--steel-400); }

h1 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.1; }
h3 { font-size: 1.28rem; line-height: 1.25; }

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-600);
  max-width: 46ch;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--steel { background: var(--steel-100); }
.section--navy { background: var(--navy-950); color: #fff; }
.section--navy .lede { color: #C4D0E4; }

@media (max-width: 720px) {
  .section { padding: 56px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange-500); color: #fff; }
.btn--primary:hover { background: var(--orange-600); }
.btn--ghost { background: transparent; border-color: var(--steel-300); color: var(--navy-900); }
.btn--ghost:hover { border-color: var(--navy-900); }
.section--navy .btn--ghost,
.hero .btn--ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.section--navy .btn--ghost:hover,
.hero .btn--ghost:hover { border-color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel-200);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark { width: 42px; height: 42px; }
.brand__word {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.brand__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-600);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__links a:hover { color: var(--navy-900); }
.nav__links a[aria-current="page"] { color: var(--navy-900); border-color: var(--orange-500); font-weight: 600; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--steel-300);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle span { top: 19px; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--steel-200);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--steel-200); width: 100%; }
  .nav__cta { display: none; }
}

/* ---------- Spec-plate (signature component) ---------- */
.spec-plate {
  position: relative;
  background: var(--plate-face);
  border: 1px solid var(--plate-edge);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-card);
  padding: 26px 28px;
}
.rivet {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rivet);
  box-shadow: 0 1px 1px rgba(15,25,50,0.35);
}
.rivet--tl { top: 10px; left: 10px; }
.rivet--tr { top: 10px; right: 10px; }
.rivet--bl { bottom: 10px; left: 10px; }
.rivet--br { bottom: 10px; right: 10px; }

.plate-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-700);
  border-bottom: 1px dashed var(--steel-300);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.plate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--steel-200);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}
.plate-row:last-child { border-bottom: none; }
.plate-row dt { color: var(--steel-400); letter-spacing: 0.04em; }
.plate-row dd { margin: 0; color: var(--ink-900); font-weight: 600; text-align: right; }

/* Hero fact strip — spec-plate rendered horizontally */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.fact-strip .fact {
  padding: 20px 22px;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.fact-strip .fact:first-child { border-left: none; }
.fact-strip .fact dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 6px;
}
.fact-strip .fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
}
@media (max-width: 720px) {
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact-strip .fact:nth-child(3) { border-left: none; }
  .fact-strip .fact:nth-child(odd) { border-left: none; }
}

/* ---------- Machine reference photos ---------- */
.machine-photo {
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--steel-200);
  background: var(--steel-100);
}
.machine-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.machine-photo__caption {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--steel-400);
  background: #fff;
  border-top: 1px solid var(--steel-200);
}

/* ---------- Cards / grids ---------- */
.card {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.capability-tile {
  padding: 30px 28px;
  border-radius: var(--radius-md);
  background: var(--steel-100);
  border: 1px solid var(--steel-200);
}
.capability-tile .hex-icon { width: 40px; height: 40px; margin-bottom: 18px; }
.capability-tile h3 { margin-bottom: 10px; }
.capability-tile p { color: var(--ink-600); font-size: 0.96rem; }

/* ---------- Founder cards ---------- */
.founder-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  align-items: flex-start;
}
.founder-badge {
  flex-shrink: 0;
  width: 64px; height: 64px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--navy-900);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.founder-card h3 { margin-bottom: 2px; }
.founder-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 10px;
  display: block;
}
.founder-card p { color: var(--ink-600); font-size: 0.95rem; }

/* ---------- Process steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 8px; }
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-500);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}
.process-step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.process-step p { color: var(--ink-600); font-size: 0.92rem; }
@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ---------- Page intro ---------- */
.page-intro { padding: 64px 0 40px; }
.page-intro h1 { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-950);
  color: #fff;
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}
.hero__row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
}
.hero h1 { color: #fff; margin-top: 18px; }
.hero .lede { margin-top: 20px; color: #C4D0E4; }
.hero .btn-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mark svg { width: min(280px, 60vw); height: auto; }
.hero-mark .drop {
  transform-origin: 253px 98px;
  animation: drop-pulse 3.2s ease-in-out infinite;
}
@keyframes drop-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.75; }
}

@media (max-width: 860px) {
  .hero__row { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero-mark { order: -1; }
  .hero-mark svg { width: 160px; }
}

/* ---------- Contact / form ---------- */
.enquiry {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .enquiry { grid-template-columns: 1fr; }
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink-900); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1.5px solid var(--steel-300);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--orange-500);
  outline-offset: 1px;
  border-color: var(--orange-500);
}
.field textarea { min-height: 110px; resize: vertical; }
#enquiry-form .btn { margin-top: 22px; }
.form-note { font-size: 0.85rem; color: var(--steel-400); margin-top: 10px; }
.form-status { margin-top: 12px; font-size: 0.9rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { color: #0B7A3E; }
.form-status.is-error { color: #B3261E; }

.contact-block { display: flex; flex-direction: column; gap: 20px; }
.contact-line { margin-bottom: 16px; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { color: var(--orange-600); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #C4D0E4;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand__mark { width: 30px; height: 30px; }
.footer-brand__word { font-family: var(--font-display); font-weight: 700; color: #fff; }
.site-footer p { font-size: 0.9rem; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 16px;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--orange-500); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--steel-400);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
