/* ==========================================================================
   Balaji Grapics — homepage
   Clean, modern B2B layout: generous white space, a single warm accent, and
   product imagery doing the colour work (per brief §4).
   Structure follows Hero → Services → Quote → Portfolio → Footer.

   1. Tokens
   2. Base + typography
   3. Primitives (buttons, chips, fields, eyebrow, shot frames)
   4. Header + nav
   5. Hero
   6. Trust bar
   7. Services grid
   8. Request a quote
   9. Portfolio
   10. Footer
   11. Responsive
   ========================================================================== */

/* ── 1. Tokens ──────────────────────────────────────────────────────────── */

:root {
  /* Ink — warm-neutral greys, not pure black. Print stock is never white. */
  --ink-900: #14120f;
  --ink-800: #2a2621;
  --ink-700: #4a443c;
  --ink-500: #7a7269;
  --ink-400: #9e968c;
  --ink-300: #c4bcb2;
  --line:    #e8e2da;
  --line-soft: #f1ece6;

  /* Ground */
  --bg:       #ffffff;
  --bg-soft:  #faf7f3;
  --bg-warm:  #fbf2e9;
  --bg-ink:   #16130f;

  /* Accent — a warm print orange. One accent, used with intent. */
  --accent:     #c4551f;
  --accent-600: #a84717;
  --accent-200: #f5d3bf;
  --accent-100: #fbeade;

  /* Process colours — used only as the four-colour ribbon and service dots.
     A quiet nod to what the business actually does. */
  --cyan:    #0093d0;
  --magenta: #d6006e;
  --yellow:  #f5c400;
  --key:     #1a1a1a;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 18, 15, .05), 0 2px 8px rgba(20, 18, 15, .04);
  --shadow-md: 0 4px 12px rgba(20, 18, 15, .06), 0 12px 32px rgba(20, 18, 15, .07);
  --shadow-lg: 0 12px 28px rgba(20, 18, 15, .08), 0 32px 64px rgba(20, 18, 15, .10);

  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 124px);
}

/* ── 2. Base + typography ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-700);
  max-width: 54ch;
}
.muted { color: var(--ink-500); }
.small { font-size: .875rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Neutral selection. A tinted one painted a salmon block behind the nav,
   headline, lead and buttons the moment anything was selected. */
::selection { background: rgba(20, 18, 15, .12); color: var(--ink-900); }

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section-y); }
.section-soft { background: var(--bg-soft); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -80px; left: var(--gutter); z-index: 100;
  background: var(--ink-900); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* Section headers */
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ── 3. Primitives ──────────────────────────────────────────────────────── */

/* Eyebrow — small label with a process-colour dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
}
.center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 700; letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background-color .18s ease,
              border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-600); box-shadow: var(--shadow-md); }

.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-800); }

/* Ghost = outline only. No fill at rest, and only a whisper of one on hover,
   so it never competes with the solid primary beside it. */
.btn-ghost {
  border-color: var(--ink-300);
  color: var(--ink-900);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink-900);
  background: rgba(20, 18, 15, .04);
}
.btn-ghost:active { background: rgba(20, 18, 15, .08); }

.btn-light { background: #fff; color: var(--ink-900); }
.btn-light:hover { background: var(--bg-warm); }

.btn-sm { padding: 11px 20px; font-size: .875rem; }
.btn-block { width: 100%; }

/* Inline text link with an arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  color: var(--accent);
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Chips (portfolio filter) */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: .875rem; font-weight: 650;
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .18s ease;
  user-select: none;
}
.chip:hover { border-color: var(--ink-300); color: var(--ink-900); }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 650; letter-spacing: .01em;
  color: var(--ink-700);
}
.field .req { color: var(--accent); }
.input {
  width: 100%;
  font: inherit; font-size: .95rem;
  color: var(--ink-900);
  background: #fff;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder { color: var(--ink-400); }
.input:hover { border-color: var(--ink-300); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-100);
}
textarea.input { min-height: 108px; resize: vertical; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237a7269' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
input[type="file"].input { padding: 10px 12px; font-size: .85rem; color: var(--ink-700); }
.input[aria-invalid="true"] { border-color: var(--accent); background: var(--accent-100); }
.field-error {
  font-size: .78rem; font-weight: 600; color: var(--accent-600);
  min-height: 1em;
}

/* Photo frames. Each points at a file in assets/img/; until that file exists
   the frame shows its shot brief instead of a broken image. */
.shot {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot.is-empty img { display: none; }
.shot.is-empty {
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(20,18,15,.028) 10px 20px),
    var(--bg-soft);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.shot.is-empty::after {
  content: attr(data-shot);
  position: absolute; inset: 0;
  display: grid; align-content: center; justify-items: center;
  gap: 10px;
  padding: 24px; text-align: center;
  font-size: .8rem; font-weight: 500; line-height: 1.45;
  color: var(--ink-400);
}
.shot.is-empty::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% - 30px));
  width: 26px; height: 26px;
  background: currentColor;
  color: var(--ink-300);
  -webkit-mask: var(--icon-photo) center / contain no-repeat;
  mask: var(--icon-photo) center / contain no-repeat;
}
:root {
  --icon-photo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2.5'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
}

