@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-LightItalic.woff") format("woff");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

:root {
  --ink: #1d252b;
  --dark: #1c252d;
  --paper: #f6f5f1;
  --stone: #ebece8;
  --muted: #4d5b61;
  --line: #ccd1cd;
  --orange: #f08a53;
  --rust: #a1411b;
  --sans: "Myriad Pro", "Open Sans", "Segoe UI", sans-serif;
  --display: "Milliard", "Open Sans", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; }
h2 { font-size: clamp(2.45rem, 5.2vw, 5.15rem); letter-spacing: -.075em; text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.04em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #c4612c; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 10; padding: 10px 18px; background: white; }
.shell { width: min(1370px, calc(100% - clamp(36px, 10vw, 150px))); margin-inline: auto; }
.section { padding-block: clamp(70px, 9vw, 135px); }
.dark { background: var(--dark); color: #f8f7f2; }
.kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--rust);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker span { width: 16px; height: 2px; background: currentColor; transform: rotate(-29deg); }
.dark .kicker { color: #ffa574; }
.intro { margin-top: 22px; max-width: 62ch; color: var(--muted); }
.dark .intro { color: #ccd4d8; }
.header { position: sticky; top: 0; z-index: 4; background: #182127; color: white; border-bottom: 1px solid #ffffff24; }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand img { width: clamp(140px, 14vw, 177px); height: auto; }
nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 39px); }
nav > a { white-space: nowrap; font-size: .9rem; text-decoration: none; }
nav > a:not(.button):hover { color: var(--orange); }
.menu { display: none; }
.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border: 1px solid transparent;
  font-size: .89rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.primary { background: var(--orange); color: #1d252b; }
.primary:hover { background: #ffab79; }
.text-link { font-weight: 700; text-underline-offset: .35em; text-decoration-color: var(--orange); }
.hero { position: relative; overflow: hidden; }
.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("assets/grafismo-folder.svg") left bottom / 780px auto no-repeat;
  opacity: .29;
  pointer-events: none;
}
.hero-layout { position: relative; display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(26px, 4vw, 64px); padding-block: clamp(48px, 7vw, 100px); }
.hero h1 { max-width: 12ch; font-size: clamp(3rem, 5.45vw, 6rem); letter-spacing: -.085em; line-height: .99; }
.hero h1 em { display: inline-block; color: #ffa574; font-weight: 300; }
.hero-copy { margin-top: 24px; max-width: 42ch; color: #dce0e1; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 26px; }
.hero-media { position: relative; }
.hero-photo { width: 100%; height: clamp(385px, 44vw, 665px); object-fit: cover; object-position: 53% center; }
.hero-media figcaption { margin-top: 10px; color: #c7d0d3; font-size: .79rem; }
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 28px; }
.stats-grid > div { border-left: 1px solid var(--line); padding: 0 20px; }
.stats-grid > div:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font: 700 clamp(1.55rem, 3.6vw, 3.35rem)/1.05 var(--display); letter-spacing: -.07em; white-space: nowrap; }
.stats strong small { font-size: .48em; letter-spacing: -.03em; }
.stats span { display: block; margin-top: 6px; color: var(--muted); font-size: .87rem; }
.source { padding-block: 17px 23px; color: var(--muted); font-size: .74rem; }
.source a { text-underline-offset: 3px; }
.section-heading { display: grid; grid-template-columns: .33fr 1fr; align-items: start; gap: 14px 32px; margin-bottom: clamp(30px, 5.5vw, 72px); }
.section-heading .kicker { margin-top: .85em; }
.solutions { display: grid; grid-template-columns: 1.26fr 1fr; gap: 0 clamp(30px, 5vw, 80px); }
.solutions article { min-width: 0; }
.solutions figure { position: relative; min-width: 0; }
.solutions figure img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; }
.solutions figcaption { margin-top: 7px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.solutions article:first-child { grid-row: 1 / span 3; }
.solutions article:first-child img { aspect-ratio: 1.34; }
.solutions article:first-child h3 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
.solutions article:first-child .solution-content { padding-top: 22px; }
.solutions article:not(:first-child) { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; border-top: 1px solid var(--line); padding: 17px 0; }
.solutions article:last-child { border-bottom: 1px solid var(--line); }
.solutions p { margin-top: 9px; color: var(--muted); }
.solutions article:not(:first-child) p { font-size: .9rem; }
.portfolio { background: var(--stone); }
.portfolio .section-heading { margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 3px 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.filters button { border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); padding: 8px 0; font-size: .9rem; }
.filters button:hover, .filters button[aria-pressed=true] { color: var(--ink); border-bottom-color: #bf562c; }
.filters button[aria-pressed=true] { font-weight: 700; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 36px 24px; }
.project { border-bottom: 1px solid #bfc6c2; }
.project-media { display: grid; place-items: center; aspect-ratio: 1.64; overflow: hidden; background: var(--dark) url("assets/grafismo-folder.svg") center / cover; color: #fee1d0; padding: 10px; text-align: center; font-size: .83rem; }
.project-media:has(img) { padding: 0; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-content { padding: 15px 0; }
.project-type { margin-bottom: 6px; color: var(--rust); font-size: .73rem; font-weight: 700; }
.location { margin-top: 5px; color: var(--muted); font-size: .89rem; }
.project-data { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0; font-weight: 700; font-variant-numeric: tabular-nums; }
details { padding-top: 8px; border-top: 1px solid var(--line); font-size: .88rem; }
summary { font-weight: 700; }
details dl { margin: 11px 0; }
details dt { font-weight: 700; }
details dd { margin: 0 0 9px; color: var(--muted); }
.flow, .factory { margin-top: 40px; }
.tab-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tab-list button { background: transparent; color: inherit; border: 0; border-bottom: 2px solid transparent; font-size: .92rem; font-weight: 700; padding: 13px 10px 13px 0; text-align: left; }
.tab-list button[aria-selected=true], .tab-list button:hover { border-bottom-color: #d1663b; }
.tab-list b { display: block; color: var(--rust); font-size: .75rem; margin-bottom: 4px; }
.panel { display: grid; grid-template-columns: 1.65fr 1fr; align-items: start; gap: 26px; padding-block: 29px 10px; min-height: 150px; }
.panel p { margin-top: 10px; color: var(--muted); }
.panel ul { margin: 0; padding-left: 18px; font-size: .9rem; }
.panel li + li { margin-top: 6px; }
.panel li::marker { color: var(--rust); }
.blueprint { background-image: linear-gradient(90deg,#1c252dfc 25%,#1c252ded 74%), url("assets/estrutura-folder.webp"); background-position: center, right center; background-size: auto, 680px; background-repeat: no-repeat; }
.factory-list { grid-template-columns: repeat(4, minmax(0, 1fr)); border-color: #ffffff55; }
.factory-panel p { color: #ccd4d8; }
.factory-panel li::marker { color: var(--orange); }
.history, .rfq { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(25px, 7vw, 105px); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 65px 1fr; gap: 14px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.timeline time { font-weight: 700; color: var(--rust); }
.timeline h3 { font-size: 1.05rem; }
.timeline p { margin-top: 5px; color: var(--muted); font-size: .9rem; }
address { margin-top: 24px; font-style: normal; color: #dce1e3; }
address a { text-underline-offset: 4px; }
.form { border-top: 1px solid #ffffff75; padding-top: 22px; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.fields label { display: grid; align-content: start; gap: 5px; font-size: .88rem; font-weight: 700; min-width: 0; }
.wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; min-height: 43px; padding: 7px 9px; color: #fff; color-scheme: dark; background: #26333c; border: 1px solid #77858c; border-radius: 0; }
input::file-selector-button { font: inherit; }
::placeholder { color: #bcc7cc; }
.hint, .fields small { font-size: .81rem; color: #c6d1d6; font-weight: 400; }
.form > .hint { margin: 13px 0; }
#form-status:not(:empty) { margin-top: 12px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #ffffff38; padding-block: 26px; }
.footer p { color: #c6d1d6; font-size: .87rem; }

@media (max-width: 940px) {
  .nav { height: 64px; }
  .menu { display: block; border: 1px solid #ffffff54; background: none; color: white; padding: 4px 13px; }
  nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 18px max(18px,5vw); background: #182127; align-items: stretch; flex-direction: column; gap: 13px; }
  nav.open { display: flex; }
  .solutions { grid-template-columns: 1.15fr 1fr; }
  .solutions article:not(:first-child) { grid-template-columns: 1fr 1.15fr; gap: 11px; }
}
@media (max-width: 710px) {
  .hero-layout, .section-heading, .solutions, .history, .rfq { grid-template-columns: 1fr; }
  .hero-layout { padding-block: 52px 25px; }
  .hero h1 { font-size: clamp(3.3rem, 10vw, 4.8rem); }
  .hero-photo { height: auto; aspect-ratio: 1.32; object-position: center 36%; }
  .stats-grid, .projects { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid { row-gap: 16px; }
  .stats-grid > div { padding-left: 12px; padding-right: 0; }
  .stats-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .section-heading .kicker { margin: 0; }
  .solutions article:first-child { grid-row: auto; margin-bottom: 24px; }
  .solutions article:first-child img { aspect-ratio: 1.55; }
  .solutions article:not(:first-child) { grid-template-columns: .85fr 1.15fr; gap: 14px; }
  .tab-list { display: flex; gap: 12px; overflow-x: auto; }
  .tab-list button { flex: 0 0 120px; }
  .panel { grid-template-columns: 1fr; gap: 12px; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 390px) {
  .fields, .projects { grid-template-columns: 1fr; }
  .solutions article:not(:first-child) { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.history-photo { margin-top: 28px; }
.history-photo img { width: 100%; height: auto; }
.history-photo figcaption { margin-top: 9px; color: var(--muted); font-size: .79rem; }

.factory-video {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: clamp(24px, 6vw, 84px);
  margin-top: clamp(42px, 7vw, 92px);
  padding-top: clamp(25px, 4vw, 50px);
  border-top: 1px solid #ffffff55;
}
.factory-video-copy p { margin-block: 12px 16px; max-width: 34ch; color: #ccd4d8; }
.factory-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #12191e; }
@media (max-width: 710px) {
  .factory-video { grid-template-columns: minmax(0, 1fr); }
}

.portfolio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  border-bottom: 1px solid var(--line);
}
.portfolio-controls .filters { flex: 1 1 640px; border-bottom: 0; margin: 0; }
.portfolio-controls label { display: flex; gap: 10px; align-items: center; font-size: .84rem; white-space: nowrap; padding-bottom: 6px; }
.portfolio-controls select { width: auto; min-height: 38px; background: var(--paper); color: var(--ink); color-scheme: light; border-color: var(--line); }
#result { margin: 12px 0 22px; color: var(--muted); font-size: .82rem; }
.portfolio-more { margin-top: 32px; }

.footer-social { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.footer-social a { display: inline-flex; align-items: center; min-height: 40px; color: #f8f7f2; font-size: .87rem; text-decoration: none; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--orange); text-decoration: underline; text-underline-offset: 4px; }
