/* Bramah Makina — site styles. Light studio look: white and alabaster surfaces, ink text, Bramah red accent. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #636366;
  --line: rgba(29, 29, 31, 0.1);
  --line-strong: rgba(29, 29, 31, 0.22);

  --red: #ff1717;          /* brand red: logo, bars, markers. Not for text (3.9:1 on white). */
  --red-ink: #d91414;      /* text and button red: 5.2:1 on white */
  --red-ink-hover: #b80f0f;

  --font: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #c7c7cc var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01';
  overflow-x: clip;
  caret-color: var(--red-ink);
  accent-color: var(--red-ink);
}

::selection { background: var(--red-ink); color: #fff; }

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--red-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.25; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

.visually-hidden, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

.text-link {
  color: var(--red-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--red-ink-hover); }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-primary { background: var(--red-ink); color: #fff; }
.btn-primary:hover { background: var(--red-ink-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost, .btn-whatsapp { border-color: var(--line-strong); background: var(--bg); color: var(--ink); }
.btn-ghost:hover, .btn-whatsapp:hover { border-color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-bar { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; padding: 6px 0; }
.brand-logo { height: 28px; width: auto; overflow: visible; }
.logo-ram { transition: transform 0.35s var(--ease-out); }
.brand:hover .logo-ram { transform: scale(0.24) translateY(7px); }

.site-nav { display: flex; gap: 28px; margin-right: auto; }
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-link {
  min-width: 44px; min-height: 40px;
  display: inline-grid; place-items: center;
  font-size: 0.875rem; font-weight: 650;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 999px;
}
.lang-link:hover { background: var(--bg-alt); color: var(--ink); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
}

/* Hero ---------------------------------------------------------------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.hero-lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 34em; margin-bottom: 24px; }

.firsts { list-style: none; padding: 0; margin-bottom: 36px; display: grid; gap: 10px; }
.firsts li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-weight: 650;
}
.firsts li::before {
  content: '';
  flex: none;
  width: 10px; height: 10px;
  background: var(--red);
  transform: translateY(-1px);
}

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

.hero-media { height: clamp(380px, 62vh, 620px); display: grid; place-items: center; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: ram-stroke 1.1s var(--ease-out) both;
}
/* The one authored motion: the press settles into place like a ram finishing its stroke. */
@keyframes ram-stroke {
  from { transform: translateY(-28px); clip-path: inset(0 0 22% 0); }
  to { transform: none; clip-path: inset(0 0 0 0); }
}

/* Sections ------------------------------------------------------------ */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* Capacity range chart -------------------------------------------------- */
.range-chart {
  margin: 0 0 56px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line-strong);
}
.range-chart figcaption { font-size: 0.875rem; font-weight: 650; color: var(--muted); margin-bottom: 12px; }
.range-chart ol { list-style: none; padding: 0; }
.range-chart a,
.rc-axis {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr) 9rem;
  align-items: center;
  gap: 24px;
}
.range-chart a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.rc-name { font-weight: 600; }
.rc-track { width: 100%; height: 12px; }
.rc-bg { fill: #e8e8ed; }
.rc-bar { fill: var(--red); }
.rc-val { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; font-size: 0.9375rem; }
.range-chart a:hover .rc-name { color: var(--red-ink); }
.rc-axis { padding-top: 8px; }
.rc-axis > div {
  grid-column: 2;
  position: relative;
  height: 1.2em;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rc-axis span { position: absolute; transform: translateX(-50%); }
.rc-axis span:nth-child(1) { left: 0; transform: none; }
.rc-axis span:nth-child(2) { left: 33.333%; }
.rc-axis span:nth-child(3) { left: 66.667%; }
.rc-axis span:nth-child(4) { right: 0; transform: none; }

/* Filter -------------------------------------------------------------- */
.filter, .draw-mode {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--bg-alt);
}
.filter button, .draw-mode button {
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.filter button:hover, .draw-mode button:hover { color: var(--ink); }
.filter .count { margin-left: 4px; font-size: 0.8125em; opacity: 0.55; }
.filter button[aria-pressed='true'], .draw-mode button[aria-pressed='true'] { background: var(--ink); color: #fff; }

/* Deep-drawing scene ---------------------------------------------------- */
.draw-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: 'head figure' 'steps figure';
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}
.draw-head { grid-area: head; }
.draw-head h2 { margin-bottom: 16px; }
.draw-head p { color: var(--muted); font-size: 1.125rem; max-width: 34em; }
.draw-figure { grid-area: figure; }
.draw-stage { position: relative; aspect-ratio: 5 / 4; }
.draw-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.draw-figure figcaption { display: grid; justify-items: center; gap: 10px; margin-top: 8px; text-align: center; }
.draw-mode { margin-bottom: 4px; background: #e8e8ed; }
.draw-note { font-size: 0.9375rem; color: var(--muted); max-width: 40em; }

.draw-steps { grid-area: steps; list-style: none; padding: 0; counter-reset: step; }
.draw-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  transition: color 0.3s ease;
}
.draw-steps li::before { content: counter(step); font-weight: 700; font-variant-numeric: tabular-nums; transition: color 0.3s ease; }
.draw-steps[data-live] li { color: var(--muted); }
.draw-steps[data-live] li[aria-current] { color: var(--ink); }
.draw-steps[data-live] li[aria-current]::before { color: var(--red-ink); }

/* Machine cards ------------------------------------------------------- */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.machine {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.machine:hover { border-color: var(--line-strong); }
.machine-media { aspect-ratio: 4 / 3.4; padding: 24px 24px 0; }
.machine-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease-out); }
.machine:hover .machine-media img { transform: scale(1.025); }
.machine-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.machine-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9375rem; color: var(--muted); margin-top: -6px; }
.machine-meta .ton { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.machine-summary { color: var(--ink-2); }
.machine-uses { font-size: 0.9375rem; color: var(--muted); }
.machine-uses strong { color: var(--ink-2); font-weight: 650; }

.machine--wide { grid-column: 1 / -1; flex-direction: row; }
.machine--wide .machine-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 380px; padding: 32px; }
.machine--wide .machine-body { padding: 40px; justify-content: center; }
.machine--wide .machine-actions { margin-top: 0; }
.machine--wide h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.machine--wide:nth-child(even of .machine--wide) { flex-direction: row-reverse; }

.machine-details { border-top: 1px solid var(--line); }
.machine-details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding-top: 6px;
  font-weight: 650;
  cursor: pointer;
}
.machine-details summary::-webkit-details-marker { display: none; }
.machine-details summary::after {
  content: '';
  width: 12px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.machine-details[open] summary::after { transform: rotate(45deg); }
.machine-details summary:hover { color: var(--red-ink); }
.machine-details > :not(summary) { margin-bottom: 18px; }

.specs { display: grid; }
.specs > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) 1.2fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; }

.highlights { display: grid; gap: 14px; }
.highlights dt { font-weight: 650; }
.highlights dd { color: var(--muted); font-size: 0.9375rem; }

.ticks { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.machine--wide .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before {
  content: '';
  flex: none;
  width: 6px; height: 6px;
  margin-top: 0.6em;
  background: var(--red);
}

.machine-actions { margin-top: auto; padding-top: 4px; }

/* Standard features --------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.features-head { position: sticky; top: calc(var(--header-h) + 32px); }
.features-head h2 { margin-bottom: 16px; }
.features-head p { color: var(--muted); margin-bottom: 32px; max-width: 34em; }
.features-head img { width: 100%; max-height: 420px; object-fit: contain; object-position: left bottom; }

.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.feature-list > div { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.feature-list dt { font-weight: 700; margin-bottom: 4px; }
.feature-list dd { color: var(--muted); font-size: 0.9375rem; }

/* Company --------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-copy h2 { margin-bottom: 20px; }
.about-copy > p { font-size: 1.125rem; color: var(--ink-2); max-width: 40em; margin-bottom: 40px; }
.about-copy h3 { font-size: 1rem; margin-bottom: 12px; }
.sectors { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--ink-2); }
.sectors li + li::before { content: '·'; margin: 0 10px; color: var(--muted); }

.catalog-box {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--bg-alt);
}
.catalog-box h3 { margin-bottom: 8px; }
.catalog-box p { color: var(--muted); margin-bottom: 24px; }

/* Contact --------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--ink-2); margin-bottom: 32px; max-width: 30em; }
.contact-list { display: grid; gap: 18px; margin-bottom: 32px; }
.contact-list dt { font-size: 0.875rem; color: var(--muted); }
.contact-list dd { font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--red-ink); }

.quote-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
}
.quote-form h3 { font-size: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field ::placeholder { color: #6e6e73; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red-ink);
  box-shadow: 0 0 0 3px rgba(217, 20, 20, 0.15);
}
.field :user-invalid { border-color: var(--red-ink); }
.quote-form .btn { justify-self: start; }
.form-note { font-size: 0.875rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status { font-weight: 600; }
.form-status[data-state='ok'] { color: #0f7b3e; }
.form-status[data-state='error'] { color: var(--red-ink); }

/* Footer ---------------------------------------------------------------- */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.footer-logo { height: 24px; width: auto; margin-bottom: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.credit { display: inline-flex; align-items: center; gap: 8px; justify-self: end; color: var(--muted); text-decoration: none; }
.credit strong { color: var(--ink); font-weight: 650; }
.credit:hover strong { color: var(--red-ink); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1040px) {
  .hero-grid, .features-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .draw-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: 'head' 'figure' 'steps'; }
  .hero-media { height: clamp(320px, 56vw, 520px); }
  .features-head { position: static; }
  .features-head img { max-height: 320px; object-position: center; }
  .machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
  }
  .site-nav[data-open] { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-bar { gap: 12px; justify-content: space-between; }

  .machine--wide, .machine--wide:nth-child(even of .machine--wide) { flex-direction: column; }
  .machine--wide .machine-media { min-height: 0; aspect-ratio: 4 / 3; padding: 24px 24px 0; }
  .machine--wide .machine-body { padding: 24px; }
  .machine--wide .ticks { grid-template-columns: 1fr; }

  .range-chart a { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .rc-track { grid-column: 1 / -1; grid-row: 2; }
  .rc-axis { grid-template-columns: 1fr; }
  .rc-axis > div { grid-column: 1; }

  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .machine-grid, .field-row { grid-template-columns: 1fr; }
  .draw-stage { aspect-ratio: 1; }
  .brand-logo { height: 22px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding: 8px 14px; }
  .filter { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter button { flex: none; }
  .hero-actions .btn { white-space: normal; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.5rem); }
  .hero-actions .btn { width: 100%; }
  .quote-form .btn { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .credit { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The photo has a white background: seat it on a white surface instead of the grey band. */
.features-head img { background: #fff; border-radius: var(--r-lg); padding: 16px; object-position: center; }