/* The four-colour ribbon — CMYK, hairline. */
.ribbon { display: flex; height: 4px; }
.ribbon span { flex: 1; }
.ribbon span:nth-child(1) { background: var(--cyan); }
.ribbon span:nth-child(2) { background: var(--magenta); }
.ribbon span:nth-child(3) { background: var(--yellow); }
.ribbon span:nth-child(4) { background: var(--key); }

/* ── 4. Header + nav ────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-bar {
  display: flex; align-items: center; gap: 28px;
  min-height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--ink-900);
  color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  letter-spacing: -0.02em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  letter-spacing: -0.025em;
}
.logo-sub {
  font-size: .68rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-400);
}

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a {
  font-size: .925rem; font-weight: 550; color: var(--ink-700);
  position: relative; padding-block: 4px;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-list a:hover { color: var(--ink-900); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--ink-900); font-weight: 650; }

/* — About dropdown —
   Machinery, Quality and Gallery live in here so the top bar carries three
   product-facing links plus one company menu. */
.nav-has-menu { position: relative; }

.nav-menu-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-size: .925rem; font-weight: 550;
  color: var(--ink-700);
  background: none; border: 0; padding: 4px 0;
  cursor: pointer;
  position: relative;
}
.nav-menu-btn::after {
  content: ""; position: absolute; left: 0; right: 14px; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-menu-btn:hover { color: var(--ink-900); }
.nav-menu-btn:hover::after,
.nav-menu-btn.is-active::after { transform: scaleX(1); }
.nav-menu-btn.is-active { color: var(--ink-900); font-weight: 650; }
.nav-caret { transition: transform .2s ease; }
.nav-has-menu[data-open="true"] .nav-caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 196px;
  display: none;
  margin: 0; padding: 6px;
  background: #fff;
  /* Transparent top border bridges the gap to the button so the pointer can
     travel into the menu without it closing. */
  border: 1px solid var(--line);
  border-top: 11px solid transparent;
  background-clip: padding-box;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: 60;
}
.nav-has-menu[data-open="true"] .nav-menu { display: block; }
.nav-menu li + li { margin-top: 1px; }
.nav-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .9rem; font-weight: 500;
  color: var(--ink-700);
  white-space: nowrap;
}
.nav-menu a::after { display: none; }
.nav-menu a:hover { background: var(--bg-soft); color: var(--ink-900); }
.nav-menu a[aria-current="page"] { color: var(--accent); font-weight: 650; }

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

/* CSS-only mobile menu — a checkbox drives it, no JavaScript. */
#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  place-items: center;
}
.nav-burger span {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--ink-900);
  position: relative;
  transition: background .18s ease;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0;
  width: 19px; height: 2px; border-radius: 2px; background: var(--ink-900);
  transition: transform .22s ease;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
#nav-toggle:checked ~ .nav-burger span { background: transparent; }
#nav-toggle:checked ~ .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
#nav-toggle:checked ~ .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
#nav-toggle:focus-visible ~ .nav-burger { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ── 5. Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Soft warm wash behind the artwork side. */
  content: "";
  position: absolute; top: -25%; right: -12%;
  width: 62vw; height: 130%;
  background: radial-gradient(closest-side, var(--bg-warm), transparent 72%);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
