/* ===== Tokens ===== */
:root {
  --paper: #f2f1ec;
  --paper-raised: #fbfaf7;
  --ink: #1b2a2e;
  --ink-soft: #4a5a5e;
  --blueprint: #1f4e5f;
  --blueprint-dark: #163a47;
  --copper: #b36a3d;
  --copper-dark: #955a33;
  --line: #cfc9bc;
  --line-strong: #b7b1a3;

  --font-head: "Barlow Semi Condensed", sans-serif;
  --font-body: "Inter", sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blueprint); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blueprint-dark);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ===== Compliance strip ===== */
.compliance-strip {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}
.compliance-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 241, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand__logo { height: 44px; width: auto; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { color: var(--copper); border-color: var(--copper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--blueprint);
  color: #fff;
}
.btn--primary:hover { background: var(--blueprint-dark); }
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  margin-left: 12px;
}
.btn--ghost:hover { border-color: var(--copper); color: var(--copper); }

/* ===== Hero ===== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
}
.hero__kicker {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 14px;
}
.hero__lede { font-size: 1.08rem; max-width: 52ch; }
.hero__actions { margin-top: 28px; }

.specs-block {
  border-top: 2px solid var(--blueprint);
  padding-top: 16px;
  position: relative;
}
.specs-block::before,
.specs-block::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--copper);
}
.specs-block::before { left: 0; border-left: 2px solid var(--copper); }
.specs-block::after { right: 0; border-right: 2px solid var(--copper); }

.specs-block__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.specs-block__row:last-child { border-bottom: none; }
.specs-block__label {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.specs-block__value {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blueprint-dark);
  text-align: right;
}

.hero__image {
  border-top: 1px solid var(--line);
}
.hero__image img {
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
  filter: grayscale(15%);
}

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section__inner--narrow { max-width: 760px; }

.section__head {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.section__head h2 { margin-bottom: 6px; }
.section__head p { margin: 0; }

.section--about { background: var(--paper-raised); }
.section--about__closing {
  color: var(--blueprint-dark);
  font-weight: 500;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: grayscale(30%);
}
.service-card__body { padding: 22px; flex: 1; }
.service-card__body h3 { color: var(--blueprint-dark); }
.service-card__body p { font-size: 0.92rem; margin-bottom: 0.6em; }
.service-card__body ul { font-size: 0.9rem; color: var(--ink-soft); }
.service-card__body li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.service-card__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--copper);
}

/* ===== Clientes ===== */
.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.client-grid li {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  height: 90px;
}
.client-grid img {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.client-grid li:hover img { filter: grayscale(0%); opacity: 1; }

/* ===== Recrutamento ===== */
.section--recruit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  background: var(--blueprint-dark);
}
.recruit__image { overflow: hidden; }
.recruit__image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: grayscale(40%);
}
.recruit__copy {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.recruit__copy h2 { color: #fff; }
.recruit__copy p { color: #cdd8da; max-width: 46ch; }
.recruit__copy .btn--primary {
  background: var(--copper);
  align-self: flex-start;
  margin-top: 12px;
}
.recruit__copy .btn--primary:hover { background: var(--copper-dark); }

/* ===== Contactos ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.contact-block h3 {
  font-size: 0.95rem;
  text-transform: none;
  color: var(--copper);
  margin-bottom: 10px;
}
.contact-block p { margin: 0; }
.contact-block a { text-decoration: none; }
.contact-block a:hover { color: var(--copper); }
.contact-block__note { font-size: 0.85rem; color: var(--ink-soft); }

/* ===== Footer ===== */
.site-footer {
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-badges { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-badges__pme { display: flex; align-items: center; gap: 12px; }
.footer-legal { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.pme-date span { font-size: 11px; }
.pme-date { margin: 0 4px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .client-grid { grid-template-columns: repeat(4, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .section--recruit { grid-template-columns: 1fr; }
  .recruit__image img { min-height: 220px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .client-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }
  .site-nav a:hover { border-left-color: var(--copper); border-bottom-color: var(--line); }
  .btn--ghost { margin-left: 0; margin-top: 12px; display: block; width: fit-content; }
}