:root {
  --ink: #111;
  --black: #141414;
  --white: #fff;
  --red: #c0272d;
  --red-dark: #8f1b20;
  --grid-line: #d9d6d1;
  --muted: #555;
  --label: #777;
  --gutter: clamp(20px, 5vw, 64px);
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-button: Oswald, 'Arial Narrow', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --font-body: Lato, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

main { display: block; }

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

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

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--oswald {
  padding: 16px 24px;
  font-family: var(--font-button);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .06em;
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--red); color: var(--white); }
.btn--outline { padding: 14px 22px; border: 2px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: #333; color: var(--white); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-content: flex-start; }

/* Top bar */

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  padding: 10px var(--gutter);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}
.topbar__phones { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--white); text-decoration: underline; }

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 56px);
  padding: clamp(40px, 7vw, 96px) var(--gutter) 0;
}

.hero__logo { margin: 0; }
.hero__logo img { width: 100%; max-width: 1100px; height: auto; }

.hero__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 32px 64px;
  padding-top: 32px;
  border-top: 3px solid var(--ink);
}

.hero__lead {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Sections */

.section { padding: clamp(56px, 8vw, 100px) var(--gutter); }

.section__title {
  margin: 0 0 40px;
  font-size: clamp(36px, 5vw, 56px);
}

/* Product categories */

.cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* At most 3 columns so the 6 categories always fill complete rows */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(240px, calc((100% - 4px) / 3))), 1fr));
  gap: 2px;
  background: var(--grid-line);
  border: 2px solid var(--grid-line);
}

.cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  padding: 32px 28px;
  background: var(--white);
}

.cat__num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--red);
}

.cat__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.cat__desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Plate cutting */

.corte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  align-items: center;
  padding: clamp(56px, 8vw, 100px) var(--gutter);
  background: var(--red);
  color: var(--white);
}

.corte__title {
  margin: 0;
  font-size: clamp(44px, 6vw, 80px);
  line-height: .95;
}

.corte__body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.corte__body p { margin: 0; font-size: 19px; line-height: 1.55; }

/* Contact */

.contacto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px;
}

.contacto__info { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contacto__info .section__title { margin: 0; }

.contact-group { display: flex; flex-direction: column; gap: 6px; }

.contact-group__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}

.contact-group__phone { font-size: 24px; font-weight: 700; color: var(--black); }
.contact-group__phone:hover { color: var(--red); }
.contact-group__email { font-size: 20px; }

.contacto__map {
  width: 100%;
  min-height: clamp(300px, 60vw, 420px);
  border: 0;
  filter: grayscale(.6);
}

/* Footer */

.site-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--gutter);
  background: var(--black);
  color: #aaa;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer span:last-child { text-transform: none; }