/* No marker highlight behind the headline — the type carries it on its own,
   and a tinted block read as a stray selection rather than emphasis. */

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 32px;
  align-items: center;
}
/* Micro-copy: subdued, so it supports the buttons instead of competing. */
.hero-note {
  display: flex; align-items: center; gap: 9px;
  margin-top: 20px;
  font-size: .845rem; line-height: 1.5;
  color: var(--ink-500);
}
.hero-note svg { color: var(--ink-400); flex: none; }

.hero-art { position: relative; }
.hero-art .shot {
  /* Widened from near-square: the press photograph is landscape, and the old
     frame cropped the ends off the machine. */
  aspect-ratio: 16 / 11;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
/* Overlapping spec card — the small piece of proof, Moo-style. */
.hero-card {
  position: absolute;
  left: -24px; bottom: -28px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  display: grid; gap: 3px;
  min-width: 216px;
}
.hero-card .k {
  font-size: .7rem; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-400);
}
.hero-card .v {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; letter-spacing: -0.02em;
}
.hero-card .m { font-size: .8rem; color: var(--ink-500); }

/* ── 6. Trust bar ───────────────────────────────────────────────────────── */

.trustbar { border-block: 1px solid var(--line); background: var(--bg); }
.trustbar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(28px, 3.5vw, 44px);
  gap: 24px;
}
.trustbar-item { padding-inline: clamp(8px, 2vw, 24px); }
.trustbar-item + .trustbar-item { border-left: 1px solid var(--line); }
.trustbar-n {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trustbar-l {
  margin-top: 7px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-500);
}

/* ── 7. Services grid ───────────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
.service {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--accent-100);
  color: var(--accent-600);
  margin-bottom: 4px;
}
/* Each card carries one process colour on its icon, cycling C-M-Y-K. */
.service:nth-child(4n+1) .service-icon { background: #e2f3fb; color: #0074a3; }
.service:nth-child(4n+2) .service-icon { background: #fce3ef; color: #a80056; }
.service:nth-child(4n+3) .service-icon { background: #fdf3d2; color: #97790a; }
.service:nth-child(4n+4) .service-icon { background: var(--accent-100); color: var(--accent-600); }
.service h3 { margin: 0; }
.service p { margin: 0; font-size: .9rem; color: var(--ink-700); line-height: 1.6; }
.service-when {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--ink-500);
}
.service-when b {
  display: block;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: 3px;
}

/* ── 8. Request a quote ─────────────────────────────────────────────────── */

.quote { background: var(--bg-ink); color: #fff; }
.quote .eyebrow { color: var(--accent-200); }
.quote h2 { color: #fff; }
.quote-grid {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.quote-copy p { color: rgba(255, 255, 255, .68); }
.quote-points { display: grid; gap: 14px; margin-top: 28px; }
.quote-point { display: flex; gap: 13px; align-items: flex-start; font-size: .92rem; }
.quote-point svg { color: var(--accent-200); flex: none; margin-top: 3px; }
.quote-point span { color: rgba(255, 255, 255, .8); }
.quote-direct {
  margin-top: 32px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 12px;
}

.quote-card {
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.2vw, 40px);
  box-shadow: var(--shadow-lg);
}
.quote-form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.quote-form .span-2 { grid-column: 1 / -1; }
.form-foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: 4px;
}
.form-foot .small { color: var(--ink-500); }

/* Success panel, revealed by the tiny inline script. */
.form-sent {
  display: none;
  text-align: center;
  padding: clamp(20px, 3vw, 34px) 0;
}
.form-sent.is-on { display: block; }
.form-sent-icon {
  width: 60px; height: 60px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-100); color: var(--accent-600);
}
.form-sent-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px;
}

/* ── 9. Portfolio ───────────────────────────────────────────────────────── */

.pf-head {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.pf-head .section-head { margin-bottom: 0; }

.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); }
.pf-filters input { position: absolute; opacity: 0; pointer-events: none; }
.pf-filters label { display: inline-flex; }
.pf-filters input:focus-visible + label .chip { outline: 3px solid var(--accent); outline-offset: 3px; }

