/* BCS | Biocycle solutions — site
   Cores e tipografia da apresentação corporate (fechada a 11 out. 2026) e do BCS_Brand_Manual. */

/* Inter servida pelo próprio site (gerada por _build/build_fonts.py) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }

:root {
  --ivory: #f7f4ef;
  --ivory-deep: #efe9e0;
  --sand: #e9e2d6;
  --forest: #142b23;
  --forest-deep: #0d281e;
  --ink: #26332d;
  --text: #3d4441;
  --muted: #4f5350;
  --soft: #7d8480;
  --gold: #a07c45;
  --gold-light: #b8955a;
  --line: #ddd4c5;
  --font: "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--forest); font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Etiquetas douradas, como nos slides */
.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}
.label::before { content: ""; width: 34px; height: 2px; background: var(--gold-light); }

.title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; margin-top: 20px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text); max-width: 640px; }
.lead + .lead { margin-top: 18px; }
.lead b { color: var(--ink); font-weight: 600; }

.statement {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; align-items: center; gap: 22px;
  padding: 22px 28px; border-radius: 999px;
  background: linear-gradient(90deg, var(--sand), rgba(233, 226, 214, 0.35));
  font-size: clamp(18px, 2vw, 24px); color: var(--ink);
}
.statement::before {
  content: ""; flex: none; width: 4px; align-self: stretch; border-radius: 2px;
  background: linear-gradient(var(--gold-light), var(--gold));
}

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink);
}
.nav a:hover { color: var(--gold); }
.nav a.lang { color: var(--soft); }
.nav a.lang:hover { color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--forest); color: #f7f4ef; }
.btn-primary:hover { background: var(--forest-deep); }
.btn-ghost { border: 1px solid var(--forest); color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #f7f4ef; }
.nav .btn { padding: 11px 20px; color: #f7f4ef; }
.nav .btn:hover { color: #f7f4ef; }

/* Capa */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: center;
  background: var(--ivory) url("img/hero.webp") center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(247,244,239,.55) 0%, rgba(247,244,239,0) 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 180px; }
.hero h1 {
  font-size: clamp(42px, 6.6vw, 92px); font-weight: 300; line-height: 0.98; letter-spacing: -0.03em;
  color: #1a221e; margin-top: 26px;
}
.hero .rule { width: 64px; height: 3px; background: var(--gold-light); margin: 34px 0 26px; }
.hero p.sub { font-size: clamp(18px, 1.8vw, 23px); color: var(--muted); max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Secções */
section.block { padding: clamp(72px, 10vw, 128px) 0; }
section.block.alt { background: #fbf9f5; }
.head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.head .lead { margin-top: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.wide-img { grid-template-columns: 5fr 6fr; }

/* Visão e missão */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.vm div { padding: 28px 28px 0 0; }
.vm div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.vm h3 { font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: 0; margin-bottom: 10px; }
.vm p { font-size: 16px; color: var(--muted); }

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; text-align: center; }
.flow h4, .steps h4 {
  margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #2d3b36;
}
.flow p { font-size: 15px; color: var(--muted); }

/* Cartões em folha (imagens dos slides) */
.cards { display: grid; gap: clamp(16px, 2vw, 28px); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c5 { grid-template-columns: repeat(5, 1fr); }
.card { text-align: center; }
.card img { width: 100%; aspect-ratio: 1 / 0.97; object-fit: cover; }
.cards.c4 .card img { aspect-ratio: 1.32 / 1; }
.card .num { display: block; margin-top: 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.18em; color: var(--gold); }
.card h3 { margin-top: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #2d3b36; line-height: 1.4; }
.card h3.plain { font-size: 20px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.card .q { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--ink); }
.card p { margin-top: 10px; font-size: 15.5px; color: var(--muted); line-height: 1.5; }

/* Portfólio */
.families { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.family { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.family > img { width: 180px; }
.family .label { margin-bottom: 20px; }
.family ul { list-style: none; margin: 0; padding: 0; }
.family li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.family li:last-child { border-bottom: 0; }
.family li img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.family h3 { font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: 0; }
.family p { font-size: 15px; color: var(--muted); line-height: 1.45; margin-top: 4px; }

/* Divisores de produto */
.divider {
  position: relative; min-height: min(78vh, 720px);
  display: flex; align-items: center;
  background-size: cover; background-position: center; background-color: var(--ivory-deep);
}
.divider::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,244,239,.72) 0%, rgba(247,244,239,.2) 45%, rgba(247,244,239,0) 65%);
}
.divider .wrap { position: relative; z-index: 1; }
.divider h2 { font-size: clamp(56px, 9vw, 130px); font-weight: 300; line-height: 0.95; color: var(--forest-deep); margin-top: 24px; letter-spacing: -0.03em; }
.divider p { margin-top: 26px; font-size: clamp(19px, 2vw, 28px); color: var(--muted); max-width: 460px; line-height: 1.35; }
.divider.biochar { background-image: url("img/biochar_banner.webp"); }
.divider.ammonia { background-image: url("img/ammonia_banner.webp"); }

/* Propriedades (círculos) */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.prop { text-align: center; }
.prop img { width: 128px; margin: 0 auto 16px; }
.prop h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #2d3b36; }
.prop h3.plain { font-size: 19px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.prop p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* Qualidade */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.pillar { padding: 0 22px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; }
.pillar svg { width: 46px; height: 46px; color: var(--gold); }
.pillar h3 { margin-top: 18px; font-size: 18px; font-weight: 600; color: var(--gold); letter-spacing: 0; line-height: 1.25; }
.pillar p { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.passport {
  margin-top: clamp(48px, 7vw, 80px); padding: clamp(28px, 4vw, 48px);
  background: var(--sand); border-radius: 24px;
}
.passport .label { margin-bottom: 32px; }
.passport ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; counter-reset: p; }
.passport li { text-align: center; position: relative; }
.passport li img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.passport li:not(:last-child)::after {
  content: "›"; position: absolute; top: 40px; right: -14px; font-size: 28px; color: var(--gold);
}
.passport h3 { font-size: 16px; font-weight: 600; color: var(--gold); letter-spacing: 0; }
.passport p { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Contacto */
.contact { position: relative; background: var(--ivory); overflow: hidden; }
.contact .split { min-height: 560px; }
.contact-list { margin-top: 40px; display: grid; gap: 22px; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; }
.contact-list span { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.contact-list a { font-size: clamp(17px, 1.7vw, 21px); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); word-break: break-word; }
.contact-list a:hover { border-color: var(--gold); }
.contact .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.contact .motto { margin-top: 48px; font-size: 18px; color: var(--soft); font-style: italic; }
.contact-img { border-radius: 28px; overflow: hidden; }

/* Rodapé */
.site-footer { background: var(--forest); color: #d9d3c7; padding: 56px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.site-footer img { height: 54px; width: auto; }
.site-footer .tag { font-size: 15px; letter-spacing: 0.04em; }
.site-footer .legal { width: 100%; padding-top: 28px; margin-top: 4px; border-top: 1px solid rgba(217, 211, 199, .18); font-size: 13px; color: #a9b0a8; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

/* Aparecer ao fazer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsivo */
@media (max-width: 1080px) {
  .cards.c5 { grid-template-columns: repeat(3, 1fr); }
  .families { grid-template-columns: 1fr; }
  .passport ol { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .passport li:nth-child(3)::after { display: none; }
  .pillars { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .pillar:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .nav a.lang { display: inline; }
  .split, .split.wide-img { grid-template-columns: 1fr; }
  .cards.c4 { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 640px; background-position: 70% center; }
  .hero::after { background: linear-gradient(180deg, rgba(247,244,239,.85) 0%, rgba(247,244,239,.35) 55%, rgba(247,244,239,0) 80%); }
  .divider { align-items: flex-start; min-height: 620px; background-position: 70% center; }
  .divider .wrap { padding-top: 64px; }
  .divider::after { background: linear-gradient(180deg, rgba(247,244,239,.85) 0%, rgba(247,244,239,.25) 50%, rgba(247,244,239,0) 70%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 38px; }
  .nav .btn { padding: 10px 16px; font-size: 12px; }
  .cards.c3, .cards.c5 { grid-template-columns: 1fr 1fr; }
  .cards.c4 { grid-template-columns: 1fr; }
  .vm { grid-template-columns: 1fr; }
  .vm div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .flow, .props { grid-template-columns: 1fr; gap: 32px; }
  .family { grid-template-columns: 1fr; }
  .family > img { width: 140px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child { padding: 0; border-left: 0 !important; }
  .passport ol { grid-template-columns: 1fr 1fr; }
  .passport li::after { display: none; }
  .statement { border-radius: 20px; padding: 20px; }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }
}

/* Formulário de contacto (Netlify Forms) */
.form { margin-top: 36px; display: grid; gap: 18px; max-width: 560px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.form input, .form textarea {
  font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: #fbf9f5; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px;
  transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.5; }
.form .consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--forest); }
.form .consent a { color: var(--ink); }
.form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form .hp { position: absolute; left: -9999px; }

/* Páginas simples: agradecimento e informação legal */
.page { padding-top: clamp(56px, 8vw, 96px); }
.page .wrap { max-width: 860px; }
.page .lead { margin-top: 24px; }
.page .actions { margin-top: 40px; }
.thanks { min-height: 60vh; }
.legal h2 { margin-top: 56px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 400; }
.legal h3 { margin-top: 28px; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.legal p { margin: 8px 0 0; color: var(--text); }
.legal a { color: var(--ink); }
.legal dl { margin: 20px 0 0; display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; }
.legal dt { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.legal dd { margin: 0; color: var(--ink); }
.legal .updated { margin-top: 48px; font-size: 14px; color: var(--soft); }
.tbc { background: #f3e6c8; padding: 0 6px; border-radius: 4px; }
@media (max-width: 640px) {
  .form .row { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
}