.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.pf-item {
  display: flex; flex-direction: column; gap: 14px;
  border-radius: var(--r-lg);
}
.pf-item .shot {
  aspect-ratio: 4 / 3;
  transition: transform .3s ease, box-shadow .3s ease;
}
.pf-item:hover .shot { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pf-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pf-meta h3 { margin: 0 0 3px; font-size: 1.05rem; }
.pf-meta p { margin: 0; font-size: .84rem; color: var(--ink-500); }
.pf-tag {
  flex: none;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-500);
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  padding: 5px 11px;
}

/* CSS-only filtering: the checked radio hides everything not in its category. */
.pf:has(#f-cartons:checked)   .pf-item:not([data-cat~="cartons"]),
.pf:has(#f-food:checked)      .pf-item:not([data-cat~="food"]),
.pf:has(#f-textile:checked)   .pf-item:not([data-cat~="textile"]),
.pf:has(#f-devotional:checked) .pf-item:not([data-cat~="devotional"]),
.pf:has(#f-industrial:checked) .pf-item:not([data-cat~="industrial"]) { display: none; }

.pf-filters input:checked + label .chip {
  background: var(--ink-900); border-color: var(--ink-900); color: #fff;
}

.pf-foot { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

/* ── 10. Footer ─────────────────────────────────────────────────────────── */

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(52px, 6vw, 80px) clamp(36px, 4vw, 52px);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; color: var(--ink-500); max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 50%;
  color: var(--ink-700); background: #fff;
  transition: all .18s ease;
}
.footer-social a:hover { border-color: var(--ink-900); color: var(--ink-900); }

.footer-col h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-400);
  margin-bottom: 16px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-col address {
  font-size: .9rem; color: var(--ink-700); font-style: normal; line-height: 1.6;
}
.footer-col a:hover { color: var(--accent); }
.footer-col address + address { margin-top: 16px; }
.footer-col address b {
  display: block;
  font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400);
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  /* Extra bottom room so the floating WhatsApp button never sits on the
     legal links when the page is scrolled to the end. */
  padding-block: 24px 76px;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--ink-500);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Sticky WhatsApp — most enquiries here arrive on a phone (brief §4). */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  padding: 13px 20px; border-radius: var(--r-pill);
  box-shadow: 0 6px 20px rgba(37, 211, 102, .38);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37, 211, 102, .45); }

/* ── 11. Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .nav-burger { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 8px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  #nav-toggle:checked ~ .nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    padding: 15px 0; font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-list a::after { display: none; }

  /* Dropdown becomes an inline accordion in the stacked menu. */
  .nav-menu-btn {
    width: 100%; justify-content: space-between;
    padding: 15px 0; font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-menu-btn::after { display: none; }
  .nav-menu {
    position: static; transform: none;
    min-width: 0; padding: 4px 0 8px 14px;
    background: transparent; border: 0; box-shadow: none;
  }
  .nav-menu a { padding: 12px 0; font-size: .95rem; }
  .nav-menu a:hover { background: transparent; }

  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 18px; }
  .nav-actions .btn { width: 100%; }

  /* Headline stays first — it is the page's LCP and its whole argument. */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin-top: 8px; }
  .hero-card { left: auto; right: 14px; bottom: -20px; }
  .quote-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .trustbar-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trustbar-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-card { position: static; margin-top: 16px; box-shadow: var(--shadow-sm); }
  .hero-actions .btn { flex: 1 1 100%; }
  .wa-fab { right: 14px; bottom: 14px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   INNER PAGES
   12. Page head        16. Machine cards     20. Gallery
   13. CTA strip        17. Service rows      21. Contact
   14. Spec tables      18. Industries        22. Inner-page responsive
   15. Product rows     19. Quality & eco
   ══════════════════════════════════════════════════════════════════════ */

/* ── 12. Page head ──────────────────────────────────────────────────────── */

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(30px, 4vw, 52px) clamp(40px, 5.5vw, 72px);
}
.page-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 22ch;
  margin-bottom: 18px;
}
.page-head .lead { max-width: 64ch; margin-bottom: 0; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  font-size: .82rem; color: var(--ink-500);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--ink-300); }
.breadcrumb [aria-current] { color: var(--ink-900); font-weight: 600; }

/* Jump links — a horizontal index on long pages */
.jumpbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.jumpbar-inner {
  display: flex; gap: 8px;
  padding-block: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.jumpbar-inner::-webkit-scrollbar { display: none; }
.jumpbar a {
  flex: none;
  font-family: var(--font-display); font-size: .84rem; font-weight: 650;
  color: var(--ink-700);
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  transition: all .16s ease;
}
.jumpbar a:hover { border-color: var(--ink-900); color: var(--ink-900); }

/* ── 13. CTA strip ──────────────────────────────────────────────────────── */

.cta-strip {
  background: var(--bg-ink); color: #fff;
  padding-block: clamp(48px, 6vw, 84px);
}
.cta-strip-inner {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
}
.cta-strip h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.6rem, 2.9vw, 2.3rem); }
.cta-strip p { margin: 0; color: rgba(255, 255, 255, .68); max-width: 46ch; }
.cta-strip-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── 14. Spec tables ────────────────────────────────────────────────────── */

.spec { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec th {
  width: 42%; text-align: left; vertical-align: top;
  padding: 12px 14px 12px 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-400);
  border-bottom: 1px solid var(--line-soft);
}
.spec td {
  padding: 12px 0;
  color: var(--ink-800);
  border-bottom: 1px solid var(--line-soft);
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ── 15. Product rows ───────────────────────────────────────────────────── */

.prod {
  padding-block: clamp(40px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.prod:last-of-type { border-bottom: 0; }
.prod-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
/* Alternate which side the photo sits on, so a long page keeps a rhythm. */
.prod:nth-of-type(even) .prod-figure { order: 2; }
.prod-figure .shot { aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.prod-figure figcaption { margin-top: 12px; font-size: .82rem; color: var(--ink-500); }
.prod-body h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin-bottom: 12px; }
.prod-body > p { color: var(--ink-700); }
.prod-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge {
  font-family: var(--font-display);
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-500);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}
.prod-cta { margin-top: 22px; }

/* ── 16. Machine cards ──────────────────────────────────────────────────── */

.mach-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.mach {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2vw, 24px);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.mach:hover { border-color: transparent; box-shadow: var(--shadow-md); }
.mach .shot { aspect-ratio: 16 / 10; margin-bottom: 20px; border-radius: var(--r-md); }
.mach-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.mach-head h3 { margin: 0; }

.pill {
  font-family: var(--font-display);
  font-size: .67rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
}
.pill-on   { background: #e6f5ec; color: #1a7a45; }
.pill-soft { background: var(--accent-100); color: var(--accent-600); }
.pill-off  { background: var(--bg-soft); color: var(--ink-500); border: 1px solid var(--line); }

/* Infrastructure figures */
.infra-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.infra {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.2vw, 26px);
}
.infra-n {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.infra-l { margin-top: 8px; font-size: .84rem; color: var(--ink-500); }

/* ── 17. Service rows ───────────────────────────────────────────────────── */

.svc {
  display: grid; grid-template-columns: 190px 1fr;
  gap: clamp(22px, 3.4vw, 48px);
  padding-block: clamp(28px, 3.8vw, 48px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.svc:last-of-type { border-bottom: 0; }
.svc .shot { aspect-ratio: 1 / 1; }
.svc-body h2 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); margin-bottom: 10px; }
.svc-body > p { color: var(--ink-700); max-width: 66ch; }
.svc-when {
  margin-top: 16px;
  padding: 15px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .9rem; color: var(--ink-700);
}
.svc-when b {
  display: block;
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-600); margin-bottom: 4px;
}

/* ── 18. Industries ─────────────────────────────────────────────────────── */

.ind-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.ind {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ind:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-md); }
.ind .shot { aspect-ratio: 4 / 3; border-radius: 0; }
.ind-body { padding: 18px 20px 22px; }
.ind-body h3 { font-size: 1.02rem; margin: 0 0 6px; }
.ind-body p { margin: 0; font-size: .85rem; color: var(--ink-500); line-height: 1.55; }

/* ── 19. Quality & eco ──────────────────────────────────────────────────── */

.steps { display: grid; }
.step {
  display: grid; grid-template-columns: 60px 1fr;
  gap: clamp(16px, 2vw, 24px);
  padding-block: clamp(20px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step-n {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-100); color: var(--accent-600);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; font-size: .92rem; color: var(--ink-700); max-width: 62ch; }

.eco-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.eco {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
}
.eco-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: #e7f5ec; color: #1a7a45;
  margin-bottom: 16px;
}
.eco h3 { font-size: 1.08rem; margin-bottom: 8px; }
.eco p { margin: 0; font-size: .9rem; color: var(--ink-700); }

/* A plain statement panel — used for the ISO position. */
.note-panel {
  background: var(--bg-warm);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  border-left: 4px solid var(--accent);
}
.note-panel h3 { margin-bottom: 10px; }
.note-panel p:last-child { margin-bottom: 0; }

/* Two-column split: main argument beside a supporting column. */
.cols-split {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}
.side-figure { position: sticky; top: 104px; }
.side-figure figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-500); }
.side-figure .shot { aspect-ratio: 4 / 3; }
.side-stat {
  margin-top: 22px;
  background: var(--bg-warm);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.side-stat-n {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; letter-spacing: -0.03em; color: var(--accent-600);
}
.side-stat-l { margin-top: 5px; font-size: .86rem; color: var(--ink-700); }

/* Tick list — used for plain-language claims we can stand behind. */
.ticks { display: grid; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: .95rem; color: var(--ink-700); line-height: 1.6;
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 17px; height: 17px;
  background: var(--accent);
  -webkit-mask: var(--icon-tick) center / contain no-repeat;
  mask: var(--icon-tick) center / contain no-repeat;
}
:root {
  --icon-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ── 20. Gallery ────────────────────────────────────────────────────────── */

.gal { columns: 3; column-gap: clamp(14px, 1.8vw, 22px); }
.gal figure { break-inside: avoid; margin: 0 0 clamp(14px, 1.8vw, 22px); }
.gal .shot { border-radius: var(--r-md); transition: transform .25s ease, box-shadow .25s ease; }
.gal figure:hover .shot { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gal figcaption { margin-top: 10px; font-size: .84rem; color: var(--ink-500); }

/* CSS-only gallery filter, same pattern as the homepage portfolio. */
.gal-wrap:has(#g-cartons:checked)  figure:not([data-cat~="cartons"]),
.gal-wrap:has(#g-machines:checked) figure:not([data-cat~="machines"]),
.gal-wrap:has(#g-factory:checked)  figure:not([data-cat~="factory"]),
.gal-wrap:has(#g-team:checked)     figure:not([data-cat~="team"]) { display: none; }

/* ── 21. Contact ────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: clamp(32px, 4.5vw, 60px);
  align-items: start;
}
.info-card {
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
}
.info-card + .info-card { margin-top: 18px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.info-card address { font-style: normal; font-size: .93rem; color: var(--ink-700); line-height: 1.7; }
.info-card .kv { display: grid; gap: 8px; margin-top: 16px; font-size: .93rem; }
.info-card .kv div { display: flex; gap: 10px; align-items: flex-start; }
.info-card .kv svg { color: var(--accent); flex: none; margin-top: 4px; }
.info-card .shot { aspect-ratio: 4 / 3; margin-top: 18px; border-radius: var(--r-md); }

.form-panel {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
}

/* ── 22. Inner-page responsive ──────────────────────────────────────────── */

@media (max-width: 1080px) {
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .eco-grid { grid-template-columns: 1fr; }
  .gal { columns: 2; }
}

@media (max-width: 940px) {
  .prod-row { grid-template-columns: 1fr; }
  .prod:nth-of-type(even) .prod-figure { order: 0; }
  .mach-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .cols-split { grid-template-columns: 1fr; }
  .side-figure { position: static; }
}

@media (max-width: 680px) {
  .svc { grid-template-columns: 1fr; }
  .svc figure { max-width: 200px; }
  .ind-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .gal { columns: 1; }
  .step { grid-template-columns: 46px 1fr; gap: 14px; }
  .step-n { width: 42px; height: 42px; font-size: .9rem; }
  .cta-strip-actions .btn { flex: 1 1 100%; }
}

@media print {
  .site-header, .wa-fab, .pf-filters, .quote, .jumpbar, .cta-strip { display: none !important; }
  body { font-size: 11pt; }
}
